reke-ui 0.3.0 → 0.4.1
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/README.md +6 -0
- package/custom-elements.json +1888 -445
- 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 +21 -1
- package/dist/components/reke-combobox/reke-combobox.d.ts.map +1 -1
- package/dist/components/reke-combobox/reke-combobox.js +76 -16
- package/dist/components/reke-combobox/reke-combobox.styles.d.ts.map +1 -1
- package/dist/components/reke-combobox/reke-combobox.styles.js +128 -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 +202 -3
- package/dist/components/reke-table/reke-table.d.ts.map +1 -1
- package/dist/components/reke-table/reke-table.js +244 -64
- package/dist/components/reke-table/reke-table.styles.d.ts.map +1 -1
- package/dist/components/reke-table/reke-table.styles.js +29 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -7
- 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 +8 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +58 -46
- 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 +15 -1
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { each as e, extend as t, indexOf as n, isArray as r, isArrayLike as i, isObject as a, keys as o } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { error as s } from "./log.js";
|
|
3
|
+
import { makeInner as c, queryDataIndex as l } from "./model.js";
|
|
4
|
+
import { liftColor as u } from "../../../zrender/lib/tool/color.js";
|
|
5
|
+
import d from "../../../zrender/lib/graphic/Path.js";
|
|
6
|
+
import { getECData as f } from "./innerStore.js";
|
|
7
|
+
import { getViewOfComponentOrSeries as p } from "../core/ExtensionAPI.js";
|
|
8
|
+
//#region node_modules/echarts/lib/util/states.js
|
|
9
|
+
var m = 1, h = {}, g = c(), _ = c(), ee = [
|
|
10
|
+
"emphasis",
|
|
11
|
+
"blur",
|
|
12
|
+
"select"
|
|
13
|
+
], v = [
|
|
14
|
+
"normal",
|
|
15
|
+
"emphasis",
|
|
16
|
+
"blur",
|
|
17
|
+
"select"
|
|
18
|
+
], y = "highlight", te = "downplay", b = "select", x = "unselect", S = "toggleSelect", ne = "selectchanged";
|
|
19
|
+
function C(e) {
|
|
20
|
+
return e != null && e !== "none";
|
|
21
|
+
}
|
|
22
|
+
function w(e, t, n) {
|
|
23
|
+
e.onHoverStateChange && (e.hoverState || 0) !== n && e.onHoverStateChange(t), e.hoverState = n;
|
|
24
|
+
}
|
|
25
|
+
function T(e) {
|
|
26
|
+
w(e, "emphasis", 2);
|
|
27
|
+
}
|
|
28
|
+
function E(e) {
|
|
29
|
+
e.hoverState === 2 && w(e, "normal", 0);
|
|
30
|
+
}
|
|
31
|
+
function D(e) {
|
|
32
|
+
w(e, "blur", 1);
|
|
33
|
+
}
|
|
34
|
+
function O(e) {
|
|
35
|
+
e.hoverState === 1 && w(e, "normal", 0);
|
|
36
|
+
}
|
|
37
|
+
function re(e) {
|
|
38
|
+
e.selected = !0;
|
|
39
|
+
}
|
|
40
|
+
function k(e) {
|
|
41
|
+
e.selected = !1;
|
|
42
|
+
}
|
|
43
|
+
function A(e, t, n) {
|
|
44
|
+
t(e, n);
|
|
45
|
+
}
|
|
46
|
+
function j(e, t, n) {
|
|
47
|
+
A(e, t, n), e.isGroup && e.traverse(function(e) {
|
|
48
|
+
A(e, t, n);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function M(e, t, n, r) {
|
|
52
|
+
for (var i = e.style, a = {}, o = 0; o < t.length; o++) {
|
|
53
|
+
var s = t[o];
|
|
54
|
+
a[s] = i[s] ?? (r && r[s]);
|
|
55
|
+
}
|
|
56
|
+
for (var o = 0; o < e.animators.length; o++) {
|
|
57
|
+
var c = e.animators[o];
|
|
58
|
+
c.__fromStateTransition && c.__fromStateTransition.indexOf(n) < 0 && c.targetName === "style" && c.saveTo(a, t);
|
|
59
|
+
}
|
|
60
|
+
return a;
|
|
61
|
+
}
|
|
62
|
+
function N(e, r, i, a) {
|
|
63
|
+
var o = i && n(i, "select") >= 0, s = !1;
|
|
64
|
+
if (e instanceof d) {
|
|
65
|
+
var c = g(e), l = o && c.selectFill || c.normalFill, f = o && c.selectStroke || c.normalStroke;
|
|
66
|
+
if (C(l) || C(f)) {
|
|
67
|
+
a ||= {};
|
|
68
|
+
var p = a.style || {};
|
|
69
|
+
p.fill === "inherit" ? (s = !0, a = t({}, a), p = t({}, p), p.fill = l) : !C(p.fill) && C(l) ? (s = !0, a = t({}, a), p = t({}, p), p.fill = u(l)) : !C(p.stroke) && C(f) && (s || (a = t({}, a), p = t({}, p)), p.stroke = u(f)), a.style = p;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (a && a.z2 == null) {
|
|
73
|
+
s || (a = t({}, a));
|
|
74
|
+
var m = e.z2EmphasisLift;
|
|
75
|
+
a.z2 = e.z2 + (m ?? 10);
|
|
76
|
+
}
|
|
77
|
+
return a;
|
|
78
|
+
}
|
|
79
|
+
function ie(e, n, r) {
|
|
80
|
+
if (r && r.z2 == null) {
|
|
81
|
+
r = t({}, r);
|
|
82
|
+
var i = e.z2SelectLift;
|
|
83
|
+
r.z2 = e.z2 + (i ?? 9);
|
|
84
|
+
}
|
|
85
|
+
return r;
|
|
86
|
+
}
|
|
87
|
+
function ae(e, r, i) {
|
|
88
|
+
var a = n(e.currentStates, r) >= 0, o = e.style.opacity, s = a ? null : M(e, ["opacity"], r, { opacity: 1 });
|
|
89
|
+
i ||= {};
|
|
90
|
+
var c = i.style || {};
|
|
91
|
+
return c.opacity ?? (i = t({}, i), c = t({ opacity: a ? o : s.opacity * .1 }, c), i.style = c), i;
|
|
92
|
+
}
|
|
93
|
+
function P(e, t) {
|
|
94
|
+
var n = this.states[e];
|
|
95
|
+
if (this.style) {
|
|
96
|
+
if (e === "emphasis") return N(this, e, t, n);
|
|
97
|
+
if (e === "blur") return ae(this, e, n);
|
|
98
|
+
if (e === "select") return ie(this, e, n);
|
|
99
|
+
}
|
|
100
|
+
return n;
|
|
101
|
+
}
|
|
102
|
+
function oe(e) {
|
|
103
|
+
e.stateProxy = P;
|
|
104
|
+
var t = e.getTextContent(), n = e.getTextGuideLine();
|
|
105
|
+
t && (t.stateProxy = P), n && (n.stateProxy = P);
|
|
106
|
+
}
|
|
107
|
+
function F(e, t) {
|
|
108
|
+
!U(e, t) && !e.__highByOuter && j(e, T);
|
|
109
|
+
}
|
|
110
|
+
function I(e, t) {
|
|
111
|
+
!U(e, t) && !e.__highByOuter && j(e, E);
|
|
112
|
+
}
|
|
113
|
+
function L(e, t) {
|
|
114
|
+
e.__highByOuter |= 1 << (t || 0), j(e, T);
|
|
115
|
+
}
|
|
116
|
+
function R(e, t) {
|
|
117
|
+
!(e.__highByOuter &= ~(1 << (t || 0))) && j(e, E);
|
|
118
|
+
}
|
|
119
|
+
function z(e) {
|
|
120
|
+
j(e, D);
|
|
121
|
+
}
|
|
122
|
+
function B(e) {
|
|
123
|
+
j(e, O);
|
|
124
|
+
}
|
|
125
|
+
function V(e) {
|
|
126
|
+
j(e, re);
|
|
127
|
+
}
|
|
128
|
+
function H(e) {
|
|
129
|
+
j(e, k);
|
|
130
|
+
}
|
|
131
|
+
function U(e, t) {
|
|
132
|
+
return e.__highDownSilentOnTouch && t.zrByTouch;
|
|
133
|
+
}
|
|
134
|
+
function W(t) {
|
|
135
|
+
var n = t.getModel(), r = [], i = [];
|
|
136
|
+
n.eachComponent(function(e, n) {
|
|
137
|
+
var a = _(n), o = p(t, n), s = e === "series";
|
|
138
|
+
!s && i.push(o), a.isBlured && (o.group.traverse(function(e) {
|
|
139
|
+
O(e);
|
|
140
|
+
}), s && r.push(n)), a.isBlured = !1;
|
|
141
|
+
}), e(i, function(e) {
|
|
142
|
+
e && e.toggleBlurSeries && e.toggleBlurSeries(r, !1, n);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function G(e, t, n, r) {
|
|
146
|
+
var s = r.getModel();
|
|
147
|
+
n ||= "coordinateSystem";
|
|
148
|
+
function c(e, t) {
|
|
149
|
+
for (var n = 0; n < t.length; n++) {
|
|
150
|
+
var r = e.getItemGraphicEl(t[n]);
|
|
151
|
+
r && B(r);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
if (e != null && !(!t || t === "none")) {
|
|
155
|
+
var l = s.getSeriesByIndex(e), u = l.coordinateSystem;
|
|
156
|
+
u && u.master && (u = u.master);
|
|
157
|
+
var d = [];
|
|
158
|
+
s.eachSeries(function(e) {
|
|
159
|
+
var s = l === e, f = e.coordinateSystem;
|
|
160
|
+
if (f && f.master && (f = f.master), !(n === "series" && !s || n === "coordinateSystem" && !(f && u ? f === u : s) || t === "series" && s)) {
|
|
161
|
+
if (r.getViewOfSeriesModel(e).group.traverse(function(e) {
|
|
162
|
+
e.__highByOuter && s && t === "self" || D(e);
|
|
163
|
+
}), i(t)) c(e.getData(), t);
|
|
164
|
+
else if (a(t)) for (var p = o(t), m = 0; m < p.length; m++) c(e.getData(p[m]), t[p[m]]);
|
|
165
|
+
d.push(e), _(e).isBlured = !0;
|
|
166
|
+
}
|
|
167
|
+
}), s.eachComponent(function(e, t) {
|
|
168
|
+
if (e !== "series") {
|
|
169
|
+
var n = r.getViewOfComponentModel(t);
|
|
170
|
+
n && n.toggleBlurSeries && n.toggleBlurSeries(d, !0, s);
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
function K(e, t, n) {
|
|
176
|
+
if (!(e == null || t == null)) {
|
|
177
|
+
var r = n.getModel().getComponent(e, t);
|
|
178
|
+
if (r) {
|
|
179
|
+
_(r).isBlured = !0;
|
|
180
|
+
var i = n.getViewOfComponentModel(r);
|
|
181
|
+
!i || !i.focusBlurEnabled || i.group.traverse(function(e) {
|
|
182
|
+
D(e);
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
function se(e, t, n) {
|
|
188
|
+
var i = e.seriesIndex, a = e.getData(t.dataType);
|
|
189
|
+
if (!a) {
|
|
190
|
+
process.env.NODE_ENV !== "production" && s("Unknown dataType " + t.dataType);
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
var o = l(a, t);
|
|
194
|
+
o = (r(o) ? o[0] : o) || 0;
|
|
195
|
+
var c = a.getItemGraphicEl(o);
|
|
196
|
+
if (!c) for (var u = a.count(), d = 0; !c && d < u;) c = a.getItemGraphicEl(d++);
|
|
197
|
+
if (c) {
|
|
198
|
+
var p = f(c);
|
|
199
|
+
G(i, p.focus, p.blurScope, n);
|
|
200
|
+
} else {
|
|
201
|
+
var m = e.get(["emphasis", "focus"]), h = e.get(["emphasis", "blurScope"]);
|
|
202
|
+
m != null && G(i, m, h, n);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
function q(e, t, n, r) {
|
|
206
|
+
var i = {
|
|
207
|
+
focusSelf: !1,
|
|
208
|
+
dispatchers: null
|
|
209
|
+
};
|
|
210
|
+
if (e == null || e === "series" || t == null || n == null) return i;
|
|
211
|
+
var a = r.getModel().getComponent(e, t);
|
|
212
|
+
if (!a) return i;
|
|
213
|
+
var o = r.getViewOfComponentModel(a);
|
|
214
|
+
if (!o || !o.findHighDownDispatchers) return i;
|
|
215
|
+
for (var c = o.findHighDownDispatchers(n), l, u = 0; u < c.length; u++) if (process.env.NODE_ENV !== "production" && !Q(c[u]) && s("param should be highDownDispatcher"), f(c[u]).focus === "self") {
|
|
216
|
+
l = !0;
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
return {
|
|
220
|
+
focusSelf: l,
|
|
221
|
+
dispatchers: c
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
function ce(t, n, r) {
|
|
225
|
+
process.env.NODE_ENV !== "production" && !Q(t) && s("param should be highDownDispatcher");
|
|
226
|
+
var i = f(t), a = q(i.componentMainType, i.componentIndex, i.componentHighDownName, r), o = a.dispatchers, c = a.focusSelf;
|
|
227
|
+
o ? (c && K(i.componentMainType, i.componentIndex, r), e(o, function(e) {
|
|
228
|
+
return F(e, n);
|
|
229
|
+
})) : (G(i.seriesIndex, i.focus, i.blurScope, r), i.focus === "self" && K(i.componentMainType, i.componentIndex, r), F(t, n));
|
|
230
|
+
}
|
|
231
|
+
function le(t, n, r) {
|
|
232
|
+
process.env.NODE_ENV !== "production" && !Q(t) && s("param should be highDownDispatcher"), W(r);
|
|
233
|
+
var i = f(t), a = q(i.componentMainType, i.componentIndex, i.componentHighDownName, r).dispatchers;
|
|
234
|
+
a ? e(a, function(e) {
|
|
235
|
+
return I(e, n);
|
|
236
|
+
}) : I(t, n);
|
|
237
|
+
}
|
|
238
|
+
function ue(e, t, n) {
|
|
239
|
+
if ($(t)) {
|
|
240
|
+
var i = t.dataType, a = l(e.getData(i), t);
|
|
241
|
+
r(a) || (a = [a]), e[t.type === "toggleSelect" ? "toggleSelect" : t.type === "select" ? "select" : "unselect"](a, i);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
function de(t) {
|
|
245
|
+
e(t.getAllData(), function(e) {
|
|
246
|
+
var n = e.data, r = e.type;
|
|
247
|
+
n.eachItemGraphicEl(function(e, n) {
|
|
248
|
+
t.isSelected(n, r) ? V(e) : H(e);
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
function fe(t) {
|
|
253
|
+
var n = [];
|
|
254
|
+
return t.eachSeries(function(t) {
|
|
255
|
+
e(t.getAllData(), function(e) {
|
|
256
|
+
e.data;
|
|
257
|
+
var r = e.type, i = t.getSelectedDataIndices();
|
|
258
|
+
if (i.length > 0) {
|
|
259
|
+
var a = {
|
|
260
|
+
dataIndex: i,
|
|
261
|
+
seriesIndex: t.seriesIndex
|
|
262
|
+
};
|
|
263
|
+
r != null && (a.dataType = r), n.push(a);
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
}), n;
|
|
267
|
+
}
|
|
268
|
+
function J(e, t, n) {
|
|
269
|
+
Z(e, !0), j(e, oe), me(e, t, n);
|
|
270
|
+
}
|
|
271
|
+
function Y(e) {
|
|
272
|
+
Z(e, !1);
|
|
273
|
+
}
|
|
274
|
+
function pe(e, t, n, r) {
|
|
275
|
+
r ? Y(e) : J(e, t, n);
|
|
276
|
+
}
|
|
277
|
+
function me(e, t, n) {
|
|
278
|
+
var r = f(e);
|
|
279
|
+
t == null ? r.focus &&= null : (r.focus = t, r.blurScope = n);
|
|
280
|
+
}
|
|
281
|
+
var X = [
|
|
282
|
+
"emphasis",
|
|
283
|
+
"blur",
|
|
284
|
+
"select"
|
|
285
|
+
], he = {
|
|
286
|
+
itemStyle: "getItemStyle",
|
|
287
|
+
lineStyle: "getLineStyle",
|
|
288
|
+
areaStyle: "getAreaStyle"
|
|
289
|
+
};
|
|
290
|
+
function ge(e, t, n, r) {
|
|
291
|
+
n ||= "itemStyle";
|
|
292
|
+
for (var i = 0; i < X.length; i++) {
|
|
293
|
+
var a = X[i], o = t.getModel([a, n]), s = e.ensureState(a);
|
|
294
|
+
s.style = r ? r(o) : o[he[n]]();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
function Z(e, t) {
|
|
298
|
+
var n = t === !1, r = e;
|
|
299
|
+
e.highDownSilentOnTouch && (r.__highDownSilentOnTouch = e.highDownSilentOnTouch), (!n || r.__highDownDispatcher) && (r.__highByOuter = r.__highByOuter || 0, r.__highDownDispatcher = !n);
|
|
300
|
+
}
|
|
301
|
+
function Q(e) {
|
|
302
|
+
return !!(e && e.__highDownDispatcher);
|
|
303
|
+
}
|
|
304
|
+
function _e(e) {
|
|
305
|
+
var t = h[e];
|
|
306
|
+
return t == null && m <= 32 && (t = h[e] = m++), t;
|
|
307
|
+
}
|
|
308
|
+
function $(e) {
|
|
309
|
+
var t = e.type;
|
|
310
|
+
return t === "select" || t === "unselect" || t === "toggleSelect";
|
|
311
|
+
}
|
|
312
|
+
function ve(e) {
|
|
313
|
+
var t = e.type;
|
|
314
|
+
return t === "highlight" || t === "downplay";
|
|
315
|
+
}
|
|
316
|
+
function ye(e) {
|
|
317
|
+
var t = g(e);
|
|
318
|
+
t.normalFill = e.style.fill, t.normalStroke = e.style.stroke;
|
|
319
|
+
var n = e.states.select || {};
|
|
320
|
+
t.selectFill = n.style && n.style.fill || null, t.selectStroke = n.style && n.style.stroke || null;
|
|
321
|
+
}
|
|
322
|
+
//#endregion
|
|
323
|
+
export { v as DISPLAY_STATES, te as DOWNPLAY_ACTION_TYPE, y as HIGHLIGHT_ACTION_TYPE, b as SELECT_ACTION_TYPE, ne as SELECT_CHANGED_EVENT_TYPE, ee as SPECIAL_STATES, S as TOGGLE_SELECT_ACTION_TYPE, x as UNSELECT_ACTION_TYPE, W as allLeaveBlur, K as blurComponent, se as blurSeriesFromHighlightPayload, J as enableHoverEmphasis, z as enterBlur, L as enterEmphasis, V as enterSelect, q as findComponentHighDownDispatchers, fe as getAllSelectedIndices, _e as getHighlightDigit, le as handleGlobalMouseOutForHighDown, ce as handleGlobalMouseOverForHighDown, Q as isHighDownDispatcher, ve as isHighDownPayload, $ as isSelectChangePayload, B as leaveBlur, R as leaveEmphasis, H as leaveSelect, ye as savePathStates, ge as setStatesStylesFromModel, pe as toggleHoverEmphasis, ue as toggleSelectionFromPayload, de as updateSeriesElementSelection };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { each as e, isArray as t, retrieve2 as n } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { parsePercent as r } from "./number.js";
|
|
3
|
+
import i from "../../../zrender/lib/core/BoundingRect.js";
|
|
4
|
+
import { calculateTextPosition as a } from "../../../zrender/lib/contain/text.js";
|
|
5
|
+
import o from "../../../zrender/lib/graphic/Path.js";
|
|
6
|
+
import s from "../../../zrender/lib/graphic/shape/Rect.js";
|
|
7
|
+
import c from "../../../zrender/lib/graphic/shape/Circle.js";
|
|
8
|
+
import l from "../../../zrender/lib/graphic/shape/Line.js";
|
|
9
|
+
import { makeImage as u, makePath as d } from "./graphic.js";
|
|
10
|
+
import f from "../visual/tokens.js";
|
|
11
|
+
//#region node_modules/echarts/lib/util/symbol.js
|
|
12
|
+
var p = o.extend({
|
|
13
|
+
type: "triangle",
|
|
14
|
+
shape: {
|
|
15
|
+
cx: 0,
|
|
16
|
+
cy: 0,
|
|
17
|
+
width: 0,
|
|
18
|
+
height: 0
|
|
19
|
+
},
|
|
20
|
+
buildPath: function(e, t) {
|
|
21
|
+
var n = t.cx, r = t.cy, i = t.width / 2, a = t.height / 2;
|
|
22
|
+
e.moveTo(n, r - a), e.lineTo(n + i, r + a), e.lineTo(n - i, r + a), e.closePath();
|
|
23
|
+
}
|
|
24
|
+
}), m = {
|
|
25
|
+
line: l,
|
|
26
|
+
rect: s,
|
|
27
|
+
roundRect: s,
|
|
28
|
+
square: s,
|
|
29
|
+
circle: c,
|
|
30
|
+
diamond: o.extend({
|
|
31
|
+
type: "diamond",
|
|
32
|
+
shape: {
|
|
33
|
+
cx: 0,
|
|
34
|
+
cy: 0,
|
|
35
|
+
width: 0,
|
|
36
|
+
height: 0
|
|
37
|
+
},
|
|
38
|
+
buildPath: function(e, t) {
|
|
39
|
+
var n = t.cx, r = t.cy, i = t.width / 2, a = t.height / 2;
|
|
40
|
+
e.moveTo(n, r - a), e.lineTo(n + i, r), e.lineTo(n, r + a), e.lineTo(n - i, r), e.closePath();
|
|
41
|
+
}
|
|
42
|
+
}),
|
|
43
|
+
pin: o.extend({
|
|
44
|
+
type: "pin",
|
|
45
|
+
shape: {
|
|
46
|
+
x: 0,
|
|
47
|
+
y: 0,
|
|
48
|
+
width: 0,
|
|
49
|
+
height: 0
|
|
50
|
+
},
|
|
51
|
+
buildPath: function(e, t) {
|
|
52
|
+
var n = t.x, r = t.y, i = t.width / 5 * 3, a = Math.max(i, t.height), o = i / 2, s = o * o / (a - o), c = r - a + o + s, l = Math.asin(s / o), u = Math.cos(l) * o, d = Math.sin(l), f = Math.cos(l), p = o * .6, m = o * .7;
|
|
53
|
+
e.moveTo(n - u, c + s), e.arc(n, c, o, Math.PI - l, Math.PI * 2 + l), e.bezierCurveTo(n + u - d * p, c + s + f * p, n, r - m, n, r), e.bezierCurveTo(n, r - m, n - u + d * p, c + s + f * p, n - u, c + s), e.closePath();
|
|
54
|
+
}
|
|
55
|
+
}),
|
|
56
|
+
arrow: o.extend({
|
|
57
|
+
type: "arrow",
|
|
58
|
+
shape: {
|
|
59
|
+
x: 0,
|
|
60
|
+
y: 0,
|
|
61
|
+
width: 0,
|
|
62
|
+
height: 0
|
|
63
|
+
},
|
|
64
|
+
buildPath: function(e, t) {
|
|
65
|
+
var n = t.height, r = t.width, i = t.x, a = t.y, o = r / 3 * 2;
|
|
66
|
+
e.moveTo(i, a), e.lineTo(i + o, a + n), e.lineTo(i, a + n / 4 * 3), e.lineTo(i - o, a + n), e.lineTo(i, a), e.closePath();
|
|
67
|
+
}
|
|
68
|
+
}),
|
|
69
|
+
triangle: p
|
|
70
|
+
}, h = {
|
|
71
|
+
line: function(e, t, n, r, i) {
|
|
72
|
+
i.x1 = e, i.y1 = t + r / 2, i.x2 = e + n, i.y2 = t + r / 2;
|
|
73
|
+
},
|
|
74
|
+
rect: function(e, t, n, r, i) {
|
|
75
|
+
i.x = e, i.y = t, i.width = n, i.height = r;
|
|
76
|
+
},
|
|
77
|
+
roundRect: function(e, t, n, r, i) {
|
|
78
|
+
i.x = e, i.y = t, i.width = n, i.height = r, i.r = Math.min(n, r) / 4;
|
|
79
|
+
},
|
|
80
|
+
square: function(e, t, n, r, i) {
|
|
81
|
+
var a = Math.min(n, r);
|
|
82
|
+
i.x = e, i.y = t, i.width = a, i.height = a;
|
|
83
|
+
},
|
|
84
|
+
circle: function(e, t, n, r, i) {
|
|
85
|
+
i.cx = e + n / 2, i.cy = t + r / 2, i.r = Math.min(n, r) / 2;
|
|
86
|
+
},
|
|
87
|
+
diamond: function(e, t, n, r, i) {
|
|
88
|
+
i.cx = e + n / 2, i.cy = t + r / 2, i.width = n, i.height = r;
|
|
89
|
+
},
|
|
90
|
+
pin: function(e, t, n, r, i) {
|
|
91
|
+
i.x = e + n / 2, i.y = t + r / 2, i.width = n, i.height = r;
|
|
92
|
+
},
|
|
93
|
+
arrow: function(e, t, n, r, i) {
|
|
94
|
+
i.x = e + n / 2, i.y = t + r / 2, i.width = n, i.height = r;
|
|
95
|
+
},
|
|
96
|
+
triangle: function(e, t, n, r, i) {
|
|
97
|
+
i.cx = e + n / 2, i.cy = t + r / 2, i.width = n, i.height = r;
|
|
98
|
+
}
|
|
99
|
+
}, g = {};
|
|
100
|
+
e(m, function(e, t) {
|
|
101
|
+
g[t] = new e();
|
|
102
|
+
});
|
|
103
|
+
var _ = o.extend({
|
|
104
|
+
type: "symbol",
|
|
105
|
+
shape: {
|
|
106
|
+
symbolType: "",
|
|
107
|
+
x: 0,
|
|
108
|
+
y: 0,
|
|
109
|
+
width: 0,
|
|
110
|
+
height: 0
|
|
111
|
+
},
|
|
112
|
+
calculateTextPosition: function(e, t, n) {
|
|
113
|
+
var r = a(e, t, n), i = this.shape;
|
|
114
|
+
return i && i.symbolType === "pin" && t.position === "inside" && (r.y = n.y + n.height * .4), r;
|
|
115
|
+
},
|
|
116
|
+
buildPath: function(e, t, n) {
|
|
117
|
+
var r = t.symbolType;
|
|
118
|
+
if (r !== "none") {
|
|
119
|
+
var i = g[r];
|
|
120
|
+
i ||= (r = "rect", g[r]), h[r](t.x, t.y, t.width, t.height, i.shape), i.buildPath(e, i.shape, n);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
function v(e, t) {
|
|
125
|
+
if (this.type !== "image") {
|
|
126
|
+
var n = this.style;
|
|
127
|
+
this.__isEmptyBrush ? (n.stroke = e, n.fill = t || f.color.neutral00, n.lineWidth = 2) : this.shape.symbolType === "line" ? n.stroke = e : n.fill = e, this.markRedraw();
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
function y(e, t, n, r, a, o, s) {
|
|
131
|
+
var c = e.indexOf("empty") === 0;
|
|
132
|
+
c && (e = e.substr(5, 1).toLowerCase() + e.substr(6));
|
|
133
|
+
var l = e.indexOf("image://") === 0 ? u(e.slice(8), new i(t, n, r, a), s ? "center" : "cover") : e.indexOf("path://") === 0 ? d(e.slice(7), {}, new i(t, n, r, a), s ? "center" : "cover") : new _({ shape: {
|
|
134
|
+
symbolType: e,
|
|
135
|
+
x: t,
|
|
136
|
+
y: n,
|
|
137
|
+
width: r,
|
|
138
|
+
height: a
|
|
139
|
+
} });
|
|
140
|
+
return l.__isEmptyBrush = c, l.setColor = v, o && l.setColor(o), l;
|
|
141
|
+
}
|
|
142
|
+
function b(e, i) {
|
|
143
|
+
if (e != null) return t(e) || (e = [e, e]), [r(e[0], i[0]) || 0, r(n(e[1], e[0]), i[1]) || 0];
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
146
|
+
export { y as createSymbol, b as normalizeSymbolOffset };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region node_modules/echarts/lib/util/throttle.js
|
|
2
|
+
var e = "\0__throttleOriginMethod", t = "\0__throttleRate", n = "\0__throttleType";
|
|
3
|
+
function r(e, t, n) {
|
|
4
|
+
var r, i = 0, a = 0, o = null, s, c, l, u;
|
|
5
|
+
t ||= 0;
|
|
6
|
+
function d() {
|
|
7
|
+
a = (/* @__PURE__ */ new Date()).getTime(), o = null, e.apply(c, l || []);
|
|
8
|
+
}
|
|
9
|
+
var f = function() {
|
|
10
|
+
var e = [...arguments];
|
|
11
|
+
r = (/* @__PURE__ */ new Date()).getTime(), c = this, l = e;
|
|
12
|
+
var f = u || t, p = u || n;
|
|
13
|
+
u = null, s = r - (p ? i : a) - f, clearTimeout(o), p ? o = setTimeout(d, f) : s >= 0 ? d() : o = setTimeout(d, -s), i = r;
|
|
14
|
+
};
|
|
15
|
+
return f.clear = function() {
|
|
16
|
+
o &&= (clearTimeout(o), null);
|
|
17
|
+
}, f.debounceNextCall = function(e) {
|
|
18
|
+
u = e;
|
|
19
|
+
}, f;
|
|
20
|
+
}
|
|
21
|
+
function i(i, a, o, s) {
|
|
22
|
+
var c = i[a];
|
|
23
|
+
if (c) {
|
|
24
|
+
var l = c[e] || c, u = c[n];
|
|
25
|
+
if (c[t] !== o || u !== s) {
|
|
26
|
+
if (o == null || !s) return i[a] = l;
|
|
27
|
+
c = i[a] = r(l, o, s === "debounce"), c[e] = l, c[n] = s, c[t] = o;
|
|
28
|
+
}
|
|
29
|
+
return c;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function a(t, n) {
|
|
33
|
+
var r = t[n];
|
|
34
|
+
r && r[e] && (r.clear && r.clear(), t[n] = r[e]);
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { a as clear, i as createOrUpdate, r as throttle };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { parseDate as e } from "./number.js";
|
|
2
|
+
import t from "../model/Model.js";
|
|
3
|
+
import { SYSTEM_LANG as n, getDefaultLocaleModel as r, getLocaleModel as i } from "../core/locale.js";
|
|
4
|
+
var a = {
|
|
5
|
+
year: "{yyyy}",
|
|
6
|
+
month: "{MMM}",
|
|
7
|
+
day: "{d}",
|
|
8
|
+
hour: "{HH}:{mm}",
|
|
9
|
+
minute: "{HH}:{mm}",
|
|
10
|
+
second: "{HH}:{mm}:{ss}",
|
|
11
|
+
millisecond: "{HH}:{mm}:{ss} {SSS}"
|
|
12
|
+
}, o = "{yyyy}-{MM}-{dd}";
|
|
13
|
+
o + "" + a.hour, o + "" + a.minute, o + "" + a.second;
|
|
14
|
+
function s(e, t) {
|
|
15
|
+
return e += "", "0000".substr(0, t - e.length) + e;
|
|
16
|
+
}
|
|
17
|
+
function c(a, o, c, g) {
|
|
18
|
+
var _ = e(a), v = _[l(c)](), y = _[u(c)]() + 1, b = Math.floor((y - 1) / 3) + 1, x = _[d(c)](), S = _["get" + (c ? "UTC" : "") + "Day"](), C = _[f(c)](), w = (C - 1) % 12 + 1, T = _[p(c)](), E = _[m(c)](), D = _[h(c)](), O = C >= 12 ? "pm" : "am", k = O.toUpperCase(), A = (g instanceof t ? g : i(g || n) || r()).getModel("time"), j = A.get("month"), M = A.get("monthAbbr"), N = A.get("dayOfWeek"), P = A.get("dayOfWeekAbbr");
|
|
19
|
+
return (o || "").replace(/{a}/g, O + "").replace(/{A}/g, k + "").replace(/{yyyy}/g, v + "").replace(/{yy}/g, s(v % 100 + "", 2)).replace(/{Q}/g, b + "").replace(/{MMMM}/g, j[y - 1]).replace(/{MMM}/g, M[y - 1]).replace(/{MM}/g, s(y, 2)).replace(/{M}/g, y + "").replace(/{dd}/g, s(x, 2)).replace(/{d}/g, x + "").replace(/{eeee}/g, N[S]).replace(/{ee}/g, P[S]).replace(/{e}/g, S + "").replace(/{HH}/g, s(C, 2)).replace(/{H}/g, C + "").replace(/{hh}/g, s(w + "", 2)).replace(/{h}/g, w + "").replace(/{mm}/g, s(T, 2)).replace(/{m}/g, T + "").replace(/{ss}/g, s(E, 2)).replace(/{s}/g, E + "").replace(/{SSS}/g, s(D, 3)).replace(/{S}/g, D + "");
|
|
20
|
+
}
|
|
21
|
+
function l(e) {
|
|
22
|
+
return e ? "getUTCFullYear" : "getFullYear";
|
|
23
|
+
}
|
|
24
|
+
function u(e) {
|
|
25
|
+
return e ? "getUTCMonth" : "getMonth";
|
|
26
|
+
}
|
|
27
|
+
function d(e) {
|
|
28
|
+
return e ? "getUTCDate" : "getDate";
|
|
29
|
+
}
|
|
30
|
+
function f(e) {
|
|
31
|
+
return e ? "getUTCHours" : "getHours";
|
|
32
|
+
}
|
|
33
|
+
function p(e) {
|
|
34
|
+
return e ? "getUTCMinutes" : "getMinutes";
|
|
35
|
+
}
|
|
36
|
+
function m(e) {
|
|
37
|
+
return e ? "getUTCSeconds" : "getSeconds";
|
|
38
|
+
}
|
|
39
|
+
function h(e) {
|
|
40
|
+
return e ? "getUTCMilliseconds" : "getMilliseconds";
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { c as format };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createHashMap as e } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
//#region node_modules/echarts/lib/util/types.js
|
|
3
|
+
var t = "undefined", n = "series", r = e([
|
|
4
|
+
"tooltip",
|
|
5
|
+
"label",
|
|
6
|
+
"itemName",
|
|
7
|
+
"itemId",
|
|
8
|
+
"itemGroupId",
|
|
9
|
+
"itemChildGroupId",
|
|
10
|
+
"seriesName"
|
|
11
|
+
]), i = "original", a = "arrayRows", o = "objectRows", s = "keyedColumns", c = "typedArray", l = "unknown", u = "column";
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as COMPONENT_MAIN_TYPE_SERIES, u as SERIES_LAYOUT_BY_COLUMN, a as SOURCE_FORMAT_ARRAY_ROWS, s as SOURCE_FORMAT_KEYED_COLUMNS, o as SOURCE_FORMAT_OBJECT_ROWS, i as SOURCE_FORMAT_ORIGINAL, c as SOURCE_FORMAT_TYPED_ARRAY, l as SOURCE_FORMAT_UNKNOWN, t as UNDEFINED_STR, r as VISUAL_DIMENSIONS };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { each as e } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { error as t } from "../util/log.js";
|
|
3
|
+
import { makeInner as n, normalizeToArray as r, queryDataIndex as i } from "../util/model.js";
|
|
4
|
+
import a from "../../../zrender/lib/graphic/Group.js";
|
|
5
|
+
import { traverseElements as o } from "../util/graphic.js";
|
|
6
|
+
import { enterEmphasis as s, getHighlightDigit as c, isHighDownDispatcher as l, leaveEmphasis as u } from "../util/states.js";
|
|
7
|
+
import { enableClassExtend as d, enableClassManagement as f } from "../util/clazz.js";
|
|
8
|
+
import { getUID as p } from "../util/component.js";
|
|
9
|
+
import { createTask as m } from "../core/task.js";
|
|
10
|
+
import h from "../chart/helper/createRenderPlanner.js";
|
|
11
|
+
//#region node_modules/echarts/lib/view/Chart.js
|
|
12
|
+
var g = n(), _ = h(), v = function() {
|
|
13
|
+
function e() {
|
|
14
|
+
this.group = new a(), this.uid = p("viewChart"), this.renderTask = m({
|
|
15
|
+
plan: x,
|
|
16
|
+
reset: S
|
|
17
|
+
}), this.renderTask.context = { view: this };
|
|
18
|
+
}
|
|
19
|
+
return e.prototype.init = function(e, t) {}, e.prototype.render = function(e, t, n, r) {
|
|
20
|
+
if (process.env.NODE_ENV !== "production") throw Error("render method must been implemented");
|
|
21
|
+
}, e.prototype.highlight = function(e, n, r, i) {
|
|
22
|
+
var a = e.getData(i && i.dataType);
|
|
23
|
+
if (!a) {
|
|
24
|
+
process.env.NODE_ENV !== "production" && t("Unknown dataType " + i.dataType);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
b(a, i, "emphasis");
|
|
28
|
+
}, e.prototype.downplay = function(e, n, r, i) {
|
|
29
|
+
var a = e.getData(i && i.dataType);
|
|
30
|
+
if (!a) {
|
|
31
|
+
process.env.NODE_ENV !== "production" && t("Unknown dataType " + i.dataType);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
b(a, i, "normal");
|
|
35
|
+
}, e.prototype.remove = function(e, t) {
|
|
36
|
+
this.group.removeAll();
|
|
37
|
+
}, e.prototype.dispose = function(e, t) {}, e.prototype.updateView = function(e, t, n, r) {
|
|
38
|
+
this.render(e, t, n, r);
|
|
39
|
+
}, e.prototype.updateVisual = function(e, t, n, r) {
|
|
40
|
+
this.render(e, t, n, r);
|
|
41
|
+
}, e.prototype.eachRendered = function(e) {
|
|
42
|
+
o(this.group, e);
|
|
43
|
+
}, e.markUpdateMethod = function(e, t) {
|
|
44
|
+
g(e).updateMethod = t;
|
|
45
|
+
}, e.protoInitialize = function() {
|
|
46
|
+
var t = e.prototype;
|
|
47
|
+
t.type = "chart";
|
|
48
|
+
}(), e;
|
|
49
|
+
}();
|
|
50
|
+
function y(e, t, n) {
|
|
51
|
+
e && l(e) && (t === "emphasis" ? s : u)(e, n);
|
|
52
|
+
}
|
|
53
|
+
function b(t, n, a) {
|
|
54
|
+
var o = i(t, n), s = n && n.highlightKey != null ? c(n.highlightKey) : null;
|
|
55
|
+
o == null ? t.eachItemGraphicEl(function(e) {
|
|
56
|
+
y(e, a, s);
|
|
57
|
+
}) : e(r(o), function(e) {
|
|
58
|
+
y(t.getItemGraphicEl(e), a, s);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
d(v, ["dispose"]), f(v);
|
|
62
|
+
function x(e) {
|
|
63
|
+
return _(e.model);
|
|
64
|
+
}
|
|
65
|
+
function S(e) {
|
|
66
|
+
var t = e.model, n = e.ecModel, r = e.api, i = e.payload, a = t.pipelineContext.progressiveRender, o = e.view, s = i && g(i).updateMethod, c = a ? "incrementalPrepareRender" : s && o[s] ? s : "render";
|
|
67
|
+
return c !== "render" && o[c](t, n, r, i), C[c];
|
|
68
|
+
}
|
|
69
|
+
var C = {
|
|
70
|
+
incrementalPrepareRender: { progress: function(e, t) {
|
|
71
|
+
t.view.incrementalRender(e, t.model, t.ecModel, t.api, t.payload);
|
|
72
|
+
} },
|
|
73
|
+
render: {
|
|
74
|
+
forceFirstProgress: !0,
|
|
75
|
+
progress: function(e, t) {
|
|
76
|
+
t.view.render(t.model, t.ecModel, t.api, t.payload);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
//#endregion
|
|
81
|
+
export { v as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import e from "../../../zrender/lib/graphic/Group.js";
|
|
2
|
+
import { enableClassExtend as t, enableClassManagement as n } from "../util/clazz.js";
|
|
3
|
+
import { getUID as r } from "../util/component.js";
|
|
4
|
+
//#region node_modules/echarts/lib/view/Component.js
|
|
5
|
+
var i = function() {
|
|
6
|
+
function t() {
|
|
7
|
+
this.group = new e(), this.uid = r("viewComponent");
|
|
8
|
+
}
|
|
9
|
+
return t.prototype.init = function(e, t) {}, t.prototype.render = function(e, t, n, r) {}, t.prototype.dispose = function(e, t) {}, t.prototype.updateView = function(e, t, n, r) {}, t.prototype.updateLayout = function(e, t, n, r) {}, t.prototype.updateVisual = function(e, t, n, r) {}, t.prototype.toggleBlurSeries = function(e, t, n) {}, t.prototype.eachRendered = function(e) {
|
|
10
|
+
var t = this.group;
|
|
11
|
+
t && t.traverse(e);
|
|
12
|
+
}, t;
|
|
13
|
+
}();
|
|
14
|
+
t(i), n(i);
|
|
15
|
+
//#endregion
|
|
16
|
+
export { i as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region node_modules/echarts/lib/visual/LegendVisualProvider.js
|
|
2
|
+
var e = function() {
|
|
3
|
+
function e(e, t) {
|
|
4
|
+
this._getDataWithEncodedVisual = e, this._getRawData = t;
|
|
5
|
+
}
|
|
6
|
+
return e.prototype.getAllNames = function() {
|
|
7
|
+
var e = this._getRawData();
|
|
8
|
+
return e.mapArray(e.getName);
|
|
9
|
+
}, e.prototype.containName = function(e) {
|
|
10
|
+
return this._getRawData().indexOfName(e) >= 0;
|
|
11
|
+
}, e.prototype.indexOfName = function(e) {
|
|
12
|
+
return this._getDataWithEncodedVisual().indexOfName(e);
|
|
13
|
+
}, e.prototype.getItemVisual = function(e, t) {
|
|
14
|
+
return this._getDataWithEncodedVisual().getItemVisual(e, t);
|
|
15
|
+
}, e;
|
|
16
|
+
}();
|
|
17
|
+
//#endregion
|
|
18
|
+
export { e as default };
|