reke-ui 0.2.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +1873 -499
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/components/reke-chip/reke-chip.d.ts +7 -0
- package/dist/components/reke-chip/reke-chip.d.ts.map +1 -1
- package/dist/components/reke-chip/reke-chip.js +8 -2
- package/dist/components/reke-chip/reke-chip.styles.d.ts.map +1 -1
- package/dist/components/reke-chip/reke-chip.styles.js +32 -0
- package/dist/components/reke-combobox/reke-combobox.d.ts +90 -0
- package/dist/components/reke-combobox/reke-combobox.d.ts.map +1 -0
- package/dist/components/reke-combobox/reke-combobox.js +206 -0
- package/dist/components/reke-combobox/reke-combobox.styles.d.ts +2 -0
- package/dist/components/reke-combobox/reke-combobox.styles.d.ts.map +1 -0
- package/dist/components/reke-combobox/reke-combobox.styles.js +290 -0
- package/dist/components/reke-input/reke-input.d.ts +14 -0
- package/dist/components/reke-input/reke-input.d.ts.map +1 -1
- package/dist/components/reke-input/reke-input.js +41 -22
- package/dist/components/reke-input/reke-input.styles.d.ts.map +1 -1
- package/dist/components/reke-input/reke-input.styles.js +44 -16
- package/dist/components/reke-menu/reke-menu.d.ts +51 -0
- package/dist/components/reke-menu/reke-menu.d.ts.map +1 -0
- package/dist/components/reke-menu/reke-menu.js +106 -0
- package/dist/components/reke-menu/reke-menu.styles.d.ts +2 -0
- package/dist/components/reke-menu/reke-menu.styles.d.ts.map +1 -0
- package/dist/components/reke-menu/reke-menu.styles.js +25 -0
- package/dist/components/reke-menu-item/reke-menu-item.d.ts +32 -0
- package/dist/components/reke-menu-item/reke-menu-item.d.ts.map +1 -0
- package/dist/components/reke-menu-item/reke-menu-item.js +49 -0
- package/dist/components/reke-menu-item/reke-menu-item.styles.d.ts +2 -0
- package/dist/components/reke-menu-item/reke-menu-item.styles.d.ts.map +1 -0
- package/dist/components/reke-menu-item/reke-menu-item.styles.js +53 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.d.ts +59 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.d.ts.map +1 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.js +117 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts +2 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts.map +1 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.js +28 -0
- package/dist/components/reke-table/reke-table.d.ts +12 -0
- package/dist/components/reke-table/reke-table.d.ts.map +1 -1
- package/dist/components/reke-table/reke-table.js +45 -7
- package/dist/components/reke-table/reke-table.styles.d.ts.map +1 -1
- package/dist/components/reke-table/reke-table.styles.js +28 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -11
- package/dist/node_modules/echarts/lib/animation/basicTransition.js +70 -0
- package/dist/node_modules/echarts/lib/chart/custom/customSeriesRegister.js +7 -0
- package/dist/node_modules/echarts/lib/chart/helper/createRenderPlanner.js +11 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +11 -0
- package/dist/node_modules/echarts/lib/chart/helper/sectorHelper.js +19 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +112 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieView.js +119 -0
- package/dist/node_modules/echarts/lib/chart/pie/install.js +12 -0
- package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +190 -0
- package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +72 -0
- package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +554 -0
- package/dist/node_modules/echarts/lib/component/axis/AxisView.js +36 -0
- package/dist/node_modules/echarts/lib/component/axis/axisAction.js +4 -0
- package/dist/node_modules/echarts/lib/component/axis/axisBreakHelper.js +5 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js +57 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js +28 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +174 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +65 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/axisTrigger.js +189 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js +27 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/globalListener.js +56 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/install.js +25 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/modelHelper.js +117 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +103 -0
- package/dist/node_modules/echarts/lib/component/helper/listComponent.js +20 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +184 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendView.js +227 -0
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js +45 -0
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +145 -0
- package/dist/node_modules/echarts/lib/component/legend/install.js +9 -0
- package/dist/node_modules/echarts/lib/component/legend/installLegendPlain.js +12 -0
- package/dist/node_modules/echarts/lib/component/legend/installLegendScroll.js +11 -0
- package/dist/node_modules/echarts/lib/component/legend/legendAction.js +38 -0
- package/dist/node_modules/echarts/lib/component/legend/legendFilter.js +12 -0
- package/dist/node_modules/echarts/lib/component/legend/scrollableLegendAction.js +15 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js +170 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipModel.js +55 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +102 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +367 -0
- package/dist/node_modules/echarts/lib/component/tooltip/helper.js +37 -0
- package/dist/node_modules/echarts/lib/component/tooltip/install.js +19 -0
- package/dist/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js +56 -0
- package/dist/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js +173 -0
- package/dist/node_modules/echarts/lib/coord/axisBand.js +31 -0
- package/dist/node_modules/echarts/lib/coord/axisHelper.js +21 -0
- package/dist/node_modules/echarts/lib/coord/axisStatistics.js +38 -0
- package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +14 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +31 -0
- package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +50 -0
- package/dist/node_modules/echarts/lib/core/ExtensionAPI.js +32 -0
- package/dist/node_modules/echarts/lib/core/Scheduler.js +203 -0
- package/dist/node_modules/echarts/lib/core/echarts.js +986 -0
- package/dist/node_modules/echarts/lib/core/impl.js +11 -0
- package/dist/node_modules/echarts/lib/core/lifecycle.js +5 -0
- package/dist/node_modules/echarts/lib/core/locale.js +27 -0
- package/dist/node_modules/echarts/lib/core/task.js +81 -0
- package/dist/node_modules/echarts/lib/data/DataDiffer.js +68 -0
- package/dist/node_modules/echarts/lib/data/DataStore.js +359 -0
- package/dist/node_modules/echarts/lib/data/SeriesData.js +328 -0
- package/dist/node_modules/echarts/lib/data/SeriesDimensionDefine.js +10 -0
- package/dist/node_modules/echarts/lib/data/Source.js +132 -0
- package/dist/node_modules/echarts/lib/data/helper/SeriesDataSchema.js +80 -0
- package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +105 -0
- package/dist/node_modules/echarts/lib/data/helper/dataProvider.js +155 -0
- package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +87 -0
- package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +50 -0
- package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +98 -0
- package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +115 -0
- package/dist/node_modules/echarts/lib/data/helper/transform.js +145 -0
- package/dist/node_modules/echarts/lib/extension.js +62 -0
- package/dist/node_modules/echarts/lib/i18n/langEN.js +148 -0
- package/dist/node_modules/echarts/lib/i18n/langZH.js +148 -0
- package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +106 -0
- package/dist/node_modules/echarts/lib/label/labelLayoutHelper.js +152 -0
- package/dist/node_modules/echarts/lib/label/labelStyle.js +190 -0
- package/dist/node_modules/echarts/lib/legacy/dataSelectAction.js +53 -0
- package/dist/node_modules/echarts/lib/loading/default.js +85 -0
- package/dist/node_modules/echarts/lib/model/Component.js +64 -0
- package/dist/node_modules/echarts/lib/model/Global.js +320 -0
- package/dist/node_modules/echarts/lib/model/Model.js +50 -0
- package/dist/node_modules/echarts/lib/model/OptionManager.js +78 -0
- package/dist/node_modules/echarts/lib/model/Series.js +216 -0
- package/dist/node_modules/echarts/lib/model/globalDefault.js +94 -0
- package/dist/node_modules/echarts/lib/model/internalComponentCreator.js +14 -0
- package/dist/node_modules/echarts/lib/model/mixin/areaStyle.js +16 -0
- package/dist/node_modules/echarts/lib/model/mixin/dataFormat.js +63 -0
- package/dist/node_modules/echarts/lib/model/mixin/itemStyle.js +24 -0
- package/dist/node_modules/echarts/lib/model/mixin/lineStyle.js +23 -0
- package/dist/node_modules/echarts/lib/model/mixin/makeStyleMapper.js +17 -0
- package/dist/node_modules/echarts/lib/model/mixin/palette.js +32 -0
- package/dist/node_modules/echarts/lib/model/mixin/textStyle.js +36 -0
- package/dist/node_modules/echarts/lib/preprocessor/backwardCompat.js +89 -0
- package/dist/node_modules/echarts/lib/preprocessor/helper/compatStyle.js +118 -0
- package/dist/node_modules/echarts/lib/processor/dataFilter.js +18 -0
- package/dist/node_modules/echarts/lib/processor/dataStack.js +52 -0
- package/dist/node_modules/echarts/lib/processor/negativeDataFilter.js +16 -0
- package/dist/node_modules/echarts/lib/renderer/installCanvasRenderer.js +7 -0
- package/dist/node_modules/echarts/lib/scale/break.js +9 -0
- package/dist/node_modules/echarts/lib/scale/helper.js +9 -0
- package/dist/node_modules/echarts/lib/scale/scaleMapper.js +26 -0
- package/dist/node_modules/echarts/lib/theme/dark.js +159 -0
- package/dist/node_modules/echarts/lib/util/ECEventProcessor.js +52 -0
- package/dist/node_modules/echarts/lib/util/clazz.js +99 -0
- package/dist/node_modules/echarts/lib/util/component.js +75 -0
- package/dist/node_modules/echarts/lib/util/cycleCache.js +14 -0
- package/dist/node_modules/echarts/lib/util/decal.js +162 -0
- package/dist/node_modules/echarts/lib/util/event.js +7 -0
- package/dist/node_modules/echarts/lib/util/format.js +87 -0
- package/dist/node_modules/echarts/lib/util/graphic.js +361 -0
- package/dist/node_modules/echarts/lib/util/innerStore.js +13 -0
- package/dist/node_modules/echarts/lib/util/layout.js +174 -0
- package/dist/node_modules/echarts/lib/util/log.js +54 -0
- package/dist/node_modules/echarts/lib/util/model.js +296 -0
- package/dist/node_modules/echarts/lib/util/number.js +132 -0
- package/dist/node_modules/echarts/lib/util/states.js +323 -0
- package/dist/node_modules/echarts/lib/util/symbol.js +146 -0
- package/dist/node_modules/echarts/lib/util/throttle.js +37 -0
- package/dist/node_modules/echarts/lib/util/time.js +43 -0
- package/dist/node_modules/echarts/lib/util/types.js +13 -0
- package/dist/node_modules/echarts/lib/view/Chart.js +81 -0
- package/dist/node_modules/echarts/lib/view/Component.js +16 -0
- package/dist/node_modules/echarts/lib/visual/LegendVisualProvider.js +18 -0
- package/dist/node_modules/echarts/lib/visual/decal.js +25 -0
- package/dist/node_modules/echarts/lib/visual/helper.js +23 -0
- package/dist/node_modules/echarts/lib/visual/style.js +79 -0
- package/dist/node_modules/echarts/lib/visual/symbol.js +47 -0
- package/dist/node_modules/echarts/lib/visual/tokens.js +108 -0
- package/dist/node_modules/echarts/node_modules/tslib/tslib.es6.js +18 -0
- package/dist/node_modules/zrender/lib/Element.js +442 -0
- package/dist/node_modules/zrender/lib/Handler.js +167 -0
- package/dist/node_modules/zrender/lib/Storage.js +68 -0
- package/dist/node_modules/zrender/lib/animation/Animation.js +65 -0
- package/dist/node_modules/zrender/lib/animation/Animator.js +348 -0
- package/dist/node_modules/zrender/lib/animation/Clip.js +31 -0
- package/dist/node_modules/zrender/lib/animation/cubicEasing.js +17 -0
- package/dist/node_modules/zrender/lib/animation/easing.js +104 -0
- package/dist/node_modules/zrender/lib/animation/requestAnimationFrame.js +7 -0
- package/dist/node_modules/zrender/lib/canvas/Layer.js +135 -0
- package/dist/node_modules/zrender/lib/canvas/Painter.js +352 -0
- package/dist/node_modules/zrender/lib/canvas/dashStyle.js +17 -0
- package/dist/node_modules/zrender/lib/canvas/graphic.js +199 -0
- package/dist/node_modules/zrender/lib/canvas/helper.js +33 -0
- package/dist/node_modules/zrender/lib/config.js +7 -0
- package/dist/node_modules/zrender/lib/contain/arc.js +20 -0
- package/dist/node_modules/zrender/lib/contain/cubic.js +9 -0
- package/dist/node_modules/zrender/lib/contain/line.js +12 -0
- package/dist/node_modules/zrender/lib/contain/path.js +133 -0
- package/dist/node_modules/zrender/lib/contain/quadratic.js +9 -0
- package/dist/node_modules/zrender/lib/contain/text.js +106 -0
- package/dist/node_modules/zrender/lib/contain/util.js +7 -0
- package/dist/node_modules/zrender/lib/contain/windingLine.js +10 -0
- package/dist/node_modules/zrender/lib/core/BoundingRect.js +111 -0
- package/dist/node_modules/zrender/lib/core/Eventful.js +82 -0
- package/dist/node_modules/zrender/lib/core/GestureMgr.js +56 -0
- package/dist/node_modules/zrender/lib/core/LRU.js +49 -0
- package/dist/node_modules/zrender/lib/core/OrientedBoundingRect.js +41 -0
- package/dist/node_modules/zrender/lib/core/PathProxy.js +288 -0
- package/dist/node_modules/zrender/lib/core/Point.js +72 -0
- package/dist/node_modules/zrender/lib/core/Transformable.js +96 -0
- package/dist/node_modules/zrender/lib/core/WeakMap.js +25 -0
- package/dist/node_modules/zrender/lib/core/bbox.js +40 -0
- package/dist/node_modules/zrender/lib/core/curve.js +142 -0
- package/dist/node_modules/zrender/lib/core/dom.js +74 -0
- package/dist/node_modules/zrender/lib/core/env.js +22 -0
- package/dist/node_modules/zrender/lib/core/event.js +58 -0
- package/dist/node_modules/zrender/lib/core/fourPointsTransform.js +109 -0
- package/dist/node_modules/zrender/lib/core/matrix.js +39 -0
- package/dist/node_modules/zrender/lib/core/platform.js +42 -0
- package/dist/node_modules/zrender/lib/core/timsort.js +246 -0
- package/dist/node_modules/zrender/lib/core/util.js +314 -0
- package/dist/node_modules/zrender/lib/core/vector.js +52 -0
- package/dist/node_modules/zrender/lib/dom/HandlerProxy.js +190 -0
- package/dist/node_modules/zrender/lib/graphic/CompoundPath.js +25 -0
- package/dist/node_modules/zrender/lib/graphic/Displayable.js +133 -0
- package/dist/node_modules/zrender/lib/graphic/Gradient.js +14 -0
- package/dist/node_modules/zrender/lib/graphic/Group.js +86 -0
- package/dist/node_modules/zrender/lib/graphic/Image.js +49 -0
- package/dist/node_modules/zrender/lib/graphic/IncrementalDisplayable.js +65 -0
- package/dist/node_modules/zrender/lib/graphic/LinearGradient.js +13 -0
- package/dist/node_modules/zrender/lib/graphic/Path.js +200 -0
- package/dist/node_modules/zrender/lib/graphic/RadialGradient.js +13 -0
- package/dist/node_modules/zrender/lib/graphic/TSpan.js +39 -0
- package/dist/node_modules/zrender/lib/graphic/Text.js +216 -0
- package/dist/node_modules/zrender/lib/graphic/helper/image.js +39 -0
- package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +226 -0
- package/dist/node_modules/zrender/lib/graphic/helper/poly.js +21 -0
- package/dist/node_modules/zrender/lib/graphic/helper/roundRect.js +9 -0
- package/dist/node_modules/zrender/lib/graphic/helper/roundSector.js +85 -0
- package/dist/node_modules/zrender/lib/graphic/helper/smoothBezier.js +26 -0
- package/dist/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js +25 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Arc.js +28 -0
- package/dist/node_modules/zrender/lib/graphic/shape/BezierCurve.js +40 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Circle.js +22 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Ellipse.js +23 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Line.js +37 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Polygon.js +23 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Polyline.js +28 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Rect.js +31 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Ring.js +23 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Sector.js +25 -0
- package/dist/node_modules/zrender/lib/mixin/Draggable.js +28 -0
- package/dist/node_modules/zrender/lib/svg/helper.js +19 -0
- package/dist/node_modules/zrender/lib/tool/color.js +1039 -0
- package/dist/node_modules/zrender/lib/tool/path.js +153 -0
- package/dist/node_modules/zrender/lib/tool/transformPath.js +41 -0
- package/dist/node_modules/zrender/lib/zrender.js +124 -0
- package/dist/node_modules/zrender/node_modules/tslib/tslib.es6.js +18 -0
- package/dist/react-bridge/table.d.ts.map +1 -1
- package/dist/react-bridge/table.js +36 -21
- package/dist/react.d.ts +17 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +73 -52
- package/dist/shared/base-element.d.ts +1 -0
- package/dist/shared/base-element.d.ts.map +1 -1
- package/dist/shared/base-element.js +6 -0
- package/dist/shared/tailwind.js +1 -1
- package/dist/tokens/reke-tokens.css +15 -0
- package/package.json +18 -1
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { assert as e, clone as t, createHashMap as n, each as r, extend as i, filter as a, isArray as o, isFunction as s, isObject as c, isString as l, merge as u, mixin as d } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { error as f, warn as p } from "../util/log.js";
|
|
3
|
+
import { convertOptionIdName as m, isComponentIdInternal as h, mappingToExists as g, normalizeToArray as _, setComponentTypeToKeyInfo as v } from "../util/model.js";
|
|
4
|
+
import { __extends as y } from "../../node_modules/tslib/tslib.es6.js";
|
|
5
|
+
import { resetSourceDefaulter as b } from "../data/helper/sourceHelper.js";
|
|
6
|
+
import x from "./Model.js";
|
|
7
|
+
import S from "./Component.js";
|
|
8
|
+
import { PaletteMixin as C } from "./mixin/palette.js";
|
|
9
|
+
import w from "./globalDefault.js";
|
|
10
|
+
import { concatInternalOptions as T } from "./internalComponentCreator.js";
|
|
11
|
+
//#region node_modules/echarts/lib/model/Global.js
|
|
12
|
+
var E, D, O, k = "\0_ec_inner", A = 1, j = {
|
|
13
|
+
grid: "GridComponent",
|
|
14
|
+
polar: "PolarComponent",
|
|
15
|
+
geo: "GeoComponent",
|
|
16
|
+
singleAxis: "SingleAxisComponent",
|
|
17
|
+
parallel: "ParallelComponent",
|
|
18
|
+
calendar: "CalendarComponent",
|
|
19
|
+
matrix: "MatrixComponent",
|
|
20
|
+
graphic: "GraphicComponent",
|
|
21
|
+
toolbox: "ToolboxComponent",
|
|
22
|
+
tooltip: "TooltipComponent",
|
|
23
|
+
axisPointer: "AxisPointerComponent",
|
|
24
|
+
brush: "BrushComponent",
|
|
25
|
+
title: "TitleComponent",
|
|
26
|
+
timeline: "TimelineComponent",
|
|
27
|
+
markPoint: "MarkPointComponent",
|
|
28
|
+
markLine: "MarkLineComponent",
|
|
29
|
+
markArea: "MarkAreaComponent",
|
|
30
|
+
legend: "LegendComponent",
|
|
31
|
+
dataZoom: "DataZoomComponent",
|
|
32
|
+
visualMap: "VisualMapComponent",
|
|
33
|
+
xAxis: "GridComponent",
|
|
34
|
+
yAxis: "GridComponent",
|
|
35
|
+
angleAxis: "PolarComponent",
|
|
36
|
+
radiusAxis: "PolarComponent"
|
|
37
|
+
}, M = {
|
|
38
|
+
line: "LineChart",
|
|
39
|
+
bar: "BarChart",
|
|
40
|
+
pie: "PieChart",
|
|
41
|
+
scatter: "ScatterChart",
|
|
42
|
+
radar: "RadarChart",
|
|
43
|
+
map: "MapChart",
|
|
44
|
+
tree: "TreeChart",
|
|
45
|
+
treemap: "TreemapChart",
|
|
46
|
+
graph: "GraphChart",
|
|
47
|
+
chord: "ChordChart",
|
|
48
|
+
gauge: "GaugeChart",
|
|
49
|
+
funnel: "FunnelChart",
|
|
50
|
+
parallel: "ParallelChart",
|
|
51
|
+
sankey: "SankeyChart",
|
|
52
|
+
boxplot: "BoxplotChart",
|
|
53
|
+
candlestick: "CandlestickChart",
|
|
54
|
+
effectScatter: "EffectScatterChart",
|
|
55
|
+
lines: "LinesChart",
|
|
56
|
+
heatmap: "HeatmapChart",
|
|
57
|
+
pictorialBar: "PictorialBarChart",
|
|
58
|
+
themeRiver: "ThemeRiverChart",
|
|
59
|
+
sunburst: "SunburstChart",
|
|
60
|
+
custom: "CustomChart"
|
|
61
|
+
}, N = {};
|
|
62
|
+
function P(e) {
|
|
63
|
+
r(e, function(e, t) {
|
|
64
|
+
if (!S.hasClass(t)) {
|
|
65
|
+
var n = j[t];
|
|
66
|
+
n && !N[n] && (f("Component " + t + " is used but not imported.\nimport { " + n + " } from 'echarts/components';\necharts.use([" + n + "]);"), N[n] = !0);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
var F = function(o) {
|
|
71
|
+
y(d, o);
|
|
72
|
+
function d() {
|
|
73
|
+
return o !== null && o.apply(this, arguments) || this;
|
|
74
|
+
}
|
|
75
|
+
return d.prototype.init = function(e, t, n, r, i, a) {
|
|
76
|
+
r ||= {}, this.option = null, this._theme = new x(r), this._locale = new x(i), this._optionManager = a;
|
|
77
|
+
}, d.prototype.setOption = function(t, n, r) {
|
|
78
|
+
process.env.NODE_ENV !== "production" && (e(t != null, "option is null/undefined"), e(t[k] !== A, "please use chart.getOption()"));
|
|
79
|
+
var i = B(n);
|
|
80
|
+
this._optionManager.setOption(t, r, i), this._resetOption(null, i);
|
|
81
|
+
}, d.prototype.resetOption = function(e, t) {
|
|
82
|
+
return this._resetOption(e, B(t));
|
|
83
|
+
}, d.prototype._resetOption = function(e, t) {
|
|
84
|
+
var n = !1, i = this._optionManager;
|
|
85
|
+
if (!e || e === "recreate") {
|
|
86
|
+
var a = i.mountOption(e === "recreate");
|
|
87
|
+
process.env.NODE_ENV !== "production" && P(a), !this.option || e === "recreate" ? O(this, a) : (this.restoreData(), this._mergeOption(a, t)), n = !0;
|
|
88
|
+
}
|
|
89
|
+
if ((e === "timeline" || e === "media") && this.restoreData(), !e || e === "recreate" || e === "timeline") {
|
|
90
|
+
var o = i.getTimelineOption(this);
|
|
91
|
+
o && (n = !0, this._mergeOption(o, t));
|
|
92
|
+
}
|
|
93
|
+
if (!e || e === "recreate" || e === "media") {
|
|
94
|
+
var s = i.getMediaOption(this);
|
|
95
|
+
s.length && r(s, function(e) {
|
|
96
|
+
n = !0, this._mergeOption(e, t);
|
|
97
|
+
}, this);
|
|
98
|
+
}
|
|
99
|
+
return n;
|
|
100
|
+
}, d.prototype.mergeOption = function(e) {
|
|
101
|
+
this._mergeOption(e, null);
|
|
102
|
+
}, d.prototype._mergeOption = function(e, a) {
|
|
103
|
+
var o = this.option, s = this._componentsMap, c = this._componentsCount, l = [], d = n(), m = a && a.replaceMergeMainTypeMap;
|
|
104
|
+
b(this), r(e, function(e, n) {
|
|
105
|
+
e != null && (S.hasClass(n) ? n && (l.push(n), d.set(n, !0)) : o[n] = o[n] == null ? t(e) : u(o[n], e, !0));
|
|
106
|
+
}), m && m.each(function(e, t) {
|
|
107
|
+
S.hasClass(t) && !d.get(t) && (l.push(t), d.set(t, !0));
|
|
108
|
+
}), S.topologicalTravel(l, S.getAllClassMainTypes(), h, this);
|
|
109
|
+
function h(t) {
|
|
110
|
+
var n = T(this, t, _(e[t])), a = s.get(t), l = g(a, n, a ? m && m.get(t) ? "replaceMerge" : "normalMerge" : "replaceAll");
|
|
111
|
+
v(l, t, S), o[t] = null, s.set(t, null), c.set(t, 0);
|
|
112
|
+
var u = [], d = [], h = 0, y, b;
|
|
113
|
+
r(l, function(e, n) {
|
|
114
|
+
var r = e.existing, a = e.newOption;
|
|
115
|
+
if (!a) r && (r.mergeOption({}, this), r.optionUpdated({}, !1));
|
|
116
|
+
else {
|
|
117
|
+
var o = t === "series", s = S.getClass(t, e.keyInfo.subType, !o);
|
|
118
|
+
if (!s) {
|
|
119
|
+
if (process.env.NODE_ENV !== "production") {
|
|
120
|
+
var c = e.keyInfo.subType, l = M[c];
|
|
121
|
+
N[c] || (N[c] = !0, f(l ? "Series " + c + " is used but not imported.\nimport { " + l + " } from 'echarts/charts';\necharts.use([" + l + "]);" : "Unknown series " + c));
|
|
122
|
+
}
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
if (t === "tooltip") {
|
|
126
|
+
if (y) {
|
|
127
|
+
process.env.NODE_ENV !== "production" && (b ||= (p("Currently only one tooltip component is allowed."), !0));
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
y = !0;
|
|
131
|
+
}
|
|
132
|
+
if (r && r.constructor === s) r.name = e.keyInfo.name, r.mergeOption(a, this), r.optionUpdated(a, !1);
|
|
133
|
+
else {
|
|
134
|
+
var m = i({ componentIndex: n }, e.keyInfo);
|
|
135
|
+
r = new s(a, this, this, m), i(r, m), e.brandNew && (r.__requireNewView = !0), r.init(a, this, this), r.optionUpdated(null, !0);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
r ? (u.push(r.option), d.push(r), h++) : (u.push(void 0), d.push(void 0));
|
|
139
|
+
}, this), o[t] = u, s.set(t, d), c.set(t, h), t === "series" && E(this);
|
|
140
|
+
}
|
|
141
|
+
this._seriesIndices || E(this);
|
|
142
|
+
}, d.prototype.getOption = function() {
|
|
143
|
+
var e = t(this.option);
|
|
144
|
+
return r(e, function(t, n) {
|
|
145
|
+
if (S.hasClass(n)) {
|
|
146
|
+
for (var r = _(t), i = r.length, a = !1, o = i - 1; o >= 0; o--) r[o] && !h(r[o]) ? a = !0 : (r[o] = null, !a && i--);
|
|
147
|
+
r.length = i, e[n] = r;
|
|
148
|
+
}
|
|
149
|
+
}), delete e[k], e;
|
|
150
|
+
}, d.prototype.setTheme = function(e) {
|
|
151
|
+
this._theme = new x(e), this._resetOption("recreate", null);
|
|
152
|
+
}, d.prototype.getTheme = function() {
|
|
153
|
+
return this._theme;
|
|
154
|
+
}, d.prototype.getLocaleModel = function() {
|
|
155
|
+
return this._locale;
|
|
156
|
+
}, d.prototype.setUpdatePayload = function(e) {
|
|
157
|
+
this._payload = e;
|
|
158
|
+
}, d.prototype.getUpdatePayload = function() {
|
|
159
|
+
return this._payload;
|
|
160
|
+
}, d.prototype.getComponent = function(e, t) {
|
|
161
|
+
var n = this._componentsMap.get(e);
|
|
162
|
+
if (n) {
|
|
163
|
+
var r = n[t || 0];
|
|
164
|
+
if (r) return r;
|
|
165
|
+
if (t == null) {
|
|
166
|
+
for (var i = 0; i < n.length; i++) if (n[i]) return n[i];
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}, d.prototype.queryComponents = function(e) {
|
|
170
|
+
var t = e.mainType;
|
|
171
|
+
if (!t) return [];
|
|
172
|
+
var n = e.index, i = e.id, o = e.name, s = this._componentsMap.get(t);
|
|
173
|
+
if (!s || !s.length) return [];
|
|
174
|
+
var c;
|
|
175
|
+
return n == null ? c = i == null ? o == null ? a(s, function(e) {
|
|
176
|
+
return !!e;
|
|
177
|
+
}) : R("name", o, s) : R("id", i, s) : (c = [], r(_(n), function(e) {
|
|
178
|
+
s[e] && c.push(s[e]);
|
|
179
|
+
})), z(c, e);
|
|
180
|
+
}, d.prototype.findComponents = function(e) {
|
|
181
|
+
var t = e.query, n = e.mainType, r = i(t);
|
|
182
|
+
return o(z(r ? this.queryComponents(r) : a(this._componentsMap.get(n), function(e) {
|
|
183
|
+
return !!e;
|
|
184
|
+
}), e));
|
|
185
|
+
function i(e) {
|
|
186
|
+
var t = n + "Index", r = n + "Id", i = n + "Name";
|
|
187
|
+
return e && (e[t] != null || e[r] != null || e[i] != null) ? {
|
|
188
|
+
mainType: n,
|
|
189
|
+
index: e[t],
|
|
190
|
+
id: e[r],
|
|
191
|
+
name: e[i]
|
|
192
|
+
} : null;
|
|
193
|
+
}
|
|
194
|
+
function o(t) {
|
|
195
|
+
return e.filter ? a(t, e.filter) : t;
|
|
196
|
+
}
|
|
197
|
+
}, d.prototype.eachComponent = function(e, t, n) {
|
|
198
|
+
var r = this._componentsMap;
|
|
199
|
+
if (s(e)) {
|
|
200
|
+
var i = t, a = e;
|
|
201
|
+
r.each(function(e, t) {
|
|
202
|
+
for (var n = 0; e && n < e.length; n++) {
|
|
203
|
+
var r = e[n];
|
|
204
|
+
r && a.call(i, t, r, r.componentIndex);
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
} else for (var o = l(e) ? r.get(e) : c(e) ? this.findComponents(e) : null, u = 0; o && u < o.length; u++) {
|
|
208
|
+
var d = o[u];
|
|
209
|
+
d && t.call(n, d, d.componentIndex);
|
|
210
|
+
}
|
|
211
|
+
}, d.prototype.getSeriesByName = function(e) {
|
|
212
|
+
var t = m(e, null);
|
|
213
|
+
return a(this._componentsMap.get("series"), function(e) {
|
|
214
|
+
return !!e && t != null && e.name === t;
|
|
215
|
+
});
|
|
216
|
+
}, d.prototype.getSeriesByIndex = function(e) {
|
|
217
|
+
return this._componentsMap.get("series")[e];
|
|
218
|
+
}, d.prototype.getSeriesByType = function(e) {
|
|
219
|
+
return a(this._componentsMap.get("series"), function(t) {
|
|
220
|
+
return !!t && t.subType === e;
|
|
221
|
+
});
|
|
222
|
+
}, d.prototype.getSeries = function() {
|
|
223
|
+
return a(this._componentsMap.get("series"), function(e) {
|
|
224
|
+
return !!e;
|
|
225
|
+
});
|
|
226
|
+
}, d.prototype.getSeriesCount = function() {
|
|
227
|
+
return this._componentsCount.get("series");
|
|
228
|
+
}, d.prototype.eachSeries = function(e, t) {
|
|
229
|
+
D(this), r(this._seriesIndices, function(n) {
|
|
230
|
+
var r = this._componentsMap.get("series")[n];
|
|
231
|
+
e.call(t, r, n);
|
|
232
|
+
}, this);
|
|
233
|
+
}, d.prototype.eachRawSeries = function(e, t) {
|
|
234
|
+
r(this._componentsMap.get("series"), function(n) {
|
|
235
|
+
n && e.call(t, n, n.componentIndex);
|
|
236
|
+
});
|
|
237
|
+
}, d.prototype.eachSeriesByType = function(e, t, n) {
|
|
238
|
+
D(this), r(this._seriesIndices, function(r) {
|
|
239
|
+
var i = this._componentsMap.get("series")[r];
|
|
240
|
+
i.subType === e && t.call(n, i, r);
|
|
241
|
+
}, this);
|
|
242
|
+
}, d.prototype.eachRawSeriesByType = function(e, t, n) {
|
|
243
|
+
return r(this.getSeriesByType(e), t, n);
|
|
244
|
+
}, d.prototype.isSeriesFiltered = function(e) {
|
|
245
|
+
return D(this), this._seriesIndicesMap.get(e.componentIndex) == null;
|
|
246
|
+
}, d.prototype.getCurrentSeriesIndices = function() {
|
|
247
|
+
return (this._seriesIndices || []).slice();
|
|
248
|
+
}, d.prototype.filterSeries = function(e, t) {
|
|
249
|
+
D(this);
|
|
250
|
+
var i = [];
|
|
251
|
+
r(this._seriesIndices, function(n) {
|
|
252
|
+
var r = this._componentsMap.get("series")[n];
|
|
253
|
+
e.call(t, r, n) && i.push(n);
|
|
254
|
+
}, this), this._seriesIndices = i, this._seriesIndicesMap = n(i);
|
|
255
|
+
}, d.prototype.restoreData = function(e) {
|
|
256
|
+
E(this);
|
|
257
|
+
var t = this._componentsMap, n = [];
|
|
258
|
+
t.each(function(e, t) {
|
|
259
|
+
S.hasClass(t) && n.push(t);
|
|
260
|
+
}), S.topologicalTravel(n, S.getAllClassMainTypes(), function(n) {
|
|
261
|
+
r(t.get(n), function(t) {
|
|
262
|
+
t && (n !== "series" || !I(t, e)) && t.restoreData();
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
|
+
}, d.internalField = function() {
|
|
266
|
+
E = function(e) {
|
|
267
|
+
var t = e._seriesIndices = [];
|
|
268
|
+
r(e._componentsMap.get("series"), function(e) {
|
|
269
|
+
e && t.push(e.componentIndex);
|
|
270
|
+
}), e._seriesIndicesMap = n(t);
|
|
271
|
+
}, D = function(e) {
|
|
272
|
+
if (process.env.NODE_ENV !== "production" && !e._seriesIndices) throw Error("Option should contains series.");
|
|
273
|
+
}, O = function(e, t) {
|
|
274
|
+
e.option = {}, e.option[k] = A, e._componentsMap = n({ series: [] }), e._componentsCount = n();
|
|
275
|
+
var r = t.aria;
|
|
276
|
+
c(r) && r.enabled == null && (r.enabled = !0), L(t, e._theme.option), u(t, w, !1), e._mergeOption(t, null);
|
|
277
|
+
};
|
|
278
|
+
}(), d;
|
|
279
|
+
}(x);
|
|
280
|
+
function I(e, t) {
|
|
281
|
+
if (t) {
|
|
282
|
+
var n = t.seriesIndex, r = t.seriesId, i = t.seriesName;
|
|
283
|
+
return n != null && e.componentIndex !== n || r != null && e.id !== r || i != null && e.name !== i;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
function L(e, n) {
|
|
287
|
+
var i = e.color && !e.colorLayer;
|
|
288
|
+
r(n, function(n, r) {
|
|
289
|
+
r === "colorLayer" && i || r === "color" && e.color || S.hasClass(r) || (typeof n == "object" ? e[r] = e[r] ? u(e[r], n, !1) : t(n) : e[r] ?? (e[r] = n));
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
function R(e, t, i) {
|
|
293
|
+
if (o(t)) {
|
|
294
|
+
var s = n();
|
|
295
|
+
return r(t, function(e) {
|
|
296
|
+
e != null && m(e, null) != null && s.set(e, !0);
|
|
297
|
+
}), a(i, function(t) {
|
|
298
|
+
return t && s.get(t[e]);
|
|
299
|
+
});
|
|
300
|
+
} else {
|
|
301
|
+
var c = m(t, null);
|
|
302
|
+
return a(i, function(t) {
|
|
303
|
+
return t && c != null && t[e] === c;
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
function z(e, t) {
|
|
308
|
+
return t.hasOwnProperty("subType") ? a(e, function(e) {
|
|
309
|
+
return e && e.subType === t.subType;
|
|
310
|
+
}) : e;
|
|
311
|
+
}
|
|
312
|
+
function B(t) {
|
|
313
|
+
var i = n();
|
|
314
|
+
return t && r(_(t.replaceMerge), function(t) {
|
|
315
|
+
process.env.NODE_ENV !== "production" && e(S.hasClass(t), "\"" + t + "\" is not valid component main type in \"replaceMerge\""), i.set(t, !0);
|
|
316
|
+
}), { replaceMergeMainTypeMap: i };
|
|
317
|
+
}
|
|
318
|
+
d(F, C);
|
|
319
|
+
//#endregion
|
|
320
|
+
export { F as default };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { clone as e, merge as t, mixin as n } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import r from "../../../zrender/lib/core/env.js";
|
|
3
|
+
import { enableClassCheck as i, enableClassExtend as a } from "../util/clazz.js";
|
|
4
|
+
import { AreaStyleMixin as o } from "./mixin/areaStyle.js";
|
|
5
|
+
import s from "./mixin/textStyle.js";
|
|
6
|
+
import { LineStyleMixin as c } from "./mixin/lineStyle.js";
|
|
7
|
+
import { ItemStyleMixin as l } from "./mixin/itemStyle.js";
|
|
8
|
+
//#region node_modules/echarts/lib/model/Model.js
|
|
9
|
+
var u = function() {
|
|
10
|
+
function n(e, t, n) {
|
|
11
|
+
this.parentModel = t, this.ecModel = n, this.option = e;
|
|
12
|
+
}
|
|
13
|
+
return n.prototype.init = function(e, t, n) {}, n.prototype.mergeOption = function(e, n) {
|
|
14
|
+
t(this.option, e, !0);
|
|
15
|
+
}, n.prototype.get = function(e, t) {
|
|
16
|
+
return e == null ? this.option : this._doGet(this.parsePath(e), !t && this.parentModel);
|
|
17
|
+
}, n.prototype.getShallow = function(e, t) {
|
|
18
|
+
var n = this.option, r = n == null ? n : n[e];
|
|
19
|
+
if (r == null && !t) {
|
|
20
|
+
var i = this.parentModel;
|
|
21
|
+
i && (r = i.getShallow(e));
|
|
22
|
+
}
|
|
23
|
+
return r;
|
|
24
|
+
}, n.prototype.getModel = function(e, t) {
|
|
25
|
+
var r = e != null, i = r ? this.parsePath(e) : null, a = r ? this._doGet(i) : this.option;
|
|
26
|
+
return t ||= this.parentModel && this.parentModel.getModel(this.resolveParentPath(i)), new n(a, t, this.ecModel);
|
|
27
|
+
}, n.prototype.isEmpty = function() {
|
|
28
|
+
return this.option == null;
|
|
29
|
+
}, n.prototype.restoreData = function() {}, n.prototype.clone = function() {
|
|
30
|
+
var t = this.constructor;
|
|
31
|
+
return new t(e(this.option));
|
|
32
|
+
}, n.prototype.parsePath = function(e) {
|
|
33
|
+
return typeof e == "string" ? e.split(".") : e;
|
|
34
|
+
}, n.prototype.resolveParentPath = function(e) {
|
|
35
|
+
return e;
|
|
36
|
+
}, n.prototype.isAnimationEnabled = function() {
|
|
37
|
+
if (!r.node && this.option) {
|
|
38
|
+
if (this.option.animation != null) return !!this.option.animation;
|
|
39
|
+
if (this.parentModel) return this.parentModel.isAnimationEnabled();
|
|
40
|
+
}
|
|
41
|
+
}, n.prototype._doGet = function(e, t) {
|
|
42
|
+
var n = this.option;
|
|
43
|
+
if (!e) return n;
|
|
44
|
+
for (var r = 0; r < e.length && !(e[r] && (n = n && typeof n == "object" ? n[e[r]] : null, n == null)); r++);
|
|
45
|
+
return n == null && t && (n = t._doGet(this.resolveParentPath(e), t.parentModel)), n;
|
|
46
|
+
}, n;
|
|
47
|
+
}();
|
|
48
|
+
a(u), i(u), n(u, c), n(u, l), n(u, o), n(u, s);
|
|
49
|
+
//#endregion
|
|
50
|
+
export { u as default };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { clone as e, each as t, isArray as n, isObject as r, isTypedArray as i, map as a, setAsPrimitive as o } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { error as s } from "../util/log.js";
|
|
3
|
+
import { normalizeToArray as c } from "../util/model.js";
|
|
4
|
+
//#region node_modules/echarts/lib/model/OptionManager.js
|
|
5
|
+
var l = /^(min|max)?(.+)$/, u = function() {
|
|
6
|
+
function n(e) {
|
|
7
|
+
this._timelineOptions = [], this._mediaList = [], this._currentMediaIndices = [], this._api = e;
|
|
8
|
+
}
|
|
9
|
+
return n.prototype.setOption = function(n, r, a) {
|
|
10
|
+
n && (t(c(n.series), function(e) {
|
|
11
|
+
e && e.data && i(e.data) && o(e.data);
|
|
12
|
+
}), t(c(n.dataset), function(e) {
|
|
13
|
+
e && e.source && i(e.source) && o(e.source);
|
|
14
|
+
})), n = e(n);
|
|
15
|
+
var s = this._optionBackup, l = d(n, r, !s);
|
|
16
|
+
this._newBaseOption = l.baseOption, s ? (l.timelineOptions.length && (s.timelineOptions = l.timelineOptions), l.mediaList.length && (s.mediaList = l.mediaList), l.mediaDefault && (s.mediaDefault = l.mediaDefault)) : this._optionBackup = l;
|
|
17
|
+
}, n.prototype.mountOption = function(t) {
|
|
18
|
+
var n = this._optionBackup;
|
|
19
|
+
return this._timelineOptions = n.timelineOptions, this._mediaList = n.mediaList, this._mediaDefault = n.mediaDefault, this._currentMediaIndices = [], e(t ? n.baseOption : this._newBaseOption);
|
|
20
|
+
}, n.prototype.getTimelineOption = function(t) {
|
|
21
|
+
var n, r = this._timelineOptions;
|
|
22
|
+
if (r.length) {
|
|
23
|
+
var i = t.getComponent("timeline");
|
|
24
|
+
i && (n = e(r[i.getCurrentIndex()]));
|
|
25
|
+
}
|
|
26
|
+
return n;
|
|
27
|
+
}, n.prototype.getMediaOption = function(t) {
|
|
28
|
+
var n = this._api.getWidth(), r = this._api.getHeight(), i = this._mediaList, o = this._mediaDefault, s = [], c = [];
|
|
29
|
+
if (!i.length && !o) return c;
|
|
30
|
+
for (var l = 0, u = i.length; l < u; l++) f(i[l].query, n, r) && s.push(l);
|
|
31
|
+
return !s.length && o && (s = [-1]), s.length && !m(s, this._currentMediaIndices) && (c = a(s, function(t) {
|
|
32
|
+
return e(t === -1 ? o.option : i[t].option);
|
|
33
|
+
})), this._currentMediaIndices = s, c;
|
|
34
|
+
}, n;
|
|
35
|
+
}();
|
|
36
|
+
function d(e, i, a) {
|
|
37
|
+
var o = [], c, l, u = e.baseOption, d = e.timeline, f = e.options, p = e.media, m = !!e.media, h = !!(f || d || u && u.timeline);
|
|
38
|
+
u ? (l = u, l.timeline ||= d) : ((h || m) && (e.options = e.media = null), l = e), m && (n(p) ? t(p, function(e) {
|
|
39
|
+
process.env.NODE_ENV !== "production" && e && !e.option && r(e.query) && r(e.query.option) && s("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"), e && e.option && (e.query ? o.push(e) : c ||= e);
|
|
40
|
+
}) : process.env.NODE_ENV !== "production" && s("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")), g(l), t(f, function(e) {
|
|
41
|
+
return g(e);
|
|
42
|
+
}), t(o, function(e) {
|
|
43
|
+
return g(e.option);
|
|
44
|
+
});
|
|
45
|
+
function g(e) {
|
|
46
|
+
t(i, function(t) {
|
|
47
|
+
t(e, a);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
baseOption: l,
|
|
52
|
+
timelineOptions: f || [],
|
|
53
|
+
mediaDefault: c,
|
|
54
|
+
mediaList: o
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function f(e, n, r) {
|
|
58
|
+
var i = {
|
|
59
|
+
width: n,
|
|
60
|
+
height: r,
|
|
61
|
+
aspectratio: n / r
|
|
62
|
+
}, a = !0;
|
|
63
|
+
return t(e, function(e, t) {
|
|
64
|
+
var n = t.match(l);
|
|
65
|
+
if (!(!n || !n[1] || !n[2])) {
|
|
66
|
+
var r = n[1];
|
|
67
|
+
p(i[n[2].toLowerCase()], e, r) || (a = !1);
|
|
68
|
+
}
|
|
69
|
+
}), a;
|
|
70
|
+
}
|
|
71
|
+
function p(e, t, n) {
|
|
72
|
+
return n === "min" ? e >= t : n === "max" ? e <= t : e === t;
|
|
73
|
+
}
|
|
74
|
+
function m(e, t) {
|
|
75
|
+
return e.join(",") === t.join(",");
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
export { u as default };
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { assert as e, concatArray as t, createHashMap as n, curry as r, each as i, isObject as a, isTypedArray as o, keys as s, merge as c, mixin as l } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import u from "../../../zrender/lib/core/env.js";
|
|
3
|
+
import { defaultEmphasis as d, isNameSpecified as f, makeInner as p } from "../util/model.js";
|
|
4
|
+
import { __extends as m } from "../../node_modules/tslib/tslib.es6.js";
|
|
5
|
+
import { mountExtend as h } from "../util/clazz.js";
|
|
6
|
+
import { createTask as g } from "../core/task.js";
|
|
7
|
+
import { fetchLayoutMode as _, getLayoutParams as v, mergeLayoutParam as y } from "../util/layout.js";
|
|
8
|
+
import b from "./Component.js";
|
|
9
|
+
import { PaletteMixin as x } from "./mixin/palette.js";
|
|
10
|
+
import { DataFormatMixin as S } from "./mixin/dataFormat.js";
|
|
11
|
+
import { SourceManager as C } from "../data/helper/sourceManager.js";
|
|
12
|
+
import { defaultSeriesFormatTooltip as w } from "../component/tooltip/seriesFormatTooltip.js";
|
|
13
|
+
//#region node_modules/echarts/lib/model/Series.js
|
|
14
|
+
var T = p();
|
|
15
|
+
function E(e, t) {
|
|
16
|
+
return e.getName(t) || e.getId(t);
|
|
17
|
+
}
|
|
18
|
+
var D = function(t) {
|
|
19
|
+
m(r, t);
|
|
20
|
+
function r() {
|
|
21
|
+
var e = t !== null && t.apply(this, arguments) || this;
|
|
22
|
+
return e._selectedDataIndicesMap = {}, e;
|
|
23
|
+
}
|
|
24
|
+
return r.prototype.init = function(t, n, r) {
|
|
25
|
+
this.seriesIndex = this.componentIndex, this.dataTask = g({
|
|
26
|
+
count: A,
|
|
27
|
+
reset: j
|
|
28
|
+
}), this.dataTask.context = { model: this }, this.mergeDefaultAndTheme(t, r), (T(this).sourceManager = new C(this)).prepareSource();
|
|
29
|
+
var i = this.getInitialData(t, r);
|
|
30
|
+
N(i, this), this.dataTask.context.data = i, process.env.NODE_ENV !== "production" && e(i, "getInitialData returned invalid data."), T(this).dataBeforeProcessed = i, O(this), this._initSelectedMapFromData(i);
|
|
31
|
+
}, r.prototype.mergeDefaultAndTheme = function(e, t) {
|
|
32
|
+
var n = _(this), r = n ? v(e) : {}, i = this.subType;
|
|
33
|
+
b.hasClass(i) && (i += "Series"), c(e, t.getTheme().get(this.subType)), c(e, this.getDefaultOption()), d(e, "label", ["show"]), this.fillDataTextStyle(e.data), n && y(e, r, n);
|
|
34
|
+
}, r.prototype.mergeOption = function(e, t) {
|
|
35
|
+
e = c(this.option, e, !0), this.fillDataTextStyle(e.data);
|
|
36
|
+
var n = _(this);
|
|
37
|
+
n && y(this.option, e, n);
|
|
38
|
+
var r = T(this).sourceManager;
|
|
39
|
+
r.dirty(), r.prepareSource();
|
|
40
|
+
var i = this.getInitialData(e, t);
|
|
41
|
+
N(i, this), this.dataTask.dirty(), this.dataTask.context.data = i, T(this).dataBeforeProcessed = i, O(this), this._initSelectedMapFromData(i);
|
|
42
|
+
}, r.prototype.fillDataTextStyle = function(e) {
|
|
43
|
+
if (e && !o(e)) for (var t = ["show"], n = 0; n < e.length; n++) e[n] && e[n].label && d(e[n], "label", t);
|
|
44
|
+
}, r.prototype.getInitialData = function(e, t) {}, r.prototype.appendData = function(e) {
|
|
45
|
+
this.getRawData().appendData(e.data);
|
|
46
|
+
}, r.prototype.getData = function(e) {
|
|
47
|
+
var t = F(this);
|
|
48
|
+
if (t) {
|
|
49
|
+
var n = t.context.data;
|
|
50
|
+
return e == null || !n.getLinkedData ? n : n.getLinkedData(e);
|
|
51
|
+
} else return T(this).data;
|
|
52
|
+
}, r.prototype.getAllData = function() {
|
|
53
|
+
var e = this.getData();
|
|
54
|
+
return e && e.getLinkedDataAll ? e.getLinkedDataAll() : [{ data: e }];
|
|
55
|
+
}, r.prototype.setData = function(e) {
|
|
56
|
+
var t = F(this);
|
|
57
|
+
if (t) {
|
|
58
|
+
var n = t.context;
|
|
59
|
+
n.outputData = e, t !== this.dataTask && (n.data = e);
|
|
60
|
+
}
|
|
61
|
+
T(this).data = e;
|
|
62
|
+
}, r.prototype.getEncode = function() {
|
|
63
|
+
var e = this.get("encode", !0);
|
|
64
|
+
if (e) return n(e);
|
|
65
|
+
}, r.prototype.getSourceManager = function() {
|
|
66
|
+
return T(this).sourceManager;
|
|
67
|
+
}, r.prototype.getSource = function() {
|
|
68
|
+
return this.getSourceManager().getSource();
|
|
69
|
+
}, r.prototype.getRawData = function() {
|
|
70
|
+
return T(this).dataBeforeProcessed;
|
|
71
|
+
}, r.prototype.getColorBy = function() {
|
|
72
|
+
return this.get("colorBy") || "series";
|
|
73
|
+
}, r.prototype.isColorBySeries = function() {
|
|
74
|
+
return this.getColorBy() === "series";
|
|
75
|
+
}, r.prototype.getBaseAxis = function() {
|
|
76
|
+
var e = this.coordinateSystem;
|
|
77
|
+
return e && e.getBaseAxis && e.getBaseAxis();
|
|
78
|
+
}, r.prototype.indicesOfNearest = function(e, t, n, r) {
|
|
79
|
+
var i = this.getData(), a = this.coordinateSystem, o = a && a.getAxis(e);
|
|
80
|
+
if (!a || !o) return [];
|
|
81
|
+
var s = o.dataToCoord(n);
|
|
82
|
+
r ??= Infinity;
|
|
83
|
+
for (var c = [], l = Infinity, u = -1, d = 0, f = i.getDimensionIndex(t), p = i.getStore(), m = 0, h = p.count(); m < h; m++) {
|
|
84
|
+
var g = p.get(f, m), _ = s - o.dataToCoord(g), v = Math.abs(_);
|
|
85
|
+
v <= r && ((v < l || v === l && _ >= 0 && u < 0) && (l = v, u = _, d = 0), _ === u && (c[d++] = m));
|
|
86
|
+
}
|
|
87
|
+
return c.length = d, c;
|
|
88
|
+
}, r.prototype.formatTooltip = function(e, t, n) {
|
|
89
|
+
return w({
|
|
90
|
+
series: this,
|
|
91
|
+
dataIndex: e,
|
|
92
|
+
multipleSeries: t
|
|
93
|
+
});
|
|
94
|
+
}, r.prototype.isAnimationEnabled = function() {
|
|
95
|
+
var e = this.ecModel;
|
|
96
|
+
if (u.node && !(e && e.ssr)) return !1;
|
|
97
|
+
var t = this.getShallow("animation");
|
|
98
|
+
return t && this.getData().count() > this.getShallow("animationThreshold") && (t = !1), !!t;
|
|
99
|
+
}, r.prototype.restoreData = function() {
|
|
100
|
+
this.dataTask.dirty();
|
|
101
|
+
}, r.prototype.getColorFromPalette = function(e, t, n) {
|
|
102
|
+
var r = this.ecModel, i = x.prototype.getColorFromPalette.call(this, e, t, n);
|
|
103
|
+
return i ||= r.getColorFromPalette(e, t, n), i;
|
|
104
|
+
}, r.prototype.coordDimToDataDim = function(e) {
|
|
105
|
+
return this.getRawData().mapDimensionsAll(e);
|
|
106
|
+
}, r.prototype.getProgressive = function() {
|
|
107
|
+
return this.get("progressive");
|
|
108
|
+
}, r.prototype.getProgressiveThreshold = function() {
|
|
109
|
+
return this.get("progressiveThreshold");
|
|
110
|
+
}, r.prototype.select = function(e, t) {
|
|
111
|
+
this._innerSelect(this.getData(t), e);
|
|
112
|
+
}, r.prototype.unselect = function(e, t) {
|
|
113
|
+
var n = this.option.selectedMap;
|
|
114
|
+
if (n) {
|
|
115
|
+
var r = this.option.selectedMode, i = this.getData(t);
|
|
116
|
+
if (r === "series" || n === "all") {
|
|
117
|
+
this.option.selectedMap = {}, this._selectedDataIndicesMap = {};
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
for (var a = 0; a < e.length; a++) {
|
|
121
|
+
var o = e[a], s = E(i, o);
|
|
122
|
+
n[s] = !1, this._selectedDataIndicesMap[s] = -1;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}, r.prototype.toggleSelect = function(e, t) {
|
|
126
|
+
for (var n = [], r = 0; r < e.length; r++) n[0] = e[r], this.isSelected(e[r], t) ? this.unselect(n, t) : this.select(n, t);
|
|
127
|
+
}, r.prototype.getSelectedDataIndices = function() {
|
|
128
|
+
if (this.option.selectedMap === "all") return [].slice.call(this.getData().getIndices());
|
|
129
|
+
for (var e = this._selectedDataIndicesMap, t = s(e), n = [], r = 0; r < t.length; r++) {
|
|
130
|
+
var i = e[t[r]];
|
|
131
|
+
i >= 0 && n.push(i);
|
|
132
|
+
}
|
|
133
|
+
return n;
|
|
134
|
+
}, r.prototype.isSelected = function(e, t) {
|
|
135
|
+
var n = this.option.selectedMap;
|
|
136
|
+
if (!n) return !1;
|
|
137
|
+
var r = this.getData(t);
|
|
138
|
+
return (n === "all" || n[E(r, e)]) && !r.getItemModel(e).get(["select", "disabled"]);
|
|
139
|
+
}, r.prototype.isUniversalTransitionEnabled = function() {
|
|
140
|
+
if (this.__universalTransitionEnabled) return !0;
|
|
141
|
+
var e = this.option.universalTransition;
|
|
142
|
+
return e ? e === !0 ? !0 : e && e.enabled : !1;
|
|
143
|
+
}, r.prototype._innerSelect = function(e, t) {
|
|
144
|
+
var n, r, i = this.option, o = i.selectedMode, s = t.length;
|
|
145
|
+
if (!(!o || !s)) {
|
|
146
|
+
if (o === "series") i.selectedMap = "all";
|
|
147
|
+
else if (o === "multiple") {
|
|
148
|
+
a(i.selectedMap) || (i.selectedMap = {});
|
|
149
|
+
for (var c = i.selectedMap, l = 0; l < s; l++) {
|
|
150
|
+
var u = t[l], d = E(e, u);
|
|
151
|
+
c[d] = !0, this._selectedDataIndicesMap[d] = e.getRawIndex(u);
|
|
152
|
+
}
|
|
153
|
+
} else if (o === "single" || o === !0) {
|
|
154
|
+
var f = t[s - 1], d = E(e, f);
|
|
155
|
+
i.selectedMap = (n = {}, n[d] = !0, n), this._selectedDataIndicesMap = (r = {}, r[d] = e.getRawIndex(f), r);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}, r.prototype._initSelectedMapFromData = function(e) {
|
|
159
|
+
if (!this.option.selectedMap) {
|
|
160
|
+
var t = [];
|
|
161
|
+
e.hasItemOption && e.each(function(n) {
|
|
162
|
+
var r = e.getRawDataItem(n);
|
|
163
|
+
r && r.selected && t.push(n);
|
|
164
|
+
}), t.length > 0 && this._innerSelect(e, t);
|
|
165
|
+
}
|
|
166
|
+
}, r.registerClass = function(e) {
|
|
167
|
+
return b.registerClass(e);
|
|
168
|
+
}, r.protoInitialize = function() {
|
|
169
|
+
var e = r.prototype;
|
|
170
|
+
e.type = "series.__base__", e.seriesIndex = 0, e.ignoreStyleOnData = !1, e.hasSymbolVisual = !1, e.defaultSymbol = "circle", e.visualStyleAccessPath = "itemStyle", e.visualDrawType = "fill";
|
|
171
|
+
}(), r;
|
|
172
|
+
}(b);
|
|
173
|
+
l(D, S), l(D, x), h(D, b);
|
|
174
|
+
function O(e) {
|
|
175
|
+
var t = e.name;
|
|
176
|
+
f(e) || (e.name = k(e) || t);
|
|
177
|
+
}
|
|
178
|
+
function k(e) {
|
|
179
|
+
var t = e.getRawData(), n = t.mapDimensionsAll("seriesName"), r = [];
|
|
180
|
+
return i(n, function(e) {
|
|
181
|
+
var n = t.getDimensionInfo(e);
|
|
182
|
+
n.displayName && r.push(n.displayName);
|
|
183
|
+
}), r.join(" ");
|
|
184
|
+
}
|
|
185
|
+
function A(e) {
|
|
186
|
+
return e.model.getRawData().count();
|
|
187
|
+
}
|
|
188
|
+
function j(e) {
|
|
189
|
+
var t = e.model;
|
|
190
|
+
return t.setData(t.getRawData().cloneShallow()), M;
|
|
191
|
+
}
|
|
192
|
+
function M(e, t) {
|
|
193
|
+
t.outputData && e.end > t.outputData.count() && t.model.getRawData().cloneShallow(t.outputData);
|
|
194
|
+
}
|
|
195
|
+
function N(e, n) {
|
|
196
|
+
i(t(e.CHANGABLE_METHODS, e.DOWNSAMPLE_METHODS), function(t) {
|
|
197
|
+
e.wrapMethod(t, r(P, n));
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
function P(e, t) {
|
|
201
|
+
var n = F(e);
|
|
202
|
+
return n && n.setOutputEnd((t || this).count()), t;
|
|
203
|
+
}
|
|
204
|
+
function F(e) {
|
|
205
|
+
var t = (e.ecModel || {}).scheduler, n = t && t.getPipeline(e.uid);
|
|
206
|
+
if (n) {
|
|
207
|
+
var r = n.currentTask;
|
|
208
|
+
if (r) {
|
|
209
|
+
var i = r.agentStubMap;
|
|
210
|
+
i && (r = i.get(e.uid));
|
|
211
|
+
}
|
|
212
|
+
return r;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
//#endregion
|
|
216
|
+
export { D as default };
|