You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/11/05 10:31:22 UTC
[incubator-echarts-examples] branch next updated: use bundled dts.
add examples
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-examples.git
The following commit(s) were added to refs/heads/next by this push:
new 8326b59 use bundled dts. add examples
8326b59 is described below
commit 8326b5947e500cda6477341edc030ca2e935da6c
Author: pissang <bm...@gmail.com>
AuthorDate: Thu Nov 5 18:30:44 2020 +0800
use bundled dts. add examples
---
build/bundleEChartsTypes.js | 35 -
public/data/area-simple.js | 3 +-
public/data/bar-data-color.js | 25 +
public/types/echarts-type-bundle.json | 2186 ------------------------
public/types/echarts.d.ts | 2965 +++++++++++++++++++++++++++++++++
src/editor/CodeMonaco.vue | 19 +-
src/editor/Preview.vue | 5 +
7 files changed, 3006 insertions(+), 2232 deletions(-)
diff --git a/build/bundleEChartsTypes.js b/build/bundleEChartsTypes.js
deleted file mode 100644
index c2ec749..0000000
--- a/build/bundleEChartsTypes.js
+++ /dev/null
@@ -1,35 +0,0 @@
-const globby = require('globby');
-const path = require('path');
-const fs = require('fs');
-
-const defaultECDir = '../echarts-next';
-const defaultZRDir = '../zrender-next';
-
-const echartsDir = path.resolve(__dirname, '..', defaultECDir);
-const zrenderDir = path.resolve(__dirname, '..', defaultZRDir);
-const outFile = path.resolve(__dirname, '../public/types/echarts-type-bundle.json');
-
-async function bundle() {
- const files = await globby([
- zrenderDir + '/esm/**/*.d.ts',
- zrenderDir + '/index.d.ts',
- echartsDir + '/types/**/*.d.ts',
- echartsDir + '/index.d.ts'
- ]);
- const dtsBundle = [];
- for (let file of files) {
- const relPath = file.indexOf(echartsDir) >= 0
- ? 'echarts/' + path.relative(echartsDir, file)
- : 'zrender/' + path.relative(zrenderDir, file);
- dtsBundle.push({
- path: relPath,
- code: fs.readFileSync(file, 'utf-8')
- });
- }
- // For consistent output to avoid diff changes too much.
- dtsBundle.sort((a, b) => a.path.localeCompare(b.path));
-
- fs.writeFileSync(outFile, JSON.stringify(dtsBundle, null, 2), 'utf-8');
-}
-
-bundle();
\ No newline at end of file
diff --git a/public/data/area-simple.js b/public/data/area-simple.js
index 287ca52..84b9682 100644
--- a/public/data/area-simple.js
+++ b/public/data/area-simple.js
@@ -58,9 +58,8 @@ option = {
{
name: '模拟数据',
type: 'line',
- smooth: true,
symbol: 'none',
- sampling: 'average',
+ sampling: 'lttb',
itemStyle: {
color: 'rgb(255, 70, 131)'
},
diff --git a/public/data/bar-data-color.js b/public/data/bar-data-color.js
new file mode 100644
index 0000000..f6e42c7
--- /dev/null
+++ b/public/data/bar-data-color.js
@@ -0,0 +1,25 @@
+/*
+title: Set Style of Single Bar.
+category: bar
+titleCN: 自定义单个柱子颜色
+difficulty: 1
+*/
+
+option = {
+ xAxis: {
+ type: 'category',
+ data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
+ },
+ yAxis: {
+ type: 'value'
+ },
+ series: [{
+ data: [120, {
+ value: 200,
+ itemStyle: {
+ color: '#a90000'
+ }
+ }, 150, 80, 70, 110, 130],
+ type: 'bar'
+ }]
+};
\ No newline at end of file
diff --git a/public/types/echarts-type-bundle.json b/public/types/echarts-type-bundle.json
deleted file mode 100644
index 0e5d029..0000000
--- a/public/types/echarts-type-bundle.json
+++ /dev/null
@@ -1,2186 +0,0 @@
-[
- {
- "path": "echarts/index.d.ts",
- "code": "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n [...]
- },
- {
- "path": "echarts/types/echarts.all.d.ts",
- "code": "export * from './src/echarts';\nexport * from './src/export';\nimport './src/component/dataset';\nimport './src/component/transform';\nimport './src/chart/line';\nimport './src/chart/bar';\nimport './src/chart/pie';\nimport './src/chart/scatter';\nimport './src/chart/radar';\nimport './src/chart/map';\nimport './src/chart/tree';\nimport './src/chart/treemap';\nimport './src/chart/graph';\nimport './src/chart/gauge';\nimport './src/chart/funnel';\nimport './src/chart/parallel [...]
- },
- {
- "path": "echarts/types/echarts.blank.d.ts",
- "code": "export * from './src/echarts';\nexport * from './src/export';\nimport './src/component/dataset';\n"
- },
- {
- "path": "echarts/types/echarts.common.d.ts",
- "code": "export * from './src/echarts';\nexport * from './src/export';\nimport './src/component/dataset';\nimport './src/chart/line';\nimport './src/chart/bar';\nimport './src/chart/pie';\nimport './src/chart/scatter';\nimport './src/component/graphic';\nimport './src/component/tooltip';\nimport './src/component/axisPointer';\nimport './src/component/legendScroll';\nimport './src/component/grid';\nimport './src/component/title';\nimport './src/component/markPoint';\nimport './src/com [...]
- },
- {
- "path": "echarts/types/echarts.simple.d.ts",
- "code": "export * from './src/echarts';\nimport './src/component/dataset';\nimport './src/chart/line';\nimport './src/chart/bar';\nimport './src/chart/pie';\nimport './src/component/gridSimple';\n"
- },
- {
- "path": "echarts/types/src/action/changeAxisOrder.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/action/geoRoam.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/action/roamHelper.d.ts",
- "code": "import View from '../coord/View';\nimport { Payload } from '../util/types';\nexport interface RoamPaylod extends Payload {\n dx: number;\n dy: number;\n zoom: number;\n originX: number;\n originY: number;\n}\nexport declare function updateCenterAndZoom(view: View, payload: RoamPaylod, zoomLimit?: {\n min?: number;\n max?: number;\n}): {\n center: number[];\n zoom: number;\n};\n"
- },
- {
- "path": "echarts/types/src/chart/bar.d.ts",
- "code": "import '../coord/cartesian/Grid';\nimport './bar/BarSeries';\nimport './bar/BarView';\nimport '../action/changeAxisOrder';\nimport '../component/gridSimple';\n"
- },
- {
- "path": "echarts/types/src/chart/bar/BarSeries.d.ts",
- "code": "import BaseBarSeriesModel, { BaseBarSeriesOption } from './BaseBarSeries';\nimport { ItemStyleOption, OptionDataValue, LabelOption, SeriesStackOptionMixin, StatesOptionMixin, OptionDataItemObject } from '../../util/types';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport Polar from '../../coord/polar/Polar';\nimport List from '../../data/List';\nimport { BrushCommonSelectorsForSeries } from '../../component/brush/selector';\nexport interface BarStateOpti [...]
- },
- {
- "path": "echarts/types/src/chart/bar/BarView.d.ts",
- "code": "import ChartView from '../../view/Chart';\nimport List, { DefaultDataVisual } from '../../data/List';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { StageHandlerProgressParams, OrdinalSortInfo, Payload } from '../../util/types';\nimport BarSeriesModel from './BarSeries';\nimport Axis2D from '../../coord/cartesian/Axis2D';\ndeclare class BarView extends ChartView {\n static type: \"bar\";\n type: \"bar\";\n pr [...]
- },
- {
- "path": "echarts/types/src/chart/bar/BaseBarSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { SeriesOption, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, ScaleDataValue } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport List from '../../data/List';\nexport interface BaseBarSeriesOption<StateOption, ExtraStateOption = unknown> extends SeriesOption<StateOption, ExtraStateOption>, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin {\n barMinHeight?: number;\n barMi [...]
- },
- {
- "path": "echarts/types/src/chart/bar/PictorialBarSeries.d.ts",
- "code": "import BaseBarSeriesModel, { BaseBarSeriesOption } from './BaseBarSeries';\nimport { OptionDataValue, ItemStyleOption, LabelOption, AnimationOptionMixin, SeriesStackOptionMixin, StatesOptionMixin, OptionDataItemObject } from '../../util/types';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nexport interface PictorialBarStateOption {\n itemStyle?: ItemStyleOption;\n label?: LabelOption;\n}\ninterface PictorialBarSeriesSymbolOption {\n symbol?: string; [...]
- },
- {
- "path": "echarts/types/src/chart/bar/PictorialBarView.d.ts",
- "code": "import ChartView from '../../view/Chart';\nimport PictorialBarSeriesModel from './PictorialBarSeries';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport GlobalModel from '../../model/Global';\ndeclare class PictorialBarView extends ChartView {\n static type: string;\n readonly type: string;\n private _data;\n render(seriesModel: PictorialBarSeriesModel, ecModel: GlobalModel, api: ExtensionAPI): import(\"../../util/types\").ViewRootGroup;\n remove(ecModel [...]
- },
- {
- "path": "echarts/types/src/chart/boxplot.d.ts",
- "code": "import './boxplot/BoxplotSeries';\nimport './boxplot/BoxplotView';\n"
- },
- {
- "path": "echarts/types/src/chart/boxplot/boxplotLayout.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nexport interface BoxplotItemLayout {\n ends: number[][];\n initBaseline: number;\n}\nexport default function (ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/chart/boxplot/BoxplotSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { WhiskerBoxCommonMixin } from '../helper/whiskerBoxCommon';\nimport { SeriesOption, SeriesOnCartesianOptionMixin, LayoutOrient, ItemStyleOption, LabelOption, OptionDataValueNumeric, StatesOptionMixin } from '../../util/types';\nimport Axis2D from '../../coord/cartesian/Axis2D';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\ndeclare type BoxplotDataValue = OptionDataValueNumeric[];\nexport interface Boxplo [...]
- },
- {
- "path": "echarts/types/src/chart/boxplot/boxplotTransform.d.ts",
- "code": "import { DataTransformOption, ExternalDataTransform } from '../../data/helper/transform';\nimport { PrepareBoxplotDataOpt } from './prepareBoxplotData';\nexport interface BoxplotTransformOption extends DataTransformOption {\n type: 'boxplot';\n config: PrepareBoxplotDataOpt;\n}\nexport declare const boxplotTransform: ExternalDataTransform<BoxplotTransformOption>;\n"
- },
- {
- "path": "echarts/types/src/chart/boxplot/BoxplotView.d.ts",
- "code": "import ChartView from '../../view/Chart';\nimport BoxplotSeriesModel from './BoxplotSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\ndeclare class BoxplotView extends ChartView {\n static type: string;\n type: string;\n private _data;\n render(seriesModel: BoxplotSeriesModel, ecModel: GlobalModel, api: ExtensionAPI): void;\n remove(ecModel: GlobalModel): void;\n}\nexport default BoxplotView;\n"
- },
- {
- "path": "echarts/types/src/chart/boxplot/boxplotVisual.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nexport default function (ecModel: GlobalModel, api: ExtensionAPI): void;\n"
- },
- {
- "path": "echarts/types/src/chart/boxplot/prepareBoxplotData.d.ts",
- "code": "export interface PrepareBoxplotDataOpt {\n boundIQR?: number | 'none';\n itemNameFormatter?: string | ((params: {\n value: number;\n }) => string);\n}\nexport default function (rawData: number[][], opt: PrepareBoxplotDataOpt): {\n boxData: (number | string)[][];\n outliers: (number | string)[][];\n};\n"
- },
- {
- "path": "echarts/types/src/chart/candlestick.d.ts",
- "code": "import './candlestick/CandlestickSeries';\nimport './candlestick/CandlestickView';\n"
- },
- {
- "path": "echarts/types/src/chart/candlestick/candlestickLayout.d.ts",
- "code": "import { StageHandler } from '../../util/types';\nimport { RectLike } from 'zrender/esm/core/BoundingRect';\nexport interface CandlestickItemLayout {\n sign: number;\n initBaseline: number;\n ends: number[][];\n brushRect: RectLike;\n}\nexport interface CandlestickLayoutMeta {\n candleWidth: number;\n isSimpleBox: boolean;\n}\ndeclare const candlestickLayout: StageHandler;\nexport default candlestickLayout;\n"
- },
- {
- "path": "echarts/types/src/chart/candlestick/CandlestickSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { SeriesOption, SeriesOnCartesianOptionMixin, LayoutOrient, ItemStyleOption, ZRColor, ColorString, LabelOption, SeriesLargeOptionMixin, OptionDataValueNumeric, StatesOptionMixin } from '../../util/types';\nimport List from '../../data/List';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport { BrushCommonSelectorsForSeries } from '../../component/brush/selector';\ndeclare type CandlestickDataValue = Opt [...]
- },
- {
- "path": "echarts/types/src/chart/candlestick/CandlestickView.d.ts",
- "code": "import ChartView from '../../view/Chart';\nimport CandlestickSeriesModel from './CandlestickSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { StageHandlerProgressParams } from '../../util/types';\ndeclare class CandlestickView extends ChartView {\n static readonly type = \"candlestick\";\n readonly type = \"candlestick\";\n private _isLargeDraw;\n private _data;\n render(seriesModel: CandlestickSe [...]
- },
- {
- "path": "echarts/types/src/chart/candlestick/candlestickVisual.d.ts",
- "code": "import { StageHandler } from '../../util/types';\ndeclare const candlestickVisual: StageHandler;\nexport default candlestickVisual;\n"
- },
- {
- "path": "echarts/types/src/chart/candlestick/preprocessor.d.ts",
- "code": "import { ECUnitOption } from '../../util/types';\nexport default function (option: ECUnitOption): void;\n"
- },
- {
- "path": "echarts/types/src/chart/custom.d.ts",
- "code": "import * as labelStyleHelper from '../label/labelStyle';\nimport { getLayoutOnAxis } from '../layout/barGrid';\nimport SeriesModel from '../model/Series';\nimport { SeriesOption, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnSingleOptionMixin, SeriesOnGeoOptionMixin, SeriesOnCalendarOptionMixin, SeriesEncodeOptionMixin, SeriesTooltipOption, DimensionLoose, ParsedValue, Dictionary, CallbackDataParams, OptionDataValue, ZRStyleProps, BlurScope, SeriesDataType [...]
- },
- {
- "path": "echarts/types/src/chart/effectScatter.d.ts",
- "code": "import './effectScatter/EffectScatterSeries';\nimport './effectScatter/EffectScatterView';\n"
- },
- {
- "path": "echarts/types/src/chart/effectScatter/EffectScatterSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { SeriesOption, SeriesOnPolarOptionMixin, SeriesOnCartesianOptionMixin, SeriesOnCalendarOptionMixin, SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin, SymbolOptionMixin, OptionDataValue, ItemStyleOption, LabelOption, StatesOptionMixin } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport List from '../../data/List';\nimport { SymbolDrawItemModelOption } from '../helper/SymbolDraw';\nimport { B [...]
- },
- {
- "path": "echarts/types/src/chart/effectScatter/EffectScatterView.d.ts",
- "code": "import ChartView from '../../view/Chart';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport EffectScatterSeriesModel from './EffectScatterSeries';\ndeclare class EffectScatterView extends ChartView {\n static readonly type = \"effectScatter\";\n readonly type = \"effectScatter\";\n private _symbolDraw;\n init(): void;\n render(seriesModel: EffectScatterSeriesModel, ecModel: GlobalModel, api: ExtensionAPI): v [...]
- },
- {
- "path": "echarts/types/src/chart/funnel.d.ts",
- "code": "import './funnel/FunnelSeries';\nimport './funnel/FunnelView';\n"
- },
- {
- "path": "echarts/types/src/chart/funnel/funnelLayout.d.ts",
- "code": "import ExtensionAPI from '../../ExtensionAPI';\nimport GlobalModel from '../../model/Global';\nexport default function (ecModel: GlobalModel, api: ExtensionAPI): void;\n"
- },
- {
- "path": "echarts/types/src/chart/funnel/FunnelSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { SeriesOption, BoxLayoutOptionMixin, HorizontalAlign, LabelOption, LabelLineOption, ItemStyleOption, OptionDataValueNumeric, StatesOptionMixin, OptionDataItemObject } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport List from '../../data/List';\ndeclare type FunnelLabelOption = Omit<LabelOption, 'position'> & {\n position?: LabelOption['position'] | 'outer' | 'inner' | 'center' | 'rightT [...]
- },
- {
- "path": "echarts/types/src/chart/funnel/FunnelView.d.ts",
- "code": "import ChartView from '../../view/Chart';\nimport FunnelSeriesModel from './FunnelSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\ndeclare class FunnelView extends ChartView {\n static type: \"funnel\";\n type: \"funnel\";\n private _data;\n ignoreLabelLineUpdate: boolean;\n render(seriesModel: FunnelSeriesModel, ecModel: GlobalModel, api: ExtensionAPI): void;\n remove(): void;\n dispose(): void;\n} [...]
- },
- {
- "path": "echarts/types/src/chart/gauge.d.ts",
- "code": "import './gauge/GaugeSeries';\nimport './gauge/GaugeView';\n"
- },
- {
- "path": "echarts/types/src/chart/gauge/GaugeSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { SeriesOption, CircleLayoutOptionMixin, LineStyleOption, ColorString, LabelOption, ItemStyleOption, OptionDataValueNumeric, StatesOptionMixin } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport List from '../../data/List';\ndeclare type GaugeColorStop = [number, ColorString];\ninterface LabelFormatter {\n (value: number): string;\n}\ninterface PointerOption {\n show?: boolean;\n len [...]
- },
- {
- "path": "echarts/types/src/chart/gauge/GaugeView.d.ts",
- "code": "import ChartView from '../../view/Chart';\nimport GaugeSeriesModel from './GaugeSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { ColorString } from '../../util/types';\ninterface PosInfo {\n cx: number;\n cy: number;\n r: number;\n}\ndeclare class GaugeView extends ChartView {\n static type: \"gauge\";\n type: \"gauge\";\n private _data;\n render(seriesModel: GaugeSeriesModel, ecModel: Glob [...]
- },
- {
- "path": "echarts/types/src/chart/gauge/PointerPath.d.ts",
- "code": "import Path, { PathProps } from 'zrender/esm/graphic/Path';\ndeclare class PointerShape {\n angle: number;\n width: number;\n r: number;\n x: number;\n y: number;\n}\ninterface PointerPathProps extends PathProps {\n shape?: Partial<PointerShape>;\n}\nexport default class PointerPath extends Path<PointerPathProps> {\n readonly type = \"pointer\";\n shape: PointerShape;\n constructor(opts?: PointerPathProps);\n getDefaultShape(): PointerShape;\n [...]
- },
- {
- "path": "echarts/types/src/chart/graph.d.ts",
- "code": "import './graph/GraphSeries';\nimport './graph/GraphView';\nimport './graph/graphAction';\n"
- },
- {
- "path": "echarts/types/src/chart/graph/adjustEdge.d.ts",
- "code": "import Graph from '../../data/Graph';\nexport default function (graph: Graph, scale: number): void;\n"
- },
- {
- "path": "echarts/types/src/chart/graph/categoryFilter.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nexport default function (ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/chart/graph/categoryVisual.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nexport default function (ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/chart/graph/circularLayout.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nexport default function (ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/chart/graph/circularLayoutHelper.d.ts",
- "code": "import GraphSeriesModel from './GraphSeries';\nexport declare function circularLayout(seriesModel: GraphSeriesModel, basedOn: 'value' | 'symbolSize'): void;\n"
- },
- {
- "path": "echarts/types/src/chart/graph/createView.d.ts",
- "code": "import View from '../../coord/View';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport GlobalModel from '../../model/Global';\nexport default function (ecModel: GlobalModel, api: ExtensionAPI): View[];\n"
- },
- {
- "path": "echarts/types/src/chart/graph/edgeVisual.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nexport default function (ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/chart/graph/forceHelper.d.ts",
- "code": "import * as vec2 from 'zrender/esm/core/vector';\nimport { RectLike } from 'zrender/esm/core/BoundingRect';\ninterface InputNode {\n p?: vec2.VectorArray;\n fixed?: boolean;\n w: number;\n rep: number;\n}\ninterface InputEdge {\n ignoreForceLayout?: boolean;\n n1: InputNode;\n n2: InputNode;\n d: number;\n}\ninterface LayoutCfg {\n gravity?: number;\n friction?: number;\n rect?: RectLike;\n}\nexport declare function forceLayout<N extends Inpu [...]
- },
- {
- "path": "echarts/types/src/chart/graph/forceLayout.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nexport interface ForceLayoutInstance {\n step(cb: (stopped: boolean) => void): void;\n warmUp(): void;\n setFixed(idx: number): void;\n setUnfixed(idx: number): void;\n}\nexport default function (ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/chart/graph/graphAction.d.ts",
- "code": "import '../helper/focusNodeAdjacencyAction';\n"
- },
- {
- "path": "echarts/types/src/chart/graph/graphHelper.d.ts",
- "code": "import GraphSeriesModel from './GraphSeries';\nimport { GraphNode } from '../../data/Graph';\nexport declare function getNodeGlobalScale(seriesModel: GraphSeriesModel): number;\nexport declare function getSymbolSize(node: GraphNode): number;\n"
- },
- {
- "path": "echarts/types/src/chart/graph/GraphSeries.d.ts",
- "code": "import List from '../../data/List';\nimport { SeriesOption, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin, OptionDataValue, RoamOptionMixin, LabelOption, ItemStyleOption, LineStyleOption, SymbolOptionMixin, BoxLayoutOptionMixin, LabelFormatterCallback, Dictionary, LineLabelOption, StatesOptionMixin, GraphEdgeItemObject, OptionDataValueNumeric, TooltipRenderMode } from '../../util/types'; [...]
- },
- {
- "path": "echarts/types/src/chart/graph/GraphView.d.ts",
- "code": "import ChartView from '../../view/Chart';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport GraphSeriesModel from './GraphSeries';\ndeclare class GraphView extends ChartView {\n static readonly type = \"graph\";\n readonly type = \"graph\";\n private _symbolDraw;\n private _lineDraw;\n private _controller;\n private _controllerHost;\n private _firstRender;\n private _model;\n private _layoutTimeo [...]
- },
- {
- "path": "echarts/types/src/chart/graph/simpleLayout.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nexport default function (ecModel: GlobalModel, api: ExtensionAPI): void;\n"
- },
- {
- "path": "echarts/types/src/chart/graph/simpleLayoutHelper.d.ts",
- "code": "import GraphSeriesModel from './GraphSeries';\nimport Graph from '../../data/Graph';\nexport declare function simpleLayout(seriesModel: GraphSeriesModel): void;\nexport declare function simpleLayoutEdge(graph: Graph): void;\n"
- },
- {
- "path": "echarts/types/src/chart/heatmap.d.ts",
- "code": "import './heatmap/HeatmapSeries';\nimport './heatmap/HeatmapView';\n"
- },
- {
- "path": "echarts/types/src/chart/heatmap/HeatmapLayer.d.ts",
- "code": "declare type ColorFunc = (grad: number, fastMode: boolean, output: number[]) => void;\ndeclare type ColorState = 'inRange' | 'outOfRange';\ndeclare class HeatmapLayer {\n canvas: HTMLCanvasElement;\n blurSize: number;\n pointSize: number;\n maxOpacity: number;\n minOpacity: number;\n private _brushCanvas;\n private _gradientPixels;\n constructor();\n update(data: number[][], width: number, height: number, normalize: (value: number) => number, color [...]
- },
- {
- "path": "echarts/types/src/chart/heatmap/HeatmapSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { SeriesOption, SeriesOnCartesianOptionMixin, SeriesOnGeoOptionMixin, ItemStyleOption, LabelOption, OptionDataValue, StatesOptionMixin } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport List from '../../data/List';\nimport Geo from '../../coord/geo/Geo';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport Calendar from '../../coord/calendar/Calendar';\ndeclare type HeatmapD [...]
- },
- {
- "path": "echarts/types/src/chart/heatmap/HeatmapView.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport ChartView from '../../view/Chart';\nimport HeatmapSeriesModel from './HeatmapSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport VisualMapModel from '../../component/visualMap/VisualMapModel';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\nimport { StageHandlerProgressParams } from '../../util/types';\ninterface GeoLikeCoordSys extends Coordi [...]
- },
- {
- "path": "echarts/types/src/chart/helper/createClipPathFromCoordSys.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport SeriesModel from '../../model/Series';\nimport { SeriesOption } from '../../util/types';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport Polar from '../../coord/polar/Polar';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\ndeclare type SeriesModelWithLineWidth = SeriesModel<SeriesOption & {\n lineStyle?: {\n width?: number;\n };\n}>;\ndeclare function createGridClipPa [...]
- },
- {
- "path": "echarts/types/src/chart/helper/createGraphFromNodeEdge.d.ts",
- "code": "import List from '../../data/List';\nimport Graph from '../../data/Graph';\nimport { OptionSourceDataOriginal, GraphEdgeItemObject, OptionDataValue, OptionDataItemObject } from '../../util/types';\nimport SeriesModel from '../../model/Series';\nexport default function (nodes: OptionSourceDataOriginal<OptionDataValue, OptionDataItemObject<OptionDataValue>>, edges: OptionSourceDataOriginal<OptionDataValue, GraphEdgeItemObject<OptionDataValue>>, seriesModel: SeriesModel, direct [...]
- },
- {
- "path": "echarts/types/src/chart/helper/createListFromArray.d.ts",
- "code": "import List from '../../data/List';\nimport Source from '../../data/Source';\nimport { OptionSourceData, EncodeDefaulter } from '../../util/types';\nimport SeriesModel from '../../model/Series';\ndeclare function createListFromArray(source: Source | OptionSourceData, seriesModel: SeriesModel, opt?: {\n generateCoord?: string;\n useEncodeDefaulter?: boolean | EncodeDefaulter;\n}): List;\nexport default createListFromArray;\n"
- },
- {
- "path": "echarts/types/src/chart/helper/createListSimply.d.ts",
- "code": "import { CreateDimensionsParams } from '../../data/helper/createDimensions';\nimport List from '../../data/List';\nimport SeriesModel from '../../model/Series';\nexport default function (seriesModel: SeriesModel, opt: CreateDimensionsParams | CreateDimensionsParams['coordDimensions'], nameList?: string[]): List;\n"
- },
- {
- "path": "echarts/types/src/chart/helper/createRenderPlanner.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nexport default function (): (seriesModel: SeriesModel<import(\"../../util/types\").SeriesOption<any, unknown>>) => import(\"../../stream/task\").TaskPlanCallbackReturn;\n"
- },
- {
- "path": "echarts/types/src/chart/helper/EffectLine.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport { createSymbol } from '../../util/symbol';\nimport List from '../../data/List';\nimport { LineDrawSeriesScope } from './LineDraw';\nexport declare type ECSymbolOnEffectLine = ReturnType<typeof createSymbol> & {\n __t: number;\n __lastT: number;\n __p1: number[];\n __p2: number[];\n __cp1: number[];\n};\ndeclare class EffectLine extends graphic.Group {\n private _symbolType;\n private _period;\n pr [...]
- },
- {
- "path": "echarts/types/src/chart/helper/EffectPolyline.d.ts",
- "code": "import Polyline from './Polyline';\nimport EffectLine, { ECSymbolOnEffectLine } from './EffectLine';\nimport { LineDrawSeriesScope } from './LineDraw';\nimport List from '../../data/List';\ndeclare class EffectPolyline extends EffectLine {\n private _lastFrame;\n private _lastFramePercent;\n private _length;\n private _points;\n private _offsets;\n createLine(lineData: List, idx: number, seriesScope: LineDrawSeriesScope): Polyline;\n protected _updateAni [...]
- },
- {
- "path": "echarts/types/src/chart/helper/EffectSymbol.d.ts",
- "code": "import { Group } from '../../util/graphic';\nimport List from '../../data/List';\nimport { ZRColor } from '../../util/types';\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}\ndeclare class EffectSymbol extends Group {\ [...]
- },
- {
- "path": "echarts/types/src/chart/helper/focusNodeAdjacencyAction.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/chart/helper/labelHelper.d.ts",
- "code": "import List from '../../data/List';\nimport { ParsedValue } from '../../util/types';\nexport declare function getDefaultLabel(data: List, dataIndex: number, interpolatedValues?: ParsedValue | ParsedValue[]): string;\n"
- },
- {
- "path": "echarts/types/src/chart/helper/LargeLineDraw.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport IncrementalDisplayable from 'zrender/esm/graphic/IncrementalDisplayable';\nimport { PathProps } from 'zrender/esm/graphic/Path';\nimport List from '../../data/List';\nimport { StageHandlerProgressParams, LineStyleOption } from '../../util/types';\nimport Model from '../../model/Model';\ndeclare class LargeLinesPathShape {\n polyline: boolean;\n curveness: number;\n segs: ArrayLike<number>;\n}\ninterface LargeLin [...]
- },
- {
- "path": "echarts/types/src/chart/helper/LargeSymbolDraw.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport { createSymbol } from '../../util/symbol';\nimport IncrementalDisplayable from 'zrender/esm/graphic/IncrementalDisplayable';\nimport List from '../../data/List';\nimport { PathProps } from 'zrender/esm/graphic/Path';\nimport PathProxy from 'zrender/esm/core/PathProxy';\nimport { StageHandlerProgressParams } from '../../util/types';\nimport { CoordinateSystemClipArea } from '../../coord/CoordinateSystem';\ndeclare class L [...]
- },
- {
- "path": "echarts/types/src/chart/helper/Line.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport List from '../../data/List';\nimport SeriesModel from '../../model/Series';\nimport { LineDrawSeriesScope } from './LineDraw';\nimport { LineDataVisual } from '../../visual/commonVisualTypes';\ndeclare type LineList = List<SeriesModel, LineDataVisual>;\nexport interface LineLabel extends graphic.Text {\n lineLabelOriginalOpacity: number;\n}\ndeclare class Line extends graphic.Group {\n private _fromSymbolType;\n [...]
- },
- {
- "path": "echarts/types/src/chart/helper/LineDraw.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport List from '../../data/List';\nimport { StageHandlerProgressParams, LineStyleOption, LineLabelOption, ColorString, AnimationOptionMixin, ZRStyleProps, StatesOptionMixin, DisplayState, LabelOption } from '../../util/types';\nimport Model from '../../model/Model';\ninterface LineLike extends graphic.Group {\n updateData(data: List, idx: number, scope?: LineDrawSeriesScope): void;\n updateLayout(data: List, idx: number [...]
- },
- {
- "path": "echarts/types/src/chart/helper/LinePath.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport { PathProps } from 'zrender/esm/graphic/Path';\ndeclare class StraightLineShape {\n x1: number;\n y1: number;\n x2: number;\n y2: number;\n percent: number;\n}\ndeclare class CurveShape extends StraightLineShape {\n cpx1: number;\n cpy1: number;\n}\ninterface ECLineProps extends PathProps {\n shape?: Partial<StraightLineShape | CurveShape>;\n}\ndeclare class ECLinePath extends graphic.Path<ECLineP [...]
- },
- {
- "path": "echarts/types/src/chart/helper/Polyline.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport { LineDrawSeriesScope } from './LineDraw';\nimport List from '../../data/List';\ndeclare class Polyline extends graphic.Group {\n constructor(lineData: List, idx: number, seriesScope: LineDrawSeriesScope);\n private _createPolyline;\n updateData(lineData: List, idx: number, seriesScope: LineDrawSeriesScope): void;\n _updateCommonStl(lineData: List, idx: number, seriesScope: LineDrawSeriesScope): void;\n up [...]
- },
- {
- "path": "echarts/types/src/chart/helper/Symbol.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport List from '../../data/List';\nimport { PathProps } from 'zrender/esm/graphic/Path';\nimport { SymbolDrawSeriesScope } from './SymbolDraw';\ninterface SymbolOpts {\n useNameLabel?: boolean;\n symbolInnerColor?: string;\n}\ndeclare class Symbol extends graphic.Group {\n private _seriesModel;\n private _symbolType;\n private _sizeX;\n private _sizeY;\n private _z2;\n constructor(data: List, idx: numb [...]
- },
- {
- "path": "echarts/types/src/chart/helper/SymbolDraw.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport List from '../../data/List';\nimport { StageHandlerProgressParams, LabelOption, SymbolOptionMixin, ItemStyleOption, ZRColor, AnimationOptionMixin, ZRStyleProps, StatesOptionMixin, BlurScope, DisplayState } from '../../util/types';\nimport { CoordinateSystemClipArea } from '../../coord/CoordinateSystem';\nimport Model from '../../model/Model';\ninterface UpdateOpt {\n isIgnore?(idx: number): boolean;\n clipShape?: C [...]
- },
- {
- "path": "echarts/types/src/chart/helper/treeHelper.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { TreeNode } from '../../data/Tree';\nexport declare function retrieveTargetInfo(payload: {\n type?: string;\n targetNode?: string | TreeNode;\n targetNodeId?: string;\n}, validPayloadTypes: string[], seriesModel: SeriesModel): {\n node: TreeNode;\n};\nexport declare function getPathToRoot(node: TreeNode): TreeNode[];\nexport declare function aboveViewRoot(viewRoot: TreeNode, node: TreeNode): boolean;\nexport [...]
- },
- {
- "path": "echarts/types/src/chart/helper/whiskerBoxCommon.d.ts",
- "code": "import { SeriesOption, SeriesOnCartesianOptionMixin, LayoutOrient } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesModel from '../../model/Series';\nimport List from '../../data/List';\nimport Axis2D from '../../coord/cartesian/Axis2D';\nimport { CoordDimensionDefinition } from '../../data/helper/createDimensions';\ninterface CommonOption extends SeriesOption, SeriesOnCartesianOptionMixin {\n layout?: LayoutOrient;\n}\ninterface Whis [...]
- },
- {
- "path": "echarts/types/src/chart/line.d.ts",
- "code": "import './line/LineSeries';\nimport './line/LineView';\nimport '../component/gridSimple';\n"
- },
- {
- "path": "echarts/types/src/chart/line/helper.d.ts",
- "code": "import Polar from '../../coord/polar/Polar';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport List from '../../data/List';\nimport { LineSeriesOption } from './LineSeries';\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}\nexport declare [...]
- },
- {
- "path": "echarts/types/src/chart/line/lineAnimationDiff.d.ts",
- "code": "import List from '../../data/List';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport Polar from '../../coord/polar/Polar';\nimport { LineSeriesOption } from './LineSeries';\ninterface DiffItem {\n cmd: '+' | '=' | '-';\n idx: number;\n idx1?: number;\n}\nexport default function (oldData: List, newData: List, oldStackedOnPoints: number[][], newStackedOnPoints: number[][], oldCoordSys: Cartesian2D | Polar, newCoordSys: Cartesian2D | Polar, oldValu [...]
- },
- {
- "path": "echarts/types/src/chart/line/LineSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { SeriesOnCartesianOptionMixin, SeriesOption, SeriesOnPolarOptionMixin, SeriesStackOptionMixin, LabelOption, LineStyleOption, ItemStyleOption, AreaStyleOption, OptionDataValue, SymbolOptionMixin, SeriesSamplingOptionMixin, StatesOptionMixin } from '../../util/types';\nimport List from '../../data/List';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport Polar from '../../coord/polar/Polar';\ndeclare typ [...]
- },
- {
- "path": "echarts/types/src/chart/line/LineView.d.ts",
- "code": "import ChartView from '../../view/Chart';\nexport default ChartView;\n"
- },
- {
- "path": "echarts/types/src/chart/line/poly.d.ts",
- "code": "import Path, { PathProps } from 'zrender/esm/graphic/Path';\ndeclare class ECPolylineShape {\n points: number[][];\n smooth: number;\n smoothConstraint: boolean;\n smoothMonotone: 'x' | 'y' | 'none';\n connectNulls: boolean;\n}\ninterface ECPolylineProps extends PathProps {\n shape?: Partial<ECPolylineShape>;\n}\nexport declare class ECPolyline extends Path<ECPolylineProps> {\n readonly type = \"ec-polyline\";\n shape: ECPolylineShape;\n constructo [...]
- },
- {
- "path": "echarts/types/src/chart/lines.d.ts",
- "code": "import './lines/LinesSeries';\nimport './lines/LinesView';\n"
- },
- {
- "path": "echarts/types/src/chart/lines/linesLayout.d.ts",
- "code": "import { StageHandler } from '../../util/types';\ndeclare const linesLayout: StageHandler;\nexport default linesLayout;\n"
- },
- {
- "path": "echarts/types/src/chart/lines/LinesSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport List from '../../data/List';\nimport { SeriesOption, SeriesOnCartesianOptionMixin, SeriesOnGeoOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesLargeOptionMixin, LineStyleOption, OptionDataValue, LineLabelOption, StatesOptionMixin, TooltipRenderMode } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport { LineDrawModelOption } from '../helper/LineDraw';\ndeclare type Line [...]
- },
- {
- "path": "echarts/types/src/chart/lines/LinesView.d.ts",
- "code": "import LineDraw from '../helper/LineDraw';\nimport LargeLineDraw from '../helper/LargeLineDraw';\nimport ChartView from '../../view/Chart';\nimport LinesSeriesModel from './LinesSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { StageHandlerProgressParams } from '../../util/types';\nimport List from '../../data/List';\ndeclare class LinesView extends ChartView {\n static readonly type = \"lines\";\n readonl [...]
- },
- {
- "path": "echarts/types/src/chart/lines/linesVisual.d.ts",
- "code": "import { StageHandler } from '../../util/types';\ndeclare const linesVisual: StageHandler;\nexport default linesVisual;\n"
- },
- {
- "path": "echarts/types/src/chart/map.d.ts",
- "code": "import './map/MapSeries';\nimport './map/MapView';\nimport '../action/geoRoam';\nimport '../coord/geo/geoCreator';\n"
- },
- {
- "path": "echarts/types/src/chart/map/mapDataStatistic.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nexport default function (ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/chart/map/MapSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { SeriesOption, BoxLayoutOptionMixin, SeriesEncodeOptionMixin, LabelOption, SeriesTooltipOption, OptionDataItemObject, OptionDataValueNumeric, ParsedValue, SeriesOnGeoOptionMixin, StatesOptionMixin, TooltipRenderMode } from '../../util/types';\nimport { Dictionary } from 'zrender/esm/core/types';\nimport GeoModel, { GeoCommonOptionMixin, GeoItemStyleOption } from '../../coord/geo/GeoModel';\nimport List from '../../data/L [...]
- },
- {
- "path": "echarts/types/src/chart/map/mapSymbolLayout.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nexport default function (ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/chart/map/MapView.d.ts",
- "code": "import ChartView from '../../view/Chart';\nimport MapSeries from './MapSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { Payload } from '../../util/types';\ndeclare class MapView extends ChartView {\n static type: \"map\";\n readonly type: \"map\";\n private _mapDraw;\n render(mapModel: MapSeries, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void;\n remove(): void;\n dispose(): v [...]
- },
- {
- "path": "echarts/types/src/chart/parallel.d.ts",
- "code": "import '../component/parallel';\nimport './parallel/ParallelSeries';\nimport './parallel/ParallelView';\n"
- },
- {
- "path": "echarts/types/src/chart/parallel/ParallelSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { SeriesOption, SeriesEncodeOptionMixin, LineStyleOption, LabelOption, SeriesTooltipOption, OptionDataValue, StatesOptionMixin } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport List from '../../data/List';\nimport { ParallelActiveState, ParallelAxisOption } from '../../coord/parallel/AxisModel';\nimport Parallel from '../../coord/parallel/Parallel';\ndeclare type ParallelSeriesDataValue = O [...]
- },
- {
- "path": "echarts/types/src/chart/parallel/ParallelView.d.ts",
- "code": "import ChartView from '../../view/Chart';\nimport ParallelSeriesModel from './ParallelSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { StageHandlerProgressParams, Payload } from '../../util/types';\ndeclare class ParallelView extends ChartView {\n static type: string;\n type: string;\n private _dataGroup;\n private _data;\n private _initialized;\n init(): void;\n render(seriesModel: Paralle [...]
- },
- {
- "path": "echarts/types/src/chart/parallel/parallelVisual.d.ts",
- "code": "import { StageHandler } from '../../util/types';\ndeclare const parallelVisual: StageHandler;\nexport default parallelVisual;\n"
- },
- {
- "path": "echarts/types/src/chart/pictorialBar.d.ts",
- "code": "import '../coord/cartesian/Grid';\nimport './bar/PictorialBarSeries';\nimport './bar/PictorialBarView';\nimport '../component/gridSimple';\n"
- },
- {
- "path": "echarts/types/src/chart/pie.d.ts",
- "code": "import './pie/PieSeries';\nimport './pie/PieView';\n"
- },
- {
- "path": "echarts/types/src/chart/pie/labelLayout.d.ts",
- "code": "import PieSeriesModel from './PieSeries';\nexport default function (seriesModel: PieSeriesModel): void;\n"
- },
- {
- "path": "echarts/types/src/chart/pie/pieLayout.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nexport default function (seriesType: 'pie', ecModel: GlobalModel, api: ExtensionAPI): void;\n"
- },
- {
- "path": "echarts/types/src/chart/pie/PieSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { SeriesOption, CallbackDataParams, CircleLayoutOptionMixin, LabelLineOption, ItemStyleOption, LabelOption, BoxLayoutOptionMixin, OptionDataValueNumeric, SeriesEncodeOptionMixin, OptionDataItemObject, StatesOptionMixin } from '../../util/types';\nimport List from '../../data/List';\nexport interface PieStateOption {\n itemStyle?: ItemStyleOption;\n label?: PieLabelOption;\n labelLine?: PieLabelLineOption;\n}\nint [...]
- },
- {
- "path": "echarts/types/src/chart/pie/PieView.d.ts",
- "code": "import ChartView from '../../view/Chart';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { Payload } from '../../util/types';\nimport PieSeriesModel from './PieSeries';\ndeclare class PieView extends ChartView {\n static type: string;\n ignoreLabelLineUpdate: boolean;\n private _sectorGroup;\n private _data;\n init(): void;\n render(seriesModel: PieSeriesModel, ecModel: GlobalModel, api: ExtensionAPI, [...]
- },
- {
- "path": "echarts/types/src/chart/radar.d.ts",
- "code": "import '../component/radar';\nimport './radar/RadarSeries';\nimport './radar/RadarView';\n"
- },
- {
- "path": "echarts/types/src/chart/radar/backwardCompat.d.ts",
- "code": "export default function (option: any): void;\n"
- },
- {
- "path": "echarts/types/src/chart/radar/radarLayout.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nexport default function (ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/chart/radar/RadarSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { SeriesOption, LineStyleOption, LabelOption, SymbolOptionMixin, ItemStyleOption, AreaStyleOption, OptionDataValue, StatesOptionMixin, OptionDataItemObject, TooltipRenderMode, TooltipOrderMode } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport List from '../../data/List';\nimport Radar from '../../coord/radar/Radar';\ndeclare type RadarSeriesDataValue = OptionDataValue[];\nexport interface R [...]
- },
- {
- "path": "echarts/types/src/chart/radar/RadarView.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/chart/sankey.d.ts",
- "code": "import './sankey/SankeySeries';\nimport './sankey/SankeyView';\nimport './sankey/sankeyAction';\n"
- },
- {
- "path": "echarts/types/src/chart/sankey/sankeyAction.d.ts",
- "code": "import '../helper/focusNodeAdjacencyAction';\n"
- },
- {
- "path": "echarts/types/src/chart/sankey/sankeyLayout.d.ts",
- "code": "import ExtensionAPI from '../../ExtensionAPI';\nimport GlobalModel from '../../model/Global';\nexport default function (ecModel: GlobalModel, api: ExtensionAPI): void;\n"
- },
- {
- "path": "echarts/types/src/chart/sankey/SankeySeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport Model from '../../model/Model';\nimport { SeriesOption, BoxLayoutOptionMixin, OptionDataValue, LabelOption, ItemStyleOption, LineStyleOption, LayoutOrient, ColorString, StatesOptionMixin, OptionDataItemObject, GraphEdgeItemObject, OptionDataValueNumeric, TooltipRenderMode } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport List from '../../data/List';\nimport { LayoutRect } from '../../util/l [...]
- },
- {
- "path": "echarts/types/src/chart/sankey/SankeyView.d.ts",
- "code": "import SankeySeriesModel from './SankeySeries';\nimport ChartView from '../../view/Chart';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\ndeclare class SankeyView extends ChartView {\n static readonly type = \"sankey\";\n readonly type = \"sankey\";\n private _model;\n private _focusAdjacencyDisabled;\n private _data;\n render(seriesModel: SankeySeriesModel, ecModel: GlobalModel, api: ExtensionAPI): void;\n [...]
- },
- {
- "path": "echarts/types/src/chart/sankey/sankeyVisual.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nexport default function (ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/chart/scatter.d.ts",
- "code": "import './scatter/ScatterSeries';\nimport './scatter/ScatterView';\nimport '../component/gridSimple';\n"
- },
- {
- "path": "echarts/types/src/chart/scatter/ScatterSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { SeriesOption, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin, OptionDataValue, ItemStyleOption, LabelOption, SeriesLargeOptionMixin, SeriesStackOptionMixin, SymbolOptionMixin, StatesOptionMixin, OptionDataItemObject } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport List from '../../data/List';\nimport [...]
- },
- {
- "path": "echarts/types/src/chart/scatter/ScatterView.d.ts",
- "code": "import SymbolDraw from '../helper/SymbolDraw';\nimport LargeSymbolDraw from '../helper/LargeSymbolDraw';\nimport ChartView from '../../view/Chart';\nimport ScatterSeriesModel from './ScatterSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport List from '../../data/List';\nimport { TaskProgressParams } from '../../stream/task';\ndeclare class ScatterView extends ChartView {\n static readonly type = \"scatter\";\n [...]
- },
- {
- "path": "echarts/types/src/chart/sunburst.d.ts",
- "code": "import './sunburst/SunburstSeries';\nimport './sunburst/SunburstView';\nimport './sunburst/sunburstAction';\n"
- },
- {
- "path": "echarts/types/src/chart/sunburst/sunburstAction.d.ts",
- "code": "export declare const ROOT_TO_NODE_ACTION = \"sunburstRootToNode\";\n"
- },
- {
- "path": "echarts/types/src/chart/sunburst/sunburstLayout.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nexport default function (seriesType: 'sunburst', ecModel: GlobalModel, api: ExtensionAPI): void;\n"
- },
- {
- "path": "echarts/types/src/chart/sunburst/SunburstPiece.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport { TreeNode } from '../../data/Tree';\nimport SunburstSeriesModel from './SunburstSeries';\nimport GlobalModel from '../../model/Global';\ndeclare class SunburstPiece extends graphic.Sector {\n node: TreeNode;\n private _seriesModel;\n private _ecModel;\n constructor(node: TreeNode, seriesModel: SunburstSeriesModel, ecModel: GlobalModel);\n updateData(firstCreate: boolean, node: TreeNode, seriesModel?: Sunb [...]
- },
- {
- "path": "echarts/types/src/chart/sunburst/SunburstSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { TreeNode } from '../../data/Tree';\nimport { SeriesOption, CircleLayoutOptionMixin, LabelOption, ItemStyleOption, OptionDataValue, CallbackDataParams, StatesOptionMixin, OptionDataItemObject } from '../../util/types';\nimport GlobalModel from '../../model/Global';\ninterface SunburstLabelOption extends Omit<LabelOption, 'rotate' | 'position'> {\n rotate?: 'radial' | 'tangential' | number;\n minAngle?: number;\n [...]
- },
- {
- "path": "echarts/types/src/chart/sunburst/SunburstView.d.ts",
- "code": "import ChartView from '../../view/Chart';\nimport SunburstPiece from './SunburstPiece';\nimport SunburstSeriesModel from './SunburstSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { TreeNode } from '../../data/Tree';\ninterface DrawTreeNode extends TreeNode {\n parentNode: DrawTreeNode;\n piece: SunburstPiece;\n children: DrawTreeNode[];\n}\ndeclare class SunburstView extends ChartView {\n static rea [...]
- },
- {
- "path": "echarts/types/src/chart/sunburst/sunburstVisual.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nexport default function (ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/chart/themeRiver.d.ts",
- "code": "import '../component/singleAxis';\nimport './themeRiver/ThemeRiverSeries';\nimport './themeRiver/ThemeRiverView';\n"
- },
- {
- "path": "echarts/types/src/chart/themeRiver/themeRiverLayout.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { ThemeRiverSeriesOption } from './ThemeRiverSeries';\nimport { RectLike } from 'zrender/esm/core/BoundingRect';\nexport interface ThemeRiverLayoutInfo {\n rect: RectLike;\n boundaryGap: ThemeRiverSeriesOption['boundaryGap'];\n}\nexport default function (ecModel: GlobalModel, api: ExtensionAPI): void;\n"
- },
- {
- "path": "echarts/types/src/chart/themeRiver/ThemeRiverSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport List from '../../data/List';\nimport * as zrUtil from 'zrender/esm/core/util';\nimport { SeriesOption, SeriesOnSingleOptionMixin, LabelOption, OptionDataValueDate, OptionDataValueNumeric, ItemStyleOption, BoxLayoutOptionMixin, ZRColor, TooltipRenderMode } from '../../util/types';\nimport SingleAxis from '../../coord/single/SingleAxis';\nimport GlobalModel from '../../model/Global';\nimport Single from '../../coord/single/ [...]
- },
- {
- "path": "echarts/types/src/chart/themeRiver/ThemeRiverView.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/chart/tree.d.ts",
- "code": "import './tree/TreeSeries';\nimport './tree/TreeView';\nimport './tree/treeAction';\n"
- },
- {
- "path": "echarts/types/src/chart/tree/layoutHelper.d.ts",
- "code": "import * as layout from '../../util/layout';\nimport { TreeNode } from '../../data/Tree';\nimport TreeSeriesModel from './TreeSeries';\nimport ExtensionAPI from '../../ExtensionAPI';\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}\nexport interface TreeLayoutNode extends TreeNode {\n parentNode: Tre [...]
- },
- {
- "path": "echarts/types/src/chart/tree/traversalHelper.d.ts",
- "code": "import { TreeNode } from '../../data/Tree';\ndeclare function eachAfter<T>(root: TreeNode, callback: (node: TreeNode, separation: T) => void, separation: T): void;\ndeclare function eachBefore(root: TreeNode, callback: (node: TreeNode) => void): void;\nexport { eachAfter, eachBefore };\n"
- },
- {
- "path": "echarts/types/src/chart/tree/treeAction.d.ts",
- "code": "import { Payload } from '../../util/types';\nexport interface TreeExpandAndCollapsePayload extends Payload {\n dataIndex: number;\n}\n"
- },
- {
- "path": "echarts/types/src/chart/tree/treeLayout.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nexport default function (ecModel: GlobalModel, api: ExtensionAPI): void;\n"
- },
- {
- "path": "echarts/types/src/chart/tree/TreeSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { SeriesOption, SymbolOptionMixin, BoxLayoutOptionMixin, RoamOptionMixin, LineStyleOption, ItemStyleOption, LabelOption, OptionDataValue, StatesOptionMixin, OptionDataItemObject, TooltipRenderMode } from '../../util/types';\nimport List from '../../data/List';\nimport View from '../../coord/View';\nimport { LayoutRect } from '../../util/layout';\ninterface CurveLineStyleOption extends LineStyleOption {\n curveness?: nu [...]
- },
- {
- "path": "echarts/types/src/chart/tree/TreeView.d.ts",
- "code": "import ChartView from '../../view/Chart';\nimport TreeSeriesModel from './TreeSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\ndeclare class TreeView extends ChartView {\n static readonly type = \"tree\";\n readonly type = \"tree\";\n private _mainGroup;\n private _controller;\n private _controllerHost;\n private _data;\n private _nodeScaleRatio;\n private _min;\n private _max;\n init(ecMod [...]
- },
- {
- "path": "echarts/types/src/chart/tree/treeVisual.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nexport default function (ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/chart/treemap.d.ts",
- "code": "import './treemap/TreemapSeries';\nimport './treemap/TreemapView';\nimport './treemap/treemapAction';\n"
- },
- {
- "path": "echarts/types/src/chart/treemap/Breadcrumb.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport TreemapSeriesModel, { TreemapSeriesOption } from './TreemapSeries';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { TreeNode } from '../../data/Tree';\nimport { ZRElementEvent, BoxLayoutOptionMixin } from '../../util/types';\nimport Model from '../../model/Model';\ninterface OnSelectCallback {\n (node: TreeNode, e: ZRElementEvent): void;\n}\ninterface LayoutParam {\n pos: BoxLayoutOptionMixin;\n box: { [...]
- },
- {
- "path": "echarts/types/src/chart/treemap/treemapAction.d.ts",
- "code": "import { Payload } from '../../util/types';\nimport { TreeNode } from '../../data/Tree';\nimport { RectLike } from 'zrender/esm/core/BoundingRect';\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 int [...]
- },
- {
- "path": "echarts/types/src/chart/treemap/treemapLayout.d.ts",
- "code": "import { RectLike } from 'zrender/esm/core/BoundingRect';\nimport TreemapSeriesModel from './TreemapSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { TreeNode } from '../../data/Tree';\nimport { TreemapRenderPayload, TreemapMovePayload, TreemapZoomToNodePayload } from './treemapAction';\nexport interface TreemapLayoutNode extends TreeNode {\n parentNode: TreemapLayoutNode;\n children: TreemapLayoutNode[];\ [...]
- },
- {
- "path": "echarts/types/src/chart/treemap/TreemapSeries.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport { TreeNode } from '../../data/Tree';\nimport Model from '../../model/Model';\nimport { SeriesOption, BoxLayoutOptionMixin, ItemStyleOption, LabelOption, RoamOptionMixin, TooltipRenderMode, CallbackDataParams, ColorString, StatesOptionMixin } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport { LayoutRect } from '../../util/layout';\nimport List from '../../data/List';\ndeclare type TreemapSeri [...]
- },
- {
- "path": "echarts/types/src/chart/treemap/TreemapView.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/chart/treemap/treemapVisual.d.ts",
- "code": "import TreemapSeriesModel from './TreemapSeries';\ndeclare const _default: {\n seriesType: string;\n reset(seriesModel: TreemapSeriesModel): void;\n};\nexport default _default;\n"
- },
- {
- "path": "echarts/types/src/component/angleAxis.d.ts",
- "code": "import '../coord/polar/polarCreator';\nimport './axis/AngleAxisView';\n"
- },
- {
- "path": "echarts/types/src/component/axis.d.ts",
- "code": "import '../coord/cartesian/AxisModel';\nimport './axis/CartesianAxisView';\n"
- },
- {
- "path": "echarts/types/src/component/axis/AngleAxisView.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/axis/AxisBuilder.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\ndeclare type AxisIndexKey = 'xAxisIndex' | 'yAxisIndex' | 'radiusAxisIndex' | 'angleAxisIndex' | 'singleAxisIndex';\ndeclare type 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};\nexport interface AxisBui [...]
- },
- {
- "path": "echarts/types/src/component/axis/axisSplitHelper.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport GridModel from '../../coord/cartesian/GridModel';\nimport SingleAxisView from './SingleAxisView';\nimport CartesianAxisView from './CartesianAxisView';\nimport SingleAxisModel from '../../coord/single/AxisModel';\nimport CartesianAxisModel from '../../coord/cartesian/AxisModel';\nexport declare function rectCoordAxisBuildSplitArea(axisView: SingleAxisView | CartesianAxisView, axisGroup: graphic.Group, axisModel: SingleAx [...]
- },
- {
- "path": "echarts/types/src/component/axis/AxisView.d.ts",
- "code": "import ComponentView from '../../view/Component';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { Payload } from '../../util/types';\nimport BaseAxisPointer from '../axisPointer/BaseAxisPointer';\ninterface AxisPointerConstructor {\n new (): BaseAxisPointer;\n}\ndeclare class AxisView extends ComponentView {\n static type: string;\n type: string;\n [...]
- },
- {
- "path": "echarts/types/src/component/axis/CartesianAxisView.d.ts",
- "code": "import AxisView from './AxisView';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport CartesianAxisModel from '../../coord/cartesian/AxisModel';\nimport { Payload } from '../../util/types';\ndeclare class CartesianAxisView extends AxisView {\n static type: string;\n type: string;\n axisPointerClass: string;\n private _axisGroup;\n render(axisModel: CartesianAxisModel, ecModel: GlobalModel, api: ExtensionAPI, [...]
- },
- {
- "path": "echarts/types/src/component/axis/parallelAxisAction.d.ts",
- "code": "import { Payload } from '../../util/types';\nexport interface ParallelAxisExpandPayload extends Payload {\n axisExpandWindow?: number[];\n}\n"
- },
- {
- "path": "echarts/types/src/component/axis/ParallelAxisView.d.ts",
- "code": "import { BrushControllerEvents } from '../helper/BrushController';\nimport ComponentView from '../../view/Component';\nimport ExtensionAPI from '../../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/para [...]
- },
- {
- "path": "echarts/types/src/component/axis/RadiusAxisView.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/axis/SingleAxisView.d.ts",
- "code": "import AxisView from './AxisView';\nimport SingleAxisModel from '../../coord/single/AxisModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { Payload } from '../../util/types';\ndeclare class SingleAxisView extends AxisView {\n static readonly type = \"singleAxis\";\n readonly type = \"singleAxis\";\n private _axisGroup;\n axisPointerClass: string;\n render(axisModel: SingleAxisModel, ecModel: GlobalMo [...]
- },
- {
- "path": "echarts/types/src/component/axisPointer.d.ts",
- "code": "import './axisPointer/AxisPointerView';\nimport './axisPointer/CartesianAxisPointer';\n"
- },
- {
- "path": "echarts/types/src/component/axisPointer/AxisPointer.d.ts",
- "code": "import { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { CommonAxisPointerOption } from '../../util/types';\nimport Model from '../../model/Model';\nexport interface AxisPointer {\n render(axisModel: AxisBaseModel, axisPointerModel: Model<CommonAxisPointerOption>, api: ExtensionAPI, forceRender?: boolean): void;\n remove(api: ExtensionAPI): void;\n dispose(api: ExtensionAPI): void;\n}\n"
- },
- {
- "path": "echarts/types/src/component/axisPointer/AxisPointerModel.d.ts",
- "code": "import ComponentModel from '../../model/Component';\nimport { ComponentOption, ScaleDataValue, CommonAxisPointerOption } from '../../util/types';\ninterface MapperParamAxisInfo {\n axisIndex: number;\n axisName: string;\n axisId: string;\n axisDim: string;\n}\ninterface AxisPointerLink {\n xAxisIndex?: number[] | 'all';\n yAxisIndex?: number[] | 'all';\n xAxisId?: string[];\n yAxisId?: string[];\n xAxisName?: string[] | string;\n yAxisName?: str [...]
- },
- {
- "path": "echarts/types/src/component/axisPointer/AxisPointerView.d.ts",
- "code": "import ComponentView from '../../view/Component';\nimport AxisPointerModel from './AxisPointerModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\ndeclare class AxisPointerView extends ComponentView {\n static type: \"axisPointer\";\n type: \"axisPointer\";\n render(globalAxisPointerModel: AxisPointerModel, ecModel: GlobalModel, api: ExtensionAPI): void;\n remove(ecModel: GlobalModel, api: ExtensionAPI): void;\n [...]
- },
- {
- "path": "echarts/types/src/component/axisPointer/axisTrigger.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { Payload, CommonAxisPointerOption } from '../../util/types';\ndeclare type AxisValue = CommonAxisPointerOption['value'];\ninterface AxisTriggerPayload extends Payload {\n currTrigger?: 'click' | 'mousemove' | 'leave';\n x?: number;\n y?: number;\n seriesIndex?: number;\n dataIndex: number;\n axesInfo?: {\n axisDim?: string;\n axisIndex?: numb [...]
- },
- {
- "path": "echarts/types/src/component/axisPointer/BaseAxisPointer.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport { AxisPointer } from './AxisPointer';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport Element from 'zrender/esm/Element';\nimport { VerticalAlign, HorizontalAlign, CommonAxisPointerOption } from '../../util/types';\nimport { PathProps } from 'zrender/esm/graphic/Path';\nimport Model from '../../model/Model';\nimport { TextProps } from 'zrender/esm/graphi [...]
- },
- {
- "path": "echarts/types/src/component/axisPointer/CartesianAxisPointer.d.ts",
- "code": "import BaseAxisPointer, { AxisPointerElementOptions } from './BaseAxisPointer';\nimport CartesianAxisModel from '../../coord/cartesian/AxisModel';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { ScaleDataValue, CommonAxisPointerOption } from '../../util/types';\nimport Model from '../../model/Model';\ndeclare type AxisPointerModel = Model<CommonAxisPointerOption>;\ndeclare class CartesianAxisPointer extends BaseAxisPointer {\n makeElOption(elOption: AxisPointerE [...]
- },
- {
- "path": "echarts/types/src/component/axisPointer/findPointFromSeries.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nimport Element from 'zrender/esm/Element';\nexport default function (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"
- },
- {
- "path": "echarts/types/src/component/axisPointer/globalListener.d.ts",
- "code": "import ExtensionAPI from '../../ExtensionAPI';\nimport { ZRElementEvent } from '../../util/types';\ndeclare type DispatchActionMethod = ExtensionAPI['dispatchAction'];\ndeclare type Handler = (currTrigger: 'click' | 'mousemove' | 'leave', event: ZRElementEvent, dispatchAction: DispatchActionMethod) => void;\nexport declare function register(key: string, api: ExtensionAPI, handler?: Handler): void;\nexport declare function unregister(key: string, api: ExtensionAPI): void;\nex [...]
- },
- {
- "path": "echarts/types/src/component/axisPointer/modelHelper.d.ts",
- "code": "import Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { AxisPointerOption } from './AxisPointerModel';\nimport Axis from '../../coord/Axis';\nimport SeriesModel from '../../model/Series';\nimport { CommonAxisPointerOption, Dictionary } from '../../util/types';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport ComponentModel from '../../model/Component';\nimport { Coordin [...]
- },
- {
- "path": "echarts/types/src/component/axisPointer/PolarAxisPointer.d.ts",
- "code": "import BaseAxisPointer, { AxisPointerElementOptions } from './BaseAxisPointer';\nimport { OptionDataValue, CommonAxisPointerOption } from '../../util/types';\nimport { PolarAxisModel } from '../../coord/polar/AxisModel';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport Model from '../../model/Model';\ndeclare class PolarAxisPointer extends BaseAxisPointer {\n makeElOption(elOption: AxisPointerElementOptions, value: OptionDataValue, axisModel: PolarAxisModel, axisPo [...]
- },
- {
- "path": "echarts/types/src/component/axisPointer/SingleAxisPointer.d.ts",
- "code": "import BaseAxisPointer, { AxisPointerElementOptions } from './BaseAxisPointer';\nimport { ScaleDataValue, CommonAxisPointerOption } from '../../util/types';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport SingleAxisModel from '../../coord/single/AxisModel';\nimport Model from '../../model/Model';\ndeclare type AxisPointerModel = Model<CommonAxisPointerOption>;\ndeclare class SingleAxisPointer extends BaseAxisPointer {\n makeElOption(elOption: AxisPointerElementOpt [...]
- },
- {
- "path": "echarts/types/src/component/axisPointer/viewHelper.d.ts",
- "code": "import Axis from '../../coord/Axis';\nimport { ScaleDataValue, ZRTextAlign, ZRTextVerticalAlign, CommonAxisPointerOption } from '../../util/types';\nimport { VectorArray } from 'zrender/esm/core/vector';\nimport GlobalModel from '../../model/Global';\nimport { AxisPointerElementOptions } from './BaseAxisPointer';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport CartesianAxisModel from '../../coord/cartesian/A [...]
- },
- {
- "path": "echarts/types/src/component/brush.d.ts",
- "code": "import './brush/visualEncoding';\nimport './brush/BrushModel';\nimport './brush/BrushView';\nimport './brush/brushAction';\nimport './toolbox/feature/Brush';\n"
- },
- {
- "path": "echarts/types/src/component/brush/brushAction.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/brush/BrushModel.d.ts",
- "code": "import { ComponentOption, ZRColor, VisualOptionFixed } from '../../util/types';\nimport ComponentModel from '../../model/Component';\nimport BrushTargetManager from '../helper/BrushTargetManager';\nimport { BrushCoverCreatorConfig, BrushMode, BrushCoverConfig, BrushDimensionMinMax, BrushAreaRange, BrushTypeUncertain, BrushType } from '../helper/BrushController';\nimport { ModelFinderObject } from '../../util/model';\nexport interface BrushAreaParam extends ModelFinderObject [...]
- },
- {
- "path": "echarts/types/src/component/brush/BrushView.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/brush/preprocessor.d.ts",
- "code": "import { ECUnitOption } from '../../util/types';\nexport default function (option: ECUnitOption, isNew: boolean): void;\n"
- },
- {
- "path": "echarts/types/src/component/brush/selector.d.ts",
- "code": "import BoundingRect, { RectLike } from 'zrender/esm/core/BoundingRect';\nimport { BrushType } from '../helper/BrushController';\nimport { BrushAreaParamInternal } from './BrushModel';\nexport interface BrushSelectableArea extends BrushAreaParamInternal {\n boundingRect: BoundingRect;\n selectors: BrushCommonSelectorsForSeries;\n}\ninterface BrushSelectorOnBrushType {\n point(itemLayout: number[], selectors: BrushCommonSelectorsForSeries, area: BrushSelectableArea): [...]
- },
- {
- "path": "echarts/types/src/component/brush/visualEncoding.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nexport declare function layoutCovers(ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/component/calendar.d.ts",
- "code": "import '../coord/calendar/Calendar';\nimport '../coord/calendar/CalendarModel';\nimport './calendar/CalendarView';\n"
- },
- {
- "path": "echarts/types/src/component/calendar/CalendarView.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/dataset.d.ts",
- "code": "import ComponentModel from '../model/Component';\nimport { ComponentOption, SeriesEncodeOptionMixin, OptionSourceData, SeriesLayoutBy, OptionSourceHeader } from '../util/types';\nimport { DataTransformOption, PipedDataTransformOption } from '../data/helper/transform';\nimport GlobalModel from '../model/Global';\nimport Model from '../model/Model';\nimport { SourceManager } from '../data/helper/sourceManager';\nexport interface DatasetOption extends Pick<ComponentOption, 'typ [...]
- },
- {
- "path": "echarts/types/src/component/dataZoom.d.ts",
- "code": "import './dataZoomSlider';\nimport './dataZoomInside';\n"
- },
- {
- "path": "echarts/types/src/component/dataZoom/AxisProxy.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nimport SeriesModel from '../../model/Series';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport DataZoomModel from './DataZoomModel';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport { DataZoomAxisDimension } from './helper';\ninterface MinMaxSpan {\n minSpan: number;\n maxSpan: number;\n minValueSpan: number;\n maxValueSpan: number;\n}\ndeclare class AxisProxy {\n ecModel: GlobalModel;\n [...]
- },
- {
- "path": "echarts/types/src/component/dataZoom/dataZoomAction.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/dataZoom/DataZoomModel.d.ts",
- "code": "import { HashMap } from 'zrender/esm/core/util';\nimport AxisProxy from './AxisProxy';\nimport ComponentModel from '../../model/Component';\nimport { LayoutOrient, ComponentOption, LabelOption } from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport { DataZoomAxisDimension } from './helper';\nexport interface DataZoomOption extends ComponentOption {\n [...]
- },
- {
- "path": "echarts/types/src/component/dataZoom/dataZoomProcessor.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/dataZoom/DataZoomView.d.ts",
- "code": "import ComponentView from '../../view/Component';\nimport DataZoomModel from './DataZoomModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\ndeclare class DataZoomView extends ComponentView {\n static type: string;\n type: string;\n dataZoomModel: DataZoomModel;\n ecModel: GlobalModel;\n api: ExtensionAPI;\n render(dataZoomModel: DataZoomModel, ecModel: GlobalModel, api: ExtensionAPI, payload: any): void;\n [...]
- },
- {
- "path": "echarts/types/src/component/dataZoom/helper.d.ts",
- "code": "import { Payload } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport DataZoomModel from './DataZoomModel';\nimport { HashMap } from 'zrender/esm/core/util';\nimport SeriesModel from '../../model/Series';\nimport { CoordinateSystemHostModel } from '../../coord/CoordinateSystem';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nexport interface DataZoomPayloadBatchItem {\n dataZoomId: string;\n start?: number;\n end?: number;\ [...]
- },
- {
- "path": "echarts/types/src/component/dataZoom/history.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nimport { Dictionary } from '../../util/types';\nimport { DataZoomPayloadBatchItem } from './helper';\nexport declare type DataZoomStoreSnapshot = Dictionary<DataZoomPayloadBatchItem>;\nexport declare function push(ecModel: GlobalModel, newSnapshot: DataZoomStoreSnapshot): void;\nexport declare function pop(ecModel: GlobalModel): Dictionary<DataZoomPayloadBatchItem>;\nexport declare function clear(ecModel: GlobalModel): void;\nex [...]
- },
- {
- "path": "echarts/types/src/component/dataZoom/InsideZoomModel.d.ts",
- "code": "import DataZoomModel, { DataZoomOption } from './DataZoomModel';\nexport interface InsideDataZoomOption extends DataZoomOption {\n disabled?: boolean;\n zoomLock?: boolean;\n zoomOnMouseWheel?: boolean | 'shift' | 'ctrl' | 'alt';\n moveOnMouseMove?: boolean | 'shift' | 'ctrl' | 'alt';\n moveOnMouseWheel?: boolean | 'shift' | 'ctrl' | 'alt';\n preventDefaultMouseMove?: boolean;\n textStyle?: never;\n}\ndeclare class InsideZoomModel extends DataZoomModel<I [...]
- },
- {
- "path": "echarts/types/src/component/dataZoom/InsideZoomView.d.ts",
- "code": "import DataZoomView from './DataZoomView';\nimport InsideZoomModel from './InsideZoomModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport RoamController, { RoamEventParams } from '../helper/RoamController';\nimport { DataZoomCoordSysMainType, DataZoomReferCoordSysInfo } from './helper';\ndeclare class InsideZoomView extends DataZoomView {\n static type: string;\n type: string;\n range: number[];\n render(d [...]
- },
- {
- "path": "echarts/types/src/component/dataZoom/roams.d.ts",
- "code": "import ExtensionAPI from '../../ExtensionAPI';\nimport InsideZoomModel from './InsideZoomModel';\nimport { DataZoomGetRangeHandlers } from './InsideZoomView';\nexport declare function setViewInfoToCoordSysRecord(api: ExtensionAPI, dataZoomModel: InsideZoomModel, getRange: DataZoomGetRangeHandlers): void;\nexport declare function disposeCoordSysRecordIfNeeded(api: ExtensionAPI, dataZoomModel: InsideZoomModel): void;\n"
- },
- {
- "path": "echarts/types/src/component/dataZoom/SelectZoomModel.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/dataZoom/SelectZoomView.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/dataZoom/SliderZoomModel.d.ts",
- "code": "import DataZoomModel, { DataZoomOption } from './DataZoomModel';\nimport { BoxLayoutOptionMixin, ZRColor, LineStyleOption, AreaStyleOption, ItemStyleOption, LabelOption } from '../../util/types';\nexport interface SliderDataZoomOption extends DataZoomOption, BoxLayoutOptionMixin {\n show?: boolean;\n backgroundColor?: ZRColor;\n borderColor?: ZRColor;\n borderRadius?: number | number[];\n dataBackground?: {\n lineStyle?: LineStyleOption;\n areaSt [...]
- },
- {
- "path": "echarts/types/src/component/dataZoom/SliderZoomView.d.ts",
- "code": "import DataZoomView from './DataZoomView';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { Payload } from '../../util/types';\nimport SliderZoomModel from './SliderZoomModel';\ndeclare class SliderZoomView extends DataZoomView {\n static type: string;\n type: string;\n dataZoomModel: SliderZoomModel;\n private _displayables;\n private _orient;\n private _range;\n private _handleEnds;\n private _ [...]
- },
- {
- "path": "echarts/types/src/component/dataZoom/typeDefaulter.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/dataZoomInside.d.ts",
- "code": "import './dataZoom/typeDefaulter';\nimport './dataZoom/DataZoomModel';\nimport './dataZoom/DataZoomView';\nimport './dataZoom/InsideZoomModel';\nimport './dataZoom/InsideZoomView';\nimport './dataZoom/dataZoomProcessor';\nimport './dataZoom/dataZoomAction';\n"
- },
- {
- "path": "echarts/types/src/component/dataZoomSelect.d.ts",
- "code": "import './dataZoom/typeDefaulter';\nimport './dataZoom/DataZoomModel';\nimport './dataZoom/DataZoomView';\nimport './dataZoom/SelectZoomModel';\nimport './dataZoom/SelectZoomView';\nimport './dataZoom/dataZoomProcessor';\nimport './dataZoom/dataZoomAction';\n"
- },
- {
- "path": "echarts/types/src/component/dataZoomSlider.d.ts",
- "code": "import './dataZoom/typeDefaulter';\nimport './dataZoom/DataZoomModel';\nimport './dataZoom/DataZoomView';\nimport './dataZoom/SliderZoomModel';\nimport './dataZoom/SliderZoomView';\nimport './dataZoom/dataZoomProcessor';\nimport './dataZoom/dataZoomAction';\n"
- },
- {
- "path": "echarts/types/src/component/geo.d.ts",
- "code": "import '../coord/geo/geoCreator';\nimport './geo/GeoView';\nimport '../action/geoRoam';\nimport '../coord/geo/GeoModel';\n"
- },
- {
- "path": "echarts/types/src/component/geo/GeoView.d.ts",
- "code": "import ComponentView from '../../view/Component';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport GeoModel from '../../coord/geo/GeoModel';\nimport { Payload } from '../../util/types';\ndeclare class GeoView extends ComponentView {\n static type: \"geo\";\n readonly type: \"geo\";\n private _mapDraw;\n private _api;\n private _model;\n init(ecModel: GlobalModel, api: ExtensionAPI): void;\n render(geo [...]
- },
- {
- "path": "echarts/types/src/component/graphic.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/grid.d.ts",
- "code": "import './gridSimple';\nimport './axisPointer/CartesianAxisPointer';\nimport './axisPointer';\n"
- },
- {
- "path": "echarts/types/src/component/gridSimple.d.ts",
- "code": "import './axis';\nimport '../coord/cartesian/defaultAxisExtentFromData';\n"
- },
- {
- "path": "echarts/types/src/component/helper/BrushController.d.ts",
- "code": "import Eventful from 'zrender/esm/core/Eventful';\nimport * as graphic from '../../util/graphic';\nimport { Dictionary } from '../../util/types';\nimport { ZRenderType } from 'zrender/esm/zrender';\nimport { ElementEvent } from 'zrender/esm/Element';\nimport * as matrix from 'zrender/esm/core/matrix';\nimport { PathStyleProps } from 'zrender/esm/graphic/Path';\nexport declare type BrushType = 'polygon' | 'rect' | 'lineX' | 'lineY';\nexport declare type BrushTypeUncertain = B [...]
- },
- {
- "path": "echarts/types/src/component/helper/brushHelper.d.ts",
- "code": "import { RectLike } from 'zrender/esm/core/BoundingRect';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { ElementEvent } from 'zrender/esm/Element';\nimport ComponentModel from '../../model/Component';\nexport declare function makeRectPanelClipPath(rect: RectLike): (localPoints: number[][]) => number[][];\nexport declare function makeLinearBrushOtherExtent(rect: RectLike, specifiedXYIndex?: 0 | 1): (xyIndex: 0 | 1) => number[];\nexport declare function makeRectIsTa [...]
- },
- {
- "path": "echarts/types/src/component/helper/BrushTargetManager.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport { BrushPanelConfig, BrushControllerEvents, BrushType, BrushAreaRange, BrushDimensionMinMax } from './BrushController';\nimport ExtensionAPI from '../../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 fro [...]
- },
- {
- "path": "echarts/types/src/component/helper/cursorHelper.d.ts",
- "code": "import { ElementEvent } from 'zrender/esm/Element';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\nexport declare function onIrrelevantElement(e: ElementEvent, api: ExtensionAPI, targetCoordSysModel: CoordinateSystem['model']): boolean;\n"
- },
- {
- "path": "echarts/types/src/component/helper/interactionMutex.d.ts",
- "code": "export declare function take(zr: any, resourceKey: any, userKey: any): void;\nexport declare function release(zr: any, resourceKey: any, userKey: any): void;\nexport declare function isTaken(zr: any, resourceKey: any): boolean;\n"
- },
- {
- "path": "echarts/types/src/component/helper/listComponent.d.ts",
- "code": "export declare function layout(group: any, componentModel: any, api: any): void;\nexport declare function makeBackground(rect: any, componentModel: any): any;\n"
- },
- {
- "path": "echarts/types/src/component/helper/MapDraw.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport GeoModel from '../../coord/geo/GeoModel';\nimport MapSeries from '../../chart/map/MapSeries';\nimport GlobalModel from '../../model/Global';\nimport { Payload } from '../../util/types';\nimport GeoView from '../geo/GeoView';\nimport MapView from '../../chart/map/MapView';\ndeclare class MapDraw {\n private uid;\n private _controller;\n private _controllerHost;\n [...]
- },
- {
- "path": "echarts/types/src/component/helper/RoamController.d.ts",
- "code": "import Eventful from 'zrender/esm/core/Eventful';\nimport { ZRenderType } from 'zrender/esm/zrender';\nimport { ZRElementEvent, RoamOptionMixin } from '../../util/types';\nimport { Bind3 } from 'zrender/esm/core/util';\nimport Group from 'zrender/esm/graphic/Group';\nexport declare type RoamType = RoamOptionMixin['roam'];\ninterface RoamOption {\n zoomOnMouseWheel?: boolean | 'ctrl' | 'shift' | 'alt';\n moveOnMouseMove?: boolean | 'ctrl' | 'shift' | 'alt';\n moveOnM [...]
- },
- {
- "path": "echarts/types/src/component/helper/roamHelper.d.ts",
- "code": "import Element from 'zrender/esm/Element';\ninterface ControllerHost {\n target: Element;\n zoom?: number;\n zoomLimit?: {\n min?: number;\n max?: number;\n };\n}\nexport declare function updateViewOnPan(controllerHost: ControllerHost, dx: number, dy: number): void;\nexport declare function updateViewOnZoom(controllerHost: ControllerHost, zoomDelta: number, zoomX: number, zoomY: number): void;\nexport {};\n"
- },
- {
- "path": "echarts/types/src/component/helper/sliderMove.d.ts",
- "code": "export default function (delta: number, handleEnds: number[], extent: number[], handleIndex: 'all' | 0 | 1, minSpan?: number, maxSpan?: number): number[];\n"
- },
- {
- "path": "echarts/types/src/component/legend.d.ts",
- "code": "import './legend/LegendModel';\nimport './legend/legendAction';\nimport './legend/LegendView';\n"
- },
- {
- "path": "echarts/types/src/component/legend/legendAction.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/legend/legendFilter.d.ts",
- "code": "import GlobalModel from '../../model/Global';\nexport default function (ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/component/legend/LegendModel.d.ts",
- "code": "import Model from '../../model/Model';\nimport ComponentModel from '../../model/Component';\nimport { ComponentOption, BoxLayoutOptionMixin, BorderOptionMixin, ColorString, ItemStyleOption, LabelOption, LayoutOrient, CommonTooltipOption } from '../../util/types';\nimport { Dictionary } from 'zrender/esm/core/types';\nimport GlobalModel from '../../model/Global';\ndeclare type SelectorType = 'all' | 'inverse';\nexport interface LegendSelectorButtonOption {\n type?: Selecto [...]
- },
- {
- "path": "echarts/types/src/component/legend/LegendView.d.ts",
- "code": "import * as graphic from '../../util/graphic';\nimport ComponentView from '../../view/Component';\nimport LegendModel, { LegendOption, LegendSelectorButtonOption } from './LegendModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { ZRRectLike } from '../../util/types';\ndeclare class LegendView extends ComponentView {\n static type: string;\n type: string;\n newlineDisabled: boolean;\n private _contentGro [...]
- },
- {
- "path": "echarts/types/src/component/legend/scrollableLegendAction.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/legend/ScrollableLegendModel.d.ts",
- "code": "import LegendModel, { LegendOption } from './LegendModel';\nimport { ZRColor, LabelOption } from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nexport interface ScrollableLegendOption extends LegendOption {\n scrollDataIndex?: number;\n pageButtonItemGap?: number;\n pageButtonGap?: number;\n pageButtonPosition?: 'start' | 'end';\n pageFormatter?: string | ((param: {\n current: number;\n [...]
- },
- {
- "path": "echarts/types/src/component/legend/ScrollableLegendView.d.ts",
- "code": "import LegendView from './LegendView';\nimport { LegendSelectorButtonOption } from './LegendModel';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport GlobalModel from '../../model/Global';\nimport ScrollableLegendModel, { ScrollableLegendOption } from './ScrollableLegendModel';\ninterface PageInfo {\n contentPosition: number[];\n pageCount: number;\n pageIndex: number;\n pagePrevDataIndex: number;\n pageNextDataIndex: number;\n}\ndeclare class Scrollable [...]
- },
- {
- "path": "echarts/types/src/component/legendScroll.d.ts",
- "code": "import './legend';\nimport './legend/ScrollableLegendModel';\nimport './legend/ScrollableLegendView';\nimport './legend/scrollableLegendAction';\n"
- },
- {
- "path": "echarts/types/src/component/markArea.d.ts",
- "code": "import './marker/MarkAreaModel';\nimport './marker/MarkAreaView';\n"
- },
- {
- "path": "echarts/types/src/component/marker/MarkAreaModel.d.ts",
- "code": "import MarkerModel, { MarkerOption, MarkerStatisticType, MarkerPositionOption } from './MarkerModel';\nimport { LabelOption, ItemStyleOption, StatesOptionMixin } from '../../util/types';\nimport GlobalModel from '../../model/Global';\ninterface MarkAreaStateOption {\n itemStyle?: ItemStyleOption;\n label?: LabelOption;\n}\ninterface MarkAreaDataItemOptionBase extends MarkAreaStateOption, StatesOptionMixin<MarkAreaStateOption> {\n name?: string;\n}\nexport interface [...]
- },
- {
- "path": "echarts/types/src/component/marker/MarkAreaView.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/marker/markerHelper.d.ts",
- "code": "import SeriesModel from '../../model/Series';\nimport List from '../../data/List';\nimport { MarkerStatisticType, MarkerPositionOption } from './MarkerModel';\nimport Axis from '../../coord/Axis';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\nimport { ScaleDataValue } from '../../util/types';\ninterface MarkerAxisInfo {\n valueDataDim: string;\n valueAxis: Axis;\n baseAxis: Axis;\n baseDataDim: string;\n}\nexport declare function dataTransfor [...]
- },
- {
- "path": "echarts/types/src/component/marker/MarkerModel.d.ts",
- "code": "import DataFormatMixin from '../../model/mixin/dataFormat';\nimport ComponentModel from '../../model/Component';\nimport SeriesModel from '../../model/Series';\nimport { ComponentOption, AnimationOptionMixin, CommonTooltipOption, ScaleDataValue, TooltipRenderMode } from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport List from '../../data/List';\nexport declare type MarkerStatisticType = 'average' | 'min' | ' [...]
- },
- {
- "path": "echarts/types/src/component/marker/MarkerView.d.ts",
- "code": "import ComponentView from '../../view/Component';\nimport { HashMap } from 'zrender/esm/core/util';\nimport MarkerModel from './MarkerModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport SeriesModel from '../../model/Series';\nimport { Group } from 'zrender/esm/export';\ninterface MarkerDraw {\n group: Group;\n}\ndeclare abstract class MarkerView extends ComponentView {\n static type: string;\n type: string;\ [...]
- },
- {
- "path": "echarts/types/src/component/marker/MarkLineModel.d.ts",
- "code": "import MarkerModel, { MarkerOption, MarkerStatisticType, MarkerPositionOption } from './MarkerModel';\nimport GlobalModel from '../../model/Global';\nimport { LineStyleOption, LineLabelOption, SymbolOptionMixin, ItemStyleOption, StatesOptionMixin } from '../../util/types';\ninterface MarkLineStateOption {\n lineStyle?: LineStyleOption;\n itemStyle?: ItemStyleOption;\n label?: LineLabelOption;\n}\ninterface MarkLineDataItemOptionBase extends MarkLineStateOption, Stat [...]
- },
- {
- "path": "echarts/types/src/component/marker/MarkLineView.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/marker/MarkPointModel.d.ts",
- "code": "import MarkerModel, { MarkerOption, MarkerPositionOption } from './MarkerModel';\nimport GlobalModel from '../../model/Global';\nimport { SymbolOptionMixin, ItemStyleOption, LabelOption, CallbackDataParams, StatesOptionMixin } from '../../util/types';\ninterface MarkPointStateOption {\n itemStyle?: ItemStyleOption;\n label?: LabelOption;\n}\nexport interface MarkPointDataItemOption extends MarkPointStateOption, StatesOptionMixin<MarkPointStateOption>, SymbolOptionMixin [...]
- },
- {
- "path": "echarts/types/src/component/marker/MarkPointView.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/markLine.d.ts",
- "code": "import './marker/MarkLineModel';\nimport './marker/MarkLineView';\n"
- },
- {
- "path": "echarts/types/src/component/markPoint.d.ts",
- "code": "import './marker/MarkPointModel';\nimport './marker/MarkPointView';\n"
- },
- {
- "path": "echarts/types/src/component/parallel.d.ts",
- "code": "import '../coord/parallel/parallelCreator';\nimport './parallelAxis';\nimport '../coord/parallel/ParallelModel';\n"
- },
- {
- "path": "echarts/types/src/component/parallelAxis.d.ts",
- "code": "import '../coord/parallel/parallelCreator';\nimport '../coord/parallel/AxisModel';\nimport '../coord/parallel/ParallelModel';\nimport './axis/parallelAxisAction';\nimport './axis/ParallelAxisView';\n"
- },
- {
- "path": "echarts/types/src/component/polar.d.ts",
- "code": "import '../coord/polar/PolarModel';\nimport '../coord/polar/AxisModel';\nimport '../coord/polar/polarCreator';\nimport './angleAxis';\nimport './radiusAxis';\nimport './axisPointer';\nimport './axisPointer/PolarAxisPointer';\n"
- },
- {
- "path": "echarts/types/src/component/radar.d.ts",
- "code": "import '../coord/radar/Radar';\nimport '../coord/radar/RadarModel';\nimport './radar/RadarView';\n"
- },
- {
- "path": "echarts/types/src/component/radar/RadarView.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/radiusAxis.d.ts",
- "code": "import '../coord/polar/polarCreator';\nimport './axis/RadiusAxisView';\n"
- },
- {
- "path": "echarts/types/src/component/singleAxis.d.ts",
- "code": "import '../coord/single/singleCreator';\nimport './axis/SingleAxisView';\nimport '../coord/single/AxisModel';\nimport './axisPointer';\nimport './axisPointer/SingleAxisPointer';\n"
- },
- {
- "path": "echarts/types/src/component/timeline.d.ts",
- "code": "import './timeline/typeDefaulter';\nimport './timeline/timelineAction';\nimport './timeline/SliderTimelineModel';\nimport './timeline/SliderTimelineView';\n"
- },
- {
- "path": "echarts/types/src/component/timeline/preprocessor.d.ts",
- "code": "export default function (option: any): void;\n"
- },
- {
- "path": "echarts/types/src/component/timeline/SliderTimelineModel.d.ts",
- "code": "import TimelineModel, { TimelineOption } from './TimelineModel';\nimport DataFormatMixin from '../../model/mixin/dataFormat';\nimport List from '../../data/List';\nexport interface SliderTimelineOption extends TimelineOption {\n}\ndeclare class SliderTimelineModel extends TimelineModel {\n static type: string;\n type: string;\n static defaultOption: SliderTimelineOption;\n}\ninterface SliderTimelineModel extends DataFormatMixin {\n getData(): List<SliderTimelineM [...]
- },
- {
- "path": "echarts/types/src/component/timeline/SliderTimelineView.d.ts",
- "code": "import TimelineView from './TimelineView';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport SliderTimelineModel from './SliderTimelineModel';\ndeclare class SliderTimelineView extends TimelineView {\n static type: string;\n type: string;\n api: ExtensionAPI;\n model: SliderTimelineModel;\n ecModel: GlobalModel;\n private _axis;\n private _viewRect;\n private _timer;\n private _currentPointer;\n [...]
- },
- {
- "path": "echarts/types/src/component/timeline/timelineAction.d.ts",
- "code": "import { Payload } from '../../util/types';\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"
- },
- {
- "path": "echarts/types/src/component/timeline/TimelineAxis.d.ts",
- "code": "import Axis from '../../coord/Axis';\nimport Scale from '../../scale/Scale';\nimport TimelineModel from './TimelineModel';\nimport { LabelOption } from '../../util/types';\nimport Model from '../../model/Model';\ndeclare class TimelineAxis extends Axis {\n type: 'category' | 'time' | 'value';\n model: TimelineModel;\n constructor(dim: string, scale: Scale, coordExtent: [number, number], axisType: 'category' | 'time' | 'value');\n getLabelModel(): Model<LabelOptio [...]
- },
- {
- "path": "echarts/types/src/component/timeline/TimelineModel.d.ts",
- "code": "import ComponentModel from '../../model/Component';\nimport List from '../../data/List';\nimport { ComponentOption, BoxLayoutOptionMixin, LayoutOrient, SymbolOptionMixin, LineStyleOption, ItemStyleOption, LabelOption, OptionDataValue, ZRColor, ColorString, CommonTooltipOption, CallbackDataParams, ZREasing } from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel, { GlobalModelSetOptionOpts } from '../../model/Global';\nexport interface TimelineCo [...]
- },
- {
- "path": "echarts/types/src/component/timeline/TimelineView.d.ts",
- "code": "import ComponentView from '../../view/Component';\ndeclare class TimelineView extends ComponentView {\n static type: string;\n type: string;\n}\nexport default TimelineView;\n"
- },
- {
- "path": "echarts/types/src/component/timeline/typeDefaulter.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/title.d.ts",
- "code": "import { ComponentOption, BoxLayoutOptionMixin, ZRTextAlign, ZRTextVerticalAlign, ZRColor, BorderOptionMixin, LabelOption } from '../util/types';\nexport interface TitleOption extends ComponentOption, BoxLayoutOptionMixin, BorderOptionMixin {\n show?: boolean;\n type?: 'title';\n text?: string;\n link?: string;\n target?: 'self' | 'blank';\n subtext?: string;\n sublink?: string;\n subtarget?: 'self' | 'blank';\n textAlign?: ZRTextAlign;\n textVe [...]
- },
- {
- "path": "echarts/types/src/component/toolbox.d.ts",
- "code": "import './toolbox/ToolboxModel';\nimport './toolbox/ToolboxView';\nimport './toolbox/feature/SaveAsImage';\nimport './toolbox/feature/MagicType';\nimport './toolbox/feature/DataView';\nimport './toolbox/feature/DataZoom';\nimport './toolbox/feature/Restore';\n"
- },
- {
- "path": "echarts/types/src/component/toolbox/feature/Brush.d.ts",
- "code": "import { ToolboxFeatureModel, ToolboxFeatureOption, ToolboxFeature } from '../featureManager';\nimport GlobalModel from '../../../model/Global';\nimport ExtensionAPI from '../../../ExtensionAPI';\ndeclare const ICON_TYPES: readonly [\"rect\", \"polygon\", \"lineX\", \"lineY\", \"keep\", \"clear\"];\ndeclare type IconType = typeof ICON_TYPES[number];\nexport interface ToolboxBrushFeatureOption extends ToolboxFeatureOption {\n type?: IconType[];\n icon?: {\n [key [...]
- },
- {
- "path": "echarts/types/src/component/toolbox/feature/DataView.d.ts",
- "code": "import GlobalModel from '../../../model/Global';\nimport { ToolboxFeature, ToolboxFeatureOption } from '../featureManager';\nimport { ColorString, ECUnitOption } from '../../../util/types';\nimport ExtensionAPI from '../../../ExtensionAPI';\nexport interface ToolboxDataViewFeatureOption extends ToolboxFeatureOption {\n readOnly?: boolean;\n optionToContent?: (option: ECUnitOption) => string | HTMLElement;\n contentToOption?: (viewMain: HTMLDivElement, oldOption: ECU [...]
- },
- {
- "path": "echarts/types/src/component/toolbox/feature/DataZoom.d.ts",
- "code": "import BrushController from '../../helper/BrushController';\nimport * as history from '../../dataZoom/history';\nimport '../../dataZoomSelect';\nimport { ToolboxFeature, ToolboxFeatureModel, ToolboxFeatureOption } from '../featureManager';\nimport GlobalModel from '../../../model/Global';\nimport ExtensionAPI from '../../../ExtensionAPI';\nimport { Payload } from '../../../util/types';\nimport { ModelFinderIndexQuery, ModelFinderIdQuery } from '../../../util/model';\ndeclare [...]
- },
- {
- "path": "echarts/types/src/component/toolbox/feature/MagicType.d.ts",
- "code": "import { ToolboxFeature, ToolboxFeatureOption } from '../featureManager';\nimport { SeriesOption } from '../../../util/types';\nimport GlobalModel from '../../../model/Global';\nimport ExtensionAPI from '../../../ExtensionAPI';\ndeclare const ICON_TYPES: readonly [\"line\", \"bar\", \"stack\"];\ndeclare type IconType = typeof ICON_TYPES[number];\nexport interface ToolboxMagicTypeFeatureOption extends ToolboxFeatureOption {\n type?: IconType[];\n icon?: {\n [key [...]
- },
- {
- "path": "echarts/types/src/component/toolbox/feature/Restore.d.ts",
- "code": "import { ToolboxFeatureOption } from '../featureManager';\nexport interface ToolboxRestoreFeatureOption extends ToolboxFeatureOption {\n icon?: string;\n title?: string;\n}\n"
- },
- {
- "path": "echarts/types/src/component/toolbox/feature/SaveAsImage.d.ts",
- "code": "import { ToolboxFeature, ToolboxFeatureOption } from '../featureManager';\nimport { ZRColor } from '../../../util/types';\nimport GlobalModel from '../../../model/Global';\nimport ExtensionAPI from '../../../ExtensionAPI';\nexport interface ToolboxSaveAsImageFeatureOption extends ToolboxFeatureOption {\n icon?: string;\n title?: string;\n type?: 'png' | 'jpg';\n backgroundColor?: ZRColor;\n connectedBackgroundColor?: ZRColor;\n name?: string;\n excludeCo [...]
- },
- {
- "path": "echarts/types/src/component/toolbox/featureManager.d.ts",
- "code": "import { Dictionary, DisplayState, ZRElementEvent, ItemStyleOption, LabelOption } from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport Displayable from 'zrender/esm/graphic/Displayable';\ndeclare type IconStyle = ItemStyleOption & {\n textFill?: LabelOption['color'];\n textBackgroundColor?: LabelOption['backgroundColor'];\n textPosition?: LabelOption['p [...]
- },
- {
- "path": "echarts/types/src/component/toolbox/ToolboxModel.d.ts",
- "code": "import * as featureManager from './featureManager';\nimport ComponentModel from '../../model/Component';\nimport { ComponentOption, BoxLayoutOptionMixin, LayoutOrient, ZRColor, BorderOptionMixin, ItemStyleOption, LabelOption, CommonTooltipOption, Dictionary } from '../../util/types';\nexport interface ToolboxTooltipFormatterParams {\n componentType: 'toolbox';\n name: string;\n title: string;\n $vars: ['name', 'title'];\n}\nexport interface ToolboxOption extends [...]
- },
- {
- "path": "echarts/types/src/component/toolbox/ToolboxView.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/tooltip.d.ts",
- "code": "import './axisPointer';\nimport './tooltip/TooltipModel';\nimport './tooltip/TooltipView';\n"
- },
- {
- "path": "echarts/types/src/component/tooltip/TooltipHTMLContent.d.ts",
- "code": "import ExtensionAPI from '../../ExtensionAPI';\nimport { TooltipOption } from './TooltipModel';\nimport Model from '../../model/Model';\nimport { Dictionary } from 'zrender/esm/core/types';\nimport { ColorString, ZRColor } from '../../util/types';\ninterface TooltipContentOption {\n appendToBody: boolean;\n}\ndeclare class TooltipHTMLContent {\n el: HTMLDivElement;\n private _container;\n private _show;\n private _styleCoord;\n private _appendToBody;\n p [...]
- },
- {
- "path": "echarts/types/src/component/tooltip/TooltipModel.d.ts",
- "code": "import ComponentModel from '../../model/Component';\nimport { ComponentOption, LabelOption, LineStyleOption, CommonTooltipOption, TooltipRenderMode, CallbackDataParams, TooltipOrderMode } from '../../util/types';\nimport { AxisPointerOption } from '../axisPointer/AxisPointerModel';\ndeclare type TopLevelFormatterParams = CallbackDataParams | CallbackDataParams[];\nexport interface TooltipOption extends CommonTooltipOption<TopLevelFormatterParams>, ComponentOption {\n axis [...]
- },
- {
- "path": "echarts/types/src/component/tooltip/TooltipRichContent.d.ts",
- "code": "import ExtensionAPI from '../../ExtensionAPI';\nimport { TooltipOption } from './TooltipModel';\nimport { Dictionary } from 'zrender/esm/core/types';\nimport { ColorString, ZRColor } from '../../util/types';\nimport Model from '../../model/Model';\nimport ZRText from 'zrender/esm/graphic/Text';\ndeclare class TooltipRichContent {\n private _zr;\n private _show;\n private _hideTimeout;\n private _enterable;\n private _inContent;\n private _hideDelay;\n el [...]
- },
- {
- "path": "echarts/types/src/component/tooltip/TooltipView.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/transform.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/transform/filterTransform.d.ts",
- "code": "import { DataTransformOption, ExternalDataTransform } from '../../data/helper/transform';\nimport { ConditionalExpressionOption } from '../../util/conditionalExpression';\nexport interface FilterTransformOption extends DataTransformOption {\n type: 'filter';\n config: ConditionalExpressionOption;\n}\nexport declare const filterTransform: ExternalDataTransform<FilterTransformOption>;\n"
- },
- {
- "path": "echarts/types/src/component/transform/sortTransform.d.ts",
- "code": "import { DataTransformOption, ExternalDataTransform } from '../../data/helper/transform';\nimport { DimensionLoose } from '../../util/types';\nimport { RawValueParserType } from '../../data/helper/dataValueHelper';\nexport interface SortTransformOption extends DataTransformOption {\n type: 'sort';\n config: OrderExpression | OrderExpression[];\n}\ndeclare type OrderExpression = {\n dimension: DimensionLoose;\n order: 'asc' | 'desc';\n parser?: RawValueParserTy [...]
- },
- {
- "path": "echarts/types/src/component/visualMap.d.ts",
- "code": "import './visualMapContinuous';\nimport './visualMapPiecewise';\n"
- },
- {
- "path": "echarts/types/src/component/visualMap/ContinuousModel.d.ts",
- "code": "import VisualMapModel, { VisualMapOption } from './VisualMapModel';\nimport { ItemStyleOption } from '../../util/types';\ndeclare type VisualState = VisualMapModel['stateList'][number];\nexport interface ContinousVisualMapOption extends VisualMapOption {\n align?: 'auto' | 'left' | 'right' | 'top' | 'bottom';\n calculable?: boolean;\n range?: number[];\n hoverLink?: boolean;\n hoverLinkDataSize?: number;\n hoverLinkOnHandle?: boolean;\n handleIcon?: stri [...]
- },
- {
- "path": "echarts/types/src/component/visualMap/ContinuousView.d.ts",
- "code": "import VisualMapView from './VisualMapView';\nimport ContinuousModel from './ContinuousModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\ndeclare class ContinuousView extends VisualMapView {\n static type: string;\n type: string;\n visualMapModel: ContinuousModel;\n private _shapes;\n private _dataInterval;\n private _handleEnds;\n private _orient;\n private _useHandle;\n private _hoverLinkDataIn [...]
- },
- {
- "path": "echarts/types/src/component/visualMap/helper.d.ts",
- "code": "import VisualMapModel from './VisualMapModel';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { Payload } from '../../util/types';\ndeclare const paramsSet: readonly [readonly [\"left\", \"right\", \"width\"], readonly [\"top\", \"bottom\", \"height\"]];\nexport declare type ItemHorizontalAlign = typeof paramsSet[0][number];\nexport declare type ItemVerticalAlign = typeof paramsSet[1][number];\nexport declare type ItemAlign = ItemVerticalAlign | ItemHorizontalAlign; [...]
- },
- {
- "path": "echarts/types/src/component/visualMap/PiecewiseModel.d.ts",
- "code": "import VisualMapModel, { VisualMapOption, VisualMeta } from './VisualMapModel';\nimport { VisualMappingOption } from '../../visual/VisualMapping';\nimport { VisualOptionPiecewise } from '../../util/types';\nimport { Dictionary } from 'zrender/esm/core/types';\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 label?: string;\n}\ndeclar [...]
- },
- {
- "path": "echarts/types/src/component/visualMap/PiecewiseView.d.ts",
- "code": "import VisualMapView from './VisualMapView';\nimport PiecewiseModel from './PiecewiseModel';\ndeclare class PiecewiseVisualMapView extends VisualMapView {\n static type: \"visualMap.piecewise\";\n type: \"visualMap.piecewise\";\n visualMapModel: PiecewiseModel;\n protected doRender(): void;\n private _enableHoverLink;\n private _getItemAlign;\n private _renderEndsText;\n private _getViewData;\n private _createItemSymbol;\n private _onItemClick;\ [...]
- },
- {
- "path": "echarts/types/src/component/visualMap/preprocessor.d.ts",
- "code": "export default function (option: any): void;\n"
- },
- {
- "path": "echarts/types/src/component/visualMap/typeDefaulter.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/visualMap/visualEncoding.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/visualMap/visualMapAction.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/component/visualMap/VisualMapModel.d.ts",
- "code": "import VisualMapping, { VisualMappingOption } from '../../visual/VisualMapping';\nimport { ComponentOption, BoxLayoutOptionMixin, LabelOption, ColorString, ZRColor, BorderOptionMixin, OptionDataValue, BuiltinVisualProperty } from '../../util/types';\nimport ComponentModel from '../../model/Component';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport SeriesModel from '../../model/Series';\nimport List from '../../data/List';\ndecl [...]
- },
- {
- "path": "echarts/types/src/component/visualMap/VisualMapView.d.ts",
- "code": "import { Group } from '../../util/graphic';\nimport ComponentView from '../../view/Component';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport VisualMapModel from './VisualMapModel';\ndeclare type VisualState = VisualMapModel['stateList'][number];\ndeclare class VisualMapView extends ComponentView {\n static type: string;\n type: string;\n autoPositionValues: {\n readonly left: 1;\n readonly right: [...]
- },
- {
- "path": "echarts/types/src/component/visualMapContinuous.d.ts",
- "code": "import './visualMap/typeDefaulter';\nimport './visualMap/visualEncoding';\nimport './visualMap/ContinuousModel';\nimport './visualMap/ContinuousView';\nimport './visualMap/visualMapAction';\n"
- },
- {
- "path": "echarts/types/src/component/visualMapPiecewise.d.ts",
- "code": "import './visualMap/typeDefaulter';\nimport './visualMap/visualEncoding';\nimport './visualMap/PiecewiseModel';\nimport './visualMap/PiecewiseView';\nimport './visualMap/visualMapAction';\n"
- },
- {
- "path": "echarts/types/src/coord/Axis.d.ts",
- "code": "import { createAxisLabels, calculateCategoryInterval } from './axisTickLabelBuilder';\nimport Scale from '../scale/Scale';\nimport { DimensionName, ScaleDataValue } from '../util/types';\nimport Model from '../model/Model';\nimport { AxisBaseOption, OptionAxisType } from './axisCommonTypes';\nimport { AxisBaseModel } from './AxisBaseModel';\ninterface TickCoord {\n coord: number;\n tickValue?: number;\n}\ndeclare class Axis {\n type: OptionAxisType;\n readonly di [...]
- },
- {
- "path": "echarts/types/src/coord/AxisBaseModel.d.ts",
- "code": "import { AxisBaseOption } from './axisCommonTypes';\nimport ComponentModel from '../model/Component';\nimport { AxisModelCommonMixin } from './axisModelCommonMixin';\nimport { AxisModelExtendedInCreator } from './axisModelCreator';\nimport Axis from './Axis';\nexport interface AxisBaseModel<T extends AxisBaseOption = AxisBaseOption> extends ComponentModel<T>, AxisModelCommonMixin<T>, AxisModelExtendedInCreator<T> {\n axis: Axis;\n}\n"
- },
- {
- "path": "echarts/types/src/coord/axisCommonTypes.d.ts",
- "code": "import { TextCommonOption, LineStyleOption, OrdinalRawValue, ZRColor, AreaStyleOption, ComponentOption, ColorString, AnimationOptionMixin, Dictionary, ScaleDataValue } from '../util/types';\nexport declare const AXIS_TYPES: {\n readonly value: 1;\n readonly category: 1;\n readonly time: 1;\n readonly log: 1;\n};\nexport declare type OptionAxisType = keyof typeof AXIS_TYPES;\nexport interface AxisBaseOption extends ComponentOption, AnimationOptionMixin {\n type [...]
- },
- {
- "path": "echarts/types/src/coord/axisDefault.d.ts",
- "code": "import { AxisBaseOption } from './axisCommonTypes';\ndeclare const _default: {\n category: AxisBaseOption;\n value: AxisBaseOption;\n time: AxisBaseOption;\n log: AxisBaseOption;\n};\nexport default _default;\n"
- },
- {
- "path": "echarts/types/src/coord/axisHelper.d.ts",
- "code": "import Scale from '../scale/Scale';\nimport BoundingRect from 'zrender/esm/core/BoundingRect';\nimport Model from '../model/Model';\nimport { AxisBaseModel } from './AxisBaseModel';\nimport Axis from './Axis';\nimport { AxisBaseOption } from './axisCommonTypes';\nimport List from '../data/List';\nimport { DimensionName, ScaleTick } from '../util/types';\nexport declare function getScaleExtent(scale: Scale, model: AxisBaseModel): {\n extent: number[];\n fixMin: boolean; [...]
- },
- {
- "path": "echarts/types/src/coord/axisModelCommonMixin.d.ts",
- "code": "import Model from '../model/Model';\nimport Axis from './Axis';\nimport { AxisBaseOption } from './axisCommonTypes';\nimport { CoordinateSystemHostModel } from './CoordinateSystem';\ninterface AxisModelCommonMixin<Opt extends AxisBaseOption> extends Pick<Model<Opt>, 'option'> {\n axis: Axis;\n}\ndeclare class AxisModelCommonMixin<Opt extends AxisBaseOption> {\n getNeedCrossZero(): boolean;\n getCoordSysModel(): CoordinateSystemHostModel;\n}\nexport { AxisModelCommon [...]
- },
- {
- "path": "echarts/types/src/coord/axisModelCreator.d.ts",
- "code": "import ComponentModel from '../model/Component';\nimport OrdinalMeta from '../data/OrdinalMeta';\nimport { DimensionName, OrdinalRawValue } from '../util/types';\nimport { AxisBaseOption } from './axisCommonTypes';\ndeclare type Constructor<T> = new (...args: any[]) => T;\nexport interface AxisModelExtendedInCreator<Opt extends AxisBaseOption> {\n getCategories(rawData?: boolean): OrdinalRawValue[] | Opt['data'];\n getOrdinalMeta(): OrdinalMeta;\n}\nexport default func [...]
- },
- {
- "path": "echarts/types/src/coord/axisTickLabelBuilder.d.ts",
- "code": "import Axis from './Axis';\nimport { AxisBaseModel } from './AxisBaseModel';\nexport declare function createAxisLabels(axis: Axis): {\n labels: {\n formattedLabel: string;\n rawLabel: string;\n tickValue: number;\n }[];\n labelCategoryInterval?: number;\n};\nexport declare function createAxisTicks(axis: Axis, tickModel: AxisBaseModel): {\n ticks: number[];\n tickCategoryInterval?: number;\n};\nexport declare function calculateCategoryInter [...]
- },
- {
- "path": "echarts/types/src/coord/calendar/Calendar.d.ts",
- "code": "import { BoundingRect } from 'zrender/esm/export';\nimport CalendarModel from './CalendarModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { ScaleDataValue, OptionDataValueDate } from '../../util/types';\nimport { ParsedModelFinder } from '../../util/model';\nimport { CoordinateSystem, CoordinateSystemMaster } from '../CoordinateSystem';\nimport { RectLike } from 'zrender/esm/core/BoundingRect';\nexport interface C [...]
- },
- {
- "path": "echarts/types/src/coord/calendar/CalendarModel.d.ts",
- "code": "import ComponentModel from '../../model/Component';\nimport Calendar from './Calendar';\nimport { ComponentOption, BoxLayoutOptionMixin, LayoutOrient, LineStyleOption, ItemStyleOption, LabelOption, OptionDataValueDate } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport Model from '../../model/Model';\nexport interface CalendarMonthLabelFormatterCallbackParams {\n nameMap: string;\n yyyy: string;\n yy: string;\n MM: string;\n M: nu [...]
- },
- {
- "path": "echarts/types/src/coord/calendar/prepareCustom.d.ts",
- "code": "import Calendar from './Calendar';\nexport default function (coordSys: Calendar): {\n coordSys: {\n type: string;\n x: number;\n y: number;\n width: number;\n height: number;\n cellWidth: number;\n cellHeight: number;\n rangeInfo: {\n start: import(\"./Calendar\").CalendarParsedDateInfo;\n end: import(\"./Calendar\").CalendarParsedDateInfo;\n weeks: number;\n dayCount: numb [...]
- },
- {
- "path": "echarts/types/src/coord/cartesian/Axis2D.d.ts",
- "code": "import 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';\ninterface Axis2D {\n toLocalCoord(coord: number): number;\n toGlobalCoord(coord: number): number;\n}\ndeclare class Axis2D extends Axis {\n readonly position: CartesianAxisPosit [...]
- },
- {
- "path": "echarts/types/src/coord/cartesian/AxisModel.d.ts",
- "code": "import 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';\nexport declare type CartesianAxisPosition = 'top' | 'bottom' | 'le [...]
- },
- {
- "path": "echarts/types/src/coord/cartesian/Cartesian.d.ts",
- "code": "import { DimensionName } from '../../util/types';\nimport Axis from '../Axis';\ndeclare class Cartesian<AxisT extends Axis> {\n readonly type: string;\n readonly name: string;\n private _dimList;\n private _axes;\n constructor(name: string);\n getAxis(dim: DimensionName): AxisT;\n getAxes(): AxisT[];\n getAxesByScale(scaleType: string): AxisT[];\n addAxis(axis: AxisT): void;\n}\nexport default Cartesian;\n"
- },
- {
- "path": "echarts/types/src/coord/cartesian/Cartesian2D.d.ts",
- "code": "import BoundingRect from 'zrender/esm/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';\nexport declare const cartesian2DDimensions: string[];\ndeclare class Cartesian2D extends Cartesian<Axis2D> implements CoordinateSystem {\n readonly type = \"cartesian2d\";\ [...]
- },
- {
- "path": "echarts/types/src/coord/cartesian/cartesianAxisHelper.d.ts",
- "code": "import GridModel from './GridModel';\nimport CartesianAxisModel from './AxisModel';\nimport SeriesModel from '../../model/Series';\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}\nexport declare function layout(gridModel: GridModel, axisModel: CartesianAxisModel, opt?: {\n labe [...]
- },
- {
- "path": "echarts/types/src/coord/cartesian/defaultAxisExtentFromData.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/coord/cartesian/Grid.d.ts",
- "code": "import { LayoutRect } from '../../util/layout';\nimport Cartesian2D from './Cartesian2D';\nimport Axis2D from './Axis2D';\nimport { ParsedModelFinder } from '../../util/model';\nimport GridModel from './GridModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { CoordinateSystemMaster } from '../CoordinateSystem';\nimport { ScaleDataValue } from '../../util/types';\ndeclare type Cartesian2DDimensionName = 'x' | 'y';\nd [...]
- },
- {
- "path": "echarts/types/src/coord/cartesian/GridModel.d.ts",
- "code": "import './AxisModel';\nimport ComponentModel from '../../model/Component';\nimport { ComponentOption, BoxLayoutOptionMixin, ZRColor, ShadowOptionMixin } from '../../util/types';\nimport Grid from './Grid';\nimport { CoordinateSystemHostModel } from '../CoordinateSystem';\nexport interface GridOption extends ComponentOption, BoxLayoutOptionMixin, ShadowOptionMixin {\n show?: boolean;\n containLabel?: boolean;\n backgroundColor?: ZRColor;\n borderWidth?: number;\n [...]
- },
- {
- "path": "echarts/types/src/coord/cartesian/prepareCustom.d.ts",
- "code": "import Cartesian2D from './Cartesian2D';\nexport default function (coordSys: Cartesian2D): {\n coordSys: {\n type: string;\n x: number;\n y: number;\n width: number;\n height: number;\n };\n api: {\n coord: (data: number[]) => number[];\n size: (dataSize: number[], dataItem: number[]) => number[];\n };\n};\n"
- },
- {
- "path": "echarts/types/src/coord/CoordinateSystem.d.ts",
- "code": "import GlobalModel from '../model/Global';\nimport { ParsedModelFinder } from '../util/model';\nimport ExtensionAPI from '../ExtensionAPI';\nimport { DimensionDefinitionLoose, ScaleDataValue, DimensionName } from '../util/types';\nimport Axis from './Axis';\nimport { BoundingRect } from '../util/graphic';\nimport { MatrixArray } from 'zrender/esm/core/matrix';\nimport ComponentModel from '../model/Component';\nimport { RectLike } from 'zrender/esm/core/BoundingRect';\nimport [...]
- },
- {
- "path": "echarts/types/src/coord/geo/fix/diaoyuIsland.d.ts",
- "code": "import Region from '../Region';\nexport default function (mapType: string, region: Region): void;\n"
- },
- {
- "path": "echarts/types/src/coord/geo/fix/geoCoord.d.ts",
- "code": "import Region from '../Region';\nexport default function (mapType: string, region: Region): void;\n"
- },
- {
- "path": "echarts/types/src/coord/geo/fix/nanhai.d.ts",
- "code": "import Region from '../Region';\nexport default function (mapType: string, regions: Region[]): void;\n"
- },
- {
- "path": "echarts/types/src/coord/geo/fix/textCoord.d.ts",
- "code": "import Region from '../Region';\nexport default function (mapType: string, region: Region): void;\n"
- },
- {
- "path": "echarts/types/src/coord/geo/Geo.d.ts",
- "code": "import BoundingRect from 'zrender/esm/core/BoundingRect';\nimport View from '../View';\nimport Region from './Region';\nimport { NameMap } from './geoTypes';\nimport GlobalModel from '../../model/Global';\nimport { ParsedModelFinder } from '../../util/model';\nimport GeoModel from './GeoModel';\nimport { resizeGeoType } from './geoCreator';\ndeclare class Geo extends View {\n dimensions: string[];\n type: string;\n readonly map: string;\n private _nameCoordMap;\n [...]
- },
- {
- "path": "echarts/types/src/coord/geo/geoCreator.d.ts",
- "code": "import Geo from './Geo';\nimport { GeoOption, RegoinOption } from './GeoModel';\nimport { MapSeriesOption } from '../../chart/map/MapSeries';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { CoordinateSystemCreator } from '../CoordinateSystem';\nimport { NameMap } from './geoTypes';\nimport GlobalModel from '../../model/Global';\nimport ComponentModel from '../../model/Component';\nexport declare type resizeGeoType = typeof resizeGeo;\ndeclare function resizeGeo(thi [...]
- },
- {
- "path": "echarts/types/src/coord/geo/geoJSONLoader.d.ts",
- "code": "import { GeoJSONMapRecord } from './mapDataStorage';\nimport { BoundingRect } from 'zrender/esm/export';\nimport Region from './Region';\ndeclare const _default: {\n load(mapName: string, mapRecord: GeoJSONMapRecord, nameProperty: string): {\n regions: Region[];\n boundingRect: BoundingRect;\n };\n};\nexport default _default;\n"
- },
- {
- "path": "echarts/types/src/coord/geo/GeoModel.d.ts",
- "code": "import ComponentModel from '../../model/Component';\nimport Model from '../../model/Model';\nimport Geo from './Geo';\nimport { ComponentOption, BoxLayoutOptionMixin, ItemStyleOption, ZRColor, LabelOption, DisplayState, RoamOptionMixin, AnimationOptionMixin, StatesOptionMixin, Dictionary } from '../../util/types';\nimport { NameMap } from './geoTypes';\nimport GlobalModel from '../../model/Global';\nexport interface GeoItemStyleOption extends ItemStyleOption {\n areaColor [...]
- },
- {
- "path": "echarts/types/src/coord/geo/geoSourceManager.d.ts",
- "code": "import { HashMap } from 'zrender/esm/core/util';\nimport BoundingRect from 'zrender/esm/core/BoundingRect';\nimport { NameMap } from './geoTypes';\nimport Region from './Region';\nimport Group from 'zrender/esm/graphic/Group';\ndeclare const _default: {\n load: (mapName: string, nameMap: NameMap, nameProperty?: string) => {\n regions: Region[];\n regionsMap: HashMap<Region, string | number>;\n nameCoordMap: HashMap<number[], string | number>;\n [...]
- },
- {
- "path": "echarts/types/src/coord/geo/geoSVGLoader.d.ts",
- "code": "import Group from 'zrender/esm/graphic/Group';\nimport BoundingRect from 'zrender/esm/core/BoundingRect';\nimport { SVGMapRecord } from './mapDataStorage';\ndeclare const _default: {\n load(mapName: string, mapRecord: SVGMapRecord): {\n root: Group;\n boundingRect: BoundingRect;\n };\n makeGraphic(mapName: string, mapRecord: SVGMapRecord, hostKey: string): Group;\n removeGraphic(mapName: string, mapRecord: SVGMapRecord, hostKey: string): void;\n};\n [...]
- },
- {
- "path": "echarts/types/src/coord/geo/geoTypes.d.ts",
- "code": "export interface NameMap {\n [regionName: string]: string;\n}\nexport interface GeoSpecialAreas {\n [areaName: string]: {\n left: number;\n top: number;\n width?: number;\n height?: number;\n };\n}\nexport interface GeoJSON extends GeoJSONFeatureCollection<GeoJSONGeometry> {\n}\nexport interface GeoJSONCompressed extends GeoJSONFeatureCollection<GeoJSONGeometryCompressed> {\n UTF8Encoding?: boolean;\n UTF8Scale?: number;\n}\ninterfa [...]
- },
- {
- "path": "echarts/types/src/coord/geo/mapDataStorage.d.ts",
- "code": "import { parseXML } from 'zrender/esm/tool/parseSVG';\nimport { GeoSpecialAreas, GeoJSON, GeoJSONCompressed } from './geoTypes';\ndeclare type SVGMapSource = 'string' | Document | SVGElement;\ndeclare type GeoJSONMapSource = 'string' | GeoJSON | GeoJSONCompressed;\ndeclare type MapInputObject = {\n geoJSON?: GeoJSONMapSource;\n geoJson?: GeoJSONMapSource;\n svg?: SVGMapSource;\n specialAreas?: GeoSpecialAreas;\n};\nexport declare type MapRecord = GeoJSONMapRecord [...]
- },
- {
- "path": "echarts/types/src/coord/geo/parseGeoJson.d.ts",
- "code": "import Region from './Region';\nimport { GeoJSONCompressed, GeoJSON } from './geoTypes';\nexport default function (geoJson: GeoJSON | GeoJSONCompressed, nameProperty: string): Region[];\n"
- },
- {
- "path": "echarts/types/src/coord/geo/prepareCustom.d.ts",
- "code": "import Geo from './Geo';\nexport default function (coordSys: Geo): {\n coordSys: {\n type: string;\n x: number;\n y: number;\n width: number;\n height: number;\n zoom: number;\n };\n api: {\n coord: (data: number[]) => number[];\n size: (dataSize: number[], dataItem: number[]) => number[];\n };\n};\n"
- },
- {
- "path": "echarts/types/src/coord/geo/Region.d.ts",
- "code": "import BoundingRect from 'zrender/esm/core/BoundingRect';\nimport { GeoJSON } from './geoTypes';\ndeclare class Region {\n readonly geometries: {\n type: 'polygon';\n exterior: number[][];\n interiors?: number[][][];\n }[];\n readonly name: string;\n center: number[];\n properties: GeoJSON['features'][0]['properties'];\n private _rect;\n constructor(name: string, geometries: Region['geometries'], cp: GeoJSON['features'][0]['propertie [...]
- },
- {
- "path": "echarts/types/src/coord/parallel/AxisModel.d.ts",
- "code": "import ComponentModel from '../../model/Component';\nimport { AxisModelExtendedInCreator } from '../axisModelCreator';\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/esm/graphic/Path';\nexport declare type ParallelActiveState = [...]
- },
- {
- "path": "echarts/types/src/coord/parallel/Parallel.d.ts",
- "code": "import * as matrix from 'zrender/esm/core/matrix';\nimport ParallelAxis from './ParallelAxis';\nimport * as graphic from '../../util/graphic';\nimport ParallelModel from './ParallelModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { DimensionName, ScaleDataValue } from '../../util/types';\nimport { CoordinateSystem, CoordinateSystemMaster } from '../CoordinateSystem';\nimport { ParallelActiveState } from './AxisMod [...]
- },
- {
- "path": "echarts/types/src/coord/parallel/ParallelAxis.d.ts",
- "code": "import 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';\ndeclare class ParallelAxis extends Axis {\n readonly axisIndex: number;\n model: AxisModel;\n coordinateSystem: Parallel;\n constructor(dim: DimensionName, scale: Scale, coordExtent: [number, number], axisType: OptionAx [...]
- },
- {
- "path": "echarts/types/src/coord/parallel/parallelCreator.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/coord/parallel/ParallelModel.d.ts",
- "code": "import 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 SeriesModel from '../../model/Series';\nexport declare type ParallelLayoutDirection = 'horizontal' | 'vertical';\nexport interface ParallelCoordinateSystemOption extends Compon [...]
- },
- {
- "path": "echarts/types/src/coord/parallel/parallelPreprocessor.d.ts",
- "code": "import { ECUnitOption } from '../../util/types';\nexport default function (option: ECUnitOption): void;\n"
- },
- {
- "path": "echarts/types/src/coord/polar/AngleAxis.d.ts",
- "code": "import Axis from '../Axis';\nimport Scale from '../../scale/Scale';\nimport Polar from './Polar';\nimport { AngleAxisModel } from './AxisModel';\ninterface AngleAxis {\n dataToAngle: Axis['dataToCoord'];\n angleToData: Axis['coordToData'];\n}\ndeclare class AngleAxis extends Axis {\n polar: Polar;\n model: AngleAxisModel;\n constructor(scale?: Scale, angleExtent?: [number, number]);\n pointToData(point: number[], clamp?: boolean): number;\n calculateCate [...]
- },
- {
- "path": "echarts/types/src/coord/polar/AxisModel.d.ts",
- "code": "import 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';\nexport interface AngleAxisOption extends AxisBaseOption {\n polarIndex?: number;\n polarId?: string;\n [...]
- },
- {
- "path": "echarts/types/src/coord/polar/Polar.d.ts",
- "code": "import RadiusAxis from './RadiusAxis';\nimport AngleAxis from './AngleAxis';\nimport PolarModel from './PolarModel';\nimport { CoordinateSystem, CoordinateSystemMaster, CoordinateSystemClipArea } from '../CoordinateSystem';\nimport GlobalModel from '../../model/Global';\nimport { ParsedModelFinder } from '../../util/model';\nimport { ScaleDataValue } from '../../util/types';\nimport ExtensionAPI from '../../ExtensionAPI';\ninterface Polar {\n update(ecModel: GlobalModel, [...]
- },
- {
- "path": "echarts/types/src/coord/polar/polarCreator.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/coord/polar/PolarModel.d.ts",
- "code": "import { ComponentOption, CircleLayoutOptionMixin } from '../../util/types';\nimport ComponentModel from '../../model/Component';\nimport Polar from './Polar';\nimport { AngleAxisModel, RadiusAxisModel } from './AxisModel';\nexport interface PolarOption extends ComponentOption, CircleLayoutOptionMixin {\n}\ndeclare class PolarModel extends ComponentModel<PolarOption> {\n static type: \"polar\";\n type: \"polar\";\n static dependencies: string[];\n coordinateSyste [...]
- },
- {
- "path": "echarts/types/src/coord/polar/prepareCustom.d.ts",
- "code": "import Polar from './Polar';\nexport default function (coordSys: Polar): {\n coordSys: {\n type: string;\n cx: number;\n cy: number;\n r: number;\n r0: number;\n };\n api: {\n coord: (data: number[]) => number[];\n size: (dataSize: number[], dataItem: number[]) => number[];\n };\n};\n"
- },
- {
- "path": "echarts/types/src/coord/polar/RadiusAxis.d.ts",
- "code": "import Axis from '../Axis';\nimport Scale from '../../scale/Scale';\nimport Polar from './Polar';\nimport { RadiusAxisModel } from './AxisModel';\ninterface RadiusAxis {\n dataToRadius: Axis['dataToCoord'];\n radiusToData: Axis['coordToData'];\n}\ndeclare class RadiusAxis extends Axis {\n polar: Polar;\n model: RadiusAxisModel;\n constructor(scale?: Scale, radiusExtent?: [number, number]);\n pointToData(point: number[], clamp?: boolean): number;\n}\nexport [...]
- },
- {
- "path": "echarts/types/src/coord/radar/IndicatorAxis.d.ts",
- "code": "import Axis from '../Axis';\nimport Scale from '../../scale/Scale';\nimport { OptionAxisType } from '../axisCommonTypes';\nimport { AxisBaseModel } from '../AxisBaseModel';\nimport { InnerIndicatorAxisOption } from './RadarModel';\ndeclare class IndicatorAxis extends Axis {\n type: OptionAxisType;\n angle: number;\n name: string;\n model: AxisBaseModel<InnerIndicatorAxisOption>;\n value?: number | string;\n constructor(dim: string, scale: Scale, radiusExten [...]
- },
- {
- "path": "echarts/types/src/coord/radar/Radar.d.ts",
- "code": "import IndicatorAxis from './IndicatorAxis';\nimport { CoordinateSystemMaster, CoordinateSystem } from '../CoordinateSystem';\nimport RadarModel from './RadarModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport { ScaleDataValue } from '../../util/types';\nimport { ParsedModelFinder } from '../../util/model';\ndeclare class Radar implements CoordinateSystem, CoordinateSystemMaster {\n readonly type: 'radar';\n re [...]
- },
- {
- "path": "echarts/types/src/coord/radar/RadarModel.d.ts",
- "code": "import ComponentModel from '../../model/Component';\nimport { ComponentOption, CircleLayoutOptionMixin, LabelOption, ColorString } from '../../util/types';\nimport { AxisBaseOption } from '../axisCommonTypes';\nimport { AxisBaseModel } from '../AxisBaseModel';\nimport Radar from './Radar';\nimport { CoordinateSystemHostModel } from '../../coord/CoordinateSystem';\nexport interface RadarIndicatorOption {\n text?: string;\n min?: number;\n max?: number;\n color?: C [...]
- },
- {
- "path": "echarts/types/src/coord/scaleRawExtentInfo.d.ts",
- "code": "import Scale from '../scale/Scale';\nimport { AxisBaseModel } from './AxisBaseModel';\nimport { ScaleDataValue } from '../util/types';\nexport interface ScaleRawExtentResult {\n readonly min: number;\n readonly max: number;\n readonly minFixed: boolean;\n readonly maxFixed: boolean;\n readonly isBlank: boolean;\n}\nexport declare class ScaleRawExtentInfo {\n private _needCrossZero;\n private _isOrdinal;\n private _axisDataLen;\n private _boundaryGa [...]
- },
- {
- "path": "echarts/types/src/coord/single/AxisModel.d.ts",
- "code": "import 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';\nexport declare type SingleAxisPosition = 'top [...]
- },
- {
- "path": "echarts/types/src/coord/single/prepareCustom.d.ts",
- "code": "import Single from './Single';\nexport default function (coordSys: Single): {\n coordSys: {\n type: string;\n x: number;\n y: number;\n width: number;\n height: number;\n };\n api: {\n coord: (val: number) => number[];\n size: (dataSize: number | number[], dataItem: number | number[]) => number;\n };\n};\n"
- },
- {
- "path": "echarts/types/src/coord/single/Single.d.ts",
- "code": "import SingleAxis from './SingleAxis';\nimport { CoordinateSystem, CoordinateSystemMaster } from '../CoordinateSystem';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../ExtensionAPI';\nimport BoundingRect from 'zrender/esm/core/BoundingRect';\nimport SingleAxisModel from './AxisModel';\nimport { ParsedModelFinder } from '../../util/model';\nimport { ScaleDataValue } from '../../util/types';\ndeclare class Single implements CoordinateSystem, Coo [...]
- },
- {
- "path": "echarts/types/src/coord/single/SingleAxis.d.ts",
- "code": "import 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';\ninterface SingleAxis {\n toLocalCoord(coord: number): number;\n toGlobalCoord(coord: number): number;\n}\ndeclare class SingleAxis extends Axis {\n position: SingleAxisPosition;\n orient: Layout [...]
- },
- {
- "path": "echarts/types/src/coord/single/singleAxisHelper.d.ts",
- "code": "import SingleAxisModel from './AxisModel';\ninterface LayoutResult {\n position: [number, number];\n rotation: number;\n labelRotation: number;\n labelDirection: number;\n tickDirection: number;\n nameDirection: number;\n z2: number;\n}\nexport declare function layout(axisModel: SingleAxisModel, opt?: {\n labelInside?: boolean;\n rotate?: number;\n}): LayoutResult;\nexport {};\n"
- },
- {
- "path": "echarts/types/src/coord/single/singleCreator.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "echarts/types/src/coord/View.d.ts",
- "code": "import * as matrix from 'zrender/esm/core/matrix';\nimport BoundingRect from 'zrender/esm/core/BoundingRect';\nimport Transformable from 'zrender/esm/core/Transformable';\nimport { CoordinateSystemMaster, CoordinateSystem } from './CoordinateSystem';\nimport GlobalModel from '../model/Global';\nimport { ParsedModelFinder } from '../util/model';\ndeclare class View extends Transformable implements CoordinateSystemMaster, CoordinateSystem {\n readonly type: string;\n sta [...]
- },
- {
- "path": "echarts/types/src/CoordinateSystem.d.ts",
- "code": "import GlobalModel from './model/Global';\nimport ExtensionAPI from './ExtensionAPI';\nimport { CoordinateSystemCreator, CoordinateSystemMaster } from './coord/CoordinateSystem';\ndeclare class CoordinateSystemManager {\n private _coordinateSystems;\n create(ecModel: GlobalModel, api: ExtensionAPI): void;\n update(ecModel: GlobalModel, api: ExtensionAPI): void;\n getCoordinateSystems(): CoordinateSystemMaster[];\n static register: (type: string, creator: Coord [...]
- },
- {
- "path": "echarts/types/src/data/DataDiffer.d.ts",
- "code": "import { ArrayLike } from 'zrender/esm/core/types';\nexport declare type DiffKeyGetter = (this: DataDiffer, value: unknown, index: number) => string;\nexport declare type DiffCallbackAdd = (newIndex: number) => void;\nexport declare type DiffCallbackUpdate = (newIndex: number, oldIndex: number) => void;\nexport declare type DiffCallbackRemove = (oldIndex: number) => void;\ndeclare class DataDiffer<Ctx = unknown> {\n private _old;\n private _new;\n private _oldKeyGet [...]
- },
- {
- "path": "echarts/types/src/data/DataDimensionInfo.d.ts",
- "code": "import OrdinalMeta from './OrdinalMeta';\nimport { DataVisualDimensions, DimensionType } from '../util/types';\ndeclare class DataDimensionInfo {\n type?: DimensionType;\n name: string;\n displayName?: string;\n tooltip?: boolean;\n coordDim?: string;\n coordDimIndex?: number;\n index?: number;\n otherDims?: DataVisualDimensions;\n isExtraCoord?: boolean;\n isCalculationCoord?: boolean;\n defaultTooltip?: boolean;\n ordinalMeta?: OrdinalMe [...]
- },
- {
- "path": "echarts/types/src/data/Graph.d.ts",
- "code": "import { Dictionary } from 'zrender/esm/core/types';\nimport List from './List';\nimport Model from '../model/Model';\nimport Element from 'zrender/esm/Element';\ndeclare class Graph {\n type: 'graph';\n readonly nodes: GraphNode[];\n readonly edges: GraphEdge[];\n data: List;\n edgeData: List;\n private _directed;\n private _nodesMap;\n private _edgesMap;\n constructor(directed?: boolean);\n isDirected(): boolean;\n addNode(id: string | numb [...]
- },
- {
- "path": "echarts/types/src/data/helper/completeDimensions.d.ts",
- "code": "import { HashMap } from 'zrender/esm/core/util';\nimport Source from '../Source';\nimport { DimensionDefinitionLoose, OptionSourceData, EncodeDefaulter, OptionEncodeValue, OptionEncode, DimensionName } from '../../util/types';\nimport DataDimensionInfo from '../DataDimensionInfo';\nimport List from '../List';\nimport { CoordDimensionDefinitionLoose } from './createDimensions';\ndeclare function completeDimensions(sysDims: CoordDimensionDefinitionLoose[], source: Source | Lis [...]
- },
- {
- "path": "echarts/types/src/data/helper/createDimensions.d.ts",
- "code": "import { DimensionDefinitionLoose, OptionEncode, OptionEncodeValue, EncodeDefaulter, OptionSourceData, DimensionName, DimensionDefinition, DataVisualDimensions, DimensionIndex } from '../../util/types';\nimport Source from '../Source';\nimport List from '../List';\nimport DataDimensionInfo from '../DataDimensionInfo';\nimport { HashMap } from 'zrender/esm/core/util';\nimport OrdinalMeta from '../OrdinalMeta';\nexport interface CoordDimensionDefinition extends DimensionDefini [...]
- },
- {
- "path": "echarts/types/src/data/helper/dataProvider.d.ts",
- "code": "import Source from '../Source';\nimport { ArrayLike } from 'zrender/esm/core/types';\nimport { DimensionName, DimensionIndex, OptionSourceData, DimensionIndexLoose, OptionDataItem, OptionDataValue, DimensionDefinition, SourceFormat, SeriesLayoutBy } from '../../util/types';\nimport List from '../List';\nexport interface DataProvider {\n pure: boolean;\n persistent: boolean;\n getSource(): Source;\n count(): number;\n getItem(idx: number, out?: OptionDataItem): [...]
- },
- {
- "path": "echarts/types/src/data/helper/dataStackHelper.d.ts",
- "code": "import DataDimensionInfo from '../DataDimensionInfo';\nimport SeriesModel from '../../model/Series';\nimport List from '../List';\nimport { SeriesOption, SeriesStackOptionMixin, DimensionName } from '../../util/types';\ninterface DataStackResult {\n stackedDimension: string;\n stackedByDimension: string;\n isStackedByIndex: boolean;\n stackedOverDimension: string;\n stackResultDimension: string;\n}\nexport declare function enableDataStack(seriesModel: SeriesMo [...]
- },
- {
- "path": "echarts/types/src/data/helper/dataValueHelper.d.ts",
- "code": "import { ParsedValue, DimensionType } from '../../util/types';\nimport OrdinalMeta from '../OrdinalMeta';\nexport declare function parseDataValue(value: any, opt: {\n type?: DimensionType;\n ordinalMeta?: OrdinalMeta;\n}): ParsedValue;\nexport declare type RawValueParserType = 'number' | 'time' | 'trim';\ndeclare type RawValueParser = (val: unknown) => unknown;\nexport declare function getRawValueParser(type: RawValueParserType): RawValueParser;\nexport interface Filte [...]
- },
- {
- "path": "echarts/types/src/data/helper/dimensionHelper.d.ts",
- "code": "import List, { ListDimensionType } from '../List';\nimport { DimensionName, DimensionUserOuput } from '../../util/types';\nexport declare type DimensionSummaryEncode = {\n defaultedLabel: DimensionName[];\n defaultedTooltip: DimensionName[];\n [coordOrVisualDimName: string]: DimensionName[];\n};\nexport declare type DimensionSummary = {\n encode: DimensionSummaryEncode;\n userOutput: DimensionUserOuput;\n dataDimsOnCoord: DimensionName[];\n encodeFirstDi [...]
- },
- {
- "path": "echarts/types/src/data/helper/linkList.d.ts",
- "code": "import List from '../List';\nimport { SeriesDataType } from '../../util/types';\ndeclare type Datas = {\n [key in SeriesDataType]?: List;\n};\ndeclare type StructReferDataAttr = 'data' | 'edgeData';\ndeclare type StructAttr = 'tree' | 'graph';\ndeclare type LinkListOpt = {\n mainData: List;\n struct: {\n update: () => void;\n } & {\n [key in StructReferDataAttr]?: List;\n };\n structAttr: StructAttr;\n datas?: Datas;\n datasAttr?: {\n [...]
- },
- {
- "path": "echarts/types/src/data/helper/parseDataValue.d.ts",
- "code": "import { ParsedValue, DimensionType } from '../../util/types';\nimport OrdinalMeta from '../OrdinalMeta';\nexport declare function parseDataValue(value: any, opt: {\n type?: DimensionType;\n ordinalMeta?: OrdinalMeta;\n}): ParsedValue;\n"
- },
- {
- "path": "echarts/types/src/data/helper/sourceHelper.d.ts",
- "code": "import Source, { SourceMetaRawOption } from '../Source';\nimport { SourceFormat, OptionSourceData, SeriesLayoutBy, OptionSourceHeader, DimensionName, DimensionDefinition, DimensionDefinitionLoose, OptionEncode, DimensionIndex, SeriesEncodableModel } from '../../util/types';\nimport { DatasetModel, DatasetOption } from '../../component/dataset';\nimport SeriesModel from '../../model/Series';\nimport GlobalModel from '../../model/Global';\nimport { CoordDimensionDefinition } f [...]
- },
- {
- "path": "echarts/types/src/data/helper/sourceManager.d.ts",
- "code": "import { DatasetModel } from '../../component/dataset';\nimport SeriesModel from '../../model/Series';\nimport Source from '../Source';\nexport declare class SourceManager {\n private _sourceHost;\n private _sourceList;\n private _upstreamSignList;\n private _versionSignBase;\n constructor(sourceHost: DatasetModel | SeriesModel);\n dirty(): void;\n private _setLocalSource;\n private _getVersionSign;\n prepareSource(): void;\n private _createSour [...]
- },
- {
- "path": "echarts/types/src/data/helper/transform.d.ts",
- "code": "import { OptionSourceData, DimensionDefinitionLoose, OptionSourceHeader, SourceFormat, DimensionDefinition, OptionDataItem, DimensionIndex, OptionDataValue, DimensionLoose, ParsedValue } from '../../util/types';\nimport Source from '../Source';\nexport declare type PipedDataTransformOption = DataTransformOption[];\nexport declare type DataTransformType = string;\nexport declare type DataTransformConfig = unknown;\nexport interface DataTransformOption {\n type: DataTransfo [...]
- },
- {
- "path": "echarts/types/src/data/List.d.ts",
- "code": "import Model from '../model/Model';\nimport DataDiffer from './DataDiffer';\nimport { DataProvider } from './helper/dataProvider';\nimport DataDimensionInfo from './DataDimensionInfo';\nimport { ArrayLike, Dictionary, FunctionPropertyNames } from 'zrender/esm/core/types';\nimport Element from 'zrender/esm/Element';\nimport { DimensionIndex, DimensionName, DimensionLoose, OptionDataItem, ParsedValue, ParsedValueNumeric, OrdinalNumber, DimensionUserOuput, SeriesDataType } from [...]
- },
- {
- "path": "echarts/types/src/data/OrdinalMeta.d.ts",
- "code": "import Model from '../model/Model';\nimport { OrdinalNumber, OrdinalRawValue } from '../util/types';\ndeclare class OrdinalMeta {\n readonly categories: OrdinalRawValue[];\n private _needCollect;\n private _deduplication;\n private _map;\n constructor(opt: {\n categories?: OrdinalRawValue[];\n needCollect?: boolean;\n deduplication?: boolean;\n });\n static createByAxisModel(axisModel: Model): OrdinalMeta;\n getOrdinal(category: O [...]
- },
- {
- "path": "echarts/types/src/data/Source.d.ts",
- "code": "import { HashMap } from 'zrender/esm/core/util';\nimport { SourceFormat, SeriesLayoutBy, DimensionDefinition, OptionEncodeValue, OptionSourceData, DimensionName, OptionSourceHeader, DimensionDefinitionLoose } from '../util/types';\nexport interface SourceMetaRawOption {\n seriesLayoutBy: SeriesLayoutBy;\n sourceHeader: OptionSourceHeader;\n dimensions: DimensionDefinitionLoose[];\n}\ndeclare class Source {\n readonly data: OptionSourceData;\n readonly sourceFo [...]
- },
- {
- "path": "echarts/types/src/data/Tree.d.ts",
- "code": "import Model from '../model/Model';\nimport List from './List';\nimport { DimensionLoose, ParsedValue } from '../util/types';\nimport { Dictionary } from 'zrender/esm/core/types';\ndeclare type TreeTraverseOrder = 'preorder' | 'postorder';\ndeclare type TreeTraverseCallback<Ctx> = (this: Ctx, node: TreeNode) => boolean | void;\ndeclare type TreeTraverseOption = {\n order?: TreeTraverseOrder;\n attr?: 'children' | 'viewChildren';\n};\ninterface TreeNodeData {\n name? [...]
- },
- {
- "path": "echarts/types/src/echarts.d.ts",
- "code": "import * as zrender from 'zrender/esm/zrender';\nimport Eventful from 'zrender/esm/core/Eventful';\nimport GlobalModel, { GlobalModelSetOptionOpts } from './model/Global';\nimport ComponentModel from './model/Component';\nimport SeriesModel from './model/Series';\nimport ComponentView from './view/Component';\nimport ChartView from './view/Chart';\nimport * as modelUtil from './util/model';\nimport './component/dataset';\nimport mapDataStorage from './coord/geo/mapDataStorag [...]
- },
- {
- "path": "echarts/types/src/export.d.ts",
- "code": "import * as zrender from 'zrender/esm/zrender';\nimport * as matrix from 'zrender/esm/core/matrix';\nimport * as vector from 'zrender/esm/core/vector';\nimport * as colorTool from 'zrender/esm/tool/color';\nimport * as numberUtil from './util/number';\nimport * as formatUtil from './util/format';\nimport * as timeUtil from './util/time';\nimport { throttle } from './util/throttle';\nimport * as ecHelper from './helper';\nimport parseGeoJSON from './coord/geo/parseGeoJson';\n [...]
- },
- {
- "path": "echarts/types/src/ExtensionAPI.d.ts",
- "code": "import { EChartsType } from './echarts';\nimport { CoordinateSystemMaster } from './coord/CoordinateSystem';\nimport Element from 'zrender/esm/Element';\nimport ComponentModel from './model/Component';\ndeclare const availableMethods: (keyof EChartsType)[];\ninterface ExtensionAPI extends Pick<EChartsType, (typeof availableMethods)[number]> {\n}\ndeclare abstract class ExtensionAPI {\n constructor(ecInstance: EChartsType);\n abstract getCoordinateSystems(): CoordinateS [...]
- },
- {
- "path": "echarts/types/src/helper.d.ts",
- "code": "import Model from './model/Model';\nimport { getLayoutRect } from './util/layout';\nimport { enableDataStack, isDimensionStacked, getStackedDimension } from './data/helper/dataStackHelper';\nimport SeriesModel from './model/Series';\nimport { AxisBaseModel } from './coord/AxisBaseModel';\nexport declare function createList(seriesModel: SeriesModel): import(\"./data/List\").default<Model<any>, import(\"./data/List\").DefaultDataVisual>;\nexport { getLayoutRect };\nexport { de [...]
- },
- {
- "path": "echarts/types/src/i18n/langEN.d.ts",
- "code": "declare const _default: {\n time: {\n month: string[];\n monthAbbr: string[];\n dayOfWeek: string[];\n dayOfWeekAbbr: string[];\n };\n legend: {\n selector: {\n all: string;\n inverse: string;\n };\n };\n toolbox: {\n brush: {\n title: {\n rect: string;\n polygon: string;\n lineX: string;\n lineY: string;\n [...]
- },
- {
- "path": "echarts/types/src/i18n/langES.d.ts",
- "code": "declare const _default: {\n time: {\n month: string[];\n monthAbbr: string[];\n dayOfWeek: string[];\n dayOfWeekAbbr: string[];\n };\n legend: {\n selector: {\n all: string;\n inverse: string;\n };\n };\n toolbox: {\n brush: {\n title: {\n rect: string;\n polygon: string;\n lineX: string;\n lineY: string;\n [...]
- },
- {
- "path": "echarts/types/src/i18n/langFI.d.ts",
- "code": "declare const _default: {\n time: {\n month: string[];\n monthAbbr: string[];\n dayOfWeek: string[];\n dayOfWeekAbbr: string[];\n };\n legend: {\n selector: {\n all: string;\n inverse: string;\n };\n };\n toolbox: {\n brush: {\n title: {\n rect: string;\n polygon: string;\n lineX: string;\n lineY: string;\n [...]
- },
- {
- "path": "echarts/types/src/i18n/langFR.d.ts",
- "code": "declare const _default: {\n time: {\n month: string[];\n monthAbbr: string[];\n dayOfWeek: string[];\n dayOfWeekAbbr: string[];\n };\n legend: {\n selector: {\n all: string;\n inverse: string;\n };\n };\n toolbox: {\n brush: {\n title: {\n rect: string;\n polygon: string;\n lineX: string;\n lineY: string;\n [...]
- },
- {
- "path": "echarts/types/src/i18n/langTH.d.ts",
- "code": "declare const _default: {\n time: {\n month: string[];\n monthAbbr: string[];\n dayOfWeek: string[];\n dayOfWeekAbbr: string[];\n };\n legend: {\n selector: {\n all: string;\n inverse: string;\n };\n };\n toolbox: {\n brush: {\n title: {\n rect: string;\n polygon: string;\n lineX: string;\n lineY: string;\n [...]
- },
- {
- "path": "echarts/types/src/i18n/langZH.d.ts",
- "code": "declare const _default: {\n time: {\n month: string[];\n monthAbbr: string[];\n dayOfWeek: string[];\n dayOfWeekAbbr: string[];\n };\n legend: {\n selector: {\n all: string;\n inverse: string;\n };\n };\n toolbox: {\n brush: {\n title: {\n rect: string;\n polygon: string;\n lineX: string;\n lineY: string;\n [...]
- },
- {
- "path": "echarts/types/src/label/labelGuideHelper.d.ts",
- "code": "import { Point, Polyline } from '../util/graphic';\nimport Element from 'zrender/esm/Element';\nimport { LabelLineOption, DisplayState, StatesOptionMixin } from '../util/types';\nimport Model from '../model/Model';\nimport * as vector from 'zrender/esm/core/vector';\nexport declare function updateLabelLinePoints(target: Element, labelLineModel: Model<LabelLineOption>): void;\nexport declare function limitTurnAngle(linePoints: number[][], minTurnAngle: number): void;\nexport [...]
- },
- {
- "path": "echarts/types/src/label/labelLayoutHelper.d.ts",
- "code": "import ZRText from 'zrender/esm/graphic/Text';\nimport { LabelLayoutOption } from '../util/types';\nimport { BoundingRect, OrientedBoundingRect, Polyline } from '../util/graphic';\ninterface LabelLayoutListPrepareInput {\n label: ZRText;\n labelLine: Polyline;\n computedLayoutOption: LabelLayoutOption;\n priority: number;\n defaultAttr: {\n ignore: boolean;\n labelGuideIgnore: boolean;\n };\n}\nexport interface LabelLayoutInfo {\n label: ZR [...]
- },
- {
- "path": "echarts/types/src/label/LabelManager.d.ts",
- "code": "import ExtensionAPI from '../ExtensionAPI';\nimport ChartView from '../view/Chart';\ndeclare class LabelManager {\n private _labelList;\n private _chartViewList;\n constructor();\n clearLabels(): void;\n private _addLabel;\n addLabelsOfSeries(chartView: ChartView): void;\n updateLayoutConfig(api: ExtensionAPI): void;\n layout(api: ExtensionAPI): void;\n processLabelsOverall(): void;\n private _updateLabelLine;\n private _animateLabels;\n}\nex [...]
- },
- {
- "path": "echarts/types/src/label/labelStyle.d.ts",
- "code": "import ZRText, { TextStyleProps } from 'zrender/esm/graphic/Text';\nimport Element, { ElementTextConfig } from 'zrender/esm/Element';\nimport Model from '../model/Model';\nimport { LabelOption, DisplayState, TextCommonOption, ParsedValue, CallbackDataParams, StatesOptionMixin, DisplayStateNonNormal, ColorString, ZRStyleProps } from '../util/types';\nimport GlobalModel from '../model/Global';\ndeclare type TextCommonParams = {\n disableBox?: boolean;\n inheritColor?: Co [...]
- },
- {
- "path": "echarts/types/src/layout/barGrid.d.ts",
- "code": "import BarSeriesModel from '../chart/bar/BarSeries';\nimport Axis2D from '../coord/cartesian/Axis2D';\nimport GlobalModel from '../model/Global';\nimport { StageHandler, Dictionary } from '../util/types';\ndeclare type BarWidthAndOffset = Dictionary<Dictionary<{\n bandWidth: number;\n offset: number;\n offsetCenter: number;\n width: number;\n}>>;\ninterface LayoutOption {\n axis: Axis2D;\n count: number;\n barWidth?: number;\n barMaxWidth?: number;\n [...]
- },
- {
- "path": "echarts/types/src/layout/barPolar.d.ts",
- "code": "import GlobalModel from '../model/Global';\nimport ExtensionAPI from '../ExtensionAPI';\ndeclare function barLayoutPolar(seriesType: string, ecModel: GlobalModel, api: ExtensionAPI): void;\nexport default barLayoutPolar;\n"
- },
- {
- "path": "echarts/types/src/layout/points.d.ts",
- "code": "import { StageHandler } from '../util/types';\nexport default function (seriesType?: string): StageHandler;\n"
- },
- {
- "path": "echarts/types/src/legacy/dataSelectAction.d.ts",
- "code": "import Eventful from 'zrender/esm/core/Eventful';\nimport { EChartsType, registerAction } from '../echarts';\nexport declare function createLegacyDataSelectAction(seriesType: string, ecRegisterAction: typeof registerAction): void;\nexport declare function handleLegacySelectEvents(messageCenter: Eventful, ecIns: EChartsType): void;\n"
- },
- {
- "path": "echarts/types/src/legacy/getTextRect.d.ts",
- "code": "import { Text } from '../util/graphic';\ndeclare type TextStyleProps = Text['style'];\nexport declare function getTextRect(text: TextStyleProps['text'], font?: TextStyleProps['font'], align?: TextStyleProps['align'], verticalAlign?: TextStyleProps['verticalAlign'], padding?: TextStyleProps['padding'], rich?: TextStyleProps['rich'], truncate?: boolean, lineHeight?: number): import(\"zrender/esm/core/BoundingRect\").default;\nexport {};\n"
- },
- {
- "path": "echarts/types/src/loading/default.d.ts",
- "code": "import { LoadingEffect } from '../util/types';\nimport ExtensionAPI from '../ExtensionAPI';\nexport default function (api: ExtensionAPI, 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}): LoadingEffect;\n"
- },
- {
- "path": "echarts/types/src/locale.d.ts",
- "code": "import Model from './model/Model';\nimport langEN from './i18n/langEN';\nexport declare type LocaleOption = typeof langEN;\nexport declare const SYSTEM_LANG: string;\nexport declare function registerLocale(locale: string, localeObj: LocaleOption): void;\nexport declare function createLocaleObject(locale: string | LocaleOption): LocaleOption;\nexport declare function getLocaleModel(lang: string): Model<LocaleOption>;\nexport declare function getDefaultLocaleModel(): Model<Loc [...]
- },
- {
- "path": "echarts/types/src/model/Component.d.ts",
- "code": "import Model from './Model';\nimport * as componentUtil from '../util/component';\nimport { ExtendableConstructor, ClassManager } from '../util/clazz';\nimport { QueryReferringOpt } from '../util/model';\nimport GlobalModel from './Global';\nimport { ComponentOption, ComponentMainType, ComponentSubType, ComponentFullType, ComponentLayoutMode } from '../util/types';\ndeclare class ComponentModel<Opt extends ComponentOption = ComponentOption> extends Model<Opt> {\n type: Co [...]
- },
- {
- "path": "echarts/types/src/model/Global.d.ts",
- "code": "import { HashMap } from 'zrender/esm/core/util';\nimport Model from './Model';\nimport ComponentModel from './Component';\nimport { ColorPaletteMixin } from './mixin/colorPalette';\nimport SeriesModel from './Series';\nimport { Payload, OptionPreprocessor, ECOption, ECUnitOption, ComponentMainType, ComponentSubType } from '../util/types';\nimport OptionManager from './OptionManager';\nimport Scheduler from '../stream/Scheduler';\nimport { LocaleOption } from '../locale';\nex [...]
- },
- {
- "path": "echarts/types/src/model/globalDefault.d.ts",
- "code": "declare const _default: {\n darkMode: string;\n color: string[];\n gradientColor: string[];\n textStyle: {\n fontFamily: string;\n fontSize: number;\n fontStyle: string;\n fontWeight: string;\n };\n blendMode: any;\n stateAnimation: {\n duration: number;\n easing: string;\n };\n animation: string;\n animationDuration: number;\n animationDurationUpdate: number;\n animationEasing: string;\n animat [...]
- },
- {
- "path": "echarts/types/src/model/internalComponentCreator.d.ts",
- "code": "import GlobalModel from './Global';\nimport { ComponentOption, ComponentMainType } from '../util/types';\ninterface InternalOptionCreator {\n (ecModel: GlobalModel): ComponentOption[];\n}\nexport declare function registerInternalOptionCreator(mainType: ComponentMainType, creator: InternalOptionCreator): void;\nexport declare function concatInternalOptions(ecModel: GlobalModel, mainType: ComponentMainType, newCmptOptionList: ComponentOption[]): ComponentOption[];\nexport {};\n"
- },
- {
- "path": "echarts/types/src/model/mixin/areaStyle.d.ts",
- "code": "import Model from '../Model';\nimport { AreaStyleOption } from '../../util/types';\nimport { PathStyleProps } from 'zrender/esm/graphic/Path';\nexport declare const AREA_STYLE_KEY_MAP: string[][];\ndeclare type AreaStyleProps = Pick<PathStyleProps, 'fill' | 'shadowBlur' | 'shadowOffsetX' | 'shadowOffsetY' | 'opacity' | 'shadowColor'>;\ndeclare class AreaStyleMixin {\n getAreaStyle(this: Model, excludes?: readonly (keyof AreaStyleOption)[], includes?: readonly (keyof AreaS [...]
- },
- {
- "path": "echarts/types/src/model/mixin/colorPalette.d.ts",
- "code": "import Model from '../Model';\nimport { ZRColor, ColorPaletteOptionMixin } from '../../util/types';\ninterface ColorPaletteMixin<T extends ColorPaletteOptionMixin = ColorPaletteOptionMixin> extends Pick<Model<T>, 'get'> {\n}\ndeclare class ColorPaletteMixin<T extends ColorPaletteOptionMixin = ColorPaletteOptionMixin> {\n clearColorPalette(this: ColorPaletteMixin): void;\n getColorFromPalette(this: ColorPaletteMixin, name: string, scope?: any, requestColorNum?: number): [...]
- },
- {
- "path": "echarts/types/src/model/mixin/dataFormat.d.ts",
- "code": "import { DataHost, DisplayState, TooltipRenderMode, CallbackDataParams, OptionDataValue, SeriesDataType, TooltipOrderMode } from '../../util/types';\nimport GlobalModel from '../Global';\ninterface DataFormatMixin extends DataHost {\n ecModel: GlobalModel;\n mainType: string;\n subType: string;\n componentIndex: number;\n id: string;\n name: string;\n animatedValue: OptionDataValue[];\n}\ndeclare class DataFormatMixin {\n getDataParams(dataIndex: numb [...]
- },
- {
- "path": "echarts/types/src/model/mixin/itemStyle.d.ts",
- "code": "import Model from '../Model';\nimport { ItemStyleOption } from '../../util/types';\nimport { PathStyleProps } from 'zrender/esm/graphic/Path';\nexport declare const ITEM_STYLE_KEY_MAP: string[][];\ndeclare type ItemStyleKeys = 'fill' | 'stroke' | 'lineWidth' | 'opacity' | 'shadowBlur' | 'shadowOffsetX' | 'shadowOffsetY' | 'shadowColor';\nexport declare type ItemStyleProps = Pick<PathStyleProps, ItemStyleKeys>;\ndeclare class ItemStyleMixin {\n getItemStyle(this: Model, ex [...]
- },
- {
- "path": "echarts/types/src/model/mixin/lineStyle.d.ts",
- "code": "import Model from '../Model';\nimport { LineStyleOption } from '../../util/types';\nimport { PathStyleProps } from 'zrender/esm/graphic/Path';\nexport declare const LINE_STYLE_KEY_MAP: string[][];\ndeclare type LineStyleKeys = 'lineWidth' | 'stroke' | 'opacity' | 'shadowBlur' | 'shadowOffsetX' | 'shadowOffsetY' | 'shadowColor';\ndeclare type LineStyleProps = Pick<PathStyleProps, LineStyleKeys>;\ndeclare class LineStyleMixin {\n getLineStyle(this: Model, excludes?: readonl [...]
- },
- {
- "path": "echarts/types/src/model/mixin/makeStyleMapper.d.ts",
- "code": "import Model from '../Model';\nimport { PathStyleProps } from 'zrender/esm/graphic/Path';\nexport default function (properties: readonly string[][], ignoreParent?: boolean): (model: Model<any>, excludes?: readonly string[], includes?: readonly string[]) => PathStyleProps;\n"
- },
- {
- "path": "echarts/types/src/model/mixin/textStyle.d.ts",
- "code": "import * as graphicUtil from '../../util/graphic';\nimport Model from '../Model';\nimport { LabelOption, ColorString } from '../../util/types';\nexport declare type LabelFontOption = Pick<LabelOption, 'fontStyle' | 'fontWeight' | 'fontSize' | 'fontFamily'>;\ndeclare type LabelRectRelatedOption = Pick<LabelOption, 'align' | 'verticalAlign' | 'padding' | 'lineHeight' | 'baseline' | 'rich'> & LabelFontOption;\ndeclare class TextStyleMixin {\n getTextColor(this: Model, isEmph [...]
- },
- {
- "path": "echarts/types/src/model/Model.d.ts",
- "code": "import { AreaStyleMixin } from './mixin/areaStyle';\nimport TextStyleMixin from './mixin/textStyle';\nimport { LineStyleMixin } from './mixin/lineStyle';\nimport { ItemStyleMixin } from './mixin/itemStyle';\nimport GlobalModel from './Global';\nimport { ModelOption } from '../util/types';\ndeclare class Model<Opt extends ModelOption = ModelOption> {\n parentModel: Model;\n ecModel: GlobalModel;\n option: Opt;\n constructor(option?: Opt, parentModel?: Model, ecMod [...]
- },
- {
- "path": "echarts/types/src/model/OptionManager.d.ts",
- "code": "import ExtensionAPI from '../ExtensionAPI';\nimport { OptionPreprocessor, ECUnitOption, ECOption } from '../util/types';\nimport GlobalModel, { InnerSetOptionOpts } from './Global';\ndeclare class OptionManager {\n private _api;\n private _timelineOptions;\n private _mediaList;\n private _mediaDefault;\n private _currentMediaIndices;\n private _optionBackup;\n private _newBaseOption;\n constructor(api: ExtensionAPI);\n setOption(rawOption: ECOption [...]
- },
- {
- "path": "echarts/types/src/model/referHelper.d.ts",
- "code": "import { HashMap } from 'zrender/esm/core/util';\nimport SeriesModel from './Series';\nimport { AxisBaseModel } from '../coord/AxisBaseModel';\ndeclare class CoordSysInfo {\n coordSysName: string;\n coordSysDims: string[];\n axisMap: HashMap<AxisBaseModel<import(\"../coord/axisCommonTypes\").AxisBaseOption>, string | number>;\n categoryAxisMap: HashMap<AxisBaseModel<import(\"../coord/axisCommonTypes\").AxisBaseOption>, string | number>;\n firstCategoryDimIndex [...]
- },
- {
- "path": "echarts/types/src/model/Series.d.ts",
- "code": "import { DataHost, DimensionName, SeriesOption, TooltipRenderMode, ZRColor, ScaleDataValue, Dictionary, ColorString, SeriesDataType } from '../util/types';\nimport ComponentModel from './Component';\nimport { ColorPaletteMixin } from './mixin/colorPalette';\nimport DataFormatMixin from '../model/mixin/dataFormat';\nimport Model from '../model/Model';\nimport GlobalModel from './Global';\nimport { CoordinateSystem } from '../coord/CoordinateSystem';\nimport { ExtendableConstr [...]
- },
- {
- "path": "echarts/types/src/option.d.ts",
- "code": "import { GridOption } from './coord/cartesian/GridModel';\nimport { PolarOption } from './coord/polar/PolarModel';\nimport { GeoOption } from './coord/geo/GeoModel';\nimport { RadiusAxisOption, AngleAxisOption } from './coord/polar/AxisModel';\nimport { CartesianAxisOption } from './coord/cartesian/AxisModel';\nimport { SingleAxisOption } from './coord/single/AxisModel';\nimport { ParallelAxisOption } from './coord/parallel/AxisModel';\nimport { ParallelCoordinateSystemOptio [...]
- },
- {
- "path": "echarts/types/src/preprocessor/backwardCompat.d.ts",
- "code": "import { ECUnitOption } from '../util/types';\nexport default function (option: ECUnitOption, isTheme?: boolean): void;\n"
- },
- {
- "path": "echarts/types/src/preprocessor/helper/compatStyle.d.ts",
- "code": "export default function (option: any, isTheme?: boolean): void;\n"
- },
- {
- "path": "echarts/types/src/processor/dataFilter.d.ts",
- "code": "import { StageHandler } from '../util/types';\nexport default function (seriesType: string): StageHandler;\n"
- },
- {
- "path": "echarts/types/src/processor/dataSample.d.ts",
- "code": "import { StageHandler } from '../util/types';\nexport default function (seriesType: string): StageHandler;\n"
- },
- {
- "path": "echarts/types/src/processor/dataStack.d.ts",
- "code": "import GlobalModel from '../model/Global';\nexport default function (ecModel: GlobalModel): void;\n"
- },
- {
- "path": "echarts/types/src/scale/helper.d.ts",
- "code": "declare type intervalScaleNiceTicksResult = {\n interval: number;\n intervalPrecision: number;\n niceTickExtent: [number, number];\n};\nexport declare function intervalScaleNiceTicks(extent: [number, number], splitNumber: number, minInterval?: number, maxInterval?: number): intervalScaleNiceTicksResult;\nexport declare function getIntervalPrecision(interval: number): number;\nexport declare function fixExtent(niceTickExtent: [number, number], extent: [number, number [...]
- },
- {
- "path": "echarts/types/src/scale/Interval.d.ts",
- "code": "import Scale from './Scale';\nimport { ScaleTick } from '../util/types';\ndeclare class IntervalScale extends Scale {\n static type: string;\n type: string;\n protected _interval: number;\n protected _niceExtent: [number, number];\n private _intervalPrecision;\n parse(val: number): number;\n contain(val: number): boolean;\n normalize(val: number): number;\n scale(val: number): number;\n setExtent(start: number | string, end: number | string): vo [...]
- },
- {
- "path": "echarts/types/src/scale/Log.d.ts",
- "code": "import Scale from './Scale';\nimport IntervalScale from './Interval';\nimport List from '../data/List';\nimport { DimensionName, ScaleTick } from '../util/types';\ndeclare class LogScale extends Scale {\n static type: string;\n readonly type = \"log\";\n base: number;\n private _originalScale;\n private _fixMin;\n private _fixMax;\n private _interval;\n private _niceExtent;\n getTicks(expandToNicedExtent: boolean): ScaleTick[];\n setExtent(start [...]
- },
- {
- "path": "echarts/types/src/scale/Ordinal.d.ts",
- "code": "import Scale from './Scale';\nimport OrdinalMeta from '../data/OrdinalMeta';\nimport List from '../data/List';\nimport { OrdinalRawValue, OrdinalNumber, DimensionLoose, OrdinalSortInfo, OrdinalScaleTick, ScaleTick } from '../util/types';\nimport { AxisBaseOption } from '../coord/axisCommonTypes';\ndeclare class OrdinalScale extends Scale {\n static type: string;\n readonly type = \"ordinal\";\n private _ordinalMeta;\n private _categorySortInfo;\n constructor(s [...]
- },
- {
- "path": "echarts/types/src/scale/Scale.d.ts",
- "code": "import * as clazzUtil from '../util/clazz';\nimport { Dictionary } from 'zrender/esm/core/types';\nimport List from '../data/List';\nimport { DimensionName, ScaleDataValue, OptionDataValue, DimensionLoose, ScaleTick } from '../util/types';\nimport { ScaleRawExtentInfo } from '../coord/scaleRawExtentInfo';\ndeclare abstract class Scale {\n type: string;\n private _setting;\n protected _extent: [number, number];\n private _isBlank;\n readonly rawExtentInfo: Scal [...]
- },
- {
- "path": "echarts/types/src/scale/Time.d.ts",
- "code": "import { TimeUnit } from '../util/time';\nimport IntervalScale from './Interval';\nimport { TimeScaleTick } from '../util/types';\nimport { TimeAxisLabelFormatterOption } from '../coord/axisCommonTypes';\nimport { LocaleOption } from '../locale';\nimport Model from '../model/Model';\ninterface TimeScale {\n constructor(settings?: {\n locale: Model<LocaleOption>;\n useUTC: boolean;\n }): void;\n}\ndeclare class TimeScale extends IntervalScale {\n static [...]
- },
- {
- "path": "echarts/types/src/stream/Scheduler.d.ts",
- "code": "import { HashMap } from 'zrender/esm/core/util';\nimport { Task, TaskContext } from './task';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from '../ExtensionAPI';\nimport { StageHandlerInternal, StageHandlerOverallReset, StageHandler, Payload, StageHandlerReset, StageHandlerPlan, StageHandlerProgressExecutor, SeriesLargeOptionMixin, SeriesOption } from '../util/types';\nimport { EChartsType } from '../echarts';\nimport SeriesModel from '../model/Series';\ [...]
- },
- {
- "path": "echarts/types/src/stream/task.d.ts",
- "code": "import SeriesModel from '../model/Series';\nimport { Pipeline } from './Scheduler';\nimport { Payload } from '../util/types';\nimport List from '../data/List';\nexport interface TaskContext {\n outputData?: List;\n data?: List;\n payload?: Payload;\n model?: SeriesModel;\n}\nexport declare type TaskResetCallback<Ctx extends TaskContext> = (this: Task<Ctx>, context: Ctx) => TaskResetCallbackReturn<Ctx>;\nexport declare type TaskResetCallbackReturn<Ctx extends Task [...]
- },
- {
- "path": "echarts/types/src/theme/dark.d.ts",
- "code": "declare const theme: {\n darkMode: boolean;\n color: string[];\n backgroundColor: string;\n axisPointer: {\n lineStyle: {\n color: string;\n };\n crossStyle: {\n color: string;\n };\n label: {\n color: string;\n };\n };\n legend: {\n textStyle: {\n color: string;\n };\n };\n textStyle: {\n color: string;\n };\n title: {\n textStyle: [...]
- },
- {
- "path": "echarts/types/src/theme/light.d.ts",
- "code": "declare const _default: {\n color: string[];\n colorLayer: string[][];\n};\nexport default _default;\n"
- },
- {
- "path": "echarts/types/src/util/animation.d.ts",
- "code": "import Element, { ElementProps } from 'zrender/esm/Element';\nexport declare function createWrap(): {\n add: (el: Element<ElementProps>, target: ElementProps, time?: number, delay?: number | \"linear\" | ((percent: number) => number) | \"quadraticIn\" | \"quadraticOut\" | \"quadraticInOut\" | \"cubicIn\" | \"cubicOut\" | \"cubicInOut\" | \"quarticIn\" | \"quarticOut\" | \"quarticInOut\" | \"quinticIn\" | \"quinticOut\" | \"quinticInOut\" | \"sinusoidalIn\" | \"sinusoidalO [...]
- },
- {
- "path": "echarts/types/src/util/clazz.d.ts",
- "code": "import { ComponentFullType, ComponentTypeInfo, ComponentMainType, ComponentSubType } from './types';\ndeclare const IS_EXTENDED_CLASS: \"___EC__EXTENDED_CLASS___\";\nexport declare function parseClassType(componentType: ComponentFullType): ComponentTypeInfo;\nexport declare function isExtendedClass(clz: any): boolean;\nexport interface ExtendableConstructor {\n new (...args: any): any;\n $constructor?: new (...args: any) => any;\n extend: (proto: {\n [name: s [...]
- },
- {
- "path": "echarts/types/src/util/component.d.ts",
- "code": "import { ClassManager } from './clazz';\nimport { ComponentOption, ComponentMainType, ComponentSubType } from './types';\nexport declare function getUID(type: string): string;\nexport interface SubTypeDefaulter {\n (option: ComponentOption): ComponentSubType;\n}\nexport interface SubTypeDefaulterManager {\n registerSubTypeDefaulter: (componentType: string, defaulter: SubTypeDefaulter) => void;\n determineSubType: (componentType: string, option: ComponentOption) => s [...]
- },
- {
- "path": "echarts/types/src/util/conditionalExpression.d.ts",
- "code": "import { OptionDataValue, DimensionLoose, Dictionary } from './types';\nimport { HashMap } from 'zrender/esm/core/util';\nimport { RawValueParserType, RelationalOperator } from '../data/helper/dataValueHelper';\ninterface RelationalExpressionOptionByOp extends Record<RelationalOperator, OptionDataValue> {\n reg?: RegExp | string;\n}\ndeclare const RELATIONAL_EXPRESSION_OP_ALIAS_MAP: {\n readonly value: \"eq\";\n readonly '<': \"lt\";\n readonly '<=': \"lte\";\n [...]
- },
- {
- "path": "echarts/types/src/util/ecData.d.ts",
- "code": "import Element from 'zrender/esm/Element';\nimport { DataModel, ECEventData, BlurScope, InnerFocus, SeriesDataType } from './types';\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}\nexport declare const getECData: (hostObj: Element<import(\"zrender/esm/Element\").ElementProps>) => ECData;\n"
- },
- {
- "path": "echarts/types/src/util/ECEventProcessor.d.ts",
- "code": "import { EventProcessor, EventQuery } from 'zrender/esm/core/Eventful';\nimport { ECEvent, NormalizedEventQuery } from './types';\nimport ComponentModel from '../model/Component';\nimport ComponentView from '../view/Component';\nimport ChartView from '../view/Chart';\nimport Element from 'zrender/esm/Element';\nexport declare class ECEventProcessor implements EventProcessor {\n eventInfo: {\n targetEl: Element;\n packedEvent: ECEvent;\n model: Compone [...]
- },
- {
- "path": "echarts/types/src/util/format.d.ts",
- "code": "import * as zrUtil from 'zrender/esm/core/util';\nimport { TooltipRenderMode, ColorString } from './types';\nimport { Dictionary } from 'zrender/esm/core/types';\nexport declare function addCommas(x: string | number): string;\nexport declare function toCamelCase(str: string, upperCaseFirst?: boolean): string;\nexport declare const normalizeCssArray: typeof zrUtil.normalizeCssArray;\nexport declare function encodeHTML(source: string): string;\nexport declare function concatTo [...]
- },
- {
- "path": "echarts/types/src/util/graphic.d.ts",
- "code": "import * as pathTool from 'zrender/esm/tool/path';\nimport * as matrix from 'zrender/esm/core/matrix';\nimport * as vector from 'zrender/esm/core/vector';\nimport Path from 'zrender/esm/graphic/Path';\nimport Transformable from 'zrender/esm/core/Transformable';\nimport ZRImage from 'zrender/esm/graphic/Image';\nimport Group from 'zrender/esm/graphic/Group';\nimport ZRText from 'zrender/esm/graphic/Text';\nimport Circle from 'zrender/esm/graphic/shape/Circle';\nimport Ellipse [...]
- },
- {
- "path": "echarts/types/src/util/KDTree.d.ts",
- "code": "import { VectorArray } from 'zrender/esm/core/vector';\ndeclare type KDTreePoint = {\n array: VectorArray;\n};\ndeclare class KDTreeNode<T> {\n left: KDTreeNode<T>;\n right: KDTreeNode<T>;\n axis: number;\n data: T;\n constructor(axis: number, data: T);\n}\ndeclare class KDTree<T extends KDTreePoint> {\n dimension: number;\n root: KDTreeNode<T>;\n private _stack;\n private _nearstNList;\n constructor(points: T[], dimension?: number);\n pri [...]
- },
- {
- "path": "echarts/types/src/util/layout.d.ts",
- "code": "import BoundingRect from 'zrender/esm/core/BoundingRect';\nimport { BoxLayoutOptionMixin, ComponentLayoutMode } from './types';\nimport { Group } from 'zrender/esm/export';\nimport Element from 'zrender/esm/Element';\nexport interface LayoutRect extends BoundingRect {\n margin: number[];\n}\nexport interface NewlineElement extends Element {\n newline: boolean;\n}\nexport declare const LOCATION_PARAMS: readonly [\"left\", \"right\", \"top\", \"bottom\", \"width\", \"hei [...]
- },
- {
- "path": "echarts/types/src/util/log.d.ts",
- "code": "export declare function log(str: string): void;\nexport declare function warn(str: string): void;\nexport declare function deprecateLog(str: string): void;\nexport declare function deprecateReplaceLog(oldOpt: string, newOpt: string, scope?: string): void;\nexport declare function consoleLog(...args: unknown[]): void;\nexport declare function makePrintable(...hintInfo: unknown[]): string;\nexport declare function throwError(msg?: string): void;\n"
- },
- {
- "path": "echarts/types/src/util/model.d.ts",
- "code": "import { HashMap } from 'zrender/esm/core/util';\nimport GlobalModel from '../model/Global';\nimport ComponentModel, { ComponentModelConstructor } from '../model/Component';\nimport List from '../data/List';\nimport { ComponentOption, ComponentMainType, ComponentSubType, DisplayStateHostOption, OptionDataItem, OptionDataValue, TooltipRenderMode, Payload } from './types';\nimport SeriesModel from '../model/Series';\nimport CartesianAxisModel from '../coord/cartesian/AxisModel [...]
- },
- {
- "path": "echarts/types/src/util/number.d.ts",
- "code": "export declare function linearMap(val: number, domain: number[], range: number[], clamp?: boolean): number;\nexport declare function parsePercent(percent: number | string, all: number): number;\nexport declare function round(x: number | string, precision?: number): number;\nexport declare function round(x: number | string, precision: number, returnStr: false): number;\nexport declare function round(x: number | string, precision: number, returnStr: true): string;\nexport decl [...]
- },
- {
- "path": "echarts/types/src/util/quickSelect.d.ts",
- "code": "declare type CompareFunc<T> = (a: T, b: T) => number;\ndeclare function quickSelect<T>(arr: T[], nth: number, compareFunc: CompareFunc<T>): number;\ndeclare function quickSelect<T>(arr: T[], nth: number, left: number, right: number, compareFunc: CompareFunc<T>): number;\nexport default quickSelect;\n"
- },
- {
- "path": "echarts/types/src/util/shape/sausage.d.ts",
- "code": "import { Path } from '../graphic';\nimport { PathProps } from 'zrender/esm/graphic/Path';\ndeclare class SausageShape {\n cx: number;\n cy: number;\n r0: number;\n r: number;\n startAngle: number;\n endAngle: number;\n clockwise: boolean;\n}\ninterface SausagePathProps extends PathProps {\n shape?: SausageShape;\n}\ndeclare class SausagePath extends Path<SausagePathProps> {\n type: string;\n constructor(opts?: SausagePathProps);\n getDefaultS [...]
- },
- {
- "path": "echarts/types/src/util/states.d.ts",
- "code": "import Displayable from 'zrender/esm/graphic/Displayable';\nimport Element, { ElementEvent } from 'zrender/esm/Element';\nimport Model from '../model/Model';\nimport { SeriesDataType, DisplayState, ECElement, BlurScope, InnerFocus, Payload, HighlightPayload, DownplayPayload } from './types';\nimport { EChartsType } from '../echarts';\nimport SeriesModel from '../model/Series';\nimport Path from 'zrender/esm/graphic/Path';\nimport GlobalModel from '../model/Global';\nexport d [...]
- },
- {
- "path": "echarts/types/src/util/styleCompat.d.ts",
- "code": "import { ZRStyleProps } from './types';\nimport { ElementTextConfig } from 'zrender/esm/Element';\nimport { TextStyleProps, TextProps } from 'zrender/esm/graphic/Text';\nimport { ItemStyleProps } from '../model/mixin/itemStyle';\nexport interface LegacyStyleProps {\n legacy?: boolean;\n}\nexport declare function isEC4CompatibleStyle(style: ZRStyleProps & LegacyStyleProps, elType: string, hasOwnTextContentOption: boolean, hasOwnTextConfig: boolean): boolean;\nexport declar [...]
- },
- {
- "path": "echarts/types/src/util/symbol.d.ts",
- "code": "import * as graphic from './graphic';\nimport { Dictionary } from 'zrender/esm/core/types';\nimport { ZRColor } from './types';\ndeclare type ECSymbol = graphic.Path & {\n __isEmptyBrush?: boolean;\n setColor: (color: ZRColor, innerColor?: string) => void;\n getColor: () => ZRColor;\n};\nexport declare const symbolBuildProxies: Dictionary<ECSymbol>;\nexport declare function createSymbol(symbolType: string, x: number, y: number, w: number, h: number, color?: ZRColor, [...]
- },
- {
- "path": "echarts/types/src/util/throttle.d.ts",
- "code": "declare type ThrottleFunction = (this: unknown, ...args: unknown[]) => void;\nexport declare type ThrottleType = 'fixRate' | 'debounce';\nexport interface ThrottleController {\n clear(): void;\n debounceNextCall(debounceDelay: number): void;\n}\nexport declare function throttle<T extends ThrottleFunction>(fn: T, delay?: number, debounce?: boolean): T & ThrottleController;\nexport declare function createOrUpdate<T, S extends keyof T, P = T[S]>(obj: T, fnAttr: S, rate: n [...]
- },
- {
- "path": "echarts/types/src/util/time.d.ts",
- "code": "import { TimeAxisLabelFormatterOption } from './../coord/axisCommonTypes';\nimport { TimeScaleTick } from './types';\nimport { LocaleOption } from '../locale';\nimport Model from '../model/Model';\nexport declare const ONE_SECOND = 1000;\nexport declare const ONE_MINUTE: number;\nexport declare const ONE_HOUR: number;\nexport declare const ONE_DAY: number;\nexport declare const ONE_YEAR: number;\nexport declare const defaultLeveledFormatter: {\n year: string;\n month: [...]
- },
- {
- "path": "echarts/types/src/util/types.d.ts",
- "code": "import Group from 'zrender/esm/graphic/Group';\nimport Element, { ElementEvent, ElementTextConfig } from 'zrender/esm/Element';\nimport DataFormatMixin from '../model/mixin/dataFormat';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from '../ExtensionAPI';\nimport SeriesModel from '../model/Series';\nimport { HashMap } from 'zrender/esm/core/util';\nimport { TaskPlanCallbackReturn, TaskProgressParams } from '../stream/task';\nimport List, { ListDimensionTyp [...]
- },
- {
- "path": "echarts/types/src/view/Chart.d.ts",
- "code": "import * as clazzUtil from '../util/clazz';\nimport SeriesModel from '../model/Series';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from '../ExtensionAPI';\nimport Element from 'zrender/esm/Element';\nimport { Payload, ViewRootGroup, ECEvent, EventQueryItem, StageHandlerProgressParams } from '../util/types';\nimport { SeriesTask } from '../stream/Scheduler';\ninterface ChartView {\n incrementalPrepareRender(seriesModel: SeriesModel, ecModel: GlobalMod [...]
- },
- {
- "path": "echarts/types/src/view/Component.d.ts",
- "code": "import * as clazzUtil from '../util/clazz';\nimport ComponentModel from '../model/Component';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from '../ExtensionAPI';\nimport { Payload, ViewRootGroup, ECEvent, EventQueryItem } from '../util/types';\nimport Element from 'zrender/esm/Element';\nimport SeriesModel from '../model/Series';\ninterface ComponentView {\n updateTransform?(seriesModel: ComponentModel, ecModel: GlobalModel, api: ExtensionAPI, payload [...]
- },
- {
- "path": "echarts/types/src/visual/aria.d.ts",
- "code": "export default function (dom: any, ecModel: any): void;\n"
- },
- {
- "path": "echarts/types/src/visual/commonVisualTypes.d.ts",
- "code": "import { DefaultDataVisual } from '../data/List';\nexport interface LineDataVisual extends DefaultDataVisual {\n fromSymbol: string;\n toSymbol: string;\n fromSymbolSize: number;\n toSymbolSize: number;\n}\n"
- },
- {
- "path": "echarts/types/src/visual/helper.d.ts",
- "code": "import List from '../data/List';\nexport declare function getItemVisualFromData(data: List, dataIndex: number, key: string): string | number | number[] | import(\"zrender/esm/graphic/Pattern\").PatternObject | import(\"zrender/esm/graphic/LinearGradient\").LinearGradientObject | import(\"zrender/esm/graphic/RadialGradient\").RadialGradientObject;\nexport declare function getVisualFromData(data: List, key: string): string | number | number[] | import(\"zrender/esm/graphic/Pat [...]
- },
- {
- "path": "echarts/types/src/visual/LegendVisualProvider.d.ts",
- "code": "import List from '../data/List';\ndeclare class LegendVisualProvider {\n private _getDataWithEncodedVisual;\n private _getRawData;\n constructor(getDataWithEncodedVisual: () => List, getRawData: () => List);\n getAllNames(): string[];\n containName(name: string): boolean;\n indexOfName(name: string): number;\n getItemVisual(dataIndex: number, key: string): any;\n}\nexport default LegendVisualProvider;\n"
- },
- {
- "path": "echarts/types/src/visual/style.d.ts",
- "code": "import { StageHandler } from '../util/types';\ndeclare const seriesStyleTask: StageHandler;\ndeclare const dataStyleTask: StageHandler;\ndeclare const dataColorPaletteTask: StageHandler;\nexport { seriesStyleTask, dataStyleTask, dataColorPaletteTask };\n"
- },
- {
- "path": "echarts/types/src/visual/symbol.d.ts",
- "code": "import { StageHandler } from '../util/types';\ndeclare const seriesSymbolTask: StageHandler;\ndeclare const dataSymbolTask: StageHandler;\nexport { seriesSymbolTask, dataSymbolTask };\n"
- },
- {
- "path": "echarts/types/src/visual/visualDefault.d.ts",
- "code": "declare const visualDefault: {\n get: (visualType: string, key: \"active\" | \"inactive\", isCategory?: boolean) => string | number | string[] | number[];\n};\nexport default visualDefault;\n"
- },
- {
- "path": "echarts/types/src/visual/VisualMapping.d.ts",
- "code": "import * as zrUtil from 'zrender/esm/core/util';\nimport { AllPropTypes, Dictionary } from 'zrender/esm/core/types';\nimport { ColorString, BuiltinVisualProperty, VisualOptionPiecewise, VisualOptionCategory, VisualOptionLinear, VisualOptionUnit, ParsedValue } from '../util/types';\ndeclare type RawValue = ParsedValue;\ndeclare type VisualValue = AllPropTypes<VisualOptionUnit>;\ndeclare type NormalizedValue = number;\ndeclare type MappingMethod = 'linear' | 'piecewise' | 'cat [...]
- },
- {
- "path": "echarts/types/src/visual/visualSolution.d.ts",
- "code": "import VisualMapping, { VisualMappingOption } from './VisualMapping';\nimport { BuiltinVisualProperty, ParsedValue, DimensionLoose, StageHandlerProgressExecutor } from '../util/types';\nimport List from '../data/List';\ndeclare type VisualMappingCollection<VisualState extends string> = {\n [key in VisualState]?: {\n [key in BuiltinVisualProperty]?: VisualMapping;\n } & {\n __alphaForOpacity?: VisualMapping;\n };\n};\ndeclare type VisualOption = {\n [...]
- },
- {
- "path": "zrender/esm/animation/Animation.d.ts",
- "code": "import Eventful from '../core/Eventful';\nimport Animator from './Animator';\nimport Clip from './Clip';\ninterface Stage {\n update?: () => void;\n}\ndeclare type OnframeCallback = (deltaTime: number) => void;\ninterface AnimationOption {\n stage?: Stage;\n onframe?: OnframeCallback;\n}\nexport default class Animation extends Eventful {\n stage: Stage;\n onframe: OnframeCallback;\n private _clipsHead;\n private _clipsTail;\n private _running;\n pr [...]
- },
- {
- "path": "zrender/esm/animation/Animator.d.ts",
- "code": "import Clip from './Clip';\nimport { ArrayLike, Dictionary } from '../core/types';\nimport { AnimationEasing } from './easing';\nimport Animation from './Animation';\ndeclare type NumberArray = ArrayLike<number>;\ndeclare type InterpolatableType = string | number | NumberArray | NumberArray[];\nexport declare function interpolateNumber(p0: number, p1: number, percent: number): number;\nexport declare function step(p0: any, p1: any, percent: number): any;\nexport declare func [...]
- },
- {
- "path": "zrender/esm/animation/Clip.d.ts",
- "code": "import { AnimationEasing } from './easing';\nimport type Animation from './Animation';\ndeclare type OnframeCallback = (percent: number) => void;\ndeclare type ondestroyCallback = () => void;\ndeclare type onrestartCallback = () => void;\nexport declare type DeferredEventTypes = 'destroy' | 'restart';\nexport interface ClipProps {\n life?: number;\n delay?: number;\n loop?: boolean;\n gap?: number;\n easing?: AnimationEasing;\n onframe?: OnframeCallback;\n [...]
- },
- {
- "path": "zrender/esm/animation/easing.d.ts",
- "code": "declare type easingFunc = (percent: number) => number;\nexport declare type AnimationEasing = keyof typeof easing | easingFunc | 'spline';\ndeclare const easing: {\n linear(k: number): number;\n quadraticIn(k: number): number;\n quadraticOut(k: number): number;\n quadraticInOut(k: number): number;\n cubicIn(k: number): number;\n cubicOut(k: number): number;\n cubicInOut(k: number): number;\n quarticIn(k: number): number;\n quarticOut(k: number): nu [...]
- },
- {
- "path": "zrender/esm/animation/requestAnimationFrame.d.ts",
- "code": "declare type RequestAnimationFrameType = typeof window.requestAnimationFrame;\ndeclare let requestAnimationFrame: RequestAnimationFrameType;\nexport default requestAnimationFrame;\n"
- },
- {
- "path": "zrender/esm/canvas/canvas.d.ts",
- "code": "import './graphic';\n"
- },
- {
- "path": "zrender/esm/canvas/graphic.d.ts",
- "code": "import Displayable from '../graphic/Displayable';\nimport { PatternObject } from '../graphic/Pattern';\nimport Path from '../graphic/Path';\nexport declare function createCanvasPattern(this: void, ctx: CanvasRenderingContext2D, pattern: PatternObject, el: {\n dirty: () => void;\n}): CanvasPattern;\nexport declare type BrushScope = {\n inHover: boolean;\n viewWidth: number;\n viewHeight: number;\n prevElClipPaths?: Path[];\n prevEl?: Displayable;\n allCli [...]
- },
- {
- "path": "zrender/esm/canvas/helper.d.ts",
- "code": "import { LinearGradientObject } from '../graphic/LinearGradient';\nimport { RadialGradientObject } from '../graphic/RadialGradient';\nimport { GradientObject } from '../graphic/Gradient';\nimport { RectLike } from '../core/BoundingRect';\nexport declare function createLinearGradient(this: void, ctx: CanvasRenderingContext2D, obj: LinearGradientObject, rect: RectLike): CanvasGradient;\nexport declare function createRadialGradient(this: void, ctx: CanvasRenderingContext2D, obj [...]
- },
- {
- "path": "zrender/esm/canvas/Layer.d.ts",
- "code": "import { PatternObject } from '../graphic/Pattern';\nimport CanvasPainter from './Painter';\nimport { GradientObject } from '../graphic/Gradient';\nimport Eventful from '../core/Eventful';\nimport { ElementEventCallback } from '../Element';\nexport interface LayerConfig {\n clearColor?: string | GradientObject | PatternObject;\n motionBlur?: boolean;\n lastFrameAlpha?: number;\n}\nexport default class Layer extends Eventful {\n id: string;\n dom: HTMLCanvasEle [...]
- },
- {
- "path": "zrender/esm/canvas/Painter.d.ts",
- "code": "import Layer, { LayerConfig } from './Layer';\nimport ZRImage from '../graphic/Image';\nimport { Path } from '../export';\nimport Displayable from '../graphic/Displayable';\nimport { GradientObject } from '../graphic/Gradient';\nimport { PatternObject } from '../graphic/Pattern';\nimport Storage from '../Storage';\nimport { PainterBase } from '../PainterBase';\ninterface CanvasPainterOption {\n devicePixelRatio?: number;\n width?: number | string;\n height?: number [...]
- },
- {
- "path": "zrender/esm/config.d.ts",
- "code": "export declare const debugMode = 0;\nexport declare const devicePixelRatio: number;\nexport declare const DARK_MODE_THRESHOLD = 0.4;\nexport declare const DARK_LABEL_COLOR = \"#333\";\nexport declare const LIGHT_LABEL_COLOR = \"#ccc\";\nexport declare const LIGHTER_LABEL_COLOR = \"#eee\";\n"
- },
- {
- "path": "zrender/esm/contain/arc.d.ts",
- "code": "export declare function containStroke(cx: number, cy: number, r: number, startAngle: number, endAngle: number, anticlockwise: boolean, lineWidth: number, x: number, y: number): boolean;\n"
- },
- {
- "path": "zrender/esm/contain/cubic.d.ts",
- "code": "export declare function containStroke(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, lineWidth: number, x: number, y: number): boolean;\n"
- },
- {
- "path": "zrender/esm/contain/line.d.ts",
- "code": "export declare function containStroke(x0: number, y0: number, x1: number, y1: number, lineWidth: number, x: number, y: number): boolean;\n"
- },
- {
- "path": "zrender/esm/contain/path.d.ts",
- "code": "declare type PathData = Float32Array | number[];\nexport declare function contain(pathData: PathData, x: number, y: number): boolean;\nexport declare function containStroke(pathData: PathData, lineWidth: number, x: number, y: number): boolean;\nexport {};\n"
- },
- {
- "path": "zrender/esm/contain/polygon.d.ts",
- "code": "import { VectorArray } from '../core/vector';\nexport declare function contain(points: VectorArray[], x: number, y: number): boolean;\n"
- },
- {
- "path": "zrender/esm/contain/quadratic.d.ts",
- "code": "export declare function containStroke(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, lineWidth: number, x: number, y: number): boolean;\n"
- },
- {
- "path": "zrender/esm/contain/text.d.ts",
- "code": "import BoundingRect, { RectLike } from '../core/BoundingRect';\nimport { PropType, TextAlign, TextVerticalAlign, BuiltinTextPosition } from '../core/types';\nexport declare const DEFAULT_FONT = \"12px sans-serif\";\ndeclare let methods: {\n measureText: (text: string, font?: string) => {\n width: number;\n };\n};\nexport declare function $override(name: keyof typeof methods, fn: PropType<typeof methods, keyof typeof methods>): void;\nexport declare function getW [...]
- },
- {
- "path": "zrender/esm/contain/util.d.ts",
- "code": "export declare function normalizeRadian(angle: number): number;\n"
- },
- {
- "path": "zrender/esm/contain/windingLine.d.ts",
- "code": "export default function windingLine(x0: number, y0: number, x1: number, y1: number, x: number, y: number): number;\n"
- },
- {
- "path": "zrender/esm/core/arrayDiff.d.ts",
- "code": "declare type EqualFunc<T> = (a: T, b: T) => boolean;\ndeclare type DiffComponent = {\n count: number;\n added: boolean;\n removed: boolean;\n indices: number[];\n};\nexport default function <T>(oldArr: T[], newArr: T[], equal?: EqualFunc<T>): DiffComponent[];\nexport {};\n"
- },
- {
- "path": "zrender/esm/core/bbox.d.ts",
- "code": "import * as vec2 from './vector';\nexport declare function fromPoints(points: ArrayLike<number>[], min: vec2.VectorArray, max: vec2.VectorArray): void;\nexport declare function fromLine(x0: number, y0: number, x1: number, y1: number, min: vec2.VectorArray, max: vec2.VectorArray): void;\nexport declare function fromCubic(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, min: vec2.VectorArray, max: vec2.VectorArray): void;\nexport [...]
- },
- {
- "path": "zrender/esm/core/BoundingRect.d.ts",
- "code": "import * as matrix from './matrix';\nimport { PointLike } from './Point';\ndeclare class BoundingRect {\n x: number;\n y: number;\n width: number;\n height: number;\n constructor(x: number, y: number, width: number, height: number);\n union(other: BoundingRect): void;\n applyTransform(m: matrix.MatrixArray): void;\n calculateTransform(b: RectLike): matrix.MatrixArray;\n intersect(b: RectLike, mtv?: PointLike): boolean;\n contain(x: number, y: nu [...]
- },
- {
- "path": "zrender/esm/core/curve.d.ts",
- "code": "import { VectorArray } from './vector';\nexport declare function cubicAt(p0: number, p1: number, p2: number, p3: number, t: number): number;\nexport declare function cubicDerivativeAt(p0: number, p1: number, p2: number, p3: number, t: number): number;\nexport declare function cubicRootAt(p0: number, p1: number, p2: number, p3: number, val: number, roots: number[]): number;\nexport declare function cubicExtrema(p0: number, p1: number, p2: number, p3: number, extrema: number[] [...]
- },
- {
- "path": "zrender/esm/core/dom.d.ts",
- "code": "export declare function transformLocalCoord(out: number[], elFrom: HTMLElement, elTarget: HTMLElement, inX: number, inY: number): boolean;\nexport declare function transformCoordWithViewport(out: number[], el: HTMLElement, inX: number, inY: number, inverse?: boolean): boolean;\nexport declare function isCanvasEl(el: HTMLElement): el is HTMLCanvasElement;\n"
- },
- {
- "path": "zrender/esm/core/env.d.ts",
- "code": "declare class Browser {\n firefox: boolean;\n ie: boolean;\n edge: boolean;\n weChat: boolean;\n version: string | number;\n}\ndeclare class Env {\n browser: Browser;\n node: boolean;\n wxa: boolean;\n worker: boolean;\n canvasSupported: boolean;\n svgSupported: boolean;\n touchEventsSupported: boolean;\n pointerEventsSupported: boolean;\n domSupported: boolean;\n}\ndeclare const env: Env;\nexport default env;\n"
- },
- {
- "path": "zrender/esm/core/event.d.ts",
- "code": "import Eventful from './Eventful';\nimport { ZRRawEvent } from './types';\ndeclare type FirefoxMouseEvent = {\n layerX: number;\n layerY: number;\n};\nexport declare function clientToLocal(el: HTMLElement, e: ZRRawEvent | FirefoxMouseEvent | Touch, out: {\n zrX?: number;\n zrY?: number;\n}, calculate?: boolean): {\n zrX?: number;\n zrY?: number;\n};\nexport declare function getNativeEvent(e: ZRRawEvent): ZRRawEvent;\nexport declare function normalizeEvent(e [...]
- },
- {
- "path": "zrender/esm/core/Eventful.d.ts",
- "code": "export declare type EventCallback<Ctx, Impl, EvtParam = unknown> = (this: CbThis<Ctx, Impl>, eventParam?: EvtParam, ...args: unknown[]) => boolean | void;\nexport declare type EventQuery = string | Object;\ndeclare type CbThis<Ctx, Impl> = unknown extends Ctx ? Impl : Ctx;\ndeclare type DefaultEventDefinition = {\n [eventName: string]: unknown;\n};\nexport interface EventProcessor<EvtDef = DefaultEventDefinition> {\n normalizeQuery?: (query: EventQuery) => EventQuery;\ [...]
- },
- {
- "path": "zrender/esm/core/fourPointsTransform.d.ts",
- "code": "export declare function buildTransformer(src: number[], dest: number[]): (out: number[], srcPointX: number, srcPointY: number) => void;\n"
- },
- {
- "path": "zrender/esm/core/GestureMgr.d.ts",
- "code": "import { ZRRawTouchEvent } from './types';\nimport Displayable from '../graphic/Displayable';\nexport declare class GestureMgr {\n private _track;\n constructor();\n recognize(event: ZRRawTouchEvent, target: Displayable, root: HTMLElement): {\n type: string;\n target: Displayable<import(\"../graphic/Displayable\").DisplayableProps>;\n event: ZRRawTouchEvent;\n };\n clear(): this;\n _doTrack(event: ZRRawTouchEvent, target: Displayable, r [...]
- },
- {
- "path": "zrender/esm/core/LRU.d.ts",
- "code": "export declare class Entry<T> {\n value: T;\n key: string | number;\n next: Entry<T>;\n prev: Entry<T>;\n constructor(val: T);\n}\nexport declare class LinkedList<T> {\n head: Entry<T>;\n tail: Entry<T>;\n private _len;\n insert(val: T): Entry<T>;\n insertEntry(entry: Entry<T>): void;\n remove(entry: Entry<T>): void;\n len(): number;\n clear(): void;\n}\nexport default class LRU<T> {\n private _list;\n private _maxSize;\n priva [...]
- },
- {
- "path": "zrender/esm/core/matrix.d.ts",
- "code": "import { VectorArray } from './vector';\nexport declare type MatrixArray = number[];\nexport declare function create(): MatrixArray;\nexport declare function identity(out: MatrixArray): MatrixArray;\nexport declare function copy(out: MatrixArray, m: MatrixArray): MatrixArray;\nexport declare function mul(out: MatrixArray, m1: MatrixArray, m2: MatrixArray): MatrixArray;\nexport declare function translate(out: MatrixArray, a: MatrixArray, v: VectorArray): MatrixArray;\nexport [...]
- },
- {
- "path": "zrender/esm/core/OrientedBoundingRect.d.ts",
- "code": "import { PointLike } from './Point';\nimport BoundingRect from './BoundingRect';\nimport { MatrixArray } from './matrix';\ndeclare class OrientedBoundingRect {\n private _corners;\n private _axes;\n private _origin;\n constructor(rect?: BoundingRect, transform?: MatrixArray);\n fromBoundingRect(rect: BoundingRect, transform?: MatrixArray): void;\n intersect(other: OrientedBoundingRect, mtv?: PointLike): boolean;\n private _intersectCheckOneSide;\n pri [...]
- },
- {
- "path": "zrender/esm/core/PathProxy.d.ts",
- "code": "import BoundingRect from './BoundingRect';\ninterface ExtendedCanvasRenderingContext2D extends CanvasRenderingContext2D {\n dpr?: number;\n}\nexport default class PathProxy {\n dpr: number;\n data: number[] | Float32Array;\n private _saveData;\n private _ctx;\n private _xi;\n private _yi;\n private _x0;\n private _y0;\n private _len;\n private _pathSegLen;\n private _pathLen;\n private _ux;\n private _uy;\n private _lineDash;\n [...]
- },
- {
- "path": "zrender/esm/core/Point.d.ts",
- "code": "import { MatrixArray } from \"./matrix\";\nexport interface PointLike {\n x: number;\n y: number;\n}\nexport default class Point {\n x: number;\n y: number;\n constructor(x?: number, y?: number);\n copy(other: PointLike): this;\n clone(): Point;\n set(x: number, y: number): this;\n equal(other: PointLike): boolean;\n add(other: PointLike): this;\n scale(scalar: number): void;\n scaleAndAdd(other: PointLike, scalar: number): void;\n sub( [...]
- },
- {
- "path": "zrender/esm/core/timsort.d.ts",
- "code": "declare type CompareFunc<T> = (a: T, b: T) => number;\nexport default function sort<T>(array: T[], compare: CompareFunc<T>, lo?: number, hi?: number): void;\nexport {};\n"
- },
- {
- "path": "zrender/esm/core/Transformable.d.ts",
- "code": "import * as matrix from './matrix';\nimport * as vector from './vector';\ndeclare class Transformable {\n parent: Transformable;\n x: number;\n y: number;\n scaleX: number;\n scaleY: number;\n rotation: number;\n originX: number;\n originY: number;\n globalScaleRatio: number;\n transform: matrix.MatrixArray;\n invTransform: matrix.MatrixArray;\n setPosition(arr: number[]): void;\n setScale(arr: number[]): void;\n setOrigin(arr: numbe [...]
- },
- {
- "path": "zrender/esm/core/types.d.ts",
- "code": "export declare type Dictionary<T> = {\n [key: string]: T;\n};\nexport declare type ArrayLike<T> = {\n [key: number]: T;\n length: number;\n};\nexport declare type ImageLike = HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;\nexport declare type TextVerticalAlign = 'top' | 'middle' | 'bottom';\nexport declare type TextAlign = 'left' | 'center' | 'right';\nexport declare type BuiltinTextPosition = 'left' | 'right' | 'top' | 'bottom' | 'inside' | 'insideLeft' | [...]
- },
- {
- "path": "zrender/esm/core/util.d.ts",
- "code": "import { Dictionary, ArrayLike, KeyOfDistributive } from './types';\nimport { GradientObject } from '../graphic/Gradient';\nimport { PatternObject } from '../graphic/Pattern';\ndeclare const nativeSlice: (start?: number, end?: number) => any[];\nexport declare function $override(name: string, fn: Function): void;\nexport declare function guid(): number;\nexport declare function logError(...args: string[]): void;\nexport declare function clone<T extends any>(source: T): T;\ne [...]
- },
- {
- "path": "zrender/esm/core/vector.d.ts",
- "code": "import { MatrixArray } from './matrix';\nexport declare type VectorArray = number[];\nexport declare function create(x?: number, y?: number): VectorArray;\nexport declare function copy<T extends VectorArray>(out: T, v: VectorArray): T;\nexport declare function clone(v: VectorArray): VectorArray;\nexport declare function set<T extends VectorArray>(out: T, a: number, b: number): T;\nexport declare function add<T extends VectorArray>(out: T, v1: VectorArray, v2: VectorArray): T [...]
- },
- {
- "path": "zrender/esm/dom/HandlerProxy.d.ts",
- "code": "import Eventful from '../core/Eventful';\nimport { VectorArray } from '../core/vector';\nimport Handler from '../Handler';\nexport default class HandlerDomProxy extends Eventful {\n dom: HTMLElement;\n painterRoot: HTMLElement;\n handler: Handler;\n private _localHandlerScope;\n private _globalHandlerScope;\n __lastTouchMoment: Date;\n __pointerCapturing: boolean;\n __mayPointerCapture: VectorArray;\n constructor(dom: HTMLElement, painterRoot: HTML [...]
- },
- {
- "path": "zrender/esm/Element.d.ts",
- "code": "import Transformable from './core/Transformable';\nimport { AnimationEasing } from './animation/easing';\nimport Animator from './animation/Animator';\nimport { ZRenderType } from './zrender';\nimport { Dictionary, ElementEventName, ZRRawEvent, BuiltinTextPosition, MapToType } from './core/types';\nimport Path from './graphic/Path';\nimport BoundingRect, { RectLike } from './core/BoundingRect';\nimport Eventful, { EventQuery, EventCallback } from './core/Eventful';\nimport Z [...]
- },
- {
- "path": "zrender/esm/export.d.ts",
- "code": "import * as zrUtil from './core/util';\nimport * as matrix from './core/matrix';\nimport * as vector from './core/vector';\nimport * as colorTool from './tool/color';\nimport * as pathTool from './tool/path';\nimport { parseSVG } from './tool/parseSVG';\nexport { default as Point } from './core/Point';\nexport { default as Element } from './Element';\nexport { default as Group } from './graphic/Group';\nexport { default as Path } from './graphic/Path';\nexport { default as I [...]
- },
- {
- "path": "zrender/esm/graphic/CompoundPath.d.ts",
- "code": "import Path from './Path';\ninterface CompoundPathShape {\n paths: Path[];\n}\nexport default class CompoundPath extends Path {\n type: string;\n shape: CompoundPathShape;\n private _updatePathDirty;\n beforeBrush(): void;\n buildPath(ctx: CanvasRenderingContext2D, shape: CompoundPathShape): void;\n afterBrush(): void;\n getBoundingRect(): import(\"../core/BoundingRect\").default;\n}\nexport {};\n"
- },
- {
- "path": "zrender/esm/graphic/Displayable.d.ts",
- "code": "import Element, { ElementProps, ElementStatePropNames, ElementAnimateConfig, ElementCommonState } from '../Element';\nimport BoundingRect from '../core/BoundingRect';\nimport { PropType, Dictionary, MapToType } from '../core/types';\nimport Path from './Path';\nimport Animator from '../animation/Animator';\nexport interface CommonStyleProps {\n shadowBlur?: number;\n shadowOffsetX?: number;\n shadowOffsetY?: number;\n shadowColor?: string;\n opacity?: number;\ [...]
- },
- {
- "path": "zrender/esm/graphic/Gradient.d.ts",
- "code": "export interface GradientObject {\n id?: number;\n type: string;\n colorStops: GradientColorStop[];\n __canvasGradient: CanvasGradient;\n}\nexport interface GradientColorStop {\n offset: number;\n color: string;\n}\nexport default class Gradient {\n id?: number;\n type: string;\n colorStops: GradientColorStop[];\n __canvasGradient: CanvasGradient;\n constructor(colorStops: GradientColorStop[]);\n addColorStop(offset: number, color: string) [...]
- },
- {
- "path": "zrender/esm/graphic/Group.d.ts",
- "code": "import Element, { ElementProps } from '../Element';\nimport BoundingRect from '../core/BoundingRect';\nimport { ZRenderType } from '../zrender';\nexport interface GroupProps extends ElementProps {\n}\ndeclare class Group extends Element<GroupProps> {\n readonly isGroup = true;\n private _children;\n constructor(opts?: GroupProps);\n childrenRef(): Element<ElementProps>[];\n children(): Element<ElementProps>[];\n childAt(idx: number): Element;\n childOfNa [...]
- },
- {
- "path": "zrender/esm/graphic/helper/image.d.ts",
- "code": "import { ImageLike } from '../../core/types';\nexport declare function findExistImage(newImageOrSrc: string | ImageLike): ImageLike;\nexport declare function createOrUpdateImage<T>(newImageOrSrc: string | ImageLike, image: ImageLike, hostEl: {\n dirty: () => void;\n}, cb?: (image: ImageLike, payload: T) => void, cbPayload?: T): ImageLike;\nexport declare function isImageReady(image: ImageLike): number;\n"
- },
- {
- "path": "zrender/esm/graphic/helper/parseText.d.ts",
- "code": "import { TextAlign, TextVerticalAlign } from '../../core/types';\nimport { TextStyleProps } from '../Text';\ninterface InnerTruncateOption {\n maxIteration?: number;\n minChar?: number;\n placeholder?: string;\n maxIterations?: number;\n}\nexport declare function truncateText(text: string, containerWidth: number, font: string, ellipsis: string, options: InnerTruncateOption): string;\nexport interface PlainTextContentBlock {\n lineHeight: number;\n contentHe [...]
- },
- {
- "path": "zrender/esm/graphic/helper/poly.d.ts",
- "code": "import { VectorArray } from '../../core/vector';\nimport PathProxy from '../../core/PathProxy';\nexport declare function buildPath(ctx: CanvasRenderingContext2D | PathProxy, shape: {\n points: VectorArray[];\n smooth?: number | 'spline';\n smoothConstraint?: VectorArray[];\n}, closePath: boolean): void;\n"
- },
- {
- "path": "zrender/esm/graphic/helper/roundRect.d.ts",
- "code": "import PathProxy from '../../core/PathProxy';\nexport declare function buildPath(ctx: CanvasRenderingContext2D | PathProxy, shape: {\n x: number;\n y: number;\n width: number;\n height: number;\n r?: number | number[];\n}): void;\n"
- },
- {
- "path": "zrender/esm/graphic/helper/smoothBezier.d.ts",
- "code": "import { VectorArray } from '../../core/vector';\nexport default function (points: VectorArray[], smooth?: number, isLoop?: boolean, constraint?: VectorArray[]): any[][];\n"
- },
- {
- "path": "zrender/esm/graphic/helper/smoothSpline.d.ts",
- "code": "import { VectorArray } from '../../core/vector';\nexport default function (points: VectorArray[], isLoop?: boolean): VectorArray[];\n"
- },
- {
- "path": "zrender/esm/graphic/helper/subPixelOptimize.d.ts",
- "code": "import { PathStyleProps } from '../Path';\ndeclare type LineShape = {\n x1: number;\n y1: number;\n x2: number;\n y2: number;\n};\ndeclare type RectShape = {\n x: number;\n y: number;\n width: number;\n height: number;\n r?: number | number[];\n};\nexport declare function subPixelOptimizeLine(outputShape: Partial<LineShape>, inputShape: LineShape, style: Pick<PathStyleProps, 'lineWidth'>): LineShape;\nexport declare function subPixelOptimizeRect(ou [...]
- },
- {
- "path": "zrender/esm/graphic/Image.d.ts",
- "code": "import Displayable, { DisplayableProps, CommonStyleProps, DisplayableStatePropNames } from './Displayable';\nimport BoundingRect from '../core/BoundingRect';\nimport { ImageLike, MapToType } from '../core/types';\nimport { ElementCommonState } from '../Element';\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 sWid [...]
- },
- {
- "path": "zrender/esm/graphic/IncrementalDisplayable.d.ts",
- "code": "import Displayble from './Displayable';\nimport BoundingRect from '../core/BoundingRect';\nexport default class IncrementalDisplayble extends Displayble {\n notClear: boolean;\n incremental: boolean;\n private _displayables;\n private _temporaryDisplayables;\n private _cursor;\n traverse<T>(cb: (this: T, el: this) => void, context: T): void;\n useStyle(): void;\n getCursor(): number;\n innerAfterBrush(): void;\n clearDisplaybles(): void;\n cl [...]
- },
- {
- "path": "zrender/esm/graphic/LinearGradient.d.ts",
- "code": "import Gradient, { GradientObject, GradientColorStop } from './Gradient';\nexport interface LinearGradientObject extends GradientObject {\n type: 'linear';\n x: number;\n y: number;\n x2: number;\n y2: number;\n global: boolean;\n}\nexport default class LinearGradient extends Gradient {\n type: 'linear';\n x: number;\n y: number;\n x2: number;\n y2: number;\n global: boolean;\n constructor(x: number, y: number, x2: number, y2: number, c [...]
- },
- {
- "path": "zrender/esm/graphic/Path.d.ts",
- "code": "import Displayable, { DisplayableProps, CommonStyleProps, DisplayableStatePropNames } from './Displayable';\nimport Element, { ElementAnimateConfig } from '../Element';\nimport PathProxy from '../core/PathProxy';\nimport { PatternObject } from './Pattern';\nimport { Dictionary, PropType, MapToType } from '../core/types';\nimport BoundingRect from '../core/BoundingRect';\nimport { LinearGradientObject } from './LinearGradient';\nimport { RadialGradientObject } from './RadialG [...]
- },
- {
- "path": "zrender/esm/graphic/Pattern.d.ts",
- "code": "import { ImageLike } from '../core/types';\ndeclare type CanvasPatternRepeat = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';\nexport interface PatternObject {\n type: 'pattern';\n image: ImageLike | string;\n repeat: CanvasPatternRepeat;\n __image: ImageLike;\n}\ndeclare class Pattern {\n type: 'pattern';\n image: ImageLike | string;\n repeat: CanvasPatternRepeat;\n constructor(image: ImageLike | string, repeat: CanvasPatternRepeat);\n}\nexport de [...]
- },
- {
- "path": "zrender/esm/graphic/RadialGradient.d.ts",
- "code": "import Gradient, { GradientColorStop, GradientObject } from './Gradient';\nexport interface RadialGradientObject extends GradientObject {\n type: 'radial';\n x: number;\n y: number;\n r: number;\n global: boolean;\n}\ndeclare class RadialGradient extends Gradient {\n type: 'radial';\n x: number;\n y: number;\n r: number;\n global: boolean;\n constructor(x: number, y: number, r: number, colorStops?: GradientColorStop[], globalCoord?: boolean); [...]
- },
- {
- "path": "zrender/esm/graphic/shape/Arc.d.ts",
- "code": "import Path, { PathProps } from '../Path';\ndeclare class ArcShape {\n cx: number;\n cy: number;\n r: number;\n startAngle: number;\n endAngle: number;\n clockwise?: boolean;\n}\ninterface ArcProps extends PathProps {\n shape?: Partial<ArcShape>;\n}\ndeclare class Arc extends Path<ArcProps> {\n shape: ArcShape;\n constructor(opts?: ArcProps);\n getDefaultStyle(): {\n stroke: string;\n fill: string;\n };\n getDefaultShape(): A [...]
- },
- {
- "path": "zrender/esm/graphic/shape/BezierCurve.d.ts",
- "code": "import Path, { PathProps } from '../Path';\ndeclare class BezierCurveShape {\n x1: number;\n y1: number;\n x2: number;\n y2: number;\n cpx1: number;\n cpy1: number;\n cpx2?: number;\n cpy2?: number;\n percent: number;\n}\ninterface BezierCurveProps extends PathProps {\n shape?: Partial<BezierCurveShape>;\n}\ndeclare class BezierCurve extends Path<BezierCurveProps> {\n shape: BezierCurveShape;\n constructor(opts?: BezierCurveProps);\n ge [...]
- },
- {
- "path": "zrender/esm/graphic/shape/Circle.d.ts",
- "code": "import Path, { PathProps } from '../Path';\ndeclare class CircleShape {\n cx: number;\n cy: number;\n r: number;\n}\ninterface CircleProps extends PathProps {\n shape?: Partial<CircleShape>;\n}\ndeclare class Circle extends Path<CircleProps> {\n shape: CircleShape;\n constructor(opts?: CircleProps);\n getDefaultShape(): CircleShape;\n buildPath(ctx: CanvasRenderingContext2D, shape: CircleShape, inBundle: boolean): void;\n}\nexport default Circle;\n"
- },
- {
- "path": "zrender/esm/graphic/shape/Droplet.d.ts",
- "code": "import Path, { PathProps } from '../Path';\ndeclare class DropletShape {\n cx: number;\n cy: number;\n width: number;\n height: number;\n}\ninterface DropletProps extends PathProps {\n shape?: Partial<DropletShape>;\n}\ndeclare class Droplet extends Path<DropletProps> {\n shape: DropletShape;\n constructor(opts?: DropletProps);\n getDefaultShape(): DropletShape;\n buildPath(ctx: CanvasRenderingContext2D, shape: DropletShape): void;\n}\nexport defau [...]
- },
- {
- "path": "zrender/esm/graphic/shape/Ellipse.d.ts",
- "code": "import Path, { PathProps } from '../Path';\ndeclare class EllipseShape {\n cx: number;\n cy: number;\n rx: number;\n ry: number;\n}\ninterface EllipseProps extends PathProps {\n shape?: Partial<EllipseShape>;\n}\ndeclare class Ellipse extends Path<EllipseProps> {\n shape: EllipseShape;\n constructor(opts?: EllipseProps);\n getDefaultShape(): EllipseShape;\n buildPath(ctx: CanvasRenderingContext2D, shape: EllipseShape): void;\n}\nexport default Ellipse;\n"
- },
- {
- "path": "zrender/esm/graphic/shape/Heart.d.ts",
- "code": "import Path, { PathProps } from '../Path';\ndeclare class HeartShape {\n cx: number;\n cy: number;\n width: number;\n height: number;\n}\ninterface HeartProps extends PathProps {\n shape?: Partial<HeartShape>;\n}\ndeclare class Heart extends Path<HeartProps> {\n shape: HeartShape;\n constructor(opts?: HeartProps);\n getDefaultShape(): HeartShape;\n buildPath(ctx: CanvasRenderingContext2D, shape: HeartShape): void;\n}\nexport default Heart;\n"
- },
- {
- "path": "zrender/esm/graphic/shape/Isogon.d.ts",
- "code": "import Path, { PathProps } from '../Path';\ndeclare class IsogonShape {\n x: number;\n y: number;\n r: number;\n n: number;\n}\ninterface IsogonProps extends PathProps {\n shape?: Partial<IsogonShape>;\n}\ndeclare class Isogon extends Path<IsogonProps> {\n shape: IsogonShape;\n constructor(opts?: IsogonProps);\n getDefaultShape(): IsogonShape;\n buildPath(ctx: CanvasRenderingContext2D, shape: IsogonShape): void;\n}\nexport default Isogon;\n"
- },
- {
- "path": "zrender/esm/graphic/shape/Line.d.ts",
- "code": "import Path, { PathProps } from '../Path';\nimport { VectorArray } from '../../core/vector';\ndeclare class LineShape {\n x1: number;\n y1: number;\n x2: number;\n y2: number;\n percent: number;\n}\ninterface LineProps extends PathProps {\n shape?: Partial<LineShape>;\n}\ndeclare class Line extends Path<LineProps> {\n shape: LineShape;\n constructor(opts?: LineProps);\n getDefaultStyle(): {\n stroke: string;\n fill: string;\n };\n [...]
- },
- {
- "path": "zrender/esm/graphic/shape/Polygon.d.ts",
- "code": "import Path, { PathProps } from '../Path';\nimport { VectorArray } from '../../core/vector';\ndeclare class PolygonShape {\n points: VectorArray[];\n smooth?: number | 'spline';\n smoothConstraint?: VectorArray[];\n}\ninterface PolygonProps extends PathProps {\n shape?: Partial<PolygonShape>;\n}\ndeclare class Polygon extends Path<PolygonProps> {\n shape: PolygonShape;\n constructor(opts?: PolygonProps);\n getDefaultShape(): PolygonShape;\n buildPath( [...]
- },
- {
- "path": "zrender/esm/graphic/shape/Polyline.d.ts",
- "code": "import Path, { PathProps } from '../Path';\nimport { VectorArray } from '../../core/vector';\ndeclare class PolylineShape {\n points: VectorArray[];\n percent?: number;\n smooth?: number | 'spline';\n smoothConstraint?: VectorArray[];\n}\ninterface PolylineProps extends PathProps {\n shape?: Partial<PolylineShape>;\n}\ndeclare class Polyline extends Path<PolylineProps> {\n shape: PolylineShape;\n constructor(opts?: PolylineProps);\n getDefaultStyle(): [...]
- },
- {
- "path": "zrender/esm/graphic/shape/Rect.d.ts",
- "code": "import Path, { PathProps } from '../Path';\ndeclare class RectShape {\n r?: number | number[];\n x: number;\n y: number;\n width: number;\n height: number;\n}\ninterface RectProps extends PathProps {\n shape?: Partial<RectShape>;\n}\ndeclare class Rect extends Path<RectProps> {\n shape: RectShape;\n constructor(opts?: RectProps);\n getDefaultShape(): RectShape;\n buildPath(ctx: CanvasRenderingContext2D, shape: RectShape): void;\n isZeroArea() [...]
- },
- {
- "path": "zrender/esm/graphic/shape/Ring.d.ts",
- "code": "import Path, { PathProps } from '../Path';\ndeclare class RingShape {\n cx: number;\n cy: number;\n r: number;\n r0: number;\n}\ninterface RingProps extends PathProps {\n shape?: Partial<RingShape>;\n}\ndeclare class Ring extends Path<RingProps> {\n shape: RingShape;\n constructor(opts?: RingProps);\n getDefaultShape(): RingShape;\n buildPath(ctx: CanvasRenderingContext2D, shape: RingShape): void;\n}\nexport default Ring;\n"
- },
- {
- "path": "zrender/esm/graphic/shape/Rose.d.ts",
- "code": "import Path, { PathProps } from '../Path';\ndeclare class RoseShape {\n cx: number;\n cy: number;\n r: number[];\n k: number;\n n: number;\n}\ninterface RoseProps extends PathProps {\n shape?: Partial<RoseShape>;\n}\ndeclare class Rose extends Path<RoseProps> {\n shape: RoseShape;\n constructor(opts?: RoseProps);\n getDefaultStyle(): {\n stroke: string;\n fill: string;\n };\n getDefaultShape(): RoseShape;\n buildPath(ctx: Can [...]
- },
- {
- "path": "zrender/esm/graphic/shape/Sector.d.ts",
- "code": "import Path, { PathProps } from '../Path';\ndeclare class SectorShape {\n cx: number;\n cy: number;\n r0: number;\n r: number;\n startAngle: number;\n endAngle: number;\n clockwise: boolean;\n}\ninterface SectorProps extends PathProps {\n shape?: Partial<SectorShape>;\n}\ndeclare class Sector extends Path<SectorProps> {\n shape: SectorShape;\n constructor(opts?: SectorProps);\n getDefaultShape(): SectorShape;\n buildPath(ctx: CanvasRenderi [...]
- },
- {
- "path": "zrender/esm/graphic/shape/Star.d.ts",
- "code": "import Path, { PathProps } from '../Path';\ndeclare class StarShape {\n cx: number;\n cy: number;\n n: number;\n r0: number;\n r: number;\n}\ninterface StarProps extends PathProps {\n shape?: Partial<StarShape>;\n}\ndeclare class Star extends Path<StarProps> {\n shape: StarShape;\n constructor(opts?: StarProps);\n getDefaultShape(): StarShape;\n buildPath(ctx: CanvasRenderingContext2D, shape: StarShape): void;\n}\nexport default Star;\n"
- },
- {
- "path": "zrender/esm/graphic/shape/Trochoid.d.ts",
- "code": "import Path, { PathProps } from '../Path';\ndeclare class TrochoidShape {\n cx: number;\n cy: number;\n r: number;\n r0: number;\n d: number;\n location: string;\n}\ninterface TrochoidProps extends PathProps {\n shape?: Partial<TrochoidShape>;\n}\ndeclare class Trochoid extends Path<TrochoidProps> {\n shape: TrochoidShape;\n constructor(opts?: TrochoidProps);\n getDefaultStyle(): {\n stroke: string;\n fill: string;\n };\n get [...]
- },
- {
- "path": "zrender/esm/graphic/Text.d.ts",
- "code": "import { TextAlign, TextVerticalAlign, ImageLike, Dictionary, MapToType } from '../core/types';\nimport TSpan from './TSpan';\nimport ZRImage from './Image';\nimport Rect from './shape/Rect';\nimport BoundingRect from '../core/BoundingRect';\nimport { MatrixArray } from '../core/matrix';\nimport Displayable, { DisplayableStatePropNames, DisplayableProps } from './Displayable';\nimport { ZRenderType } from '../zrender';\nimport Animator from '../animation/Animator';\nimport T [...]
- },
- {
- "path": "zrender/esm/graphic/TSpan.d.ts",
- "code": "import Displayable, { DisplayableProps, DisplayableStatePropNames } from './Displayable';\nimport BoundingRect from '../core/BoundingRect';\nimport { PathStyleProps } from './Path';\nexport interface TSpanStyleProps extends PathStyleProps {\n x?: number;\n y?: number;\n text?: string;\n font?: string;\n textAlign?: CanvasTextAlign;\n textBaseline?: CanvasTextBaseline;\n}\nexport declare const DEFAULT_TSPAN_STYLE: TSpanStyleProps;\ninterface TSpanProps exten [...]
- },
- {
- "path": "zrender/esm/Handler.d.ts",
- "code": "import Eventful from './core/Eventful';\nimport Displayable from './graphic/Displayable';\nimport { PainterBase } from './PainterBase';\nimport { HandlerProxyInterface } from './dom/HandlerProxy';\nimport { ZRRawEvent, ElementEventName } from './core/types';\nimport Storage from './Storage';\nimport Element from './Element';\ndeclare class HoveredResult {\n x: number;\n y: number;\n target: Displayable;\n topTarget: Displayable;\n constructor(x?: number, y?: n [...]
- },
- {
- "path": "zrender/esm/mixin/Draggable.d.ts",
- "code": "import Handler from '../Handler';\nimport Element, { ElementEvent } from '../Element';\nexport default class Draggable {\n handler: Handler;\n _draggingTarget: Element;\n _dropTarget: Element;\n _x: number;\n _y: number;\n constructor(handler: Handler);\n _dragStart(e: ElementEvent): void;\n _drag(e: ElementEvent): void;\n _dragEnd(e: ElementEvent): void;\n}\n"
- },
- {
- "path": "zrender/esm/PainterBase.d.ts",
- "code": "import Path from './graphic/Path';\nimport ZRImage from './graphic/Image';\nimport { GradientObject } from './graphic/Gradient';\nimport { PatternObject } from './graphic/Pattern';\nimport { Dictionary } from './core/types';\nexport interface PainterBase {\n type: string;\n root: HTMLElement;\n resize(width?: number | string, height?: number | string): void;\n refresh(): void;\n clear(): void;\n getViewportRoot(): HTMLElement;\n getType: () => string;\n [...]
- },
- {
- "path": "zrender/esm/Storage.d.ts",
- "code": "import Element from './Element';\nimport Displayable from './graphic/Displayable';\ndeclare function shapeCompareFunc(a: Displayable, b: Displayable): number;\nexport default class Storage {\n private _roots;\n private _displayList;\n private _displayListLen;\n traverse<T>(cb: (this: T, el: Element) => void, context?: T): void;\n getDisplayList(update?: boolean, includeIgnore?: boolean): Displayable[];\n updateDisplayList(includeIgnore?: boolean): void;\n [...]
- },
- {
- "path": "zrender/esm/svg/core.d.ts",
- "code": "export declare function createElement(name: string): SVGElement;\n"
- },
- {
- "path": "zrender/esm/svg/graphic.d.ts",
- "code": "import { Path } from '../export';\nimport ZRImage from '../graphic/Image';\nimport TSpan from '../graphic/TSpan';\nexport interface SVGProxy<T> {\n brush(el: T): void;\n}\ndeclare const svgPath: SVGProxy<Path>;\nexport { svgPath as path };\ndeclare const svgImage: SVGProxy<ZRImage>;\nexport { svgImage as image };\ndeclare const svgText: SVGProxy<TSpan>;\nexport { svgText as text };\n"
- },
- {
- "path": "zrender/esm/svg/helper/ClippathManager.d.ts",
- "code": "import Definable from './Definable';\nimport Displayable from '../../graphic/Displayable';\nimport Path from '../../graphic/Path';\nexport default class ClippathManager extends Definable {\n constructor(zrId: number, svgRoot: SVGElement);\n update(displayable: Displayable): void;\n updateDom(parentEl: SVGElement, clipPaths: Path[], isText: boolean): void;\n markUsed(displayable: Displayable): void;\n}\n"
- },
- {
- "path": "zrender/esm/svg/helper/Definable.d.ts",
- "code": "import { createElement } from '../core';\nimport Path from '../../graphic/Path';\nimport ZRImage from '../../graphic/Image';\nimport TSpan from '../../graphic/TSpan';\nimport Displayable from '../../graphic/Displayable';\nexport default class Definable {\n nextId: number;\n protected _zrId: number;\n protected _svgRoot: SVGElement;\n protected _tagNames: string[];\n protected _markLabel: string;\n protected _domName: string;\n constructor(zrId: number, s [...]
- },
- {
- "path": "zrender/esm/svg/helper/GradientManager.d.ts",
- "code": "import Definable from './Definable';\nimport Displayable from '../../graphic/Displayable';\nimport { GradientObject } from '../../graphic/Gradient';\nexport default class GradientManager extends Definable {\n constructor(zrId: number, svgRoot: SVGElement);\n addWithoutUpdate(svgElement: SVGElement, displayable: Displayable): void;\n add(gradient: GradientObject): SVGElement;\n update(gradient: GradientObject): void;\n updateDom(gradient: GradientObject, dom: S [...]
- },
- {
- "path": "zrender/esm/svg/helper/ShadowManager.d.ts",
- "code": "import Definable from './Definable';\nimport Displayable from '../../graphic/Displayable';\nexport default class ShadowManager extends Definable {\n constructor(zrId: number, svgRoot: SVGElement);\n addWithoutUpdate(svgElement: SVGElement, displayable: Displayable): void;\n add(displayable: Displayable): SVGElement;\n update(svgElement: SVGElement, displayable: Displayable): void;\n remove(svgElement: SVGElement, displayable: Displayable): void;\n updateDom [...]
- },
- {
- "path": "zrender/esm/svg/Painter.d.ts",
- "code": "import Path from '../graphic/Path';\nimport ZRImage from '../graphic/Image';\nimport Displayable from '../graphic/Displayable';\nimport Storage from '../Storage';\nimport { PainterBase } from '../PainterBase';\ninterface SVGPainterOption {\n width?: number | string;\n height?: number | string;\n}\ndeclare class SVGPainter implements PainterBase {\n type: string;\n root: HTMLElement;\n storage: Storage;\n private _opts;\n private _svgDom;\n private _sv [...]
- },
- {
- "path": "zrender/esm/svg/svg.d.ts",
- "code": "import './graphic';\n"
- },
- {
- "path": "zrender/esm/tool/color.d.ts",
- "code": "export declare function parse(colorStr: string, rgbaArr?: number[]): number[];\nexport declare function lift(color: string, level: number): string;\nexport declare function toHex(color: string): string;\nexport declare function fastLerp(normalizedValue: number, colors: number[][], out?: number[]): number[];\nexport declare const fastMapToColor: typeof fastLerp;\ndeclare type LerpFullOutput = {\n color: string;\n leftIndex: number;\n rightIndex: number;\n value: n [...]
- },
- {
- "path": "zrender/esm/tool/parseSVG.d.ts",
- "code": "import Group from '../graphic/Group';\nimport { RectLike } from '../core/BoundingRect';\ninterface SVGParserOption {\n width?: number;\n height?: number;\n ignoreViewBox?: boolean;\n ignoreRootClip?: boolean;\n}\ninterface SVGParserResult {\n root: Group;\n width: number;\n height: number;\n viewBoxRect: RectLike;\n viewBoxTransform: {\n x: number;\n y: number;\n scale: number;\n };\n}\nexport declare function parseXML(svg: [...]
- },
- {
- "path": "zrender/esm/tool/path.d.ts",
- "code": "import Path, { PathProps } from '../graphic/Path';\nimport { MatrixArray } from '../core/matrix';\ndeclare type SVGPathOption = Omit<PathProps, 'shape' | 'buildPath'>;\ndeclare class SVGPath extends Path {\n applyTransform(m: MatrixArray): void;\n}\nexport declare function createFromString(str: string, opts?: SVGPathOption): SVGPath;\nexport declare function extendFromString(str: string, defaultOpts?: SVGPathOption): typeof SVGPath;\nexport declare function mergePath(path [...]
- },
- {
- "path": "zrender/esm/tool/transformPath.d.ts",
- "code": "import PathProxy from '../core/PathProxy';\nimport { MatrixArray } from '../core/matrix';\nexport default function (path: PathProxy, m: MatrixArray): void;\n"
- },
- {
- "path": "zrender/esm/vml/core.d.ts",
- "code": "export declare var doc: Document;\nexport declare function createNode(tagName: any): any;\nexport declare function initVML(): void;\n"
- },
- {
- "path": "zrender/esm/vml/graphic.d.ts",
- "code": "export {};\n"
- },
- {
- "path": "zrender/esm/vml/Painter.d.ts",
- "code": "declare function VMLPainter(root: any, storage: any): void;\nexport default VMLPainter;\n"
- },
- {
- "path": "zrender/esm/vml/vml.d.ts",
- "code": "import './graphic';\n"
- },
- {
- "path": "zrender/esm/zrender.d.ts",
- "code": "/*!\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 Handler from './Handler';\nimport Storage from './Storage';\nimport { PainterBase } from './PainterBase';\nimport Animation from './animation/Animation';\nimport Element, { ElementEventCallback, ElementEvent } from './Element';\nimport { ElementEventName } from './core/types' [...]
- },
- {
- "path": "zrender/index.d.ts",
- "code": "export * from './src/zrender';\nexport * from './src/export';"
- }
-]
\ No newline at end of file
diff --git a/public/types/echarts.d.ts b/public/types/echarts.d.ts
new file mode 100644
index 0000000..0e9f62d
--- /dev/null
+++ b/public/types/echarts.d.ts
@@ -0,0 +1,2965 @@
+import { RadialGradientObject } from 'zrender/esm/graphic/RadialGradient';
+import { LinearGradientObject } from 'zrender/esm/graphic/LinearGradient';
+import { PatternObject } from 'zrender/esm/graphic/Pattern';
+import { ZRenderType } from 'zrender/esm/zrender';
+import Eventful from 'zrender/esm/core/Eventful';
+import Element, { ElementTextConfig, ElementEvent } from 'zrender/esm/Element';
+import { Dictionary, TextAlign, TextVerticalAlign, ImageLike } from 'zrender/esm/core/types';
+import { RectLike } from 'zrender/esm/core/BoundingRect';
+import { PathStyleProps, PathProps } from 'zrender/esm/graphic/Path';
+import { ImageStyleProps } from 'zrender/esm/graphic/Image';
+import Text, { TextStyleProps } from 'zrender/esm/graphic/Text';
+import Displayable from 'zrender/esm/graphic/Displayable';
+import { MorphDividingMethod } from 'zrender/esm/tool/morphPath';
+import { AnimationEasing } from 'zrender/esm/animation/easing';
+import { TSpanStyleProps } from 'zrender/esm/graphic/TSpan';
+import { parseXML } from 'zrender/esm/tool/parseSVG';
+
+interface NameMap {
+ [regionName: string]: string;
+}
+interface GeoSpecialAreas {
+ [areaName: string]: {
+ left: number;
+ top: number;
+ width?: number;
+ height?: number;
+ };
+}
+interface GeoJSON extends GeoJSONFeatureCollection<GeoJSONGeometry> {
+}
+interface GeoJSONCompressed extends GeoJSONFeatureCollection<GeoJSONGeometryCompressed> {
+ UTF8Encoding?: boolean;
+ UTF8Scale?: number;
+}
+interface GeoJSONFeatureCollection<G> {
+ type: 'FeatureCollection';
+ features: GeoJSONFeature<G>[];
+}
+interface GeoJSONFeature<G = GeoJSONGeometry> {
+ type: 'Feature';
+ id?: string | number;
+ properties: {
+ name?: string;
+ cp?: number[];
+ [key: string]: any;
+ };
+ geometry: G;
+}
+declare type GeoJSONGeometry = GeoJSONGeometryPoint | GeoJSONGeometryMultiPoint | GeoJSONGeometryLineString | GeoJSONGeometryMultiLineString | GeoJSONGeometryPolygon | GeoJSONGeometryMultiPolygon;
+declare type GeoJSONGeometryCompressed = GeoJSONGeometryPoint | GeoJSONGeometryMultiPoint | GeoJSONGeometryLineString | GeoJSONGeometryMultiLineString | GeoJSONGeometryPolygonCompressed | GeoJSONGeometryMultiPolygonCompressed;
+interface GeoJSONGeometryPoint {
+ type: 'Point';
+ coordinates: number[];
+}
+interface GeoJSONGeometryMultiPoint {
+ type: 'MultiPoint';
+ coordinates: number[][];
+}
+interface GeoJSONGeometryLineString {
+ type: 'LineString';
+ coordinates: number[][];
+}
+interface GeoJSONGeometryMultiLineString {
+ type: 'MultiLineString';
+ coordinates: number[][][];
+}
+interface GeoJSONGeometryPolygon {
+ type: 'Polygon';
+ coordinates: number[][][];
+}
+interface GeoJSONGeometryPolygonCompressed {
+ type: 'Polygon';
+ coordinates: string[];
+ encodeOffsets: number[][];
+}
+interface GeoJSONGeometryMultiPolygon {
+ type: 'MultiPolygon';
+ coordinates: number[][][][];
+}
+interface GeoJSONGeometryMultiPolygonCompressed {
+ type: 'MultiPolygon';
+ coordinates: string[][];
+ encodeOffsets: number[][][];
+}
+
+interface AriaLabelOption {
+ enabled?: boolean;
+ description?: string;
+ general?: {
+ withTitle?: string;
+ withoutTitle?: string;
+ };
+ series?: {
+ maxCount?: number;
+ single?: {
+ prefix?: string;
+ withName?: string;
+ withoutName?: string;
+ };
+ multiple?: {
+ prefix?: string;
+ withName?: string;
+ withoutName?: string;
+ separator?: {
+ middle?: string;
+ end?: string;
+ };
+ };
+ };
+ data?: {
+ maxCount?: number;
+ allData?: string;
+ partialData?: string;
+ withName?: string;
+ withoutName?: string;
+ separator?: {
+ middle?: string;
+ end?: string;
+ };
+ };
+}
+interface AriaOption extends AriaLabelOption {
+ enabled?: boolean;
+ label?: AriaLabelOption;
+ decal?: {
+ show?: boolean;
+ decals?: DecalObject | DecalObject[];
+ };
+}
+
+interface RichTextTooltipMarker {
+ renderMode: TooltipRenderMode;
+ content: string;
+ style: Dictionary<unknown>;
+}
+declare type TooltipMarker = string | RichTextTooltipMarker;
+
+declare type VisualOptionBase = {
+ [key in BuiltinVisualProperty]?: any;
+};
+declare type LabelFormatter = (min: OptionDataValue, max?: OptionDataValue) => string;
+interface VisualMapOption<T extends VisualOptionBase = VisualOptionBase> extends ComponentOption, BoxLayoutOptionMixin, BorderOptionMixin {
+ show?: boolean;
+ align?: string;
+ realtime?: boolean;
+ seriesIndex?: 'all' | number[] | number;
+ min?: number;
+ max?: number;
+ dimension?: number;
+ inRange?: T;
+ outOfRange?: T;
+ controller?: {
+ inRange?: T;
+ outOfRange?: T;
+ };
+ target?: {
+ inRange?: T;
+ outOfRange?: T;
+ };
+ itemWidth?: number;
+ itemHeight?: number;
+ inverse?: boolean;
+ orient?: 'horizontal' | 'vertical';
+ backgroundColor?: ZRColor;
+ contentColor?: ZRColor;
+ inactiveColor?: ZRColor;
+ padding?: number[] | number;
+ textGap?: number;
+ precision?: number;
+ color?: ColorString[];
+ formatter?: string | LabelFormatter;
+ text?: string[];
+ textStyle?: LabelOption;
+ categories?: unknown;
+}
+interface VisualMeta {
+ stops: {
+ value: number;
+ color: ColorString;
+ }[];
+ outerColors: ColorString[];
+ dimension?: number;
+}
+
+declare const dataCtors: {
+ float: ArrayConstructor | Float64ArrayConstructor;
+ int: ArrayConstructor | Int32ArrayConstructor;
+ ordinal: ArrayConstructor;
+ number: ArrayConstructor;
+ time: ArrayConstructor;
+};
+declare type ListDimensionType = keyof typeof dataCtors;
+interface DefaultDataVisual {
+ style: PathStyleProps;
+ drawType: 'fill' | 'stroke';
+ symbol?: string;
+ symbolSize?: number | number[];
+ symbolRotate?: number;
+ symbolKeepAspect?: boolean;
+ liftZ?: number;
+ legendSymbol?: string;
+ visualMeta?: VisualMeta[];
+ colorFromPalette?: boolean;
+ decal?: DecalObject;
+}
+
+declare const AXIS_TYPES: {
+ readonly value: 1;
+ readonly category: 1;
+ readonly time: 1;
+ readonly log: 1;
+};
+declare type OptionAxisType = keyof typeof AXIS_TYPES;
+interface AxisBaseOption extends ComponentOption, AnimationOptionMixin {
+ type?: OptionAxisType;
+ show?: boolean;
+ inverse?: boolean;
+ name?: string;
+ nameLocation?: 'start' | 'middle' | 'end';
+ nameRotate?: number;
+ nameTruncate?: {
+ maxWidth?: number;
+ ellipsis?: string;
+ placeholder?: string;
+ };
+ nameTextStyle?: AxisNameTextStyleOption;
+ nameGap?: number;
+ silent?: boolean;
+ triggerEvent?: boolean;
+ tooltip?: {
+ show?: boolean;
+ };
+ axisPointer?: any;
+ axisLine?: AxisLineOption;
+ axisTick?: AxisTickOption;
+ axisLabel?: AxisLabelOption;
+ minorTick?: MinorTickOption;
+ splitLine?: SplitLineOption;
+ minorSplitLine?: MinorSplitLineOption;
+ splitArea?: SplitAreaOption;
+ boundaryGap?: boolean | [number | string, number | string];
+ min?: ScaleDataValue | 'dataMin' | ((extent: {
+ min: number;
+ max: number;
+ }) => ScaleDataValue);
+ max?: ScaleDataValue | 'dataMax' | ((extent: {
+ min: number;
+ max: number;
+ }) => ScaleDataValue);
+ scale?: boolean;
+ deduplication?: boolean;
+ data?: (OrdinalRawValue | {
+ value: OrdinalRawValue;
+ textStyle?: TextCommonOption;
+ })[];
+ splitNumber?: number;
+ interval?: number;
+ minInterval?: number;
+ maxInterval?: number;
+ logBase?: number;
+}
+interface AxisNameTextStyleOption extends TextCommonOption {
+ rich?: Dictionary<TextCommonOption>;
+}
+interface AxisLineOption {
+ show?: boolean | 'auto';
+ onZero?: boolean;
+ onZeroAxisIndex?: number;
+ symbol?: string | [string, string];
+ symbolSize?: number[];
+ symbolOffset?: number[];
+ lineStyle?: LineStyleOption;
+}
+interface AxisTickOption {
+ show?: boolean | 'auto';
+ inside?: boolean;
+ length?: number;
+ lineStyle?: LineStyleOption;
+ alignWithLabel?: boolean;
+ interval?: 'auto' | number | ((index: number, value: string) => boolean);
+}
+declare type AxisLabelFormatterOption = string | ((value: OrdinalRawValue | number, index: number) => string);
+declare type TimeAxisLabelUnitFormatter = AxisLabelFormatterOption | string[];
+declare type TimeAxisLabelFormatterOption = string | ((value: number, index: number, extra: {
+ level: number;
+}) => string) | {
+ year?: TimeAxisLabelUnitFormatter;
+ month?: TimeAxisLabelUnitFormatter;
+ week?: TimeAxisLabelUnitFormatter;
+ day?: TimeAxisLabelUnitFormatter;
+ hour?: TimeAxisLabelUnitFormatter;
+ minute?: TimeAxisLabelUnitFormatter;
+ second?: TimeAxisLabelUnitFormatter;
+ millisecond?: TimeAxisLabelUnitFormatter;
+ inherit?: boolean;
+};
+interface AxisLabelOption extends Omit<TextCommonOption, 'color'> {
+ show?: boolean;
+ inside?: boolean;
+ rotate?: number;
+ showMinLabel?: boolean;
+ showMaxLabel?: boolean;
+ margin?: number;
+ formatter?: AxisLabelFormatterOption | TimeAxisLabelFormatterOption;
+ interval?: 'auto' | number | ((index: number, value: string) => boolean);
+ color?: ColorString | ((value?: string | number, index?: number) => ColorString);
+}
+interface MinorTickOption {
+ show?: boolean;
+ splitNumber?: number;
+ length?: number;
+ lineStyle?: LineStyleOption;
+}
+interface SplitLineOption {
+ show?: boolean;
+ interval?: 'auto' | number | ((index: number, value: string) => boolean);
+ lineStyle?: LineStyleOption<ZRColor | ZRColor[]>;
+}
+interface MinorSplitLineOption {
+ show?: boolean;
+ lineStyle?: LineStyleOption;
+}
+interface SplitAreaOption {
+ show?: boolean;
+ interval?: 'auto' | number | ((index: number, value: string) => boolean);
+ areaStyle?: AreaStyleOption<ZRColor[]>;
+}
+
+interface BaseBarSeriesOption<StateOption, ExtraStateOption = unknown> extends SeriesOption<StateOption, ExtraStateOption>, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin {
+ barMinHeight?: number;
+ barMinAngle?: number;
+ barMaxWidth?: number;
+ barMinWidth?: number;
+ barWidth?: number | string;
+ barGap?: string | number;
+ barCategoryGap?: string | number;
+ large?: boolean;
+ largeThreshold?: number;
+}
+
+interface GridOption extends ComponentOption, BoxLayoutOptionMixin, ShadowOptionMixin {
+ show?: boolean;
+ containLabel?: boolean;
+ backgroundColor?: ZRColor;
+ borderWidth?: number;
+ borderColor?: ZRColor;
+ tooltip?: any;
+}
+
+interface AngleAxisOption extends AxisBaseOption {
+ polarIndex?: number;
+ polarId?: string;
+ startAngle?: number;
+ clockwise?: boolean;
+ splitNumber?: number;
+ axisLabel?: Omit<AxisBaseOption['axisLabel'], 'rotate'> & {
+ rotate?: AxisBaseOption['axisLabel']['rotate'] | false;
+ };
+}
+interface RadiusAxisOption extends AxisBaseOption {
+ polarIndex?: number;
+ polarId?: string;
+}
+
+interface PolarOption extends ComponentOption, CircleLayoutOptionMixin {
+}
+
+declare type BrushType = 'polygon' | 'rect' | 'lineX' | 'lineY';
+declare type BrushTypeUncertain = BrushType | false | 'auto';
+declare type BrushMode = 'single' | 'multiple';
+
+interface MapStateOption {
+ itemStyle?: GeoItemStyleOption;
+ label?: LabelOption;
+}
+interface MapDataItemOption extends MapStateOption, StatesOptionMixin<MapStateOption>, OptionDataItemObject<OptionDataValueNumeric> {
+ cursor?: string;
+}
+declare type MapValueCalculationType = 'sum' | 'average' | 'min' | 'max';
+interface MapSeriesOption extends SeriesOption<MapStateOption>, MapStateOption, GeoCommonOptionMixin, SeriesOnGeoOptionMixin, BoxLayoutOptionMixin, SeriesEncodeOptionMixin {
+ type?: 'map';
+ coordinateSystem?: string;
+ silent?: boolean;
+ markLine?: any;
+ markPoint?: any;
+ markArea?: any;
+ mapValueCalculation?: MapValueCalculationType;
+ showLegendSymbol?: boolean;
+ geoCoord?: Dictionary<number[]>;
+ data?: OptionDataValueNumeric[] | OptionDataValueNumeric[][] | MapDataItemOption[];
+ nameProperty?: string;
+}
+
+interface GeoItemStyleOption extends ItemStyleOption {
+ areaColor?: ZRColor;
+}
+interface GeoLabelOption extends LabelOption {
+ formatter?: string | ((params: GeoLabelFormatterDataParams) => string);
+}
+interface GeoStateOption {
+ itemStyle?: GeoItemStyleOption;
+ label?: GeoLabelOption;
+}
+interface GeoLabelFormatterDataParams {
+ name: string;
+ status: DisplayState;
+}
+interface RegoinOption extends GeoStateOption, StatesOptionMixin<GeoStateOption> {
+ name?: string;
+ selected?: boolean;
+}
+interface GeoCommonOptionMixin extends RoamOptionMixin {
+ map: string;
+ aspectScale?: number;
+ layoutCenter?: (number | string)[];
+ layoutSize?: number | string;
+ boundingCoords?: number[][];
+ nameMap?: NameMap;
+}
+interface GeoOption extends ComponentOption, BoxLayoutOptionMixin, AnimationOptionMixin, GeoCommonOptionMixin, StatesOptionMixin<GeoStateOption>, GeoStateOption {
+ show?: boolean;
+ silent?: boolean;
+ regions?: RegoinOption[];
+ stateAnimation?: AnimationOptionMixin;
+ selectedMode?: 'single' | 'multiple' | boolean;
+ selectedMap?: Dictionary<boolean>;
+}
+
+declare type BrushToolboxIconType = BrushType | 'keep' | 'clear';
+interface BrushOption extends ComponentOption, ModelFinderObject {
+ toolbox?: BrushToolboxIconType[];
+ brushLink?: number[] | 'all' | 'none';
+ throttleType?: 'fixRate' | 'debounce';
+ throttleDelay?: number;
+ inBrush?: VisualOptionFixed;
+ outOfBrush?: VisualOptionFixed;
+ brushType: BrushTypeUncertain;
+ brushStyle: {
+ borderWidth: number;
+ color: ZRColor;
+ borderColor: ZRColor;
+ };
+ transformable: boolean;
+ brushMode: BrushMode;
+ removeOnClick: boolean;
+}
+
+interface BarStateOption {
+ itemStyle?: BarItemStyleOption;
+ label?: LabelOption;
+}
+interface BarItemStyleOption extends ItemStyleOption {
+ borderRadius?: number | number[];
+}
+interface BarDataItemOption extends BarStateOption, StatesOptionMixin<BarStateOption>, OptionDataItemObject<OptionDataValue> {
+ cursor?: string;
+}
+interface BarSeriesOption extends BaseBarSeriesOption<BarStateOption>, BarStateOption, SeriesStackOptionMixin, SeriesSamplingOptionMixin {
+ type?: 'bar';
+ coordinateSystem?: 'cartesian2d' | 'polar';
+ clip?: boolean;
+ roundCap?: boolean;
+ showBackground?: boolean;
+ backgroundStyle?: ItemStyleOption & {
+ borderRadius?: number | number[];
+ };
+ data?: (BarDataItemOption | OptionDataValue | OptionDataValue[])[];
+ realtimeSort?: boolean;
+}
+
+declare type BarWidthAndOffset = Dictionary<Dictionary<{
+ bandWidth: number;
+ offset: number;
+ offsetCenter: number;
+ width: number;
+}>>;
+interface BarGridLayoutOptionForCustomSeries {
+ count: number;
+ barWidth?: number;
+ barMaxWidth?: number;
+ barMinWidth?: number;
+ barGap?: number;
+ barCategoryGap?: number;
+}
+declare type BarGridLayoutResult = BarWidthAndOffset[string][string][];
+
+declare type CustomExtraElementInfo = Dictionary<unknown>;
+declare const TRANSFORM_PROPS: {
+ readonly x: 1;
+ readonly y: 1;
+ readonly scaleX: 1;
+ readonly scaleY: 1;
+ readonly originX: 1;
+ readonly originY: 1;
+ readonly rotation: 1;
+};
+declare type TransformProp = keyof typeof TRANSFORM_PROPS;
+declare type TransitionAnyOption = {
+ transition?: TransitionAnyProps;
+ enterFrom?: Dictionary<unknown>;
+ leaveTo?: Dictionary<unknown>;
+};
+declare type TransitionAnyProps = string | string[];
+declare type TransitionTransformOption = {
+ transition?: ElementRootTransitionProp | ElementRootTransitionProp[];
+ enterFrom?: Dictionary<unknown>;
+ leaveTo?: Dictionary<unknown>;
+};
+declare type ElementRootTransitionProp = TransformProp | 'shape' | 'extra' | 'style';
+declare type ShapeMorphingOption = {
+ morph?: boolean;
+};
+interface CustomBaseElementOption extends Partial<Pick<Element, TransformProp | 'silent' | 'ignore' | 'textConfig'>>, TransitionTransformOption {
+ type: string;
+ id?: string;
+ name?: string;
+ info?: CustomExtraElementInfo;
+ textContent?: CustomTextOption | false;
+ clipPath?: CustomZRPathOption | false;
+ extra?: TransitionAnyOption;
+ during?(params: typeof customDuringAPI): void;
+ focus?: 'none' | 'self' | 'series' | ArrayLike<number>;
+ blurScope?: BlurScope;
+}
+interface CustomDisplayableOption extends CustomBaseElementOption, Partial<Pick<Displayable, 'zlevel' | 'z' | 'z2' | 'invisible'>> {
+ style?: ZRStyleProps & TransitionAnyOption;
+ styleEmphasis?: ZRStyleProps | false;
+ emphasis?: CustomDisplayableOptionOnState;
+ blur?: CustomDisplayableOptionOnState;
+ select?: CustomDisplayableOptionOnState;
+}
+interface CustomDisplayableOptionOnState extends Partial<Pick<Displayable, TransformProp | 'textConfig' | 'z2'>> {
+ style?: (ZRStyleProps & TransitionAnyOption) | false;
+}
+interface CustomZRPathOption extends CustomDisplayableOption, ShapeMorphingOption {
+ shape?: PathProps['shape'] & TransitionAnyOption;
+ style?: CustomDisplayableOption['style'] & {
+ decal?: DecalObject;
+ __decalPattern?: PatternObject;
+ };
+}
+interface CustomSVGPathOption extends CustomDisplayableOption, ShapeMorphingOption {
+ type: 'path';
+ shape?: {
+ pathData?: string;
+ d?: string;
+ layout?: 'center' | 'cover';
+ x?: number;
+ y?: number;
+ width?: number;
+ height?: number;
+ } & TransitionAnyOption;
+}
+interface CustomImageOption extends CustomDisplayableOption {
+ type: 'image';
+ style?: ImageStyleProps & TransitionAnyOption;
+ emphasis?: CustomImageOptionOnState;
+ blur?: CustomImageOptionOnState;
+ select?: CustomImageOptionOnState;
+}
+interface CustomImageOptionOnState extends CustomDisplayableOptionOnState {
+ style?: ImageStyleProps & TransitionAnyOption;
+}
+interface CustomTextOption extends CustomDisplayableOption {
+ type: 'text';
+}
+declare type CustomElementOption = CustomZRPathOption | CustomSVGPathOption | CustomImageOption | CustomTextOption;
+interface CustomSeriesRenderItemAPI extends CustomSeriesRenderItemCoordinateSystemAPI {
+ getWidth(): number;
+ getHeight(): number;
+ getZr(): ZRenderType;
+ getDevicePixelRatio(): number;
+ value(dim: DimensionLoose, dataIndexInside?: number): ParsedValue;
+ ordinalRawValue(dim: DimensionLoose, dataIndexInside?: number): ParsedValue | OrdinalRawValue;
+ style(userProps?: ZRStyleProps, dataIndexInside?: number): ZRStyleProps;
+ styleEmphasis(userProps?: ZRStyleProps, dataIndexInside?: number): ZRStyleProps;
+ visual<VT extends NonStyleVisualProps | StyleVisualProps>(visualType: VT, dataIndexInside?: number): VT extends NonStyleVisualProps ? DefaultDataVisual[VT] : VT extends StyleVisualProps ? PathStyleProps[typeof STYLE_VISUAL_TYPE[VT]] : void;
+ barLayout(opt: BarGridLayoutOptionForCustomSeries): BarGridLayoutResult;
+ currentSeriesIndices(): number[];
+ font(opt: Pick<TextCommonOption, 'fontStyle' | 'fontWeight' | 'fontSize' | 'fontFamily'>): string;
+}
+interface CustomSeriesRenderItemParamsCoordSys {
+ type: string;
+}
+interface CustomSeriesRenderItemCoordinateSystemAPI {
+ coord(data: OptionDataValue | OptionDataValue[], clamp?: boolean): number[];
+ size?(dataSize: OptionDataValue | OptionDataValue[], dataItem: OptionDataValue | OptionDataValue[]): number | number[];
+}
+interface CustomSeriesRenderItemParams {
+ context: Dictionary<unknown>;
+ seriesId: string;
+ seriesName: string;
+ seriesIndex: number;
+ coordSys: CustomSeriesRenderItemParamsCoordSys;
+ dataInsideLength: number;
+ encode: WrapEncodeDefRet;
+}
+declare type CustomSeriesRenderItem = (params: CustomSeriesRenderItemParams, api: CustomSeriesRenderItemAPI) => CustomElementOption;
+interface CustomSeriesOption extends SeriesOption<never>, SeriesEncodeOptionMixin, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnSingleOptionMixin, SeriesOnGeoOptionMixin, SeriesOnCalendarOptionMixin {
+ type?: 'custom';
+ coordinateSystem?: string | 'none';
+ renderItem?: CustomSeriesRenderItem;
+ clip?: boolean;
+}
+declare const STYLE_VISUAL_TYPE: {
+ readonly color: "fill";
+ readonly borderColor: "stroke";
+};
+declare type StyleVisualProps = keyof typeof STYLE_VISUAL_TYPE;
+declare const NON_STYLE_VISUAL_PROPS: {
+ readonly symbol: 1;
+ readonly symbolSize: 1;
+ readonly symbolKeepAspect: 1;
+ readonly legendSymbol: 1;
+ readonly visualMeta: 1;
+ readonly liftZ: 1;
+ readonly decal: 1;
+};
+declare type NonStyleVisualProps = keyof typeof NON_STYLE_VISUAL_PROPS;
+declare const customDuringAPI: {
+ setTransform(key: "x" | "y" | "scaleX" | "scaleY" | "originX" | "originY" | "rotation", val: unknown): any;
+ getTransform(key: "x" | "y" | "scaleX" | "scaleY" | "originX" | "originY" | "rotation"): unknown;
+ setShape(key: string, val: unknown): any;
+ getShape(key: string): unknown;
+ setStyle(key: string, val: unknown): any;
+ getStyle(key: string): unknown;
+ setExtra(key: string, val: unknown): any;
+ getExtra(key: string): unknown;
+};
+declare type WrapEncodeDefRet = Dictionary<number[]>;
+
+declare type CartesianAxisPosition = 'top' | 'bottom' | 'left' | 'right';
+interface CartesianAxisOption extends AxisBaseOption {
+ gridIndex?: number;
+ gridId?: string;
+ position?: CartesianAxisPosition;
+ offset?: number;
+ categorySortInfo?: OrdinalSortInfo[];
+}
+
+declare type ModelFinderIndexQuery = number | number[] | 'all' | 'none' | false;
+declare type ModelFinderIdQuery = OptionId | OptionId[];
+declare type ModelFinderNameQuery = OptionId | OptionId[];
+declare type ModelFinder = string | ModelFinderObject;
+declare type ModelFinderObject = {
+ seriesIndex?: ModelFinderIndexQuery;
+ seriesId?: ModelFinderIdQuery;
+ seriesName?: ModelFinderNameQuery;
+ geoIndex?: ModelFinderIndexQuery;
+ geoId?: ModelFinderIdQuery;
+ geoName?: ModelFinderNameQuery;
+ bmapIndex?: ModelFinderIndexQuery;
+ bmapId?: ModelFinderIdQuery;
+ bmapName?: ModelFinderNameQuery;
+ xAxisIndex?: ModelFinderIndexQuery;
+ xAxisId?: ModelFinderIdQuery;
+ xAxisName?: ModelFinderNameQuery;
+ yAxisIndex?: ModelFinderIndexQuery;
+ yAxisId?: ModelFinderIdQuery;
+ yAxisName?: ModelFinderNameQuery;
+ gridIndex?: ModelFinderIndexQuery;
+ gridId?: ModelFinderIdQuery;
+ gridName?: ModelFinderNameQuery;
+ [key: string]: unknown;
+};
+
+interface MapperParamAxisInfo {
+ axisIndex: number;
+ axisName: string;
+ axisId: string;
+ axisDim: string;
+}
+interface AxisPointerLink {
+ xAxisIndex?: number[] | 'all';
+ yAxisIndex?: number[] | 'all';
+ xAxisId?: string[];
+ yAxisId?: string[];
+ xAxisName?: string[] | string;
+ yAxisName?: string[] | string;
+ radiusAxisIndex?: number[] | 'all';
+ angleAxisIndex?: number[] | 'all';
+ radiusAxisId?: string[];
+ angleAxisId?: string[];
+ radiusAxisName?: string[] | string;
+ angleAxisName?: string[] | string;
+ singleAxisIndex?: number[] | 'all';
+ singleAxisId?: string[];
+ singleAxisName?: string[] | string;
+ mapper?(sourceVal: ScaleDataValue, sourceAxisInfo: MapperParamAxisInfo, targetAxisInfo: MapperParamAxisInfo): CommonAxisPointerOption['value'];
+}
+interface AxisPointerOption extends ComponentOption, Omit<CommonAxisPointerOption, 'type'> {
+ type?: 'line' | 'shadow' | 'cross' | 'none';
+ link?: AxisPointerLink[];
+}
+
+declare type TopLevelFormatterParams = CallbackDataParams | CallbackDataParams[];
+interface TooltipOption extends CommonTooltipOption<TopLevelFormatterParams>, ComponentOption {
+ axisPointer?: AxisPointerOption & {
+ axis?: 'auto' | 'x' | 'y' | 'angle' | 'radius';
+ crossStyle?: LineStyleOption & {
+ textStyle?: LabelOption;
+ };
+ };
+ showContent?: boolean;
+ trigger?: 'item' | 'axis' | 'none';
+ displayMode?: 'single' | 'multipleByCoordSys';
+ renderMode?: 'auto' | TooltipRenderMode;
+ appendToBody?: boolean;
+ className?: string;
+ order?: TooltipOrderMode;
+}
+
+declare type RendererType = 'canvas' | 'svg';
+declare type LayoutOrient = 'vertical' | 'horizontal';
+declare type HorizontalAlign = 'left' | 'center' | 'right';
+declare type VerticalAlign = 'top' | 'middle' | 'bottom';
+declare type ColorString = string;
+declare type ZRColor = ColorString | LinearGradientObject | RadialGradientObject | PatternObject;
+declare type ZRLineType = 'solid' | 'dotted' | 'dashed' | number | number[];
+declare type ZRFontStyle = 'normal' | 'italic' | 'oblique';
+declare type ZRFontWeight = 'normal' | 'bold' | 'bolder' | 'lighter' | number;
+declare type ZREasing = AnimationEasing;
+declare type ZRTextAlign = TextAlign;
+declare type ZRTextVerticalAlign = TextVerticalAlign;
+declare type ZRStyleProps = PathStyleProps | ImageStyleProps | TSpanStyleProps | TextStyleProps;
+declare type ComponentMainType = keyof ECUnitOption & string;
+interface PayloadItem {
+ excludeSeriesId?: OptionId | OptionId[];
+ animation?: PayloadAnimationPart;
+ [other: string]: any;
+}
+interface Payload extends PayloadItem {
+ type: string;
+ escapeConnect?: boolean;
+ statusChanged?: boolean;
+ batch?: PayloadItem[];
+}
+interface PayloadAnimationPart {
+ duration?: number;
+ easing?: AnimationEasing;
+ delay?: number;
+}
+interface ECEvent extends ECEventData {
+ type: string;
+ componentType?: string;
+ componentIndex?: number;
+ seriesIndex?: number;
+ escapeConnect?: boolean;
+ event?: ElementEvent;
+ batch?: ECEventData;
+}
+interface ECEventData {
+ [key: string]: any;
+}
+declare type TooltipRenderMode = 'html' | 'richText';
+declare type TooltipOrderMode = 'valueAsc' | 'valueDesc' | 'seriesAsc' | 'seriesDesc';
+declare type OrdinalRawValue = string | number;
+declare type OrdinalNumber = number;
+declare type OrdinalSortInfo = {
+ ordinalNumber: OrdinalNumber;
+ beforeSortIndex: number;
+};
+declare type ParsedValue = ParsedValueNumeric | OrdinalRawValue;
+declare type ParsedValueNumeric = number | OrdinalNumber;
+declare type ScaleDataValue = ParsedValueNumeric | OrdinalRawValue | Date;
+declare type DimensionIndex = number;
+declare type DimensionIndexLoose = DimensionIndex | string;
+declare type DimensionName = string;
+declare type DimensionLoose = DimensionName | DimensionIndexLoose;
+declare type DimensionDefinition = {
+ type?: ListDimensionType;
+ name?: DimensionName;
+ displayName?: string;
+};
+declare type DimensionDefinitionLoose = DimensionDefinition['name'] | DimensionDefinition;
+declare const SERIES_LAYOUT_BY_COLUMN: "column";
+declare const SERIES_LAYOUT_BY_ROW: "row";
+declare type SeriesLayoutBy = typeof SERIES_LAYOUT_BY_COLUMN | typeof SERIES_LAYOUT_BY_ROW;
+declare type OptionSourceHeader = boolean | 'auto' | number;
+declare type SeriesDataType = 'main' | 'node' | 'edge';
+declare type ECUnitOption = {
+ baseOption?: unknown;
+ options?: unknown;
+ media?: unknown;
+ timeline?: ComponentOption | ComponentOption[];
+ backgroundColor?: ZRColor;
+ darkMode?: boolean | 'auto';
+ textStyle?: Pick<LabelOption, 'color' | 'fontStyle' | 'fontWeight' | 'fontSize' | 'fontFamily'>;
+ useUTC?: boolean;
+ [key: string]: ComponentOption | ComponentOption[] | Dictionary<unknown> | unknown;
+ stateAnimation?: AnimationOption;
+} & AnimationOptionMixin & ColorPaletteOptionMixin & AriaOptionMixin;
+interface ECOption extends ECUnitOption {
+ baseOption?: ECUnitOption;
+ timeline?: ComponentOption | ComponentOption[];
+ options?: ECUnitOption[];
+ media?: MediaUnit[];
+}
+declare type OptionDataItemObject<T> = {
+ id?: OptionId;
+ name?: OptionName;
+ value?: T[] | T;
+ selected?: boolean;
+};
+declare type OptionId = string | number;
+declare type OptionName = string | number;
+interface GraphEdgeItemObject<VAL extends OptionDataValue> extends OptionDataItemObject<VAL> {
+ source?: string | number;
+ target?: string | number;
+}
+declare type OptionDataValue = string | number | Date;
+declare type OptionDataValueNumeric = number | '-';
+declare type OptionDataValueDate = Date | string | number;
+declare type ThemeOption = Dictionary<any>;
+declare type DisplayState = 'normal' | 'emphasis' | 'blur' | 'select';
+interface OptionEncodeVisualDimensions {
+ tooltip?: OptionEncodeValue;
+ label?: OptionEncodeValue;
+ itemName?: OptionEncodeValue;
+ itemId?: OptionEncodeValue;
+ seriesName?: OptionEncodeValue;
+}
+interface OptionEncode extends OptionEncodeVisualDimensions {
+ [coordDim: string]: OptionEncodeValue;
+}
+declare type OptionEncodeValue = DimensionLoose | DimensionLoose[];
+interface CallbackDataParams {
+ componentType: string;
+ componentSubType: string;
+ componentIndex: number;
+ seriesType?: string;
+ seriesIndex?: number;
+ seriesId?: string;
+ seriesName?: string;
+ name: string;
+ dataIndex: number;
+ data: any;
+ dataType?: SeriesDataType;
+ value: any;
+ color?: ZRColor;
+ borderColor?: string;
+ dimensionNames?: DimensionName[];
+ encode?: DimensionUserOuputEncode;
+ marker?: TooltipMarker;
+ status?: DisplayState;
+ dimensionIndex?: number;
+ percent?: number;
+ $vars: string[];
+}
+declare type DimensionUserOuputEncode = {
+ [coordOrVisualDimName: string]: DimensionIndex[];
+};
+declare type DecalDashArrayX = number | (number | number[])[];
+declare type DecalDashArrayY = number | number[];
+interface DecalObject {
+ symbol?: string;
+ symbolSize?: number;
+ symbolKeepAspect?: boolean;
+ color?: string;
+ backgroundColor?: string;
+ dashArrayX?: DecalDashArrayX;
+ dashArrayY?: DecalDashArrayY;
+ rotation?: number;
+ maxTileWidth?: number;
+ maxTileHeight?: number;
+}
+interface MediaQuery {
+ minWidth?: number;
+ maxWidth?: number;
+ minHeight?: number;
+ maxHeight?: number;
+ minAspectRatio?: number;
+ maxAspectRatio?: number;
+}
+declare type MediaUnit = {
+ query?: MediaQuery;
+ option: ECUnitOption;
+};
+interface ColorPaletteOptionMixin {
+ color?: ZRColor | ZRColor[];
+ colorLayer?: ZRColor[][];
+}
+interface AriaOptionMixin {
+ aria?: AriaOption;
+}
+interface BoxLayoutOptionMixin {
+ width?: number | string;
+ height?: number | string;
+ top?: number | string;
+ right?: number | string;
+ bottom?: number | string;
+ left?: number | string;
+}
+interface CircleLayoutOptionMixin {
+ center?: (number | string)[];
+ radius?: (number | string)[] | number | string;
+}
+interface ShadowOptionMixin {
+ shadowBlur?: number;
+ shadowColor?: ColorString;
+ shadowOffsetX?: number;
+ shadowOffsetY?: number;
+}
+interface BorderOptionMixin {
+ borderColor?: string;
+ borderWidth?: number;
+ borderType?: ZRLineType;
+ borderCap?: CanvasLineCap;
+ borderJoin?: CanvasLineJoin;
+ borderDashOffset?: number;
+ borderMiterLimit?: number;
+}
+declare type AnimationDelayCallbackParam = {
+ count: number;
+ index: number;
+};
+declare type AnimationDurationCallback = (idx: number) => number;
+declare type AnimationDelayCallback = (idx: number, params?: AnimationDelayCallbackParam) => number;
+interface AnimationOption {
+ duration?: number;
+ easing?: AnimationEasing;
+ delay?: number;
+}
+interface AnimationOptionMixin {
+ animation?: boolean;
+ animationThreshold?: number;
+ animationDuration?: number | AnimationDurationCallback;
+ animationEasing?: AnimationEasing;
+ animationDelay?: number | AnimationDelayCallback;
+ animationDurationUpdate?: number | AnimationDurationCallback;
+ animationEasingUpdate?: AnimationEasing;
+ animationDelayUpdate?: number | AnimationDelayCallback;
+}
+interface RoamOptionMixin {
+ roam?: boolean | 'pan' | 'move' | 'zoom' | 'scale';
+ center?: number[];
+ zoom?: number;
+ scaleLimit?: {
+ min?: number;
+ max?: number;
+ };
+}
+declare type SymbolSizeCallback<T> = (rawValue: any, params: T) => number | number[];
+declare type SymbolCallback<T> = (rawValue: any, params: T) => string;
+declare type SymbolRotateCallback<T> = (rawValue: any, params: T) => number;
+interface SymbolOptionMixin<T = unknown> {
+ symbol?: string | (unknown extends T ? never : SymbolCallback<T>);
+ symbolSize?: number | number[] | (unknown extends T ? never : SymbolSizeCallback<T>);
+ symbolRotate?: number | (unknown extends T ? never : SymbolRotateCallback<T>);
+ symbolKeepAspect?: boolean;
+ symbolOffset?: number[];
+}
+interface ItemStyleOption extends ShadowOptionMixin, BorderOptionMixin {
+ color?: ZRColor;
+ opacity?: number;
+ decal?: DecalObject | 'none';
+}
+interface LineStyleOption<Clr = ZRColor> extends ShadowOptionMixin {
+ width?: number;
+ color?: Clr;
+ opacity?: number;
+ type?: ZRLineType;
+ cap?: CanvasLineCap;
+ join?: CanvasLineJoin;
+ dashOffset?: number;
+ miterLimit?: number;
+}
+interface AreaStyleOption<Clr = ZRColor> extends ShadowOptionMixin {
+ color?: Clr;
+ opacity?: number;
+}
+interface VisualOptionUnit {
+ symbol?: string;
+ symbolSize?: number;
+ color?: ColorString;
+ colorAlpha?: number;
+ opacity?: number;
+ colorLightness?: number;
+ colorSaturation?: number;
+ colorHue?: number;
+ decal?: DecalObject;
+ liftZ?: number;
+}
+declare type VisualOptionFixed = VisualOptionUnit;
+declare type VisualOptionPiecewise = VisualOptionUnit;
+declare type BuiltinVisualProperty = keyof VisualOptionUnit;
+interface TextCommonOption extends ShadowOptionMixin {
+ color?: string;
+ fontStyle?: ZRFontStyle;
+ fontWeight?: ZRFontWeight;
+ fontFamily?: string;
+ fontSize?: number | string;
+ align?: HorizontalAlign;
+ verticalAlign?: VerticalAlign;
+ baseline?: VerticalAlign;
+ opacity?: number;
+ lineHeight?: number;
+ backgroundColor?: ColorString | {
+ image: ImageLike;
+ };
+ borderColor?: string;
+ borderWidth?: number;
+ borderType?: ZRLineType;
+ borderDashOffset?: number;
+ borderRadius?: number | number[];
+ padding?: number | number[];
+ width?: number | string;
+ height?: number;
+ textBorderColor?: string;
+ textBorderWidth?: number;
+ textBorderType?: ZRLineType;
+ textBorderDashOffset?: number;
+ textShadowBlur?: number;
+ textShadowColor?: string;
+ textShadowOffsetX?: number;
+ textShadowOffsetY?: number;
+ tag?: string;
+}
+interface LabelFormatterCallback<T = CallbackDataParams> {
+ (params: T): string;
+}
+interface LabelOption extends TextCommonOption {
+ show?: boolean;
+ position?: ElementTextConfig['position'];
+ distance?: number;
+ rotate?: number;
+ offset?: number[];
+ minMargin?: number;
+ overflow?: TextStyleProps['overflow'];
+ silent?: boolean;
+ precision?: number | 'auto';
+ valueAnimation?: boolean;
+ rich?: Dictionary<TextCommonOption>;
+}
+interface LineLabelOption extends Omit<LabelOption, 'distance' | 'position'> {
+ position?: 'start' | 'middle' | 'end' | 'insideStart' | 'insideStartTop' | 'insideStartBottom' | 'insideMiddle' | 'insideMiddleTop' | 'insideMiddleBottom' | 'insideEnd' | 'insideEndTop' | 'insideEndBottom' | 'insideMiddleBottom';
+ distance?: number | number[];
+}
+interface LabelLineOption {
+ show?: boolean;
+ showAbove?: boolean;
+ length?: number;
+ length2?: number;
+ smooth?: boolean | number;
+ minTurnAngle?: number;
+ lineStyle?: LineStyleOption;
+}
+interface LabelLayoutOptionCallbackParams {
+ dataIndex?: number;
+ dataType?: SeriesDataType;
+ seriesIndex: number;
+ text: string;
+ align: ZRTextAlign;
+ verticalAlign: ZRTextVerticalAlign;
+ rect: RectLike;
+ labelRect: RectLike;
+ labelLinePoints?: number[][];
+}
+interface LabelLayoutOption {
+ moveOverlap?: 'shiftX' | 'shiftY' | 'shuffleX' | 'shuffleY';
+ hideOverlap?: boolean;
+ draggable?: boolean;
+ x?: number | string;
+ y?: number | string;
+ dx?: number;
+ dy?: number;
+ rotate?: number;
+ align?: ZRTextAlign;
+ verticalAlign?: ZRTextVerticalAlign;
+ width?: number;
+ height?: number;
+ fontSize?: number;
+ labelLinePoints?: number[][];
+}
+declare type LabelLayoutOptionCallback = (params: LabelLayoutOptionCallbackParams) => LabelLayoutOption;
+interface TooltipFormatterCallback<T> {
+ (params: T, asyncTicket: string): string | HTMLElement[];
+ (params: T, asyncTicket: string, callback: (cbTicket: string, htmlOrDomNodes: string | HTMLElement[]) => void): string | HTMLElement[];
+}
+declare type TooltipBuiltinPosition = 'inside' | 'top' | 'left' | 'right' | 'bottom';
+declare type TooltipBoxLayoutOption = Pick<BoxLayoutOptionMixin, 'top' | 'left' | 'right' | 'bottom'>;
+interface PositionCallback {
+ (point: [number, number], params: CallbackDataParams | CallbackDataParams[], el: HTMLDivElement | Text | null, rect: RectLike | null, size: {
+ contentSize: [number, number];
+ viewSize: [number, number];
+ }): number[] | string[] | TooltipBuiltinPosition | TooltipBoxLayoutOption;
+}
+interface CommonTooltipOption<FormatterParams> {
+ show?: boolean;
+ triggerOn?: 'mousemove' | 'click' | 'none' | 'mousemove|click';
+ alwaysShowContent?: boolean;
+ formatter?: string | TooltipFormatterCallback<FormatterParams>;
+ position?: (number | string)[] | TooltipBuiltinPosition | PositionCallback | TooltipBoxLayoutOption;
+ confine?: boolean;
+ align?: HorizontalAlign;
+ verticalAlign?: VerticalAlign;
+ showDelay?: number;
+ hideDelay?: number;
+ transitionDuration?: number;
+ enterable?: boolean;
+ backgroundColor?: ColorString;
+ borderColor?: ColorString;
+ borderRadius?: number;
+ borderWidth?: number;
+ shadowBlur?: number;
+ shadowColor?: string;
+ shadowOffsetX?: number;
+ shadowOffsetY?: number;
+ padding?: number | number[];
+ extraCssText?: string;
+ textStyle?: Pick<LabelOption, 'color' | 'fontStyle' | 'fontWeight' | 'fontFamily' | 'fontSize' | 'lineHeight' | 'width' | 'height' | 'textBorderColor' | 'textBorderWidth' | 'textShadowColor' | 'textShadowBlur' | 'textShadowOffsetX' | 'textShadowOffsetY' | 'align'> & {
+ decoration?: string;
+ };
+}
+declare type SeriesTooltipOption = CommonTooltipOption<CallbackDataParams> & {
+ trigger?: 'item' | 'axis' | boolean | 'none';
+};
+declare type LabelFormatterParams = {
+ value: ScaleDataValue;
+ axisDimension: string;
+ axisIndex: number;
+ seriesData: CallbackDataParams[];
+};
+interface CommonAxisPointerOption {
+ show?: boolean | 'auto';
+ z?: number;
+ zlevel?: number;
+ triggerOn?: 'click' | 'mousemove' | 'none' | 'mousemove|click';
+ type?: 'line' | 'shadow' | 'none';
+ snap?: boolean;
+ triggerTooltip?: boolean;
+ value?: ScaleDataValue;
+ status?: 'show' | 'hide';
+ label?: LabelOption & {
+ precision?: 'auto' | number;
+ margin?: number;
+ formatter?: string | ((params: LabelFormatterParams) => string);
+ };
+ animation?: boolean | 'auto';
+ animationDurationUpdate?: number;
+ animationEasingUpdate?: ZREasing;
+ lineStyle?: LineStyleOption;
+ shadowStyle?: AreaStyleOption;
+ handle?: {
+ show?: boolean;
+ icon?: string;
+ size?: number | number[];
+ margin?: number;
+ color?: ColorString;
+ throttle?: number;
+ } & ShadowOptionMixin;
+ seriesDataIndices?: {
+ seriesIndex: number;
+ dataIndex: number;
+ dataIndexInside: number;
+ }[];
+}
+interface ComponentOption {
+ type?: string;
+ id?: OptionId;
+ name?: OptionName;
+ z?: number;
+ zlevel?: number;
+}
+declare type BlurScope = 'coordinateSystem' | 'series' | 'global';
+interface StatesOptionMixin<StateOption = unknown, ExtraStateOpts extends {
+ emphasis?: any;
+ select?: any;
+ blur?: any;
+} = unknown> {
+ emphasis?: StateOption & {
+ focus?: 'none' | 'self' | 'series' | (unknown extends ExtraStateOpts['emphasis']['focus'] ? never : ExtraStateOpts['emphasis']['focus']);
+ blurScope?: BlurScope;
+ } & Omit<ExtraStateOpts['emphasis'], 'focus'>;
+ select?: StateOption & ExtraStateOpts['select'];
+ blur?: StateOption & ExtraStateOpts['blur'];
+}
+interface SeriesOption<StateOption = any, ExtraStateOpts extends {
+ emphasis?: any;
+ select?: any;
+ blur?: any;
+} = unknown> extends ComponentOption, AnimationOptionMixin, ColorPaletteOptionMixin, StatesOptionMixin<StateOption, ExtraStateOpts> {
+ silent?: boolean;
+ blendMode?: string;
+ cursor?: string;
+ data?: unknown;
+ legendHoverLink?: boolean;
+ progressive?: number | false;
+ progressiveThreshold?: number;
+ progressiveChunkMode?: 'mod';
+ coordinateSystem?: string;
+ hoverLayerThreshold?: number;
+ seriesLayoutBy?: 'column' | 'row';
+ labelLine?: LabelLineOption;
+ labelLayout?: LabelLayoutOption | LabelLayoutOptionCallback;
+ stateAnimation?: AnimationOption;
+ selectedMap?: Dictionary<boolean>;
+ selectedMode?: 'single' | 'multiple' | boolean;
+}
+interface SeriesOnCartesianOptionMixin {
+ xAxisIndex?: number;
+ yAxisIndex?: number;
+ xAxisId?: string;
+ yAxisId?: string;
+}
+interface SeriesOnPolarOptionMixin {
+ radiusAxisIndex?: number;
+ angleAxisIndex?: number;
+ radiusAxisId?: string;
+ angleAxisId?: string;
+}
+interface SeriesOnSingleOptionMixin {
+ singleAxisIndex?: number;
+ singleAxisId?: string;
+}
+interface SeriesOnGeoOptionMixin {
+ geoIndex?: number;
+ geoId?: string;
+}
+interface SeriesOnCalendarOptionMixin {
+ calendarIndex?: number;
+ calendarId?: string;
+}
+interface SeriesLargeOptionMixin {
+ large?: boolean;
+ largeThreshold?: number;
+}
+interface SeriesStackOptionMixin {
+ stack?: string;
+}
+declare type SamplingFunc = (frame: ArrayLike<number>) => number;
+interface SeriesSamplingOptionMixin {
+ sampling?: 'none' | 'average' | 'min' | 'max' | 'sum' | 'lttb' | SamplingFunc;
+}
+interface SeriesEncodeOptionMixin {
+ datasetIndex?: number;
+ datasetId?: string | number;
+ seriesLayoutBy?: SeriesLayoutBy;
+ sourceHeader?: OptionSourceHeader;
+ dimensions?: DimensionDefinitionLoose[];
+ encode?: OptionEncode;
+}
+
+declare const _default: {
+ time: {
+ month: string[];
+ monthAbbr: string[];
+ dayOfWeek: string[];
+ dayOfWeekAbbr: string[];
+ };
+ legend: {
+ selector: {
+ all: string;
+ inverse: string;
+ };
+ };
+ toolbox: {
+ brush: {
+ title: {
+ rect: string;
+ polygon: string;
+ lineX: string;
+ lineY: string;
+ keep: string;
+ clear: string;
+ };
+ };
+ dataView: {
+ title: string;
+ lang: string[];
+ };
+ dataZoom: {
+ title: {
+ zoom: string;
+ back: string;
+ };
+ };
+ magicType: {
+ title: {
+ line: string;
+ bar: string;
+ stack: string;
+ tiled: string;
+ };
+ };
+ restore: {
+ title: string;
+ };
+ saveAsImage: {
+ title: string;
+ lang: string[];
+ };
+ };
+ series: {
+ typeNames: {
+ pie: string;
+ bar: string;
+ line: string;
+ scatter: string;
+ effectScatter: string;
+ radar: string;
+ tree: string;
+ treemap: string;
+ boxplot: string;
+ candlestick: string;
+ k: string;
+ heatmap: string;
+ map: string;
+ parallel: string;
+ lines: string;
+ graph: string;
+ sankey: string;
+ funnel: string;
+ gauge: string;
+ pictorialBar: string;
+ themeRiver: string;
+ sunburst: string;
+ };
+ };
+ aria: {
+ general: {
+ withTitle: string;
+ withoutTitle: string;
+ };
+ series: {
+ single: {
+ prefix: string;
+ withName: string;
+ withoutName: string;
+ };
+ multiple: {
+ prefix: string;
+ withName: string;
+ withoutName: string;
+ separator: {
+ middle: string;
+ end: string;
+ };
+ };
+ };
+ data: {
+ allData: string;
+ partialData: string;
+ withName: string;
+ withoutName: string;
+ separator: {
+ middle: string;
+ end: string;
+ };
+ };
+ };
+};
+
+declare type LocaleOption = typeof _default;
+declare function registerLocale(locale: string, localeObj: LocaleOption): void;
+
+interface GlobalModelSetOptionOpts {
+ replaceMerge: ComponentMainType | ComponentMainType[];
+}
+
+declare type SVGMapSource = 'string' | Document | SVGElement;
+declare type GeoJSONMapSource = 'string' | GeoJSON | GeoJSONCompressed;
+declare type MapInputObject = {
+ geoJSON?: GeoJSONMapSource;
+ geoJson?: GeoJSONMapSource;
+ svg?: SVGMapSource;
+ specialAreas?: GeoSpecialAreas;
+};
+declare type MapRecord = GeoJSONMapRecord | SVGMapRecord;
+interface GeoJSONMapRecord {
+ type: 'geoJSON';
+ source: GeoJSONMapSource;
+ specialAreas: GeoSpecialAreas;
+ geoJSON: GeoJSON | GeoJSONCompressed;
+}
+interface SVGMapRecord {
+ type: 'svg';
+ source: SVGMapSource;
+ specialAreas: GeoSpecialAreas;
+ svgXML: ReturnType<typeof parseXML>;
+}
+declare const _default$1: {
+ registerMap: (mapName: string, rawDef: "string" | GeoJSON | GeoJSONCompressed | MapInputObject | MapRecord[], rawSpecialAreas?: GeoSpecialAreas) => MapRecord[];
+ retrieveMap: (mapName: string) => MapRecord[];
+};
+
+declare type SingleAxisPosition = 'top' | 'bottom' | 'left' | 'right';
+interface SingleAxisOption extends AxisBaseOption, BoxLayoutOptionMixin {
+ position?: SingleAxisPosition;
+ orient?: LayoutOrient;
+}
+
+declare type ParallelLayoutDirection = 'horizontal' | 'vertical';
+interface ParallelCoordinateSystemOption extends ComponentOption, BoxLayoutOptionMixin {
+ layout?: ParallelLayoutDirection;
+ axisExpandable?: boolean;
+ axisExpandCenter?: number;
+ axisExpandCount?: number;
+ axisExpandWidth?: number;
+ axisExpandTriggerOn?: 'click' | 'mousemove';
+ axisExpandRate?: number;
+ axisExpandDebounce?: number;
+ axisExpandSlideTriggerArea?: [number, number, number];
+ axisExpandWindow?: number[];
+ parallelAxisDefault?: ParallelAxisOption;
+}
+
+interface ParallelAxisOption extends AxisBaseOption {
+ dim?: number[];
+ parallelIndex?: number;
+ areaSelectStyle?: {
+ width?: number;
+ borderWidth?: number;
+ borderColor?: ZRColor;
+ color?: ZRColor;
+ opacity?: number;
+ };
+ realtime?: boolean;
+}
+
+interface CalendarMonthLabelFormatterCallbackParams {
+ nameMap: string;
+ yyyy: string;
+ yy: string;
+ MM: string;
+ M: number;
+}
+interface CalendarYearLabelFormatterCallbackParams {
+ nameMap: string;
+ start: string;
+ end: string;
+}
+interface CalendarOption extends ComponentOption, BoxLayoutOptionMixin {
+ cellSize?: number | 'auto' | (number | 'auto')[];
+ orient?: LayoutOrient;
+ splitLine?: {
+ show?: boolean;
+ lineStyle?: LineStyleOption;
+ };
+ itemStyle?: ItemStyleOption;
+ range?: OptionDataValueDate | (OptionDataValueDate)[];
+ dayLabel?: Omit<LabelOption, 'position'> & {
+ firstDay?: number;
+ margin?: number | string;
+ position?: 'start' | 'end';
+ nameMap?: 'en' | 'cn' | string[];
+ };
+ monthLabel?: Omit<LabelOption, 'position'> & {
+ margin?: number;
+ position?: 'start' | 'end';
+ nameMap?: 'en' | 'cn' | string[];
+ formatter?: string | ((params: CalendarMonthLabelFormatterCallbackParams) => string);
+ };
+ yearLabel?: Omit<LabelOption, 'position'> & {
+ margin?: number;
+ position?: 'top' | 'bottom' | 'left' | 'right';
+ formatter?: string | ((params: CalendarYearLabelFormatterCallbackParams) => string);
+ };
+}
+
+declare type IconStyle = ItemStyleOption & {
+ textFill?: LabelOption['color'];
+ textBackgroundColor?: LabelOption['backgroundColor'];
+ textPosition?: LabelOption['position'];
+ textAlign?: LabelOption['align'];
+ textBorderRadius?: LabelOption['borderRadius'];
+ textPadding?: LabelOption['padding'];
+};
+interface ToolboxFeatureOption {
+ show?: boolean;
+ title?: string | Dictionary<string>;
+ icon?: string | Dictionary<string>;
+ iconStyle?: IconStyle;
+ emphasis?: {
+ iconStyle?: IconStyle;
+ };
+ iconStatus?: Dictionary<DisplayState>;
+ onclick?: () => void;
+}
+
+interface ToolboxTooltipFormatterParams {
+ componentType: 'toolbox';
+ name: string;
+ title: string;
+ $vars: ['name', 'title'];
+}
+interface ToolboxOption extends ComponentOption, BoxLayoutOptionMixin, BorderOptionMixin {
+ show?: boolean;
+ orient?: LayoutOrient;
+ backgroundColor?: ZRColor;
+ borderRadius?: number | number[];
+ padding?: number | number[];
+ itemSize?: number;
+ itemGap?: number;
+ showTitle?: boolean;
+ iconStyle?: ItemStyleOption;
+ emphasis?: {
+ iconStyle?: ItemStyleOption;
+ };
+ textStyle?: LabelOption;
+ tooltip?: CommonTooltipOption<ToolboxTooltipFormatterParams>;
+ feature?: Dictionary<ToolboxFeatureOption>;
+}
+
+interface TitleOption extends ComponentOption, BoxLayoutOptionMixin, BorderOptionMixin {
+ show?: boolean;
+ type?: 'title';
+ text?: string;
+ link?: string;
+ target?: 'self' | 'blank';
+ subtext?: string;
+ sublink?: string;
+ subtarget?: 'self' | 'blank';
+ textAlign?: ZRTextAlign;
+ textVerticalAlign?: ZRTextVerticalAlign;
+ textBaseline?: ZRTextVerticalAlign;
+ backgroundColor?: ZRColor;
+ padding?: number | number[];
+ itemGap?: number;
+ textStyle?: LabelOption;
+ subtextStyle?: LabelOption;
+ triggerEvent?: boolean;
+ borderRadius?: number | number[];
+}
+
+interface TimelineControlStyle extends ItemStyleOption {
+ show?: boolean;
+ showPlayBtn?: boolean;
+ showPrevBtn?: boolean;
+ showNextBtn?: boolean;
+ itemSize?: number;
+ itemGap?: number;
+ position?: 'left' | 'right' | 'top' | 'bottom';
+ playIcon?: string;
+ stopIcon?: string;
+ prevIcon?: string;
+ nextIcon?: string;
+ playBtnSize?: number | string;
+ stopBtnSize?: number | string;
+ nextBtnSize?: number | string;
+ prevBtnSize?: number | string;
+}
+interface TimelineCheckpointStyle extends ItemStyleOption, SymbolOptionMixin {
+ animation?: boolean;
+ animationDuration?: number;
+ animationEasing?: ZREasing;
+}
+interface TimelineLineStyleOption extends LineStyleOption {
+ show?: boolean;
+}
+interface TimelineLabelOption extends Omit<LabelOption, 'position'> {
+ show?: boolean;
+ position?: 'auto' | 'left' | 'right' | 'top' | 'bottom' | number;
+ interval?: 'auto' | number;
+}
+interface TimelineDataItemOption extends SymbolOptionMixin {
+ value?: OptionDataValue;
+ itemStyle?: ItemStyleOption;
+ label?: TimelineLabelOption;
+ checkpointStyle?: TimelineCheckpointStyle;
+ emphasis?: {
+ itemStyle?: ItemStyleOption;
+ label?: TimelineLabelOption;
+ checkpointStyle?: TimelineCheckpointStyle;
+ };
+ progress?: {
+ lineStyle?: TimelineLineStyleOption;
+ itemStyle?: ItemStyleOption;
+ label?: TimelineLabelOption;
+ };
+ tooltip?: boolean;
+}
+interface TimelineOption extends ComponentOption, BoxLayoutOptionMixin, SymbolOptionMixin {
+ backgroundColor?: ZRColor;
+ borderColor?: ColorString;
+ borderWidth?: number;
+ tooltip?: CommonTooltipOption<CallbackDataParams> & {
+ trigger?: 'item';
+ };
+ show?: boolean;
+ axisType?: 'category' | 'time' | 'value';
+ currentIndex?: number;
+ autoPlay?: boolean;
+ rewind?: boolean;
+ loop?: boolean;
+ playInterval?: number;
+ realtime?: boolean;
+ controlPosition?: 'left' | 'right' | 'top' | 'bottom';
+ padding?: number | number[];
+ orient?: LayoutOrient;
+ inverse?: boolean;
+ replaceMerge?: GlobalModelSetOptionOpts['replaceMerge'];
+ lineStyle?: TimelineLineStyleOption;
+ itemStyle?: ItemStyleOption;
+ checkpointStyle?: TimelineCheckpointStyle;
+ controlStyle?: TimelineControlStyle;
+ label?: TimelineLabelOption;
+ emphasis?: {
+ lineStyle?: TimelineLineStyleOption;
+ itemStyle?: ItemStyleOption;
+ checkpointStyle?: TimelineCheckpointStyle;
+ controlStyle?: TimelineControlStyle;
+ label?: TimelineLabelOption;
+ };
+ progress?: {
+ lineStyle?: TimelineLineStyleOption;
+ itemStyle?: ItemStyleOption;
+ label?: TimelineLabelOption;
+ };
+ data?: (OptionDataValue | TimelineDataItemOption)[];
+}
+
+interface SliderTimelineOption extends TimelineOption {
+}
+
+declare type SelectorType = 'all' | 'inverse';
+interface LegendSelectorButtonOption {
+ type?: SelectorType;
+ title?: string;
+}
+interface DataItem {
+ name?: string;
+ icon?: string;
+ textStyle?: LabelOption;
+ tooltip?: unknown;
+}
+interface LegendTooltipFormatterParams {
+ componentType: 'legend';
+ legendIndex: number;
+ name: string;
+ $vars: ['name'];
+}
+interface LegendOption extends ComponentOption, BoxLayoutOptionMixin, BorderOptionMixin {
+ show?: boolean;
+ orient?: LayoutOrient;
+ align?: 'auto' | 'left' | 'right';
+ backgroundColor?: ColorString;
+ borderRadius?: number | number[];
+ padding?: number | number[];
+ itemGap?: number;
+ itemWidth?: number;
+ itemHeight?: number;
+ inactiveColor?: ColorString;
+ inactiveBorderColor?: ColorString;
+ itemStyle?: ItemStyleOption;
+ formatter?: string | ((name: string) => string);
+ textStyle?: LabelOption;
+ selectedMode?: boolean | 'single' | 'multiple';
+ selected?: Dictionary<boolean>;
+ selector?: (LegendSelectorButtonOption | SelectorType)[] | boolean;
+ selectorLabel?: LabelOption;
+ emphasis?: {
+ selectorLabel?: LabelOption;
+ };
+ selectorPosition?: 'auto' | 'start' | 'end';
+ selectorItemGap?: number;
+ selectorButtonGap?: number;
+ data?: (string | DataItem)[];
+ symbolKeepAspect?: boolean;
+ tooltip?: CommonTooltipOption<LegendTooltipFormatterParams>;
+}
+
+interface ScrollableLegendOption extends LegendOption {
+ scrollDataIndex?: number;
+ pageButtonItemGap?: number;
+ pageButtonGap?: number;
+ pageButtonPosition?: 'start' | 'end';
+ pageFormatter?: string | ((param: {
+ current: number;
+ total: number;
+ }) => string);
+ pageIcons?: {
+ horizontal?: string[];
+ vertical?: string[];
+ };
+ pageIconColor?: ZRColor;
+ pageIconInactiveColor?: ZRColor;
+ pageIconSize?: number;
+ pageTextStyle?: LabelOption;
+ animationDurationUpdate?: number;
+}
+
+interface DataZoomOption extends ComponentOption {
+ orient?: LayoutOrient;
+ xAxisIndex?: number | number[];
+ xAxisId?: string | string[];
+ yAxisIndex?: number | number[];
+ yAxisId?: string | string[];
+ radiusAxisIndex?: number | number[];
+ radiusAxisId?: string | string[];
+ angleAxisIndex?: number | number[];
+ angleAxisId?: string | string[];
+ singleAxisIndex?: number | number[];
+ singleAxisId?: string | string[];
+ filterMode?: 'filter' | 'weakFilter' | 'empty' | 'none';
+ throttle?: number | null | undefined;
+ start?: number;
+ end?: number;
+ startValue?: number;
+ endValue?: number;
+ minSpan?: number;
+ maxSpan?: number;
+ minValueSpan?: number;
+ maxValueSpan?: number;
+ rangeMode?: ['value' | 'percent', 'value' | 'percent'];
+ realtime?: boolean;
+ textStyle?: LabelOption;
+}
+
+interface SliderDataZoomOption extends DataZoomOption, BoxLayoutOptionMixin {
+ show?: boolean;
+ backgroundColor?: ZRColor;
+ borderColor?: ZRColor;
+ borderRadius?: number | number[];
+ dataBackground?: {
+ lineStyle?: LineStyleOption;
+ areaStyle?: AreaStyleOption;
+ };
+ selectedDataBackground?: {
+ lineStyle?: LineStyleOption;
+ areaStyle?: AreaStyleOption;
+ };
+ fillerColor?: ZRColor;
+ handleIcon?: string;
+ handleSize?: string | number;
+ handleStyle?: ItemStyleOption;
+ moveHandleIcon?: string;
+ moveHandleStyle?: ItemStyleOption;
+ moveHandleSize?: number;
+ labelPrecision?: number | 'auto';
+ labelFormatter?: string | ((value: number, valueStr: string) => string);
+ showDetail?: boolean;
+ showDataShadow?: 'auto' | boolean;
+ zoomLock?: boolean;
+ textStyle?: LabelOption;
+ brushSelect?: boolean;
+ brushStyle?: ItemStyleOption;
+ emphasis?: {
+ handleStyle?: ItemStyleOption;
+ moveHandleStyle?: ItemStyleOption;
+ };
+}
+
+interface InsideDataZoomOption extends DataZoomOption {
+ disabled?: boolean;
+ zoomLock?: boolean;
+ zoomOnMouseWheel?: boolean | 'shift' | 'ctrl' | 'alt';
+ moveOnMouseMove?: boolean | 'shift' | 'ctrl' | 'alt';
+ moveOnMouseWheel?: boolean | 'shift' | 'ctrl' | 'alt';
+ preventDefaultMouseMove?: boolean;
+ textStyle?: never;
+}
+
+interface ContinousVisualMapOption extends VisualMapOption {
+ align?: 'auto' | 'left' | 'right' | 'top' | 'bottom';
+ calculable?: boolean;
+ range?: number[];
+ hoverLink?: boolean;
+ hoverLinkDataSize?: number;
+ hoverLinkOnHandle?: boolean;
+ handleIcon?: string;
+ handleSize?: string | number;
+ handleStyle?: ItemStyleOption;
+ indicatorIcon?: string;
+ indicatorSize?: string | number;
+ indicatorStyle?: ItemStyleOption;
+ emphasis?: {
+ handleStyle?: ItemStyleOption;
+ };
+}
+
+interface VisualPiece extends VisualOptionPiecewise {
+ min?: number;
+ max?: number;
+ lt?: number;
+ gt?: number;
+ lte?: number;
+ gte?: number;
+ value?: number;
+ label?: string;
+}
+interface PiecewiseVisualMapOption extends VisualMapOption {
+ align?: 'auto' | 'left' | 'right';
+ minOpen?: boolean;
+ maxOpen?: boolean;
+ itemWidth?: number;
+ itemHeight?: number;
+ itemSymbol?: string;
+ pieces?: VisualPiece[];
+ categories?: string[];
+ splitNumber?: number;
+ selected?: Dictionary<boolean>;
+ selectedMode?: 'multiple' | 'single';
+ showLabel?: boolean;
+ itemGap?: number;
+ hoverLink?: boolean;
+}
+
+declare type LineDataValue = OptionDataValue | OptionDataValue[];
+interface ExtraStateOption {
+ emphasis?: {
+ scale?: boolean;
+ };
+}
+interface LineStateOption {
+ itemStyle?: ItemStyleOption;
+ label?: LabelOption;
+}
+interface LineDataItemOption extends SymbolOptionMixin, LineStateOption, StatesOptionMixin<LineStateOption, ExtraStateOption> {
+ name?: string;
+ value?: LineDataValue;
+}
+interface LineEndLabelOption extends LabelOption {
+ valueAnimation: boolean;
+}
+interface LineSeriesOption extends SeriesOption<LineStateOption, ExtraStateOption & {
+ emphasis?: {
+ lineStyle?: LineStyleOption | {
+ width?: 'bolder';
+ };
+ areaStyle?: AreaStyleOption;
+ };
+ blur?: {
+ lineStyle?: LineStyleOption;
+ areaStyle?: AreaStyleOption;
+ };
+}>, LineStateOption, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesStackOptionMixin, SeriesSamplingOptionMixin, SymbolOptionMixin {
+ type?: 'line';
+ coordinateSystem?: 'cartesian2d' | 'polar';
+ clip?: boolean;
+ label?: LabelOption;
+ endLabel?: LineEndLabelOption;
+ lineStyle?: LineStyleOption;
+ areaStyle?: AreaStyleOption & {
+ origin?: 'auto' | 'start' | 'end';
+ };
+ step?: false | 'start' | 'end' | 'middle';
+ smooth?: boolean;
+ smoothMonotone?: 'x' | 'y' | 'none';
+ connectNulls?: boolean;
+ showSymbol?: boolean;
+ showAllSymbol?: 'auto';
+ data?: (LineDataValue | LineDataItemOption)[];
+}
+
+interface ScatterStateOption {
+ itemStyle?: ItemStyleOption;
+ label?: LabelOption;
+}
+interface ExtraStateOption$1 {
+ emphasis?: {
+ scale?: boolean;
+ };
+}
+interface ScatterDataItemOption extends SymbolOptionMixin, ScatterStateOption, StatesOptionMixin<ScatterStateOption, ExtraStateOption$1>, OptionDataItemObject<OptionDataValue> {
+}
+interface ScatterSeriesOption extends SeriesOption<ScatterStateOption, ExtraStateOption$1>, ScatterStateOption, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin, SeriesLargeOptionMixin, SeriesStackOptionMixin, SymbolOptionMixin {
+ type?: 'scatter';
+ coordinateSystem?: string;
+ cursor?: string;
+ clip?: boolean;
+ data?: (ScatterDataItemOption | OptionDataValue | OptionDataValue[])[] | ArrayLike<number>;
+}
+
+interface PieItemStyleOption extends ItemStyleOption {
+ borderRadius?: (number | string)[] | number | string;
+}
+interface PieStateOption {
+ itemStyle?: PieItemStyleOption;
+ label?: PieLabelOption;
+ labelLine?: PieLabelLineOption;
+}
+interface PieLabelOption extends Omit<LabelOption, 'rotate' | 'position'> {
+ rotate?: number;
+ alignTo?: 'none' | 'labelLine' | 'edge';
+ edgeDistance?: string | number;
+ bleedMargin?: number;
+ distanceToLabelLine?: number;
+ position?: LabelOption['position'] | 'outer' | 'inner' | 'center';
+}
+interface PieLabelLineOption extends LabelLineOption {
+ maxSurfaceAngle?: number;
+}
+interface ExtraStateOption$2 {
+ emphasis?: {
+ scale?: boolean;
+ scaleSize?: number;
+ };
+}
+interface PieDataItemOption extends OptionDataItemObject<OptionDataValueNumeric>, PieStateOption, StatesOptionMixin<PieStateOption, ExtraStateOption$2> {
+ cursor?: string;
+}
+interface PieSeriesOption extends Omit<SeriesOption<PieStateOption, ExtraStateOption$2>, 'labelLine'>, PieStateOption, CircleLayoutOptionMixin, BoxLayoutOptionMixin, SeriesEncodeOptionMixin {
+ type?: 'pie';
+ roseType?: 'radius' | 'area';
+ clockwise?: boolean;
+ startAngle?: number;
+ minAngle?: number;
+ minShowLabelAngle?: number;
+ selectedOffset?: number;
+ avoidLabelOverlap?: boolean;
+ percentPrecision?: number;
+ stillShowZeroSum?: boolean;
+ animationType?: 'expansion' | 'scale';
+ animationTypeUpdate?: 'transition' | 'expansion';
+ data?: OptionDataValueNumeric[] | OptionDataValueNumeric[][] | PieDataItemOption[];
+}
+
+interface RadarSeriesStateOption {
+ lineStyle?: LineStyleOption;
+ areaStyle?: AreaStyleOption;
+ label?: LabelOption;
+ itemStyle?: ItemStyleOption;
+}
+interface RadarSeriesOption extends SeriesOption<RadarSeriesStateOption>, RadarSeriesStateOption, SymbolOptionMixin {
+ type?: 'radar';
+ coordinateSystem?: 'radar';
+ radarIndex?: number;
+ radarId?: string;
+ data?: RadarSeriesStateOption[];
+}
+
+interface CurveLineStyleOption extends LineStyleOption {
+ curveness?: number;
+}
+interface TreeSeriesStateOption {
+ itemStyle?: ItemStyleOption;
+ lineStyle?: CurveLineStyleOption;
+ label?: LabelOption;
+}
+interface ExtraStateOption$3 {
+ emphasis?: {
+ focus?: 'ancestor' | 'descendant';
+ scale?: boolean;
+ };
+}
+interface TreeSeriesNodeItemOption extends SymbolOptionMixin, TreeSeriesStateOption, StatesOptionMixin<TreeSeriesStateOption, ExtraStateOption$3>, OptionDataItemObject<OptionDataValue> {
+ children?: TreeSeriesNodeItemOption[];
+ collapsed?: boolean;
+ link?: string;
+ target?: string;
+}
+interface TreeSeriesLeavesOption extends TreeSeriesStateOption, StatesOptionMixin<TreeSeriesStateOption> {
+}
+interface TreeSeriesOption extends SeriesOption<TreeSeriesStateOption, ExtraStateOption$3>, TreeSeriesStateOption, SymbolOptionMixin, BoxLayoutOptionMixin, RoamOptionMixin {
+ type?: 'tree';
+ layout?: 'orthogonal' | 'radial';
+ edgeShape?: 'polyline' | 'curve';
+ edgeForkPosition?: string | number;
+ nodeScaleRatio?: number;
+ orient?: 'LR' | 'TB' | 'RL' | 'BT' | 'horizontal' | 'vertical';
+ expandAndCollapse?: boolean;
+ initialTreeDepth?: number;
+ leaves?: TreeSeriesLeavesOption;
+ data?: TreeSeriesNodeItemOption[];
+}
+
+declare type TreemapSeriesDataValue = number | number[];
+interface BreadcrumbItemStyleOption extends ItemStyleOption {
+ textStyle?: LabelOption;
+}
+interface TreemapSeriesLabelOption extends LabelOption {
+ ellipsis?: boolean;
+ formatter?: string | ((params: CallbackDataParams) => string);
+}
+interface TreemapSeriesItemStyleOption extends ItemStyleOption {
+ borderRadius?: number | number[];
+ colorAlpha?: number;
+ colorSaturation?: number;
+ borderColorSaturation?: number;
+ gapWidth?: number;
+}
+interface ExtraStateOption$4 {
+ emphasis?: {
+ focus?: 'descendant' | 'ancestor';
+ };
+}
+interface TreemapStateOption {
+ itemStyle?: TreemapSeriesItemStyleOption;
+ label?: TreemapSeriesLabelOption;
+ upperLabel?: TreemapSeriesLabelOption;
+}
+interface TreemapSeriesVisualOption {
+ visualDimension?: number | string;
+ colorMappingBy?: 'value' | 'index' | 'id';
+ visualMin?: number;
+ visualMax?: number;
+ colorAlpha?: number[] | 'none';
+ colorSaturation?: number[] | 'none';
+ visibleMin?: number;
+ childrenVisibleMin?: number;
+}
+interface TreemapSeriesLevelOption extends TreemapSeriesVisualOption, TreemapStateOption, StatesOptionMixin<TreemapStateOption, ExtraStateOption$4> {
+ color?: ColorString[] | 'none';
+ decal?: DecalObject[] | 'none';
+}
+interface TreemapSeriesNodeItemOption extends TreemapSeriesVisualOption, TreemapStateOption, StatesOptionMixin<TreemapStateOption, ExtraStateOption$4> {
+ id?: OptionId;
+ name?: OptionName;
+ value?: TreemapSeriesDataValue;
+ children?: TreemapSeriesNodeItemOption[];
+ color?: ColorString[] | 'none';
+ decal?: DecalObject[] | 'none';
+}
+interface TreemapSeriesOption extends SeriesOption<TreemapStateOption, ExtraStateOption$4>, TreemapStateOption, BoxLayoutOptionMixin, RoamOptionMixin, TreemapSeriesVisualOption {
+ type?: 'treemap';
+ size?: (number | string)[];
+ sort?: boolean | 'asc' | 'desc';
+ clipWindow?: 'origin' | 'fullscreen';
+ squareRatio: number;
+ leafDepth: number;
+ drillDownIcon?: string;
+ zoomToNodeRatio?: number;
+ nodeClick?: 'zoomToNode' | 'link';
+ breadcrumb?: BoxLayoutOptionMixin & {
+ show?: boolean;
+ height?: number;
+ emptyItemWidth: number;
+ itemStyle?: BreadcrumbItemStyleOption;
+ emphasis?: {
+ itemStyle?: BreadcrumbItemStyleOption;
+ };
+ };
+ levels?: TreemapSeriesLevelOption[];
+ data?: TreemapSeriesNodeItemOption[];
+}
+
+declare type GraphDataValue = OptionDataValue | OptionDataValue[];
+interface GraphEdgeLineStyleOption extends LineStyleOption {
+ curveness?: number;
+}
+interface GraphNodeStateOption {
+ itemStyle?: ItemStyleOption;
+ label?: LabelOption;
+}
+interface ExtraNodeStateOption {
+ emphasis?: {
+ focus?: 'adjacency';
+ scale?: boolean;
+ };
+}
+interface ExtraEdgeStateOption {
+ emphasis?: {
+ focus?: 'adjacency';
+ };
+}
+interface GraphNodeItemOption extends SymbolOptionMixin, GraphNodeStateOption, GraphNodeStateOption, StatesOptionMixin<GraphNodeStateOption, ExtraNodeStateOption> {
+ id?: string;
+ name?: string;
+ value?: GraphDataValue;
+ x?: number;
+ y?: number;
+ fixed?: boolean;
+ category?: number | string;
+ draggable?: boolean;
+}
+interface GraphEdgeStateOption {
+ lineStyle?: GraphEdgeLineStyleOption;
+ label?: LineLabelOption;
+}
+interface GraphEdgeItemOption extends GraphEdgeStateOption, StatesOptionMixin<GraphEdgeStateOption, ExtraEdgeStateOption>, GraphEdgeItemObject<OptionDataValueNumeric> {
+ value?: number;
+ symbol?: string | string[];
+ symbolSize?: number | number[];
+ ignoreForceLayout?: boolean;
+}
+interface GraphCategoryItemOption extends SymbolOptionMixin, GraphNodeStateOption, StatesOptionMixin<GraphNodeStateOption> {
+ name?: string;
+ value?: OptionDataValue;
+}
+interface GraphSeriesOption extends SeriesOption, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin, SymbolOptionMixin, RoamOptionMixin, BoxLayoutOptionMixin {
+ type?: 'graph';
+ coordinateSystem?: string;
+ legendHoverLink?: boolean;
+ layout?: 'none' | 'force' | 'circular';
+ data?: (GraphNodeItemOption | GraphDataValue)[];
+ nodes?: (GraphNodeItemOption | GraphDataValue)[];
+ edges?: GraphEdgeItemOption[];
+ links?: GraphEdgeItemOption[];
+ categories?: GraphCategoryItemOption[];
+ focusNodeAdjacency?: boolean;
+ nodeScaleRatio?: 0.6;
+ draggable?: boolean;
+ edgeSymbol?: string | string[];
+ edgeSymbolSize?: number | number[];
+ edgeLabel?: LineLabelOption & {
+ formatter?: LabelFormatterCallback | string;
+ };
+ label?: LabelOption & {
+ formatter?: LabelFormatterCallback | string;
+ };
+ itemStyle?: ItemStyleOption;
+ lineStyle?: GraphEdgeLineStyleOption;
+ emphasis?: {
+ focus?: GraphNodeItemOption['emphasis']['focus'];
+ scale?: boolean;
+ label?: LabelOption;
+ edgeLabel?: LabelOption;
+ itemStyle?: ItemStyleOption;
+ lineStyle?: LineStyleOption;
+ };
+ blur?: {
+ label?: LabelOption;
+ edgeLabel?: LabelOption;
+ itemStyle?: ItemStyleOption;
+ lineStyle?: LineStyleOption;
+ };
+ select?: {
+ label?: LabelOption;
+ edgeLabel?: LabelOption;
+ itemStyle?: ItemStyleOption;
+ lineStyle?: LineStyleOption;
+ };
+ circular?: {
+ rotateLabel?: boolean;
+ };
+ force?: {
+ initLayout?: 'circular' | 'none';
+ repulsion?: number | number[];
+ gravity?: number;
+ friction?: number;
+ edgeLength?: number | number[];
+ layoutAnimation?: boolean;
+ };
+}
+
+declare type GaugeColorStop = [number, ColorString];
+interface LabelFormatter$1 {
+ (value: number): string;
+}
+interface PointerOption {
+ icon?: string;
+ show?: boolean;
+ keepAspect?: boolean;
+ itemStyle?: ItemStyleOption;
+ offsetCenter?: (number | string)[];
+ length?: number | string;
+ width?: number;
+}
+interface AnchorOption {
+ show?: boolean;
+ showAbove?: boolean;
+ size?: number;
+ icon?: string;
+ offsetCenter?: (number | string)[];
+ keepAspect?: boolean;
+ itemStyle?: ItemStyleOption;
+}
+interface ProgressOption {
+ show?: boolean;
+ overlap?: boolean;
+ width?: number;
+ roundCap?: boolean;
+ clip?: boolean;
+ itemStyle?: ItemStyleOption;
+}
+interface TitleOption$1 extends LabelOption {
+ offsetCenter?: (number | string)[];
+ formatter?: LabelFormatter$1 | string;
+ valueAnimation?: boolean;
+}
+interface DetailOption extends LabelOption {
+ offsetCenter?: (number | string)[];
+ formatter?: LabelFormatter$1 | string;
+ valueAnimation?: boolean;
+}
+interface GaugeStateOption {
+ itemStyle?: ItemStyleOption;
+}
+interface GaugeDataItemOption extends GaugeStateOption, StatesOptionMixin<GaugeStateOption> {
+ name?: string;
+ value?: OptionDataValueNumeric;
+ pointer?: PointerOption;
+ progress?: ProgressOption;
+ title?: TitleOption$1;
+ detail?: DetailOption;
+}
+interface GaugeSeriesOption extends SeriesOption<GaugeStateOption>, GaugeStateOption, CircleLayoutOptionMixin {
+ type?: 'gauge';
+ radius?: number | string;
+ startAngle?: number;
+ endAngle?: number;
+ clockwise?: boolean;
+ min?: number;
+ max?: number;
+ splitNumber?: number;
+ itemStyle?: ItemStyleOption;
+ axisLine?: {
+ show?: boolean;
+ roundCap?: boolean;
+ lineStyle: Omit<LineStyleOption, 'color'> & {
+ color: GaugeColorStop[];
+ };
+ };
+ progress?: ProgressOption;
+ splitLine?: {
+ show?: boolean;
+ length?: number;
+ distance?: number;
+ lineStyle?: LineStyleOption;
+ };
+ axisTick?: {
+ show?: boolean;
+ splitNumber?: number;
+ length?: number | string;
+ distance?: number;
+ lineStyle?: LineStyleOption;
+ };
+ axisLabel?: LabelOption & {
+ formatter?: LabelFormatter$1 | string;
+ };
+ pointer?: PointerOption;
+ anchor?: AnchorOption;
+ title?: TitleOption$1;
+ detail?: DetailOption;
+ data?: (OptionDataValueNumeric | GaugeDataItemOption)[];
+}
+
+declare type FunnelLabelOption = Omit<LabelOption, 'position'> & {
+ position?: LabelOption['position'] | 'outer' | 'inner' | 'center' | 'rightTop' | 'rightBottom' | 'leftTop' | 'leftBottom';
+};
+interface FunnelStateOption {
+ itemStyle?: ItemStyleOption;
+ label?: FunnelLabelOption;
+ labelLine?: LabelLineOption;
+}
+interface FunnelDataItemOption extends FunnelStateOption, StatesOptionMixin<FunnelStateOption>, OptionDataItemObject<OptionDataValueNumeric> {
+ itemStyle?: ItemStyleOption & {
+ width?: number | string;
+ height?: number | string;
+ };
+}
+interface FunnelSeriesOption extends SeriesOption<FunnelStateOption>, FunnelStateOption, BoxLayoutOptionMixin {
+ type?: 'funnel';
+ min?: number;
+ max?: number;
+ minSize?: number | string;
+ maxSize?: number | string;
+ sort?: 'ascending' | 'descending' | 'none';
+ orient?: LayoutOrient;
+ gap?: number;
+ funnelAlign?: HorizontalAlign | VerticalAlign;
+ data?: (OptionDataValueNumeric | OptionDataValueNumeric[] | FunnelDataItemOption)[];
+}
+
+declare type ParallelSeriesDataValue = OptionDataValue[];
+interface ParallelStateOption {
+ lineStyle?: LineStyleOption;
+ label?: LabelOption;
+}
+interface ParallelSeriesDataItemOption extends ParallelStateOption, StatesOptionMixin<ParallelStateOption> {
+ value?: ParallelSeriesDataValue[];
+}
+interface ParallelSeriesOption extends SeriesOption<ParallelStateOption>, ParallelStateOption, SeriesEncodeOptionMixin {
+ type?: 'parallel';
+ coordinateSystem?: string;
+ parallelIndex?: number;
+ parallelId?: string;
+ inactiveOpacity?: number;
+ activeOpacity?: number;
+ smooth?: boolean | number;
+ realtime?: boolean;
+ tooltip?: SeriesTooltipOption;
+ parallelAxisDefault?: ParallelAxisOption;
+ emphasis?: {
+ label?: LabelOption;
+ lineStyle?: LineStyleOption;
+ };
+ data?: (ParallelSeriesDataValue | ParallelSeriesDataItemOption)[];
+}
+
+declare type FocusNodeAdjacency = boolean | 'inEdges' | 'outEdges' | 'allEdges';
+interface SankeyNodeStateOption {
+ label?: LabelOption;
+ itemStyle?: ItemStyleOption;
+}
+interface SankeyEdgeStateOption {
+ lineStyle?: SankeyEdgeStyleOption;
+}
+interface SankeyBothStateOption extends SankeyNodeStateOption, SankeyEdgeStateOption {
+}
+interface SankeyEdgeStyleOption extends LineStyleOption {
+ curveness?: number;
+}
+interface ExtraStateOption$5 {
+ emphasis?: {
+ focus?: 'adjacency';
+ };
+}
+interface SankeyNodeItemOption extends SankeyNodeStateOption, StatesOptionMixin<SankeyNodeStateOption, ExtraStateOption$5>, OptionDataItemObject<OptionDataValue> {
+ id?: string;
+ localX?: number;
+ localY?: number;
+ depth?: number;
+ draggable?: boolean;
+ focusNodeAdjacency?: FocusNodeAdjacency;
+}
+interface SankeyEdgeItemOption extends SankeyEdgeStateOption, StatesOptionMixin<SankeyEdgeStateOption, ExtraStateOption$5>, GraphEdgeItemObject<OptionDataValueNumeric> {
+ focusNodeAdjacency?: FocusNodeAdjacency;
+}
+interface SankeyLevelOption extends SankeyNodeStateOption, SankeyEdgeStateOption {
+ depth: number;
+}
+interface SankeySeriesOption extends SeriesOption<SankeyBothStateOption, ExtraStateOption$5>, SankeyBothStateOption, BoxLayoutOptionMixin {
+ type?: 'sankey';
+ color?: ColorString[];
+ coordinateSystem?: 'view';
+ orient?: LayoutOrient;
+ nodeWidth?: number;
+ nodeGap?: number;
+ draggable?: boolean;
+ focusNodeAdjacency?: FocusNodeAdjacency;
+ layoutIterations?: number;
+ nodeAlign?: 'justify' | 'left' | 'right';
+ data?: SankeyNodeItemOption[];
+ nodes?: SankeyNodeItemOption[];
+ edges?: SankeyEdgeItemOption[];
+ links?: SankeyEdgeItemOption[];
+ levels?: SankeyLevelOption[];
+}
+
+declare type BoxplotDataValue = OptionDataValueNumeric[];
+interface BoxplotStateOption {
+ itemStyle?: ItemStyleOption;
+ label?: LabelOption;
+}
+interface BoxplotDataItemOption extends BoxplotStateOption, StatesOptionMixin<BoxplotStateOption, ExtraStateOption$6> {
+ value: BoxplotDataValue;
+}
+interface ExtraStateOption$6 {
+ emphasis?: {
+ scale?: boolean;
+ };
+}
+interface BoxplotSeriesOption extends SeriesOption<BoxplotStateOption, ExtraStateOption$6>, BoxplotStateOption, SeriesOnCartesianOptionMixin {
+ type?: 'boxplot';
+ coordinateSystem?: 'cartesian2d';
+ layout?: LayoutOrient;
+ boxWidth?: (string | number)[];
+ data?: (BoxplotDataValue | BoxplotDataItemOption)[];
+}
+
+declare type CandlestickDataValue = OptionDataValueNumeric[];
+interface CandlestickItemStyleOption extends ItemStyleOption {
+ color0?: ZRColor;
+ borderColor0?: ColorString;
+}
+interface CandlestickStateOption {
+ itemStyle?: CandlestickItemStyleOption;
+ label?: LabelOption;
+}
+interface CandlestickDataItemOption extends CandlestickStateOption, StatesOptionMixin<CandlestickStateOption, ExtraStateOption$7> {
+ value: CandlestickDataValue;
+}
+interface ExtraStateOption$7 {
+ emphasis?: {
+ scale?: boolean;
+ };
+}
+interface CandlestickSeriesOption extends SeriesOption<CandlestickStateOption, ExtraStateOption$7>, CandlestickStateOption, SeriesOnCartesianOptionMixin, SeriesLargeOptionMixin {
+ type?: 'candlestick';
+ coordinateSystem?: 'cartesian2d';
+ layout?: LayoutOrient;
+ clip?: boolean;
+ barMaxWidth?: number | string;
+ barMinWidth?: number | string;
+ barWidth?: number | string;
+ data?: (CandlestickDataValue | CandlestickDataItemOption)[];
+}
+
+interface RippleEffectOption {
+ period?: number;
+ scale?: number;
+ brushType?: 'fill' | 'stroke';
+ color?: ZRColor;
+}
+interface SymbolDrawStateOption {
+ itemStyle?: ItemStyleOption;
+ label?: LabelOption;
+}
+interface SymbolDrawItemModelOption extends SymbolOptionMixin<object>, StatesOptionMixin<SymbolDrawStateOption, {
+ emphasis?: {
+ focus?: string;
+ scale?: boolean;
+ };
+}>, SymbolDrawStateOption {
+ cursor?: string;
+ rippleEffect?: RippleEffectOption;
+}
+
+declare type ScatterDataValue = OptionDataValue | OptionDataValue[];
+interface EffectScatterStateOption {
+ itemStyle?: ItemStyleOption;
+ label?: LabelOption;
+}
+interface EffectScatterDataItemOption extends SymbolOptionMixin, EffectScatterStateOption, StatesOptionMixin<EffectScatterStateOption> {
+ name?: string;
+ value?: ScatterDataValue;
+ rippleEffect?: SymbolDrawItemModelOption['rippleEffect'];
+}
+interface EffectScatterSeriesOption extends SeriesOption<EffectScatterStateOption>, EffectScatterStateOption, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin, SymbolOptionMixin {
+ type?: 'effectScatter';
+ coordinateSystem?: string;
+ effectType?: 'ripple';
+ showEffectOn?: 'render' | 'emphasis';
+ rippleEffect?: SymbolDrawItemModelOption['rippleEffect'];
+ data?: (EffectScatterDataItemOption | ScatterDataValue)[];
+}
+
+interface LineDrawStateOption {
+ lineStyle?: LineStyleOption;
+ label?: LineLabelOption;
+}
+interface LineDrawModelOption extends LineDrawStateOption, StatesOptionMixin<LineDrawStateOption> {
+ effect?: {
+ show?: boolean;
+ period?: number;
+ delay?: number | ((idx: number) => number);
+ constantSpeed?: number;
+ symbol?: string;
+ symbolSize?: number | number[];
+ loop?: boolean;
+ trailLength?: number;
+ color?: ColorString;
+ };
+}
+
+declare type LinesCoords = number[][];
+declare type LinesValue = OptionDataValue | OptionDataValue[];
+interface LinesLineStyleOption extends LineStyleOption {
+ curveness?: number;
+}
+interface LinesStateOption {
+ lineStyle?: LinesLineStyleOption;
+ label?: LineLabelOption;
+}
+interface LinesDataItemOption extends LinesStateOption, StatesOptionMixin<LinesStateOption> {
+ name?: string;
+ fromName?: string;
+ toName?: string;
+ symbol?: string[] | string;
+ symbolSize?: number[] | number;
+ coords?: LinesCoords;
+ value?: LinesValue;
+}
+interface LinesSeriesOption extends SeriesOption<LinesStateOption>, LinesStateOption, SeriesOnCartesianOptionMixin, SeriesOnGeoOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesLargeOptionMixin {
+ type?: 'lines';
+ coordinateSystem?: string;
+ symbol?: string[] | string;
+ symbolSize?: number[] | number;
+ effect?: LineDrawModelOption['effect'];
+ polyline?: boolean;
+ clip?: boolean;
+ data?: LinesDataItemOption[] | ArrayLike<number>;
+}
+
+declare type HeatmapDataValue = OptionDataValue[];
+interface HeatmapStateOption {
+ itemStyle?: ItemStyleOption;
+ label?: LabelOption;
+}
+interface HeatmapDataItemOption extends HeatmapStateOption, StatesOptionMixin<HeatmapStateOption> {
+ value: HeatmapDataValue;
+}
+interface HeatmapSeriesOption extends SeriesOption<HeatmapStateOption>, HeatmapStateOption, SeriesOnCartesianOptionMixin, SeriesOnGeoOptionMixin {
+ type?: 'heatmap';
+ coordinateSystem?: 'cartesian2d' | 'geo' | 'calendar';
+ blurSize?: number;
+ pointSize?: number;
+ maxOpacity?: number;
+ minOpacity?: number;
+ data?: (HeatmapDataItemOption | HeatmapDataValue)[];
+}
+
+interface PictorialBarStateOption {
+ itemStyle?: ItemStyleOption;
+ label?: LabelOption;
+}
+interface PictorialBarSeriesSymbolOption {
+ symbol?: string;
+ symbolSize?: (number | string)[] | number | string;
+ symbolRotate?: number;
+ symbolPosition?: 'start' | 'end' | 'center';
+ symbolOffset?: (number | string)[] | number | string;
+ symbolMargin?: (number | string)[] | number | string;
+ symbolRepeat?: boolean | number | 'fixed';
+ symbolRepeatDirection?: 'start' | 'end';
+ symbolClip?: boolean;
+ symbolBoundingData?: number | number[];
+ symbolPatternSize?: number;
+}
+interface ExtraStateOption$8 {
+ emphasis?: {
+ scale?: boolean;
+ };
+}
+interface PictorialBarDataItemOption extends PictorialBarSeriesSymbolOption, AnimationOptionMixin, PictorialBarStateOption, StatesOptionMixin<PictorialBarStateOption, ExtraStateOption$8>, OptionDataItemObject<OptionDataValue> {
+ z?: number;
+ cursor?: string;
+}
+interface PictorialBarSeriesOption extends BaseBarSeriesOption<PictorialBarStateOption, ExtraStateOption$8>, PictorialBarStateOption, PictorialBarSeriesSymbolOption, SeriesStackOptionMixin {
+ type?: 'pictorialBar';
+ coordinateSystem?: 'cartesian2d';
+ data?: (PictorialBarDataItemOption | OptionDataValue | OptionDataValue[])[];
+}
+
+interface ThemeRiverSeriesLabelOption extends LabelOption {
+ margin?: number;
+}
+declare type ThemerRiverDataItem = [OptionDataValueDate, OptionDataValueNumeric, string];
+interface ThemeRiverStateOption {
+ label?: ThemeRiverSeriesLabelOption;
+ itemStyle?: ItemStyleOption;
+}
+interface ThemeRiverSeriesOption extends SeriesOption<ThemeRiverStateOption>, ThemeRiverStateOption, SeriesOnSingleOptionMixin, BoxLayoutOptionMixin {
+ type?: 'themeRiver';
+ color?: ZRColor[];
+ coordinateSystem?: 'singleAxis';
+ boundaryGap?: (string | number)[];
+ data?: ThemerRiverDataItem[];
+}
+
+interface SunburstItemStyleOption extends ItemStyleOption {
+ borderRadius?: (number | string)[] | number | string;
+}
+interface SunburstLabelOption extends Omit<LabelOption, 'rotate' | 'position'> {
+ rotate?: 'radial' | 'tangential' | number;
+ minAngle?: number;
+ silent?: boolean;
+ position?: LabelOption['position'] | 'outside';
+}
+interface ExtraStateOption$9 {
+ emphasis?: {
+ focus?: 'descendant' | 'ancestor';
+ };
+}
+interface SunburstStateOption {
+ itemStyle?: SunburstItemStyleOption;
+ label?: SunburstLabelOption;
+}
+interface SunburstSeriesLevelOption extends SunburstStateOption, StatesOptionMixin<SunburstStateOption> {
+ highlight?: {
+ itemStyle?: SunburstItemStyleOption;
+ label?: SunburstLabelOption;
+ };
+}
+interface SortParam {
+ dataIndex: number;
+ depth: number;
+ height: number;
+ getValue(): number;
+}
+interface SunburstSeriesOption extends SeriesOption<SunburstStateOption, ExtraStateOption$9>, SunburstStateOption, CircleLayoutOptionMixin {
+ type?: 'sunburst';
+ clockwise?: boolean;
+ startAngle?: number;
+ minAngle?: number;
+ stillShowZeroSum?: boolean;
+ nodeClick?: 'rootToNode' | 'link';
+ renderLabelForZeroData?: boolean;
+ levels?: SunburstSeriesLevelOption[];
+ animationType?: 'expansion' | 'scale';
+ sort?: 'desc' | 'asc' | ((a: SortParam, b: SortParam) => number);
+}
+
+declare const ICON_TYPES: readonly ["rect", "polygon", "lineX", "lineY", "keep", "clear"];
+declare type IconType = typeof ICON_TYPES[number];
+interface ToolboxBrushFeatureOption extends ToolboxFeatureOption {
+ type?: IconType[];
+ icon?: {
+ [key in IconType]?: string;
+ };
+ title?: {
+ [key in IconType]?: string;
+ };
+}
+
+interface ToolboxDataViewFeatureOption extends ToolboxFeatureOption {
+ readOnly?: boolean;
+ optionToContent?: (option: ECUnitOption) => string | HTMLElement;
+ contentToOption?: (viewMain: HTMLDivElement, oldOption: ECUnitOption) => ECUnitOption;
+ icon?: string;
+ title?: string;
+ lang?: string[];
+ backgroundColor?: ColorString;
+ textColor?: ColorString;
+ textareaColor?: ColorString;
+ textareaBorderColor?: ColorString;
+ buttonColor?: ColorString;
+ buttonTextColor?: ColorString;
+}
+
+declare const ICON_TYPES$1: readonly ["zoom", "back"];
+declare type IconType$1 = typeof ICON_TYPES$1[number];
+interface ToolboxDataZoomFeatureOption extends ToolboxFeatureOption {
+ type?: IconType$1[];
+ icon?: {
+ [key in IconType$1]?: string;
+ };
+ title?: {
+ [key in IconType$1]?: string;
+ };
+ filterMode?: 'filter' | 'weakFilter' | 'empty' | 'none';
+ xAxisIndex?: ModelFinderIndexQuery;
+ yAxisIndex?: ModelFinderIndexQuery;
+ xAxisId?: ModelFinderIdQuery;
+ yAxisId?: ModelFinderIdQuery;
+ brushStyle?: ItemStyleOption;
+}
+
+declare const ICON_TYPES$2: readonly ["line", "bar", "stack"];
+declare const TITLE_TYPES: readonly ["line", "bar", "stack", "tiled"];
+declare type IconType$2 = typeof ICON_TYPES$2[number];
+declare type TitleType = typeof TITLE_TYPES[number];
+interface ToolboxMagicTypeFeatureOption extends ToolboxFeatureOption {
+ type?: IconType$2[];
+ icon?: {
+ [key in IconType$2]?: string;
+ };
+ title?: {
+ [key in TitleType]?: string;
+ };
+ option?: {
+ [key in IconType$2]?: SeriesOption;
+ };
+ seriesIndex?: {
+ line?: number;
+ bar?: number;
+ };
+}
+
+interface ToolboxRestoreFeatureOption extends ToolboxFeatureOption {
+ icon?: string;
+ title?: string;
+}
+
+interface ToolboxSaveAsImageFeatureOption extends ToolboxFeatureOption {
+ icon?: string;
+ title?: string;
+ type?: 'png' | 'jpg';
+ backgroundColor?: ZRColor;
+ connectedBackgroundColor?: ZRColor;
+ name?: string;
+ excludeComponents?: string[];
+ pixelRatio?: number;
+ lang?: string[];
+}
+
+declare type MarkerStatisticType = 'average' | 'min' | 'max' | 'median';
+interface MarkerPositionOption {
+ x?: number | string;
+ y?: number | string;
+ coord?: (ScaleDataValue | MarkerStatisticType)[];
+ xAxis?: ScaleDataValue;
+ yAxis?: ScaleDataValue;
+ radiusAxis?: ScaleDataValue;
+ angleAxis?: ScaleDataValue;
+ type?: MarkerStatisticType;
+ valueIndex?: number;
+ valueDim?: string;
+ value?: string | number;
+}
+interface MarkerOption extends ComponentOption, AnimationOptionMixin {
+ silent?: boolean;
+ data?: unknown[];
+ tooltip?: CommonTooltipOption<unknown> & {
+ trigger?: 'item' | 'axis' | boolean | 'none';
+ };
+}
+
+interface MarkAreaStateOption {
+ itemStyle?: ItemStyleOption;
+ label?: LabelOption;
+}
+interface MarkAreaDataItemOptionBase extends MarkAreaStateOption, StatesOptionMixin<MarkAreaStateOption> {
+ name?: string;
+}
+interface MarkArea1DDataItemOption extends MarkAreaDataItemOptionBase {
+ xAxis?: number;
+ yAxis?: number;
+ type?: MarkerStatisticType;
+ valueIndex?: number;
+ valueDim?: string;
+}
+interface MarkArea2DDataItemDimOption extends MarkAreaDataItemOptionBase, MarkerPositionOption {
+}
+declare type MarkArea2DDataItemOption = [MarkArea2DDataItemDimOption, MarkArea2DDataItemDimOption];
+interface MarkAreaOption extends MarkerOption, MarkAreaStateOption, StatesOptionMixin<MarkAreaStateOption> {
+ precision?: number;
+ data?: (MarkArea1DDataItemOption | MarkArea2DDataItemOption)[];
+}
+
+declare const TRANSFORM_PROPS$1: {
+ readonly x: 1;
+ readonly y: 1;
+ readonly scaleX: 1;
+ readonly scaleY: 1;
+ readonly originX: 1;
+ readonly originY: 1;
+ readonly rotation: 1;
+};
+declare type TransformProp$1 = keyof typeof TRANSFORM_PROPS$1;
+interface GraphicComponentBaseElementOption extends Partial<Pick<Element, TransformProp$1 | 'silent' | 'ignore' | 'draggable' | 'textConfig' | 'onclick' | 'ondblclick' | 'onmouseover' | 'onmouseout' | 'onmousemove' | 'onmousewheel' | 'onmousedown' | 'onmouseup' | 'oncontextmenu' | 'ondrag' | 'ondragstart' | 'ondragend' | 'ondragenter' | 'ondragleave' | 'ondragover' | 'ondrop'>>, Partial<Pick<BoxLayoutOptionMixin, 'left' | 'right' | 'top' | 'bottom'>> {
+ type?: string;
+ id?: OptionId;
+ name?: string;
+ parentId?: OptionId;
+ parentOption?: GraphicComponentElementOption;
+ children?: GraphicComponentElementOption[];
+ hv?: [boolean, boolean];
+ bounding?: 'raw' | 'all';
+ info?: GraphicExtraElementInfo;
+ textContent?: GraphicComponentTextOption;
+ textConfig?: ElementTextConfig;
+ $action?: 'merge' | 'replace' | 'remove';
+}
+interface GraphicComponentDisplayableOption extends GraphicComponentBaseElementOption, Partial<Pick<Displayable, 'zlevel' | 'z' | 'z2' | 'invisible' | 'cursor'>> {
+ style?: ZRStyleProps;
+}
+interface GraphicComponentGroupOption extends GraphicComponentBaseElementOption {
+ type?: 'group';
+ width?: number;
+ height?: number;
+ children: GraphicComponentElementOption[];
+}
+interface GraphicComponentZRPathOption extends GraphicComponentDisplayableOption {
+ shape?: PathProps['shape'];
+}
+interface GraphicComponentImageOption extends GraphicComponentDisplayableOption {
+ type?: 'image';
+ style?: ImageStyleProps;
+}
+interface GraphicComponentTextOption extends Omit<GraphicComponentDisplayableOption, 'textContent' | 'textConfig'> {
+ type?: 'text';
+ style?: TextStyleProps;
+}
+declare type GraphicComponentElementOption = GraphicComponentGroupOption | GraphicComponentZRPathOption | GraphicComponentImageOption | GraphicComponentTextOption;
+declare type GraphicExtraElementInfo = Dictionary<unknown>;
+declare type GraphicComponentLooseOption = GraphicComponentOption | GraphicComponentElementOption;
+interface GraphicComponentOption extends ComponentOption {
+ elements?: GraphicComponentElementOption[];
+}
+
+interface MarkLineStateOption {
+ lineStyle?: LineStyleOption;
+ itemStyle?: ItemStyleOption;
+ label?: LineLabelOption;
+}
+interface MarkLineDataItemOptionBase extends MarkLineStateOption, StatesOptionMixin<MarkLineStateOption> {
+ name?: string;
+}
+interface MarkLine1DDataItemOption extends MarkLineDataItemOptionBase {
+ xAxis?: number;
+ yAxis?: number;
+ type?: MarkerStatisticType;
+ valueIndex?: number;
+ valueDim?: string;
+ symbol?: string[] | string;
+ symbolSize?: number[] | number;
+}
+interface MarkLine2DDataItemDimOption extends MarkLineDataItemOptionBase, SymbolOptionMixin, MarkerPositionOption {
+}
+declare type MarkLine2DDataItemOption = [MarkLine2DDataItemDimOption, MarkLine2DDataItemDimOption];
+interface MarkLineOption extends MarkerOption, MarkLineStateOption, StatesOptionMixin<MarkLineStateOption> {
+ symbol?: string[] | string;
+ symbolSize?: number[] | number;
+ precision?: number;
+ data?: (MarkLine1DDataItemOption | MarkLine2DDataItemOption)[];
+}
+
+interface MarkPointStateOption {
+ itemStyle?: ItemStyleOption;
+ label?: LabelOption;
+}
+interface MarkPointDataItemOption extends MarkPointStateOption, StatesOptionMixin<MarkPointStateOption>, SymbolOptionMixin<CallbackDataParams>, MarkerPositionOption {
+ name: string;
+}
+interface MarkPointOption extends MarkerOption, SymbolOptionMixin<CallbackDataParams>, StatesOptionMixin<MarkPointStateOption>, MarkPointStateOption {
+ precision?: number;
+ data?: MarkPointDataItemOption[];
+}
+
+interface ToolboxFullOptionWithFeatures extends ToolboxOption {
+ feature?: {
+ brush?: ToolboxBrushFeatureOption;
+ dataView?: ToolboxDataViewFeatureOption;
+ dataZoom?: ToolboxDataZoomFeatureOption;
+ magicType?: ToolboxMagicTypeFeatureOption;
+ restore?: ToolboxRestoreFeatureOption;
+ saveAsImage?: ToolboxSaveAsImageFeatureOption;
+ [key: string]: ToolboxFeatureOption | {
+ [key: string]: any;
+ };
+ };
+}
+declare type SeriesOption$1 = (LineSeriesOption | BarSeriesOption | ScatterSeriesOption | PieSeriesOption | RadarSeriesOption | MapSeriesOption | TreeSeriesOption | TreemapSeriesOption | GraphSeriesOption | GaugeSeriesOption | FunnelSeriesOption | ParallelSeriesOption | SankeySeriesOption | BoxplotSeriesOption | CandlestickSeriesOption | EffectScatterSeriesOption | LinesSeriesOption | HeatmapSeriesOption | PictorialBarSeriesOption | ThemeRiverSeriesOption | SunburstSeriesOption | CustomS [...]
+ markArea?: MarkAreaOption;
+ markLine?: MarkLineOption;
+ markPoint?: MarkPointOption;
+ tooltip?: SeriesTooltipOption;
+};
+interface EChartsFullOption extends ECOption {
+ title?: TitleOption | TitleOption[];
+ grid?: GridOption | GridOption[];
+ polar?: PolarOption | PolarOption[];
+ geo?: GeoOption | GeoOption[];
+ angleAxis?: AngleAxisOption | AngleAxisOption[];
+ radiusAxis?: RadiusAxisOption | RadiusAxisOption[];
+ xAxis?: CartesianAxisOption | CartesianAxisOption[];
+ yAxis?: CartesianAxisOption | CartesianAxisOption[];
+ singleAxis?: SingleAxisOption | SingleAxisOption[];
+ parallel?: ParallelCoordinateSystemOption | ParallelCoordinateSystemOption[];
+ parallelAxis?: ParallelAxisOption | ParallelAxisOption[];
+ calendar?: CalendarOption | CalendarOption[];
+ toolbox?: ToolboxFullOptionWithFeatures | ToolboxFullOptionWithFeatures[];
+ tooltip?: TooltipOption | TooltipOption[];
+ axisPointer?: AxisPointerOption | AxisPointerOption[];
+ brush?: BrushOption | BrushOption[];
+ timeline?: TimelineOption | SliderTimelineOption;
+ legend?: LegendOption | ScrollableLegendOption | (LegendOption | ScrollableLegendOption)[];
+ dataZoom?: SliderDataZoomOption | InsideDataZoomOption | (SliderDataZoomOption | InsideDataZoomOption)[];
+ visualMap?: ContinousVisualMapOption | PiecewiseVisualMapOption | (ContinousVisualMapOption | PiecewiseVisualMapOption)[];
+ graphic?: GraphicComponentLooseOption | GraphicComponentLooseOption[];
+ series?: SeriesOption$1 | SeriesOption$1[];
+ options?: EChartsFullOption[];
+ baseOption?: EChartsFullOption;
+}
+
+declare type ModelFinder$1 = ModelFinder;
+declare const IN_MAIN_PROCESS_KEY: "__flagInMainProcess";
+declare const OPTION_UPDATED_KEY: "__optionUpdated";
+declare const STATUS_NEEDS_UPDATE_KEY: "__needsUpdateStatus";
+declare const CONNECT_STATUS_KEY: "__connectUpdateStatus";
+interface SetOptionOpts {
+ notMerge?: boolean;
+ lazyUpdate?: boolean;
+ silent?: boolean;
+ replaceMerge?: GlobalModelSetOptionOpts['replaceMerge'];
+ transition?: SetOptionTransitionOpt;
+}
+interface SetOptionTransitionOptItem {
+ from?: SetOptionTransitionOptFinder;
+ to: SetOptionTransitionOptFinder;
+ dividingMethod: MorphDividingMethod;
+}
+interface SetOptionTransitionOptFinder extends ModelFinderObject {
+ dimension: DimensionLoose;
+}
+declare type SetOptionTransitionOpt = SetOptionTransitionOptItem | SetOptionTransitionOptItem[];
+declare class ECharts extends Eventful {
+ id: string;
+ group: string;
+ private _zr;
+ private _dom;
+ private _model;
+ private _throttledZrFlush;
+ private _theme;
+ private _locale;
+ private _chartsViews;
+ private _chartsMap;
+ private _componentsViews;
+ private _componentsMap;
+ private _coordSysMgr;
+ private _api;
+ private _scheduler;
+ private _messageCenter;
+ private _pendingActions;
+ protected _$eventProcessor: unknown;
+ private _disposed;
+ private _loadingFX;
+ private _labelManager;
+ private [OPTION_UPDATED_KEY];
+ private [IN_MAIN_PROCESS_KEY];
+ private [CONNECT_STATUS_KEY];
+ private [STATUS_NEEDS_UPDATE_KEY];
+ constructor(dom: HTMLElement, theme?: string | ThemeOption, opts?: {
+ locale?: string | LocaleOption;
+ renderer?: RendererType;
+ devicePixelRatio?: number;
+ useDirtyRect?: boolean;
+ width?: number;
+ height?: number;
+ });
+ private _onframe;
+ getDom(): HTMLElement;
+ getId(): string;
+ getZr(): ZRenderType;
+ setOption(option: EChartsFullOption, notMerge?: boolean, lazyUpdate?: boolean): void;
+ setOption(option: EChartsFullOption, opts?: SetOptionOpts): void;
+ private setTheme;
+ private getModel;
+ getOption(): EChartsFullOption;
+ getWidth(): number;
+ getHeight(): number;
+ getDevicePixelRatio(): number;
+ getRenderedCanvas(opts?: {
+ backgroundColor?: ZRColor;
+ pixelRatio?: number;
+ }): HTMLCanvasElement;
+ getSvgDataURL(): string;
+ getDataURL(opts?: {
+ type?: 'png' | 'jpg' | 'svg';
+ pixelRatio?: number;
+ backgroundColor?: ZRColor;
+ excludeComponents?: ComponentMainType[];
+ }): string;
+ getConnectedDataURL(opts?: {
+ type?: 'png' | 'jpg' | 'svg';
+ pixelRatio?: number;
+ backgroundColor?: ZRColor;
+ connectedBackgroundColor?: ZRColor;
+ excludeComponents?: string[];
+ }): string;
+ convertToPixel(finder: ModelFinder$1, value: ScaleDataValue): number;
+ convertToPixel(finder: ModelFinder$1, value: ScaleDataValue[]): number[];
+ convertFromPixel(finder: ModelFinder$1, value: number): number;
+ convertFromPixel(finder: ModelFinder$1, value: number[]): number[];
+ containPixel(finder: ModelFinder$1, value: number[]): boolean;
+ getVisual(finder: ModelFinder$1, visualType: string): string | number | number[] | PatternObject | LinearGradientObject | RadialGradientObject;
+ private getViewOfComponentModel;
+ private getViewOfSeriesModel;
+ private _initEvents;
+ isDisposed(): boolean;
+ clear(): void;
+ dispose(): void;
+ resize(opts?: {
+ width?: number | 'auto';
+ height?: number | 'auto';
+ silent?: boolean;
+ }): void;
+ showLoading(cfg?: object): void;
+ showLoading(name?: string, cfg?: object): void;
+ hideLoading(): void;
+ makeActionFromEvent(eventObj: ECEvent): Payload;
+ dispatchAction(payload: Payload, opt?: boolean | {
+ silent?: boolean;
+ flush?: boolean | undefined;
+ }): void;
+ updateLabelLayout(): void;
+ appendData(params: {
+ seriesIndex: number;
+ data: any;
+ }): void;
+ private static internalField;
+}
+declare function init(dom: HTMLElement, theme?: string | object, opts?: {
+ renderer?: RendererType;
+ devicePixelRatio?: number;
+ width?: number;
+ height?: number;
+ locale?: string | LocaleOption;
+}): ECharts;
+declare function connect(groupId: string | ECharts[]): string;
+declare function disConnect(groupId: string): void;
+declare function dispose(chart: ECharts | HTMLElement | string): void;
+declare function getInstanceByDom(dom: HTMLElement): ECharts;
+declare function getInstanceById(key: string): ECharts;
+declare function registerTheme(name: string, theme: ThemeOption): void;
+declare function registerMap(mapName: Parameters<typeof _default$1.registerMap>[0], geoJson: Parameters<typeof _default$1.registerMap>[1], specialAreas?: Parameters<typeof _default$1.registerMap>[2]): void;
+declare function getMap(mapName: string): {
+ geoJson: any;
+ specialAreas: GeoSpecialAreas;
+};
+
+export { EChartsFullOption as EChartsOption, connect, disConnect, dispose, getInstanceByDom, getInstanceById, getMap, init, registerLocale, registerMap, registerTheme };
diff --git a/src/editor/CodeMonaco.vue b/src/editor/CodeMonaco.vue
index ee57ad2..3df51e4 100644
--- a/src/editor/CodeMonaco.vue
+++ b/src/editor/CodeMonaco.vue
@@ -12,7 +12,10 @@ import { ensureECharts } from './Preview.vue';
function loadTypes() {
return new Promise(resolve => {
- $.getJSON(store.cdnRoot + '/types/echarts-type-bundle.json', function (res) {
+ fetch(store.cdnRoot + '/types/echarts.d.ts', {
+ mode: 'cors'
+ }).then(response => response.text()).then(code => {
+
// validation settings
monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions({
noSemanticValidation: false,
@@ -26,14 +29,12 @@ function loadTypes() {
noResolve: false
});
- for (let i = 0; i < res.length; i++) {
- // console.log('file:///node_modules/@types/' + res[i].path);
- monaco.languages.typescript.typescriptDefaults.addExtraLib(
- res[i].code,
- // https://github.com/microsoft/monaco-editor/issues/667#issuecomment-468164794
- 'file:///node_modules/@types/' + res[i].path
- );
- }
+ // console.log('file:///node_modules/@types/' + res[i].path);
+ monaco.languages.typescript.typescriptDefaults.addExtraLib(
+ code,
+ // https://github.com/microsoft/monaco-editor/issues/667#issuecomment-468164794
+ 'file:///node_modules/@types/echarts/index.d.ts'
+ );
monaco.languages.typescript.typescriptDefaults.addExtraLib(
`
diff --git a/src/editor/Preview.vue b/src/editor/Preview.vue
index 5886355..9066f4d 100644
--- a/src/editor/Preview.vue
+++ b/src/editor/Preview.vue
@@ -322,10 +322,15 @@ export default {
padding-top: 5px;
padding-left: 15px;
+ // .el-switch__label * {
+ // font-size: 12px;
+ // }
+
.render-config-trigger {
margin-left: 10px;
cursor: pointer;
font-weight: 500;
+ // font-size: 12px;
}
label {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org