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,94 @@
|
|
|
1
|
+
import { modifyHSL as e } from "../../../zrender/lib/tool/color.js";
|
|
2
|
+
import t from "../visual/tokens.js";
|
|
3
|
+
//#region node_modules/echarts/lib/model/globalDefault.js
|
|
4
|
+
var n = "";
|
|
5
|
+
typeof navigator < "u" && (n = navigator.platform || "");
|
|
6
|
+
var r = "rgba(0, 0, 0, 0.2)", i = t.color.theme[0], a = e(i, null, null, .9), o = {
|
|
7
|
+
darkMode: "auto",
|
|
8
|
+
colorBy: "series",
|
|
9
|
+
color: t.color.theme,
|
|
10
|
+
gradientColor: [a, i],
|
|
11
|
+
aria: { decal: { decals: [
|
|
12
|
+
{
|
|
13
|
+
color: r,
|
|
14
|
+
dashArrayX: [1, 0],
|
|
15
|
+
dashArrayY: [2, 5],
|
|
16
|
+
symbolSize: 1,
|
|
17
|
+
rotation: Math.PI / 6
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
color: r,
|
|
21
|
+
symbol: "circle",
|
|
22
|
+
dashArrayX: [[8, 8], [
|
|
23
|
+
0,
|
|
24
|
+
8,
|
|
25
|
+
8,
|
|
26
|
+
0
|
|
27
|
+
]],
|
|
28
|
+
dashArrayY: [6, 0],
|
|
29
|
+
symbolSize: .8
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
color: r,
|
|
33
|
+
dashArrayX: [1, 0],
|
|
34
|
+
dashArrayY: [4, 3],
|
|
35
|
+
rotation: -Math.PI / 4
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
color: r,
|
|
39
|
+
dashArrayX: [[6, 6], [
|
|
40
|
+
0,
|
|
41
|
+
6,
|
|
42
|
+
6,
|
|
43
|
+
0
|
|
44
|
+
]],
|
|
45
|
+
dashArrayY: [6, 0]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
color: r,
|
|
49
|
+
dashArrayX: [[1, 0], [1, 6]],
|
|
50
|
+
dashArrayY: [
|
|
51
|
+
1,
|
|
52
|
+
0,
|
|
53
|
+
6,
|
|
54
|
+
0
|
|
55
|
+
],
|
|
56
|
+
rotation: Math.PI / 4
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
color: r,
|
|
60
|
+
symbol: "triangle",
|
|
61
|
+
dashArrayX: [[9, 9], [
|
|
62
|
+
0,
|
|
63
|
+
9,
|
|
64
|
+
9,
|
|
65
|
+
0
|
|
66
|
+
]],
|
|
67
|
+
dashArrayY: [7, 2],
|
|
68
|
+
symbolSize: .75
|
|
69
|
+
}
|
|
70
|
+
] } },
|
|
71
|
+
textStyle: {
|
|
72
|
+
fontFamily: n.match(/^Win/) ? "Microsoft YaHei" : "sans-serif",
|
|
73
|
+
fontSize: 12,
|
|
74
|
+
fontStyle: "normal",
|
|
75
|
+
fontWeight: "normal"
|
|
76
|
+
},
|
|
77
|
+
blendMode: null,
|
|
78
|
+
stateAnimation: {
|
|
79
|
+
duration: 300,
|
|
80
|
+
easing: "cubicOut"
|
|
81
|
+
},
|
|
82
|
+
animation: "auto",
|
|
83
|
+
animationDuration: 1e3,
|
|
84
|
+
animationDurationUpdate: 500,
|
|
85
|
+
animationEasing: "cubicInOut",
|
|
86
|
+
animationEasingUpdate: "cubicInOut",
|
|
87
|
+
animationThreshold: 2e3,
|
|
88
|
+
progressiveThreshold: 3e3,
|
|
89
|
+
progressive: 400,
|
|
90
|
+
hoverLayerThreshold: 3e3,
|
|
91
|
+
useUTC: !1
|
|
92
|
+
};
|
|
93
|
+
//#endregion
|
|
94
|
+
export { o as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { assert as e, createHashMap as t } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { isComponentIdInternal as n } from "../util/model.js";
|
|
3
|
+
//#region node_modules/echarts/lib/model/internalComponentCreator.js
|
|
4
|
+
var r = t();
|
|
5
|
+
function i(t, i, a) {
|
|
6
|
+
var o = r.get(i);
|
|
7
|
+
if (!o) return a;
|
|
8
|
+
var s = o(t);
|
|
9
|
+
if (!s) return a;
|
|
10
|
+
if (process.env.NODE_ENV !== "production") for (var c = 0; c < s.length; c++) e(n(s[c]));
|
|
11
|
+
return a.concat(s);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { i as concatInternalOptions };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import e from "./makeStyleMapper.js";
|
|
2
|
+
var t = e([
|
|
3
|
+
["fill", "color"],
|
|
4
|
+
["shadowBlur"],
|
|
5
|
+
["shadowOffsetX"],
|
|
6
|
+
["shadowOffsetY"],
|
|
7
|
+
["opacity"],
|
|
8
|
+
["shadowColor"]
|
|
9
|
+
]), n = function() {
|
|
10
|
+
function e() {}
|
|
11
|
+
return e.prototype.getAreaStyle = function(e, n) {
|
|
12
|
+
return t(this, e, n);
|
|
13
|
+
}, e;
|
|
14
|
+
}();
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as AreaStyleMixin };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { isArray as e, isFunction as t, isObject as n, isString as r } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import { error as i, makePrintable as a } from "../../util/log.js";
|
|
3
|
+
import { retrieveRawValue as o } from "../../data/helper/dataProvider.js";
|
|
4
|
+
import { formatTpl as s } from "../../util/format.js";
|
|
5
|
+
//#region node_modules/echarts/lib/model/mixin/dataFormat.js
|
|
6
|
+
var c = /\{@(.+?)\}/g, l = function() {
|
|
7
|
+
function n() {}
|
|
8
|
+
return n.prototype.getDataParams = function(e, t) {
|
|
9
|
+
var n = this.getData(t), r = this.getRawValue(e, t), i = n.getRawIndex(e), a = n.getName(e), o = n.getRawDataItem(e), s = n.getItemVisual(e, "style"), c = s && s[n.getItemVisual(e, "drawType") || "fill"], l = s && s.stroke, u = this.mainType, d = u === "series", f = n.userOutput && n.userOutput.get();
|
|
10
|
+
return {
|
|
11
|
+
componentType: u,
|
|
12
|
+
componentSubType: this.subType,
|
|
13
|
+
componentIndex: this.componentIndex,
|
|
14
|
+
seriesType: d ? this.subType : null,
|
|
15
|
+
seriesIndex: this.seriesIndex,
|
|
16
|
+
seriesId: d ? this.id : null,
|
|
17
|
+
seriesName: d ? this.name : null,
|
|
18
|
+
name: a,
|
|
19
|
+
dataIndex: i,
|
|
20
|
+
data: o,
|
|
21
|
+
dataType: t,
|
|
22
|
+
value: r,
|
|
23
|
+
color: c,
|
|
24
|
+
borderColor: l,
|
|
25
|
+
dimensionNames: f ? f.fullDimensions : null,
|
|
26
|
+
encode: f ? f.encode : null,
|
|
27
|
+
$vars: [
|
|
28
|
+
"seriesName",
|
|
29
|
+
"name",
|
|
30
|
+
"value"
|
|
31
|
+
]
|
|
32
|
+
};
|
|
33
|
+
}, n.prototype.getFormattedLabel = function(n, a, l, u, d, f) {
|
|
34
|
+
a ||= "normal";
|
|
35
|
+
var p = this.getData(l), m = this.getDataParams(n, l);
|
|
36
|
+
if (f && (m.value = f.interpolatedValue), u != null && e(m.value) && (m.value = m.value[u]), d ||= p.getItemModel(n).get(a === "normal" ? ["label", "formatter"] : [
|
|
37
|
+
a,
|
|
38
|
+
"label",
|
|
39
|
+
"formatter"
|
|
40
|
+
]), t(d)) return m.status = a, m.dimensionIndex = u, d(m);
|
|
41
|
+
if (r(d)) return s(d, m).replace(c, function(t, r) {
|
|
42
|
+
var a = r.length, s = r;
|
|
43
|
+
s.charAt(0) === "[" && s.charAt(a - 1) === "]" && (s = +s.slice(1, a - 1), process.env.NODE_ENV !== "production" && isNaN(s) && i("Invalide label formatter: @" + r + ", only support @[0], @[1], @[2], ..."));
|
|
44
|
+
var c = o(p, n, s);
|
|
45
|
+
if (f && e(f.interpolatedValue)) {
|
|
46
|
+
var l = p.getDimensionIndex(s);
|
|
47
|
+
l >= 0 && (c = f.interpolatedValue[l]);
|
|
48
|
+
}
|
|
49
|
+
return c == null ? "" : c + "";
|
|
50
|
+
});
|
|
51
|
+
}, n.prototype.getRawValue = function(e, t) {
|
|
52
|
+
return o(this.getData(t), e);
|
|
53
|
+
}, n.prototype.formatTooltip = function(e, t, n) {}, n;
|
|
54
|
+
}();
|
|
55
|
+
function u(e) {
|
|
56
|
+
var t, r;
|
|
57
|
+
return n(e) ? e.type ? r = e : process.env.NODE_ENV !== "production" && console.warn("The return type of `formatTooltip` is not supported: " + a(e)) : t = e, {
|
|
58
|
+
text: t,
|
|
59
|
+
frag: r
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
export { l as DataFormatMixin, u as normalizeTooltipFormatResult };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import e from "./makeStyleMapper.js";
|
|
2
|
+
//#region node_modules/echarts/lib/model/mixin/itemStyle.js
|
|
3
|
+
var t = [
|
|
4
|
+
["fill", "color"],
|
|
5
|
+
["stroke", "borderColor"],
|
|
6
|
+
["lineWidth", "borderWidth"],
|
|
7
|
+
["opacity"],
|
|
8
|
+
["shadowBlur"],
|
|
9
|
+
["shadowOffsetX"],
|
|
10
|
+
["shadowOffsetY"],
|
|
11
|
+
["shadowColor"],
|
|
12
|
+
["lineDash", "borderType"],
|
|
13
|
+
["lineDashOffset", "borderDashOffset"],
|
|
14
|
+
["lineCap", "borderCap"],
|
|
15
|
+
["lineJoin", "borderJoin"],
|
|
16
|
+
["miterLimit", "borderMiterLimit"]
|
|
17
|
+
], n = e(t), r = function() {
|
|
18
|
+
function e() {}
|
|
19
|
+
return e.prototype.getItemStyle = function(e, t) {
|
|
20
|
+
return n(this, e, t);
|
|
21
|
+
}, e;
|
|
22
|
+
}();
|
|
23
|
+
//#endregion
|
|
24
|
+
export { t as ITEM_STYLE_KEY_MAP, r as ItemStyleMixin };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import e from "./makeStyleMapper.js";
|
|
2
|
+
//#region node_modules/echarts/lib/model/mixin/lineStyle.js
|
|
3
|
+
var t = [
|
|
4
|
+
["lineWidth", "width"],
|
|
5
|
+
["stroke", "color"],
|
|
6
|
+
["opacity"],
|
|
7
|
+
["shadowBlur"],
|
|
8
|
+
["shadowOffsetX"],
|
|
9
|
+
["shadowOffsetY"],
|
|
10
|
+
["shadowColor"],
|
|
11
|
+
["lineDash", "type"],
|
|
12
|
+
["lineDashOffset", "dashOffset"],
|
|
13
|
+
["lineCap", "cap"],
|
|
14
|
+
["lineJoin", "join"],
|
|
15
|
+
["miterLimit"]
|
|
16
|
+
], n = e(t), r = function() {
|
|
17
|
+
function e() {}
|
|
18
|
+
return e.prototype.getLineStyle = function(e) {
|
|
19
|
+
return n(this, e);
|
|
20
|
+
}, e;
|
|
21
|
+
}();
|
|
22
|
+
//#endregion
|
|
23
|
+
export { t as LINE_STYLE_KEY_MAP, r as LineStyleMixin };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { indexOf as e } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
//#region node_modules/echarts/lib/model/mixin/makeStyleMapper.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
for (var r = 0; r < t.length; r++) t[r][1] || (t[r][1] = t[r][0]);
|
|
5
|
+
return n ||= !1, function(r, i, a) {
|
|
6
|
+
for (var o = {}, s = 0; s < t.length; s++) {
|
|
7
|
+
var c = t[s][1];
|
|
8
|
+
if (!(i && e(i, c) >= 0 || a && e(a, c) < 0)) {
|
|
9
|
+
var l = r.getShallow(c, n);
|
|
10
|
+
l != null && (o[t[s][0]] = l);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return o;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { t as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { makeInner as e, normalizeToArray as t } from "../../util/model.js";
|
|
2
|
+
//#region node_modules/echarts/lib/model/mixin/palette.js
|
|
3
|
+
var n = e();
|
|
4
|
+
e();
|
|
5
|
+
var r = function() {
|
|
6
|
+
function e() {}
|
|
7
|
+
return e.prototype.getColorFromPalette = function(e, r, i) {
|
|
8
|
+
var o = t(this.get("color", !0)), s = this.get("colorLayer", !0);
|
|
9
|
+
return a(this, n, o, s, e, r, i);
|
|
10
|
+
}, e.prototype.clearColorPalette = function() {
|
|
11
|
+
o(this, n);
|
|
12
|
+
}, e;
|
|
13
|
+
}();
|
|
14
|
+
function i(e, t) {
|
|
15
|
+
for (var n = e.length, r = 0; r < n; r++) if (e[r].length > t) return e[r];
|
|
16
|
+
return e[n - 1];
|
|
17
|
+
}
|
|
18
|
+
function a(e, t, n, r, a, o, s) {
|
|
19
|
+
o ||= e;
|
|
20
|
+
var c = t(o), l = c.paletteIdx || 0, u = c.paletteNameMap = c.paletteNameMap || {};
|
|
21
|
+
if (u.hasOwnProperty(a)) return u[a];
|
|
22
|
+
var d = s == null || !r ? n : i(r, s);
|
|
23
|
+
if (d ||= n, !(!d || !d.length)) {
|
|
24
|
+
var f = d[l];
|
|
25
|
+
return a && (u[a] = f), c.paletteIdx = (l + 1) % d.length, f;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function o(e, t) {
|
|
29
|
+
t(e).paletteIdx = 0, t(e).paletteNameMap = {};
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { r as PaletteMixin };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import e from "../../../../zrender/lib/graphic/Text.js";
|
|
2
|
+
import { getFont as t } from "../../label/labelStyle.js";
|
|
3
|
+
//#region node_modules/echarts/lib/model/mixin/textStyle.js
|
|
4
|
+
var n = ["textStyle", "color"], r = [
|
|
5
|
+
"fontStyle",
|
|
6
|
+
"fontWeight",
|
|
7
|
+
"fontSize",
|
|
8
|
+
"fontFamily",
|
|
9
|
+
"padding",
|
|
10
|
+
"lineHeight",
|
|
11
|
+
"rich",
|
|
12
|
+
"width",
|
|
13
|
+
"height",
|
|
14
|
+
"overflow"
|
|
15
|
+
], i = new e(), a = function() {
|
|
16
|
+
function e() {}
|
|
17
|
+
return e.prototype.getTextColor = function(e) {
|
|
18
|
+
var t = this.ecModel;
|
|
19
|
+
return this.getShallow("color") || (!e && t ? t.get(n) : null);
|
|
20
|
+
}, e.prototype.getFont = function() {
|
|
21
|
+
return t({
|
|
22
|
+
fontStyle: this.getShallow("fontStyle"),
|
|
23
|
+
fontWeight: this.getShallow("fontWeight"),
|
|
24
|
+
fontSize: this.getShallow("fontSize"),
|
|
25
|
+
fontFamily: this.getShallow("fontFamily")
|
|
26
|
+
}, this.ecModel);
|
|
27
|
+
}, e.prototype.getTextRect = function(e) {
|
|
28
|
+
for (var t = {
|
|
29
|
+
text: e,
|
|
30
|
+
verticalAlign: this.getShallow("verticalAlign") || this.getShallow("baseline")
|
|
31
|
+
}, n = 0; n < r.length; n++) t[r[n]] = this.getShallow(r[n]);
|
|
32
|
+
return i.useStyle(t), i.update(), i.getBoundingRect();
|
|
33
|
+
}, e;
|
|
34
|
+
}();
|
|
35
|
+
//#endregion
|
|
36
|
+
export { a as default };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defaults as e, each as t, isArray as n, isObject as r, isTypedArray as i } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { deprecateLog as a, deprecateReplaceLog as o } from "../util/log.js";
|
|
3
|
+
import { normalizeToArray as s } from "../util/model.js";
|
|
4
|
+
import c from "./helper/compatStyle.js";
|
|
5
|
+
//#region node_modules/echarts/lib/preprocessor/backwardCompat.js
|
|
6
|
+
function l(e, t) {
|
|
7
|
+
for (var n = t.split(","), r = e, i = 0; i < n.length && (r &&= r[n[i]], r != null); i++);
|
|
8
|
+
return r;
|
|
9
|
+
}
|
|
10
|
+
function u(e, t, n, r) {
|
|
11
|
+
for (var i = t.split(","), a = e, o, s = 0; s < i.length - 1; s++) o = i[s], a[o] ?? (a[o] = {}), a = a[o];
|
|
12
|
+
(r || a[i[s]] == null) && (a[i[s]] = n);
|
|
13
|
+
}
|
|
14
|
+
function d(e) {
|
|
15
|
+
e && t(f, function(t) {
|
|
16
|
+
t[0] in e && !(t[1] in e) && (e[t[1]] = e[t[0]]);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
var f = [
|
|
20
|
+
["x", "left"],
|
|
21
|
+
["y", "top"],
|
|
22
|
+
["x2", "right"],
|
|
23
|
+
["y2", "bottom"]
|
|
24
|
+
], p = [
|
|
25
|
+
"grid",
|
|
26
|
+
"geo",
|
|
27
|
+
"parallel",
|
|
28
|
+
"legend",
|
|
29
|
+
"toolbox",
|
|
30
|
+
"title",
|
|
31
|
+
"visualMap",
|
|
32
|
+
"dataZoom",
|
|
33
|
+
"timeline"
|
|
34
|
+
], m = [
|
|
35
|
+
["borderRadius", "barBorderRadius"],
|
|
36
|
+
["borderColor", "barBorderColor"],
|
|
37
|
+
["borderWidth", "barBorderWidth"]
|
|
38
|
+
];
|
|
39
|
+
function h(e) {
|
|
40
|
+
var t = e && e.itemStyle;
|
|
41
|
+
if (t) for (var n = 0; n < m.length; n++) {
|
|
42
|
+
var r = m[n][1], i = m[n][0];
|
|
43
|
+
t[r] != null && (t[i] = t[r], process.env.NODE_ENV !== "production" && o(r, i));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function g(e) {
|
|
47
|
+
e && e.alignTo === "edge" && e.margin != null && e.edgeDistance == null && (process.env.NODE_ENV !== "production" && o("label.margin", "label.edgeDistance", "pie"), e.edgeDistance = e.margin);
|
|
48
|
+
}
|
|
49
|
+
function _(e) {
|
|
50
|
+
e && e.downplay && !e.blur && (e.blur = e.downplay, process.env.NODE_ENV !== "production" && o("downplay", "blur", "sunburst"));
|
|
51
|
+
}
|
|
52
|
+
function v(e) {
|
|
53
|
+
e && e.focusNodeAdjacency != null && (e.emphasis = e.emphasis || {}, e.emphasis.focus ?? (process.env.NODE_ENV !== "production" && o("focusNodeAdjacency", "emphasis: { focus: 'adjacency'}", "graph/sankey"), e.emphasis.focus = "adjacency"));
|
|
54
|
+
}
|
|
55
|
+
function y(e, t) {
|
|
56
|
+
if (e) for (var n = 0; n < e.length; n++) t(e[n]), e[n] && y(e[n].children, t);
|
|
57
|
+
}
|
|
58
|
+
function b(f, m) {
|
|
59
|
+
c(f, m), f.series = s(f.series), t(f.series, function(t) {
|
|
60
|
+
if (r(t)) {
|
|
61
|
+
var n = t.type;
|
|
62
|
+
if (n === "line") t.clipOverflow != null && (t.clip = t.clipOverflow, process.env.NODE_ENV !== "production" && o("clipOverflow", "clip", "line"));
|
|
63
|
+
else if (n === "pie" || n === "gauge") {
|
|
64
|
+
t.clockWise != null && (t.clockwise = t.clockWise, process.env.NODE_ENV !== "production" && o("clockWise", "clockwise")), g(t.label);
|
|
65
|
+
var s = t.data;
|
|
66
|
+
if (s && !i(s)) for (var c = 0; c < s.length; c++) g(s[c]);
|
|
67
|
+
t.hoverOffset != null && (t.emphasis = t.emphasis || {}, (t.emphasis.scaleSize = null) && (process.env.NODE_ENV !== "production" && o("hoverOffset", "emphasis.scaleSize"), t.emphasis.scaleSize = t.hoverOffset));
|
|
68
|
+
} else if (n === "gauge") {
|
|
69
|
+
var f = l(t, "pointer.color");
|
|
70
|
+
f != null && u(t, "itemStyle.color", f);
|
|
71
|
+
} else if (n === "bar") {
|
|
72
|
+
h(t), h(t.backgroundStyle), h(t.emphasis);
|
|
73
|
+
var s = t.data;
|
|
74
|
+
if (s && !i(s)) for (var c = 0; c < s.length; c++) typeof s[c] == "object" && (h(s[c]), h(s[c] && s[c].emphasis));
|
|
75
|
+
} else if (n === "sunburst") {
|
|
76
|
+
var p = t.highlightPolicy;
|
|
77
|
+
p && (t.emphasis = t.emphasis || {}, t.emphasis.focus || (t.emphasis.focus = p, process.env.NODE_ENV !== "production" && o("highlightPolicy", "emphasis.focus", "sunburst"))), _(t), y(t.data, _);
|
|
78
|
+
} else n === "graph" || n === "sankey" ? v(t) : n === "map" && (t.mapType && !t.map && (process.env.NODE_ENV !== "production" && o("mapType", "map", "map"), t.map = t.mapType), t.mapLocation && (process.env.NODE_ENV !== "production" && a("`mapLocation` is not used anymore."), e(t, t.mapLocation)));
|
|
79
|
+
t.hoverAnimation != null && (t.emphasis = t.emphasis || {}, t.emphasis && t.emphasis.scale == null && (process.env.NODE_ENV !== "production" && o("hoverAnimation", "emphasis.scale"), t.emphasis.scale = t.hoverAnimation)), d(t);
|
|
80
|
+
}
|
|
81
|
+
}), f.dataRange && (f.visualMap = f.dataRange), t(p, function(e) {
|
|
82
|
+
var r = f[e];
|
|
83
|
+
r && (n(r) || (r = [r]), t(r, function(e) {
|
|
84
|
+
d(e);
|
|
85
|
+
}));
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
export { b as default };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { defaults as e, each as t, isArray as n, isObject as r, isTypedArray as i, merge as a } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import { deprecateLog as o, deprecateReplaceLog as s } from "../../util/log.js";
|
|
3
|
+
import { TEXT_STYLE_OPTIONS as c } from "../../util/model.js";
|
|
4
|
+
//#region node_modules/echarts/lib/preprocessor/helper/compatStyle.js
|
|
5
|
+
var l = t, u = r, d = [
|
|
6
|
+
"areaStyle",
|
|
7
|
+
"lineStyle",
|
|
8
|
+
"nodeStyle",
|
|
9
|
+
"linkStyle",
|
|
10
|
+
"chordStyle",
|
|
11
|
+
"label",
|
|
12
|
+
"labelLine"
|
|
13
|
+
];
|
|
14
|
+
function f(e) {
|
|
15
|
+
var t = e && e.itemStyle;
|
|
16
|
+
if (t) for (var n = 0, r = d.length; n < r; n++) {
|
|
17
|
+
var i = d[n], o = t.normal, c = t.emphasis;
|
|
18
|
+
o && o[i] && (process.env.NODE_ENV !== "production" && s("itemStyle.normal." + i, i), e[i] = e[i] || {}, e[i].normal ? a(e[i].normal, o[i]) : e[i].normal = o[i], o[i] = null), c && c[i] && (process.env.NODE_ENV !== "production" && s("itemStyle.emphasis." + i, "emphasis." + i), e[i] = e[i] || {}, e[i].emphasis ? a(e[i].emphasis, c[i]) : e[i].emphasis = c[i], c[i] = null);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function p(t, n, r) {
|
|
22
|
+
if (t && t[n] && (t[n].normal || t[n].emphasis)) {
|
|
23
|
+
var i = t[n].normal, a = t[n].emphasis;
|
|
24
|
+
i && (process.env.NODE_ENV !== "production" && o("'normal' hierarchy in " + n + " has been removed since 4.0. All style properties are configured in " + n + " directly now."), r ? (t[n].normal = t[n].emphasis = null, e(t[n], i)) : t[n] = i), a && (process.env.NODE_ENV !== "production" && o(n + ".emphasis has been changed to emphasis." + n + " since 4.0"), t.emphasis = t.emphasis || {}, t.emphasis[n] = a, a.focus && (t.emphasis.focus = a.focus), a.blurScope && (t.emphasis.blurScope = a.blurScope));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function m(e) {
|
|
28
|
+
p(e, "itemStyle"), p(e, "lineStyle"), p(e, "areaStyle"), p(e, "label"), p(e, "labelLine"), p(e, "upperLabel"), p(e, "edgeLabel");
|
|
29
|
+
}
|
|
30
|
+
function h(e, t) {
|
|
31
|
+
var n = u(e) && e[t], r = u(n) && n.textStyle;
|
|
32
|
+
if (r) {
|
|
33
|
+
process.env.NODE_ENV !== "production" && o("textStyle hierarchy in " + t + " has been removed since 4.0. All textStyle properties are configured in " + t + " directly now.");
|
|
34
|
+
for (var i = 0, a = c.length; i < a; i++) {
|
|
35
|
+
var s = c[i];
|
|
36
|
+
r.hasOwnProperty(s) && (n[s] = r[s]);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function g(e) {
|
|
41
|
+
e && (m(e), h(e, "label"), e.emphasis && h(e.emphasis, "label"));
|
|
42
|
+
}
|
|
43
|
+
function _(e) {
|
|
44
|
+
if (u(e)) {
|
|
45
|
+
f(e), m(e), h(e, "label"), h(e, "upperLabel"), h(e, "edgeLabel"), e.emphasis && (h(e.emphasis, "label"), h(e.emphasis, "upperLabel"), h(e.emphasis, "edgeLabel"));
|
|
46
|
+
var r = e.markPoint;
|
|
47
|
+
r && (f(r), g(r));
|
|
48
|
+
var a = e.markLine;
|
|
49
|
+
a && (f(a), g(a));
|
|
50
|
+
var o = e.markArea;
|
|
51
|
+
o && g(o);
|
|
52
|
+
var s = e.data;
|
|
53
|
+
if (e.type === "graph") {
|
|
54
|
+
s ||= e.nodes;
|
|
55
|
+
var c = e.links || e.edges;
|
|
56
|
+
if (c && !i(c)) for (var l = 0; l < c.length; l++) g(c[l]);
|
|
57
|
+
t(e.categories, function(e) {
|
|
58
|
+
m(e);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
if (s && !i(s)) for (var l = 0; l < s.length; l++) g(s[l]);
|
|
62
|
+
if (r = e.markPoint, r && r.data) for (var d = r.data, l = 0; l < d.length; l++) g(d[l]);
|
|
63
|
+
if (a = e.markLine, a && a.data) for (var _ = a.data, l = 0; l < _.length; l++) n(_[l]) ? (g(_[l][0]), g(_[l][1])) : g(_[l]);
|
|
64
|
+
e.type === "gauge" ? (h(e, "axisLabel"), h(e, "title"), h(e, "detail")) : e.type === "treemap" ? (p(e.breadcrumb, "itemStyle"), t(e.levels, function(e) {
|
|
65
|
+
m(e);
|
|
66
|
+
})) : e.type === "tree" && m(e.leaves);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function v(e) {
|
|
70
|
+
return n(e) ? e : e ? [e] : [];
|
|
71
|
+
}
|
|
72
|
+
function y(e) {
|
|
73
|
+
return (n(e) ? e[0] : e) || {};
|
|
74
|
+
}
|
|
75
|
+
function b(e, i) {
|
|
76
|
+
l(v(e.series), function(e) {
|
|
77
|
+
u(e) && _(e);
|
|
78
|
+
});
|
|
79
|
+
var a = [
|
|
80
|
+
"xAxis",
|
|
81
|
+
"yAxis",
|
|
82
|
+
"radiusAxis",
|
|
83
|
+
"angleAxis",
|
|
84
|
+
"singleAxis",
|
|
85
|
+
"parallelAxis",
|
|
86
|
+
"radar"
|
|
87
|
+
];
|
|
88
|
+
i && a.push("valueAxis", "categoryAxis", "logAxis", "timeAxis"), l(a, function(t) {
|
|
89
|
+
l(v(e[t]), function(e) {
|
|
90
|
+
e && (h(e, "axisLabel"), h(e.axisPointer, "label"));
|
|
91
|
+
});
|
|
92
|
+
}), l(v(e.parallel), function(e) {
|
|
93
|
+
var t = e && e.parallelAxisDefault;
|
|
94
|
+
h(t, "axisLabel"), h(t && t.axisPointer, "label");
|
|
95
|
+
}), l(v(e.calendar), function(e) {
|
|
96
|
+
p(e, "itemStyle"), h(e, "dayLabel"), h(e, "monthLabel"), h(e, "yearLabel");
|
|
97
|
+
}), l(v(e.radar), function(e) {
|
|
98
|
+
h(e, "name"), e.name && e.axisName == null && (e.axisName = e.name, delete e.name, process.env.NODE_ENV !== "production" && o("name property in radar component has been changed to axisName")), e.nameGap != null && e.axisNameGap == null && (e.axisNameGap = e.nameGap, delete e.nameGap, process.env.NODE_ENV !== "production" && o("nameGap property in radar component has been changed to axisNameGap")), process.env.NODE_ENV !== "production" && l(e.indicator, function(e) {
|
|
99
|
+
e.text && s("text", "name", "radar.indicator");
|
|
100
|
+
});
|
|
101
|
+
}), l(v(e.geo), function(e) {
|
|
102
|
+
u(e) && (g(e), l(v(e.regions), function(e) {
|
|
103
|
+
g(e);
|
|
104
|
+
}));
|
|
105
|
+
}), l(v(e.timeline), function(e) {
|
|
106
|
+
g(e), p(e, "label"), p(e, "itemStyle"), p(e, "controlStyle", !0);
|
|
107
|
+
var i = e.data;
|
|
108
|
+
n(i) && t(i, function(e) {
|
|
109
|
+
r(e) && (p(e, "label"), p(e, "itemStyle"));
|
|
110
|
+
});
|
|
111
|
+
}), l(v(e.toolbox), function(e) {
|
|
112
|
+
p(e, "iconStyle"), l(e.feature, function(e) {
|
|
113
|
+
p(e, "iconStyle");
|
|
114
|
+
});
|
|
115
|
+
}), h(y(e.axisPointer), "label"), h(y(e.tooltip).axisPointer, "label");
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
export { b as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region node_modules/echarts/lib/processor/dataFilter.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
return {
|
|
4
|
+
seriesType: e,
|
|
5
|
+
reset: function(e, t) {
|
|
6
|
+
var n = t.findComponents({ mainType: "legend" });
|
|
7
|
+
if (!(!n || !n.length)) {
|
|
8
|
+
var r = e.getData();
|
|
9
|
+
r.filterSelf(function(e) {
|
|
10
|
+
for (var t = r.getName(e), i = 0; i < n.length; i++) if (!n[i].isSelected(t)) return !1;
|
|
11
|
+
return !0;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { e as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { createHashMap as e, each as t } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { addSafe as n } from "../util/number.js";
|
|
3
|
+
import { createSimpleOverallStageHandler2 as r } from "../util/model.js";
|
|
4
|
+
//#region node_modules/echarts/lib/processor/dataStack.js
|
|
5
|
+
var i = r(a);
|
|
6
|
+
function a(n) {
|
|
7
|
+
var r = e();
|
|
8
|
+
n.eachSeries(function(e) {
|
|
9
|
+
var t = e.get("stack");
|
|
10
|
+
if (t) {
|
|
11
|
+
var n = r.get(t) || r.set(t, []), i = e.getData(), a = {
|
|
12
|
+
stackResultDimension: i.getCalculationInfo("stackResultDimension"),
|
|
13
|
+
stackedOverDimension: i.getCalculationInfo("stackedOverDimension"),
|
|
14
|
+
stackedDimension: i.getCalculationInfo("stackedDimension"),
|
|
15
|
+
stackedByDimension: i.getCalculationInfo("stackedByDimension"),
|
|
16
|
+
isStackedByIndex: i.getCalculationInfo("isStackedByIndex"),
|
|
17
|
+
data: i,
|
|
18
|
+
seriesModel: e
|
|
19
|
+
};
|
|
20
|
+
if (!a.stackedDimension || !(a.isStackedByIndex || a.stackedByDimension)) return;
|
|
21
|
+
n.push(a);
|
|
22
|
+
}
|
|
23
|
+
}), r.each(function(e) {
|
|
24
|
+
e.length !== 0 && ((e[0].seriesModel.get("stackOrder") || "seriesAsc") === "seriesDesc" && e.reverse(), t(e, function(t, n) {
|
|
25
|
+
t.data.setCalculationInfo("stackedOnSeries", n > 0 ? e[n - 1].seriesModel : null);
|
|
26
|
+
}), o(e));
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function o(e) {
|
|
30
|
+
t(e, function(t, r) {
|
|
31
|
+
var i = [], a = [NaN, NaN], o = [t.stackResultDimension, t.stackedOverDimension], s = t.data, c = t.isStackedByIndex, l = t.seriesModel.get("stackStrategy") || "samesign";
|
|
32
|
+
s.modify(o, function(o, u, d) {
|
|
33
|
+
var f = s.get(t.stackedDimension, d);
|
|
34
|
+
if (isNaN(f)) return a;
|
|
35
|
+
var p, m;
|
|
36
|
+
c ? m = s.getRawIndex(d) : p = s.get(t.stackedByDimension, d);
|
|
37
|
+
for (var h = NaN, g = r - 1; g >= 0; g--) {
|
|
38
|
+
var _ = e[g];
|
|
39
|
+
if (c || (m = _.data.rawIndexOf(_.stackedByDimension, p)), m >= 0) {
|
|
40
|
+
var v = _.data.getByRawIndex(_.stackResultDimension, m);
|
|
41
|
+
if (l === "all" || l === "positive" && v > 0 || l === "negative" && v < 0 || l === "samesign" && f >= 0 && v > 0 || l === "samesign" && f <= 0 && v < 0) {
|
|
42
|
+
f = n(f, v), h = v;
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return i[0] = f, i[1] = h, i;
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { i as dataStackStageHandler };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { isNumber as e } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
//#region node_modules/echarts/lib/processor/negativeDataFilter.js
|
|
3
|
+
function t(t) {
|
|
4
|
+
return {
|
|
5
|
+
seriesType: t,
|
|
6
|
+
reset: function(t, n) {
|
|
7
|
+
var r = t.getData();
|
|
8
|
+
r.filterSelf(function(t) {
|
|
9
|
+
var n = r.mapDimension("value"), i = r.get(n, t);
|
|
10
|
+
return !(e(i) && !isNaN(i) && i < 0);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { t as default };
|