reke-ui 0.3.0 → 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 +991 -20
- 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 +1 -0
- package/dist/components/reke-table/reke-table.d.ts.map +1 -1
- package/dist/components/reke-table/reke-table.js +6 -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 +14 -1
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
import { __exportAll as e } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { assert as t, clone as n, defaults as r, each as i, extend as a, hasOwn as o, isArray as s, isArrayLike as c, isNumber as l, isString as u, keys as d, map as f } from "../../../zrender/lib/core/util.js";
|
|
3
|
+
import { mathAbs as p, mathMax as m, mathMin as h } from "./number.js";
|
|
4
|
+
import { copy as g, create as _, identity as v, invert as ee, mul as te } from "../../../zrender/lib/core/matrix.js";
|
|
5
|
+
import { applyTransform as ne } from "../../../zrender/lib/core/vector.js";
|
|
6
|
+
import y, { copyTransform as re } from "../../../zrender/lib/core/Transformable.js";
|
|
7
|
+
import ie from "../../../zrender/lib/core/Point.js";
|
|
8
|
+
import ae from "../../../zrender/lib/core/BoundingRect.js";
|
|
9
|
+
import oe from "../../../zrender/lib/graphic/Path.js";
|
|
10
|
+
import { createFromString as se, extendFromString as ce, mergePath as le } from "../../../zrender/lib/tool/path.js";
|
|
11
|
+
import b from "../../../zrender/lib/graphic/Image.js";
|
|
12
|
+
import ue from "../../../zrender/lib/graphic/Group.js";
|
|
13
|
+
import { subPixelOptimize as de, subPixelOptimizeLine as fe, subPixelOptimizeRect as pe } from "../../../zrender/lib/graphic/helper/subPixelOptimize.js";
|
|
14
|
+
import x from "../../../zrender/lib/graphic/shape/Rect.js";
|
|
15
|
+
import me from "../../../zrender/lib/graphic/Text.js";
|
|
16
|
+
import S from "../../../zrender/lib/graphic/shape/Circle.js";
|
|
17
|
+
import C from "../../../zrender/lib/graphic/shape/Ellipse.js";
|
|
18
|
+
import w from "../../../zrender/lib/graphic/shape/Sector.js";
|
|
19
|
+
import T from "../../../zrender/lib/graphic/shape/Ring.js";
|
|
20
|
+
import E from "../../../zrender/lib/graphic/shape/Polygon.js";
|
|
21
|
+
import D from "../../../zrender/lib/graphic/shape/Polyline.js";
|
|
22
|
+
import O from "../../../zrender/lib/graphic/shape/Line.js";
|
|
23
|
+
import k from "../../../zrender/lib/graphic/shape/BezierCurve.js";
|
|
24
|
+
import A from "../../../zrender/lib/graphic/shape/Arc.js";
|
|
25
|
+
import he from "../../../zrender/lib/graphic/CompoundPath.js";
|
|
26
|
+
import ge from "../../../zrender/lib/graphic/LinearGradient.js";
|
|
27
|
+
import _e from "../../../zrender/lib/graphic/RadialGradient.js";
|
|
28
|
+
import ve from "../../../zrender/lib/core/OrientedBoundingRect.js";
|
|
29
|
+
import ye from "../../../zrender/lib/graphic/IncrementalDisplayable.js";
|
|
30
|
+
import { getECData as j } from "./innerStore.js";
|
|
31
|
+
import { initProps as be, isElementRemoved as xe, removeElement as Se, removeElementWithFadeOut as Ce, updateProps as M } from "../animation/basicTransition.js";
|
|
32
|
+
//#region node_modules/echarts/lib/util/graphic.js
|
|
33
|
+
var we = /* @__PURE__ */ e({
|
|
34
|
+
Arc: () => A,
|
|
35
|
+
BezierCurve: () => k,
|
|
36
|
+
BoundingRect: () => ae,
|
|
37
|
+
Circle: () => S,
|
|
38
|
+
CompoundPath: () => he,
|
|
39
|
+
Ellipse: () => C,
|
|
40
|
+
Group: () => ue,
|
|
41
|
+
HOVER_LAYER_FOR_INCREMENTAL: () => 2,
|
|
42
|
+
HOVER_LAYER_FROM_THRESHOLD: () => 1,
|
|
43
|
+
HOVER_LAYER_NO: () => 0,
|
|
44
|
+
Image: () => b,
|
|
45
|
+
IncrementalDisplayable: () => ye,
|
|
46
|
+
Line: () => O,
|
|
47
|
+
LinearGradient: () => ge,
|
|
48
|
+
OrientedBoundingRect: () => ve,
|
|
49
|
+
Path: () => oe,
|
|
50
|
+
Point: () => ie,
|
|
51
|
+
Polygon: () => E,
|
|
52
|
+
Polyline: () => D,
|
|
53
|
+
RadialGradient: () => _e,
|
|
54
|
+
Rect: () => x,
|
|
55
|
+
Ring: () => T,
|
|
56
|
+
Sector: () => w,
|
|
57
|
+
Text: () => me,
|
|
58
|
+
WH: () => Te,
|
|
59
|
+
XY: () => P,
|
|
60
|
+
applyTransform: () => V,
|
|
61
|
+
calcZ2Range: () => Ke,
|
|
62
|
+
clipPointsByRect: () => Le,
|
|
63
|
+
clipRectByRect: () => Re,
|
|
64
|
+
createIcon: () => U,
|
|
65
|
+
decomposeTransform: () => Ye,
|
|
66
|
+
ensureCopyRect: () => Z,
|
|
67
|
+
ensureCopyTransform: () => We,
|
|
68
|
+
expandOrShrinkRect: () => K,
|
|
69
|
+
extendPath: () => Oe,
|
|
70
|
+
extendShape: () => Ee,
|
|
71
|
+
getCurrentCanvasPainter: () => Xe,
|
|
72
|
+
getShapeClass: () => ke,
|
|
73
|
+
getTransform: () => Ne,
|
|
74
|
+
groupTransition: () => Ie,
|
|
75
|
+
initProps: () => be,
|
|
76
|
+
isBoundingRectAxisAligned: () => Ue,
|
|
77
|
+
isElementRemoved: () => xe,
|
|
78
|
+
lineLineIntersect: () => W,
|
|
79
|
+
linePolygonIntersect: () => ze,
|
|
80
|
+
makeImage: () => L,
|
|
81
|
+
makePath: () => I,
|
|
82
|
+
mergePath: () => Ae,
|
|
83
|
+
payloadDisableAnimation: () => Je,
|
|
84
|
+
registerShape: () => F,
|
|
85
|
+
removeElement: () => Se,
|
|
86
|
+
removeElementWithFadeOut: () => Ce,
|
|
87
|
+
resizePath: () => z,
|
|
88
|
+
retrieveZInfo: () => Ge,
|
|
89
|
+
setTooltipConfig: () => Ve,
|
|
90
|
+
subPixelOptimize: () => Me,
|
|
91
|
+
subPixelOptimizeLine: () => B,
|
|
92
|
+
subPixelOptimizeRect: () => je,
|
|
93
|
+
transformDirection: () => Pe,
|
|
94
|
+
traverseElements: () => He,
|
|
95
|
+
traverseUpdateZ: () => qe,
|
|
96
|
+
updateProps: () => M
|
|
97
|
+
}), N = {}, P = ["x", "y"], Te = ["width", "height"];
|
|
98
|
+
function Ee(e) {
|
|
99
|
+
return oe.extend(e);
|
|
100
|
+
}
|
|
101
|
+
var De = ce;
|
|
102
|
+
function Oe(e, t) {
|
|
103
|
+
return De(e, t);
|
|
104
|
+
}
|
|
105
|
+
function F(e, t) {
|
|
106
|
+
N[e] = t;
|
|
107
|
+
}
|
|
108
|
+
function ke(e) {
|
|
109
|
+
if (N.hasOwnProperty(e)) return N[e];
|
|
110
|
+
}
|
|
111
|
+
function I(e, t, n, r) {
|
|
112
|
+
var i = se(e, t);
|
|
113
|
+
return n && (r === "center" && (n = R(n, i.getBoundingRect())), z(i, n)), i;
|
|
114
|
+
}
|
|
115
|
+
function L(e, t, n) {
|
|
116
|
+
var r = new b({
|
|
117
|
+
style: {
|
|
118
|
+
image: e,
|
|
119
|
+
x: t.x,
|
|
120
|
+
y: t.y,
|
|
121
|
+
width: t.width,
|
|
122
|
+
height: t.height
|
|
123
|
+
},
|
|
124
|
+
onload: function(e) {
|
|
125
|
+
if (n === "center") {
|
|
126
|
+
var i = {
|
|
127
|
+
width: e.width,
|
|
128
|
+
height: e.height
|
|
129
|
+
};
|
|
130
|
+
r.setStyle(R(t, i));
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
return r;
|
|
135
|
+
}
|
|
136
|
+
function R(e, t) {
|
|
137
|
+
var n = t.width / t.height, r = e.height * n, i;
|
|
138
|
+
r <= e.width ? i = e.height : (r = e.width, i = r / n);
|
|
139
|
+
var a = e.x + e.width / 2, o = e.y + e.height / 2;
|
|
140
|
+
return {
|
|
141
|
+
x: a - r / 2,
|
|
142
|
+
y: o - i / 2,
|
|
143
|
+
width: r,
|
|
144
|
+
height: i
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
var Ae = le;
|
|
148
|
+
function z(e, t) {
|
|
149
|
+
if (e.applyTransform) {
|
|
150
|
+
var n = e.getBoundingRect().calculateTransform(t);
|
|
151
|
+
e.applyTransform(n);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
function B(e, t) {
|
|
155
|
+
return fe(e, e, { lineWidth: t }), e;
|
|
156
|
+
}
|
|
157
|
+
function je(e, t) {
|
|
158
|
+
return pe(e, e, t), e;
|
|
159
|
+
}
|
|
160
|
+
var Me = de;
|
|
161
|
+
function Ne(e, t) {
|
|
162
|
+
for (var n = v([]); e && e !== t;) te(n, e.getLocalTransform(), n), e = e.parent;
|
|
163
|
+
return n;
|
|
164
|
+
}
|
|
165
|
+
function V(e, t, n) {
|
|
166
|
+
return t && !c(t) && (t = y.getLocalTransform(t)), n && (t = ee([], t)), ne([], e, t);
|
|
167
|
+
}
|
|
168
|
+
function Pe(e, t, n) {
|
|
169
|
+
var r = t[4] === 0 || t[5] === 0 || t[0] === 0 ? 1 : p(2 * t[4] / t[0]), i = t[4] === 0 || t[5] === 0 || t[2] === 0 ? 1 : p(2 * t[4] / t[2]), a = [e === "left" ? -r : e === "right" ? r : 0, e === "top" ? -i : e === "bottom" ? i : 0];
|
|
170
|
+
return a = V(a, t, n), p(a[0]) > p(a[1]) ? a[0] > 0 ? "right" : "left" : a[1] > 0 ? "bottom" : "top";
|
|
171
|
+
}
|
|
172
|
+
function H(e) {
|
|
173
|
+
return !e.isGroup;
|
|
174
|
+
}
|
|
175
|
+
function Fe(e) {
|
|
176
|
+
return e.shape != null;
|
|
177
|
+
}
|
|
178
|
+
function Ie(e, t, r) {
|
|
179
|
+
if (!e || !t) return;
|
|
180
|
+
function i(e) {
|
|
181
|
+
var t = {};
|
|
182
|
+
return e.traverse(function(e) {
|
|
183
|
+
H(e) && e.anid && (t[e.anid] = e);
|
|
184
|
+
}), t;
|
|
185
|
+
}
|
|
186
|
+
function a(e) {
|
|
187
|
+
var t = {
|
|
188
|
+
x: e.x,
|
|
189
|
+
y: e.y,
|
|
190
|
+
rotation: e.rotation
|
|
191
|
+
};
|
|
192
|
+
return Fe(e) && (t.shape = n(e.shape)), t;
|
|
193
|
+
}
|
|
194
|
+
var o = i(e);
|
|
195
|
+
t.traverse(function(e) {
|
|
196
|
+
if (H(e) && e.anid) {
|
|
197
|
+
var t = o[e.anid];
|
|
198
|
+
if (t) {
|
|
199
|
+
var n = a(e);
|
|
200
|
+
e.attr(a(t)), M(e, n, r, j(e).dataIndex);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
function Le(e, t) {
|
|
206
|
+
return f(e, function(e) {
|
|
207
|
+
var n = e[0];
|
|
208
|
+
n = m(n, t.x), n = h(n, t.x + t.width);
|
|
209
|
+
var r = e[1];
|
|
210
|
+
return r = m(r, t.y), r = h(r, t.y + t.height), [n, r];
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
function Re(e, t) {
|
|
214
|
+
var n = m(e.x, t.x), r = h(e.x + e.width, t.x + t.width), i = m(e.y, t.y), a = h(e.y + e.height, t.y + t.height);
|
|
215
|
+
if (r >= n && a >= i) return {
|
|
216
|
+
x: n,
|
|
217
|
+
y: i,
|
|
218
|
+
width: r - n,
|
|
219
|
+
height: a - i
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
function U(e, t, n) {
|
|
223
|
+
var i = a({ rectHover: !0 }, t), o = i.style = { strokeNoScale: !0 };
|
|
224
|
+
if (n ||= {
|
|
225
|
+
x: -1,
|
|
226
|
+
y: -1,
|
|
227
|
+
width: 2,
|
|
228
|
+
height: 2
|
|
229
|
+
}, e) return e.indexOf("image://") === 0 ? (o.image = e.slice(8), r(o, n), new b(i)) : I(e.replace("path://", ""), i, n, "center");
|
|
230
|
+
}
|
|
231
|
+
function ze(e, t, n, r, i) {
|
|
232
|
+
for (var a = 0, o = i[i.length - 1]; a < i.length; a++) {
|
|
233
|
+
var s = i[a];
|
|
234
|
+
if (W(e, t, n, r, s[0], s[1], o[0], o[1])) return !0;
|
|
235
|
+
o = s;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
function W(e, t, n, r, i, a, o, s) {
|
|
239
|
+
var c = n - e, l = r - t, u = o - i, d = s - a, f = G(u, d, c, l);
|
|
240
|
+
if (Be(f)) return !1;
|
|
241
|
+
var p = e - i, m = t - a, h = G(p, m, c, l) / f;
|
|
242
|
+
if (h < 0 || h > 1) return !1;
|
|
243
|
+
var g = G(p, m, u, d) / f;
|
|
244
|
+
return !(g < 0 || g > 1);
|
|
245
|
+
}
|
|
246
|
+
function G(e, t, n, r) {
|
|
247
|
+
return e * r - n * t;
|
|
248
|
+
}
|
|
249
|
+
function Be(e) {
|
|
250
|
+
return e <= 1e-6 && e >= -1e-6;
|
|
251
|
+
}
|
|
252
|
+
function K(e, n, r, i, a) {
|
|
253
|
+
return n == null ? e : (l(n) ? q[0] = q[1] = q[2] = q[3] = n : (process.env.NODE_ENV !== "production" && t(n.length === 4), q[0] = n[0], q[1] = n[1], q[2] = n[2], q[3] = n[3]), i && (q[0] = m(0, q[0]), q[1] = m(0, q[1]), q[2] = m(0, q[2]), q[3] = m(0, q[3])), r && (q[0] = -q[0], q[1] = -q[1], q[2] = -q[2], q[3] = -q[3]), J(e, q, "x", "width", 3, 1, a && a[0] || 0), J(e, q, "y", "height", 0, 2, a && a[1] || 0), e);
|
|
254
|
+
}
|
|
255
|
+
var q = [
|
|
256
|
+
0,
|
|
257
|
+
0,
|
|
258
|
+
0,
|
|
259
|
+
0
|
|
260
|
+
];
|
|
261
|
+
function J(e, t, n, r, i, a, o) {
|
|
262
|
+
var s = t[a] + t[i], c = e[r];
|
|
263
|
+
e[r] += s, o = m(0, h(o, c)), e[r] < o ? (e[r] = o, e[n] += t[i] >= 0 ? -t[i] : t[a] >= 0 ? c + t[a] : p(s) > 1e-8 ? (c - o) * t[i] / s : 0) : e[n] -= t[i];
|
|
264
|
+
}
|
|
265
|
+
function Ve(e) {
|
|
266
|
+
var t = e.itemTooltipOption, n = e.componentModel, a = e.itemName, s = u(t) ? { formatter: t } : t, c = n.mainType, l = n.componentIndex, f = {
|
|
267
|
+
componentType: c,
|
|
268
|
+
name: a,
|
|
269
|
+
$vars: ["name"]
|
|
270
|
+
};
|
|
271
|
+
f[c + "Index"] = l;
|
|
272
|
+
var p = e.formatterParamsExtra;
|
|
273
|
+
p && i(d(p), function(e) {
|
|
274
|
+
o(f, e) || (f[e] = p[e], f.$vars.push(e));
|
|
275
|
+
});
|
|
276
|
+
var m = j(e.el);
|
|
277
|
+
m.componentMainType = c, m.componentIndex = l, m.tooltipConfig = {
|
|
278
|
+
name: a,
|
|
279
|
+
option: r({
|
|
280
|
+
content: a,
|
|
281
|
+
encodeHTMLContent: !0,
|
|
282
|
+
formatterParams: f
|
|
283
|
+
}, s)
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
function Y(e, t) {
|
|
287
|
+
var n;
|
|
288
|
+
e.isGroup && (n = t(e)), n || e.traverse(t);
|
|
289
|
+
}
|
|
290
|
+
function He(e, t) {
|
|
291
|
+
if (e) if (s(e)) for (var n = 0; n < e.length; n++) Y(e[n], t);
|
|
292
|
+
else Y(e, t);
|
|
293
|
+
}
|
|
294
|
+
function Ue(e) {
|
|
295
|
+
return !e || p(e[1]) < X && p(e[2]) < X || p(e[0]) < X && p(e[3]) < X;
|
|
296
|
+
}
|
|
297
|
+
var X = 1e-5;
|
|
298
|
+
function Z(e, t) {
|
|
299
|
+
return e ? ae.copy(e, t) : t.clone();
|
|
300
|
+
}
|
|
301
|
+
function We(e, t) {
|
|
302
|
+
return t ? g(e || _(), t) : void 0;
|
|
303
|
+
}
|
|
304
|
+
function Ge(e) {
|
|
305
|
+
return {
|
|
306
|
+
z: e.get("z") || 0,
|
|
307
|
+
zlevel: e.get("zlevel") || 0
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
function Ke(e) {
|
|
311
|
+
var t = -Infinity, n = Infinity;
|
|
312
|
+
Y(e, function(e) {
|
|
313
|
+
r(e), r(e.getTextContent()), r(e.getTextGuideLine());
|
|
314
|
+
});
|
|
315
|
+
function r(e) {
|
|
316
|
+
if (!(!e || e.isGroup)) {
|
|
317
|
+
var t = e.currentStates;
|
|
318
|
+
if (t.length) for (var n = 0; n < t.length; n++) i(e.states[t[n]]);
|
|
319
|
+
i(e);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
function i(e) {
|
|
323
|
+
if (e) {
|
|
324
|
+
var r = e.z2;
|
|
325
|
+
r > t && (t = r), r < n && (n = r);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
return n > t && (n = t = 0), {
|
|
329
|
+
min: n,
|
|
330
|
+
max: t
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
function qe(e, t, n) {
|
|
334
|
+
Q(e, t, n, -Infinity);
|
|
335
|
+
}
|
|
336
|
+
function Q(e, t, n, r) {
|
|
337
|
+
if (e.ignoreModelZ) return r;
|
|
338
|
+
var i = e.getTextContent(), a = e.getTextGuideLine();
|
|
339
|
+
if (e.isGroup) for (var o = e.childrenRef(), s = 0; s < o.length; s++) r = m(Q(o[s], t, n, r), r);
|
|
340
|
+
else e.z = t, e.zlevel = n, r = m(e.z2 || 0, r);
|
|
341
|
+
if (i && (i.z = t, i.zlevel = n, isFinite(r) && (i.z2 = r + 2)), a) {
|
|
342
|
+
var c = e.textGuideLineConfig;
|
|
343
|
+
a.z = t, a.zlevel = n, isFinite(r) && (a.z2 = r + (c && c.showAbove ? 1 : -1));
|
|
344
|
+
}
|
|
345
|
+
return r;
|
|
346
|
+
}
|
|
347
|
+
function Je(e) {
|
|
348
|
+
return e.animation = { duration: 0 }, e;
|
|
349
|
+
}
|
|
350
|
+
function Ye(e, t) {
|
|
351
|
+
return t ? g($.transform, t) : v($.transform), $.decomposeTransform(), re(e, $), e;
|
|
352
|
+
}
|
|
353
|
+
var $ = new y();
|
|
354
|
+
$.transform = _();
|
|
355
|
+
function Xe(e) {
|
|
356
|
+
var t = e.getZr().painter;
|
|
357
|
+
return t.getType() === "canvas" ? t : null;
|
|
358
|
+
}
|
|
359
|
+
F("circle", S), F("ellipse", C), F("sector", w), F("ring", T), F("polygon", E), F("polyline", D), F("rect", x), F("line", O), F("bezierCurve", k), F("arc", A);
|
|
360
|
+
//#endregion
|
|
361
|
+
export { Te as WH, P as XY, V as applyTransform, U as createIcon, Z as ensureCopyRect, We as ensureCopyTransform, K as expandOrShrinkRect, we as graphic_exports, Ue as isBoundingRectAxisAligned, L as makeImage, I as makePath, Ge as retrieveZInfo, Ve as setTooltipConfig, B as subPixelOptimizeLine, He as traverseElements, qe as traverseUpdateZ };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { makeInner as e } from "./model.js";
|
|
2
|
+
//#region node_modules/echarts/lib/util/innerStore.js
|
|
3
|
+
var t = e(), n = function(e, n, r, i) {
|
|
4
|
+
if (i) {
|
|
5
|
+
var a = t(i);
|
|
6
|
+
a.dataIndex = r, a.dataType = n, a.seriesIndex = e, a.ssrType = "chart", i.type === "group" && i.traverse(function(i) {
|
|
7
|
+
var a = t(i);
|
|
8
|
+
a.seriesIndex = e, a.dataIndex = r, a.dataType = n, a.ssrType = "chart";
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as getECData, n as setCommonECData };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { curry as e, each as t, hasOwn as n, isArray as r, isObject as i } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { error as a } from "./log.js";
|
|
3
|
+
import { parsePercent as o } from "./number.js";
|
|
4
|
+
import s from "../../../zrender/lib/core/BoundingRect.js";
|
|
5
|
+
import { normalizeCssArray as c } from "./format.js";
|
|
6
|
+
import { getCoordForCoordSysUsageKindBox as l } from "../core/CoordinateSystem.js";
|
|
7
|
+
//#region node_modules/echarts/lib/util/layout.js
|
|
8
|
+
var u = t, d = [
|
|
9
|
+
"left",
|
|
10
|
+
"right",
|
|
11
|
+
"top",
|
|
12
|
+
"bottom",
|
|
13
|
+
"width",
|
|
14
|
+
"height"
|
|
15
|
+
], f = [[
|
|
16
|
+
"width",
|
|
17
|
+
"left",
|
|
18
|
+
"right"
|
|
19
|
+
], [
|
|
20
|
+
"height",
|
|
21
|
+
"top",
|
|
22
|
+
"bottom"
|
|
23
|
+
]];
|
|
24
|
+
function p(e, t, n, r, i) {
|
|
25
|
+
var a = 0, o = 0;
|
|
26
|
+
r ??= Infinity, i ??= Infinity;
|
|
27
|
+
var s = 0;
|
|
28
|
+
t.eachChild(function(c, l) {
|
|
29
|
+
var u = c.getBoundingRect(), d = t.childAt(l + 1), f = d && d.getBoundingRect(), p, m;
|
|
30
|
+
if (e === "horizontal") {
|
|
31
|
+
var h = u.width + (f ? -f.x + u.x : 0);
|
|
32
|
+
p = a + h, p > r || c.newline ? (a = 0, p = h, o += s + n, s = u.height) : s = Math.max(s, u.height);
|
|
33
|
+
} else {
|
|
34
|
+
var g = u.height + (f ? -f.y + u.y : 0);
|
|
35
|
+
m = o + g, m > i || c.newline ? (a += s + n, o = 0, m = g, s = u.width) : s = Math.max(s, u.width);
|
|
36
|
+
}
|
|
37
|
+
c.newline || (c.x = a, c.y = o, c.markRedraw(), e === "horizontal" ? a = p + n : o = m + n);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
var m = p;
|
|
41
|
+
e(p, "vertical"), e(p, "horizontal");
|
|
42
|
+
function h(e, t) {
|
|
43
|
+
return {
|
|
44
|
+
left: e.getShallow("left", t),
|
|
45
|
+
top: e.getShallow("top", t),
|
|
46
|
+
right: e.getShallow("right", t),
|
|
47
|
+
bottom: e.getShallow("bottom", t),
|
|
48
|
+
width: e.getShallow("width", t),
|
|
49
|
+
height: e.getShallow("height", t)
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function g(e, t) {
|
|
53
|
+
var n = b(e, t, { enableLayoutOnlyByCenter: !0 }), i = e.getBoxLayoutParams(), a, s;
|
|
54
|
+
if (n.type === y.point) s = n.refPoint, a = v(i, {
|
|
55
|
+
width: t.getWidth(),
|
|
56
|
+
height: t.getHeight()
|
|
57
|
+
});
|
|
58
|
+
else {
|
|
59
|
+
var c = e.get("center"), l = r(c) ? c : [c, c];
|
|
60
|
+
a = v(i, n.refContainer), s = n.boxCoordFrom === 2 ? n.refPoint : [o(l[0], a.width) + a.x, o(l[1], a.height) + a.y];
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
viewRect: a,
|
|
64
|
+
center: s
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function _(e, t) {
|
|
68
|
+
var n = g(e, t), i = n.viewRect, a = n.center, s = e.get("radius");
|
|
69
|
+
r(s) || (s = [0, s]);
|
|
70
|
+
var c = o(i.width, t.getWidth()), l = o(i.height, t.getHeight()), u = Math.min(c, l), d = o(s[0], u / 2), f = o(s[1], u / 2);
|
|
71
|
+
return {
|
|
72
|
+
cx: a[0],
|
|
73
|
+
cy: a[1],
|
|
74
|
+
r0: d,
|
|
75
|
+
r: f,
|
|
76
|
+
viewRect: i
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function v(e, t, n) {
|
|
80
|
+
n = c(n || 0);
|
|
81
|
+
var r = t.width, i = t.height, a = o(e.left, r), l = o(e.top, i), u = o(e.right, r), d = o(e.bottom, i), f = o(e.width, r), p = o(e.height, i), m = n[2] + n[0], h = n[1] + n[3], g = e.aspect;
|
|
82
|
+
switch (isNaN(f) && (f = r - u - h - a), isNaN(p) && (p = i - d - m - l), g != null && (isNaN(f) && isNaN(p) && (g > r / i ? f = r * .8 : p = i * .8), isNaN(f) && (f = g * p), isNaN(p) && (p = f / g)), isNaN(a) && (a = r - u - f - h), isNaN(l) && (l = i - d - p - m), e.left || e.right) {
|
|
83
|
+
case "center":
|
|
84
|
+
a = r / 2 - f / 2 - n[3];
|
|
85
|
+
break;
|
|
86
|
+
case "right":
|
|
87
|
+
a = r - f - h;
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
switch (e.top || e.bottom) {
|
|
91
|
+
case "middle":
|
|
92
|
+
case "center":
|
|
93
|
+
l = i / 2 - p / 2 - n[0];
|
|
94
|
+
break;
|
|
95
|
+
case "bottom":
|
|
96
|
+
l = i - p - m;
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
a ||= 0, l ||= 0, isNaN(f) && (f = r - h - a - (u || 0)), isNaN(p) && (p = i - m - l - (d || 0));
|
|
100
|
+
var _ = new s((t.x || 0) + a + n[3], (t.y || 0) + l + n[0], f, p);
|
|
101
|
+
return _.margin = n, _;
|
|
102
|
+
}
|
|
103
|
+
var y = {
|
|
104
|
+
rect: 1,
|
|
105
|
+
point: 2
|
|
106
|
+
};
|
|
107
|
+
function b(e, t, n) {
|
|
108
|
+
var r, i, o, s = e.boxCoordinateSystem, c;
|
|
109
|
+
if (s) {
|
|
110
|
+
var u = l(e), d = u.coord, f = u.from;
|
|
111
|
+
if (s.dataToLayout) {
|
|
112
|
+
o = y.rect, c = f;
|
|
113
|
+
var p = s.dataToLayout(d);
|
|
114
|
+
r = p.contentRect || p.rect;
|
|
115
|
+
} else n && n.enableLayoutOnlyByCenter && s.dataToPoint ? (o = y.point, c = f, i = s.dataToPoint(d)) : process.env.NODE_ENV !== "production" && a(e.type + "[" + e.componentIndex + "]" + (" layout based on " + s.type + " is not supported."));
|
|
116
|
+
}
|
|
117
|
+
return o ??= y.rect, o === y.rect && (r ||= {
|
|
118
|
+
x: 0,
|
|
119
|
+
y: 0,
|
|
120
|
+
width: t.getWidth(),
|
|
121
|
+
height: t.getHeight()
|
|
122
|
+
}, i = [r.x + r.width / 2, r.y + r.height / 2]), {
|
|
123
|
+
type: o,
|
|
124
|
+
refContainer: r,
|
|
125
|
+
refPoint: i,
|
|
126
|
+
boxCoordFrom: c
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
function x(e) {
|
|
130
|
+
var t = e.layoutMode || e.constructor.layoutMode;
|
|
131
|
+
return i(t) ? t : t ? { type: t } : null;
|
|
132
|
+
}
|
|
133
|
+
function S(e, t, i) {
|
|
134
|
+
var a = i && i.ignoreSize;
|
|
135
|
+
!r(a) && (a = [a, a]);
|
|
136
|
+
var o = c(f[0], 0), s = c(f[1], 1);
|
|
137
|
+
d(f[0], e, o), d(f[1], e, s);
|
|
138
|
+
function c(r, i) {
|
|
139
|
+
var o = {}, s = 0, c = {}, d = 0, f = 2;
|
|
140
|
+
if (u(r, function(t) {
|
|
141
|
+
c[t] = e[t];
|
|
142
|
+
}), u(r, function(e) {
|
|
143
|
+
n(t, e) && (o[e] = c[e] = t[e]), l(o, e) && s++, l(c, e) && d++;
|
|
144
|
+
}), a[i]) return l(t, r[1]) ? c[r[2]] = null : l(t, r[2]) && (c[r[1]] = null), c;
|
|
145
|
+
if (d === f || !s) return c;
|
|
146
|
+
if (s >= f) return o;
|
|
147
|
+
for (var p = 0; p < r.length; p++) {
|
|
148
|
+
var m = r[p];
|
|
149
|
+
if (!n(o, m) && n(e, m)) {
|
|
150
|
+
o[m] = e[m];
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return o;
|
|
155
|
+
}
|
|
156
|
+
function l(e, t) {
|
|
157
|
+
return e[t] != null && e[t] !== "auto";
|
|
158
|
+
}
|
|
159
|
+
function d(e, t, n) {
|
|
160
|
+
u(e, function(e) {
|
|
161
|
+
t[e] = n[e];
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
function C(e) {
|
|
166
|
+
return w({}, e);
|
|
167
|
+
}
|
|
168
|
+
function w(e, t) {
|
|
169
|
+
return t && e && u(d, function(r) {
|
|
170
|
+
n(t, r) && (e[r] = t[r]);
|
|
171
|
+
}), e;
|
|
172
|
+
}
|
|
173
|
+
//#endregion
|
|
174
|
+
export { m as box, b as createBoxLayoutReference, x as fetchLayoutMode, h as getBoxLayoutParams, _ as getCircleLayout, C as getLayoutParams, v as getLayoutRect, S as mergeLayoutParam };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { eqNaN as e, isFunction as t, isRegExp as n, isString as r, map as i } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
//#region node_modules/echarts/lib/util/log.js
|
|
3
|
+
var a = "[ECharts] ", o = {}, s = typeof console < "u" && console.warn && console.log;
|
|
4
|
+
function c(e, t, n) {
|
|
5
|
+
if (s) {
|
|
6
|
+
if (n) {
|
|
7
|
+
if (o[t]) return;
|
|
8
|
+
o[t] = !0;
|
|
9
|
+
}
|
|
10
|
+
console[e](a + t);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
function l(e, t) {
|
|
14
|
+
c("log", e, t);
|
|
15
|
+
}
|
|
16
|
+
function u(e, t) {
|
|
17
|
+
c("warn", e, t);
|
|
18
|
+
}
|
|
19
|
+
function d(e, t) {
|
|
20
|
+
c("error", e, t);
|
|
21
|
+
}
|
|
22
|
+
function f(e) {
|
|
23
|
+
process.env.NODE_ENV !== "production" && c("warn", "DEPRECATED: " + e, !0);
|
|
24
|
+
}
|
|
25
|
+
function p(e, t, n) {
|
|
26
|
+
process.env.NODE_ENV !== "production" && f((n ? "[" + n + "]" : "") + (e + " is deprecated; use " + t + " instead."));
|
|
27
|
+
}
|
|
28
|
+
function m() {
|
|
29
|
+
var a = [...arguments], o = "";
|
|
30
|
+
if (process.env.NODE_ENV !== "production") {
|
|
31
|
+
var s = function(r) {
|
|
32
|
+
return r === void 0 ? "undefined" : r === Infinity ? "Infinity" : r === -Infinity ? "-Infinity" : e(r) ? "NaN" : r instanceof Date ? "Date(" + r.toISOString() + ")" : t(r) ? "function () { ... }" : n(r) ? r + "" : null;
|
|
33
|
+
};
|
|
34
|
+
o = i(a, function(e) {
|
|
35
|
+
if (r(e)) return e;
|
|
36
|
+
var t = s(e);
|
|
37
|
+
if (t != null) return t;
|
|
38
|
+
if (typeof JSON < "u" && JSON.stringify) try {
|
|
39
|
+
return JSON.stringify(e, function(e, t) {
|
|
40
|
+
return s(t) ?? t;
|
|
41
|
+
});
|
|
42
|
+
} catch {
|
|
43
|
+
return "?";
|
|
44
|
+
}
|
|
45
|
+
else return "?";
|
|
46
|
+
}).join(" ");
|
|
47
|
+
}
|
|
48
|
+
return o;
|
|
49
|
+
}
|
|
50
|
+
function h(e) {
|
|
51
|
+
throw Error(e);
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { f as deprecateLog, p as deprecateReplaceLog, d as error, l as log, m as makePrintable, h as throwError, u as warn };
|