minerva-design 1.5.0 → 1.6.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/CHANGELOG.md +6 -0
- package/custom-elements.json +122 -5
- package/dist/angular/fesm2022/minerva-angular.mjs +55 -0
- package/dist/angular/fesm2022/minerva-angular.mjs.map +1 -1
- package/dist/angular/types/minerva-angular.d.ts +23 -2
- package/dist/charts/canvas.d.cts +2 -1
- package/dist/charts/canvas.d.ts +2 -1
- package/dist/charts/core.d.cts +1 -1
- package/dist/charts/core.d.ts +1 -1
- package/dist/charts/engine/canvas.cjs +1 -1
- package/dist/charts/engine/canvas.cjs.map +1 -1
- package/dist/charts/engine/canvas.js +2 -1
- package/dist/charts/engine/canvas.js.map +1 -1
- package/dist/charts/engine/chart.cjs +1 -1
- package/dist/charts/engine/chart.cjs.map +1 -1
- package/dist/charts/engine/chart.js +144 -143
- package/dist/charts/engine/chart.js.map +1 -1
- package/dist/charts/engine/controller.cjs +2 -2
- package/dist/charts/engine/controller.cjs.map +1 -1
- package/dist/charts/engine/controller.d.cts +3 -1
- package/dist/charts/engine/controller.d.ts +3 -1
- package/dist/charts/engine/controller.js +130 -132
- package/dist/charts/engine/controller.js.map +1 -1
- package/dist/charts/engine/defaults.cjs.map +1 -1
- package/dist/charts/engine/defaults.d.cts +4 -4
- package/dist/charts/engine/defaults.d.ts +4 -4
- package/dist/charts/engine/defaults.js.map +1 -1
- package/dist/charts/engine/graph/chart.cjs +1 -1
- package/dist/charts/engine/graph/chart.cjs.map +1 -1
- package/dist/charts/engine/graph/chart.js +740 -597
- package/dist/charts/engine/graph/chart.js.map +1 -1
- package/dist/charts/engine/graph/dag.cjs +1 -1
- package/dist/charts/engine/graph/dag.cjs.map +1 -1
- package/dist/charts/engine/graph/dag.js +191 -166
- package/dist/charts/engine/graph/dag.js.map +1 -1
- package/dist/charts/engine/graph/force.cjs +1 -1
- package/dist/charts/engine/graph/force.cjs.map +1 -1
- package/dist/charts/engine/graph/force.d.cts +9 -0
- package/dist/charts/engine/graph/force.d.ts +9 -0
- package/dist/charts/engine/graph/force.js +279 -181
- package/dist/charts/engine/graph/force.js.map +1 -1
- package/dist/charts/engine/graph/geometry.cjs +1 -1
- package/dist/charts/engine/graph/geometry.cjs.map +1 -1
- package/dist/charts/engine/graph/geometry.d.cts +14 -1
- package/dist/charts/engine/graph/geometry.d.ts +14 -1
- package/dist/charts/engine/graph/geometry.js +77 -24
- package/dist/charts/engine/graph/geometry.js.map +1 -1
- package/dist/charts/engine/graph/model.cjs +1 -1
- package/dist/charts/engine/graph/model.cjs.map +1 -1
- package/dist/charts/engine/graph/model.d.cts +9 -0
- package/dist/charts/engine/graph/model.d.ts +9 -0
- package/dist/charts/engine/graph/model.js +63 -43
- package/dist/charts/engine/graph/model.js.map +1 -1
- package/dist/charts/engine/graph/types.d.cts +14 -0
- package/dist/charts/engine/graph/types.d.ts +14 -0
- package/dist/charts/engine/graph/worker.cjs +12 -6
- package/dist/charts/engine/graph/worker.cjs.map +1 -1
- package/dist/charts/engine/graph/worker.js +12 -6
- package/dist/charts/engine/graph/worker.js.map +1 -1
- package/dist/charts/engine/labels.cjs.map +1 -1
- package/dist/charts/engine/labels.d.cts +17 -0
- package/dist/charts/engine/labels.d.ts +17 -0
- package/dist/charts/engine/labels.js.map +1 -1
- package/dist/charts/engine/model.cjs +1 -1
- package/dist/charts/engine/model.cjs.map +1 -1
- package/dist/charts/engine/model.d.cts +33 -0
- package/dist/charts/engine/model.d.ts +33 -0
- package/dist/charts/engine/model.js +149 -126
- package/dist/charts/engine/model.js.map +1 -1
- package/dist/charts/engine/orderbook/field.cjs +37 -0
- package/dist/charts/engine/orderbook/field.cjs.map +1 -0
- package/dist/charts/engine/orderbook/field.d.cts +92 -0
- package/dist/charts/engine/orderbook/field.d.ts +92 -0
- package/dist/charts/engine/orderbook/field.js +297 -0
- package/dist/charts/engine/orderbook/field.js.map +1 -0
- package/dist/charts/engine/orderbook/heatmap.cjs +1 -1
- package/dist/charts/engine/orderbook/heatmap.cjs.map +1 -1
- package/dist/charts/engine/orderbook/heatmap.js +413 -441
- package/dist/charts/engine/orderbook/heatmap.js.map +1 -1
- package/dist/charts/engine/orderbook/host.cjs +1 -1
- package/dist/charts/engine/orderbook/host.cjs.map +1 -1
- package/dist/charts/engine/orderbook/host.d.cts +8 -1
- package/dist/charts/engine/orderbook/host.d.ts +8 -1
- package/dist/charts/engine/orderbook/host.js +27 -5
- package/dist/charts/engine/orderbook/host.js.map +1 -1
- package/dist/charts/engine/orderbook/ladder.cjs +1 -1
- package/dist/charts/engine/orderbook/ladder.cjs.map +1 -1
- package/dist/charts/engine/orderbook/ladder.js +1 -1
- package/dist/charts/engine/orderbook/ladder.js.map +1 -1
- package/dist/charts/engine/orderbook/layout.cjs +1 -1
- package/dist/charts/engine/orderbook/layout.cjs.map +1 -1
- package/dist/charts/engine/orderbook/layout.d.cts +5 -0
- package/dist/charts/engine/orderbook/layout.d.ts +5 -0
- package/dist/charts/engine/orderbook/layout.js +8 -2
- package/dist/charts/engine/orderbook/layout.js.map +1 -1
- package/dist/charts/engine/orderbook/tape.cjs +1 -1
- package/dist/charts/engine/orderbook/tape.cjs.map +1 -1
- package/dist/charts/engine/orderbook/tape.js +3 -3
- package/dist/charts/engine/orderbook/tape.js.map +1 -1
- package/dist/charts/engine/orderbook/types.d.cts +12 -4
- package/dist/charts/engine/orderbook/types.d.ts +12 -4
- package/dist/charts/engine/overlay.cjs +1 -1
- package/dist/charts/engine/overlay.cjs.map +1 -1
- package/dist/charts/engine/overlay.d.cts +17 -0
- package/dist/charts/engine/overlay.d.ts +17 -0
- package/dist/charts/engine/overlay.js +29 -13
- package/dist/charts/engine/overlay.js.map +1 -1
- package/dist/charts/engine/presets.cjs +1 -1
- package/dist/charts/engine/presets.cjs.map +1 -1
- package/dist/charts/engine/presets.d.cts +12 -2
- package/dist/charts/engine/presets.d.ts +12 -2
- package/dist/charts/engine/presets.js +8 -2
- package/dist/charts/engine/presets.js.map +1 -1
- package/dist/charts/engine/renderers/canvas2d.cjs +1 -1
- package/dist/charts/engine/renderers/canvas2d.cjs.map +1 -1
- package/dist/charts/engine/renderers/canvas2d.js +13 -9
- package/dist/charts/engine/renderers/canvas2d.js.map +1 -1
- package/dist/charts/engine/renderers/follow.cjs +2 -0
- package/dist/charts/engine/renderers/follow.cjs.map +1 -0
- package/dist/charts/engine/renderers/follow.d.cts +8 -0
- package/dist/charts/engine/renderers/follow.d.ts +8 -0
- package/dist/charts/engine/renderers/follow.js +10 -0
- package/dist/charts/engine/renderers/follow.js.map +1 -0
- package/dist/charts/engine/renderers/gl-budget.cjs +2 -0
- package/dist/charts/engine/renderers/gl-budget.cjs.map +1 -0
- package/dist/charts/engine/renderers/gl-budget.d.cts +32 -0
- package/dist/charts/engine/renderers/gl-budget.d.ts +32 -0
- package/dist/charts/engine/renderers/gl-budget.js +95 -0
- package/dist/charts/engine/renderers/gl-budget.js.map +1 -0
- package/dist/charts/engine/renderers/gl.cjs +1 -1
- package/dist/charts/engine/renderers/gl.cjs.map +1 -1
- package/dist/charts/engine/renderers/gl.js +1 -1
- package/dist/charts/engine/renderers/gl.js.map +1 -1
- package/dist/charts/engine/renderers/shaders.cjs +9 -6
- package/dist/charts/engine/renderers/shaders.cjs.map +1 -1
- package/dist/charts/engine/renderers/shaders.d.cts +1 -1
- package/dist/charts/engine/renderers/shaders.d.ts +1 -1
- package/dist/charts/engine/renderers/shaders.js +9 -6
- package/dist/charts/engine/renderers/shaders.js.map +1 -1
- package/dist/charts/engine/renderers/types.cjs.map +1 -1
- package/dist/charts/engine/renderers/types.d.cts +2 -0
- package/dist/charts/engine/renderers/types.d.ts +2 -0
- package/dist/charts/engine/renderers/types.js.map +1 -1
- package/dist/charts/engine/renderers/webgl.cjs +1 -1
- package/dist/charts/engine/renderers/webgl.cjs.map +1 -1
- package/dist/charts/engine/renderers/webgl.js +85 -64
- package/dist/charts/engine/renderers/webgl.js.map +1 -1
- package/dist/charts/engine/renderers/webgl2.cjs +1 -1
- package/dist/charts/engine/renderers/webgl2.cjs.map +1 -1
- package/dist/charts/engine/renderers/webgl2.js +72 -58
- package/dist/charts/engine/renderers/webgl2.js.map +1 -1
- package/dist/charts/engine/renderers/webgpu.cjs +1 -1
- package/dist/charts/engine/renderers/webgpu.cjs.map +1 -1
- package/dist/charts/engine/renderers/webgpu.js +1 -1
- package/dist/charts/engine/renderers/webgpu.js.map +1 -1
- package/dist/charts/engine/scene.cjs +1 -1
- package/dist/charts/engine/scene.cjs.map +1 -1
- package/dist/charts/engine/scene.d.cts +51 -4
- package/dist/charts/engine/scene.d.ts +51 -4
- package/dist/charts/engine/scene.js +188 -122
- package/dist/charts/engine/scene.js.map +1 -1
- package/dist/charts/engine/shapes/chord.cjs +1 -1
- package/dist/charts/engine/shapes/chord.cjs.map +1 -1
- package/dist/charts/engine/shapes/chord.js +108 -103
- package/dist/charts/engine/shapes/chord.js.map +1 -1
- package/dist/charts/engine/shapes/types.d.cts +5 -3
- package/dist/charts/engine/shapes/types.d.ts +5 -3
- package/dist/charts/engine/three-d/canvas2d.cjs +1 -1
- package/dist/charts/engine/three-d/canvas2d.cjs.map +1 -1
- package/dist/charts/engine/three-d/canvas2d.d.cts +36 -1
- package/dist/charts/engine/three-d/canvas2d.d.ts +36 -1
- package/dist/charts/engine/three-d/canvas2d.js +155 -80
- package/dist/charts/engine/three-d/canvas2d.js.map +1 -1
- package/dist/charts/engine/three-d/chart.cjs +1 -1
- package/dist/charts/engine/three-d/chart.cjs.map +1 -1
- package/dist/charts/engine/three-d/chart.js +219 -215
- package/dist/charts/engine/three-d/chart.js.map +1 -1
- package/dist/charts/engine/three-d/oit.cjs +109 -0
- package/dist/charts/engine/three-d/oit.cjs.map +1 -0
- package/dist/charts/engine/three-d/oit.d.cts +34 -0
- package/dist/charts/engine/three-d/oit.d.ts +34 -0
- package/dist/charts/engine/three-d/oit.js +111 -0
- package/dist/charts/engine/three-d/oit.js.map +1 -0
- package/dist/charts/engine/three-d/render-types.cjs +1 -1
- package/dist/charts/engine/three-d/render-types.cjs.map +1 -1
- package/dist/charts/engine/three-d/render-types.d.cts +16 -3
- package/dist/charts/engine/three-d/render-types.d.ts +16 -3
- package/dist/charts/engine/three-d/render-types.js +6 -9
- package/dist/charts/engine/three-d/render-types.js.map +1 -1
- package/dist/charts/engine/three-d/shaders.cjs +52 -26
- package/dist/charts/engine/three-d/shaders.cjs.map +1 -1
- package/dist/charts/engine/three-d/shaders.d.cts +11 -3
- package/dist/charts/engine/three-d/shaders.d.ts +11 -3
- package/dist/charts/engine/three-d/shaders.js +84 -40
- package/dist/charts/engine/three-d/shaders.js.map +1 -1
- package/dist/charts/engine/three-d/sort.cjs +1 -1
- package/dist/charts/engine/three-d/sort.cjs.map +1 -1
- package/dist/charts/engine/three-d/sort.d.cts +6 -4
- package/dist/charts/engine/three-d/sort.d.ts +6 -4
- package/dist/charts/engine/three-d/sort.js +51 -39
- package/dist/charts/engine/three-d/sort.js.map +1 -1
- package/dist/charts/engine/three-d/types.d.cts +9 -0
- package/dist/charts/engine/three-d/types.d.ts +9 -0
- package/dist/charts/engine/three-d/webgl.cjs +1 -1
- package/dist/charts/engine/three-d/webgl.cjs.map +1 -1
- package/dist/charts/engine/three-d/webgl.d.cts +9 -0
- package/dist/charts/engine/three-d/webgl.d.ts +9 -0
- package/dist/charts/engine/three-d/webgl.js +199 -76
- package/dist/charts/engine/three-d/webgl.js.map +1 -1
- package/dist/charts/engine/three-d/webgpu.cjs +1 -1
- package/dist/charts/engine/three-d/webgpu.cjs.map +1 -1
- package/dist/charts/engine/three-d/webgpu.js +225 -99
- package/dist/charts/engine/three-d/webgpu.js.map +1 -1
- package/dist/charts/engine/trading/chart.cjs +1 -1
- package/dist/charts/engine/trading/chart.cjs.map +1 -1
- package/dist/charts/engine/trading/chart.d.cts +0 -1
- package/dist/charts/engine/trading/chart.d.ts +0 -1
- package/dist/charts/engine/trading/chart.js +1048 -883
- package/dist/charts/engine/trading/chart.js.map +1 -1
- package/dist/charts/engine/trading/drawings.cjs +2 -2
- package/dist/charts/engine/trading/drawings.cjs.map +1 -1
- package/dist/charts/engine/trading/drawings.d.cts +6 -0
- package/dist/charts/engine/trading/drawings.d.ts +6 -0
- package/dist/charts/engine/trading/drawings.js +100 -88
- package/dist/charts/engine/trading/drawings.js.map +1 -1
- package/dist/charts/engine/trading/format.cjs +1 -1
- package/dist/charts/engine/trading/format.cjs.map +1 -1
- package/dist/charts/engine/trading/format.d.cts +6 -0
- package/dist/charts/engine/trading/format.d.ts +6 -0
- package/dist/charts/engine/trading/format.js +42 -30
- package/dist/charts/engine/trading/format.js.map +1 -1
- package/dist/charts/engine/trading/geometry.cjs +1 -1
- package/dist/charts/engine/trading/geometry.cjs.map +1 -1
- package/dist/charts/engine/trading/geometry.d.cts +16 -0
- package/dist/charts/engine/trading/geometry.d.ts +16 -0
- package/dist/charts/engine/trading/geometry.js +19 -4
- package/dist/charts/engine/trading/geometry.js.map +1 -1
- package/dist/charts/engine/trading/labels.cjs +1 -1
- package/dist/charts/engine/trading/labels.cjs.map +1 -1
- package/dist/charts/engine/trading/labels.js +24 -4
- package/dist/charts/engine/trading/labels.js.map +1 -1
- package/dist/charts/engine/trading/studies.cjs +1 -1
- package/dist/charts/engine/trading/studies.cjs.map +1 -1
- package/dist/charts/engine/trading/studies.d.cts +8 -0
- package/dist/charts/engine/trading/studies.d.ts +8 -0
- package/dist/charts/engine/trading/studies.js +4 -1
- package/dist/charts/engine/trading/studies.js.map +1 -1
- package/dist/charts/engine/trading/types.d.cts +34 -11
- package/dist/charts/engine/trading/types.d.ts +34 -11
- package/dist/charts/engine/types.d.cts +25 -4
- package/dist/charts/engine/types.d.ts +25 -4
- package/dist/charts/react/charts.cjs +1 -1
- package/dist/charts/react/charts.cjs.map +1 -1
- package/dist/charts/react/charts.js +20 -15
- package/dist/charts/react/charts.js.map +1 -1
- package/dist/charts/react/graph.cjs +1 -1
- package/dist/charts/react/graph.cjs.map +1 -1
- package/dist/charts/react/graph.d.cts +6 -0
- package/dist/charts/react/graph.d.ts +6 -0
- package/dist/charts/react/graph.js +28 -27
- package/dist/charts/react/graph.js.map +1 -1
- package/dist/charts/react/orderbook.cjs +1 -1
- package/dist/charts/react/orderbook.cjs.map +1 -1
- package/dist/charts/react/orderbook.d.cts +3 -1
- package/dist/charts/react/orderbook.d.ts +3 -1
- package/dist/charts/react/orderbook.js +1 -0
- package/dist/charts/react/orderbook.js.map +1 -1
- package/dist/charts/react/shapes.cjs.map +1 -1
- package/dist/charts/react/shapes.d.cts +4 -3
- package/dist/charts/react/shapes.d.ts +4 -3
- package/dist/charts/react/shapes.js.map +1 -1
- package/dist/charts/react/three-d.cjs +1 -1
- package/dist/charts/react/three-d.cjs.map +1 -1
- package/dist/charts/react/three-d.d.cts +7 -0
- package/dist/charts/react/three-d.d.ts +7 -0
- package/dist/charts/react/three-d.js +14 -13
- package/dist/charts/react/three-d.js.map +1 -1
- package/dist/charts/react/trading.cjs.map +1 -1
- package/dist/charts/react/trading.d.cts +3 -3
- package/dist/charts/react/trading.d.ts +3 -3
- package/dist/charts/react/trading.js.map +1 -1
- package/dist/core/contracts.cjs +1 -1
- package/dist/core/contracts.cjs.map +1 -1
- package/dist/core/contracts.js +1 -1
- package/dist/core/contracts.js.map +1 -1
- package/dist/native/charts/src/canvas.cjs +1 -1
- package/dist/native/charts/src/canvas.js +4 -3
- package/dist/native/charts/src/engine/controller.cjs +2 -2
- package/dist/native/charts/src/engine/controller.cjs.map +1 -1
- package/dist/native/charts/src/engine/controller.js +102 -104
- package/dist/native/charts/src/engine/controller.js.map +1 -1
- package/dist/native/charts/src/engine/labels.cjs +1 -1
- package/dist/native/charts/src/engine/labels.cjs.map +1 -1
- package/dist/native/charts/src/engine/labels.js +14 -1
- package/dist/native/charts/src/engine/labels.js.map +1 -1
- package/dist/native/charts/src/engine/model.cjs +1 -1
- package/dist/native/charts/src/engine/model.cjs.map +1 -1
- package/dist/native/charts/src/engine/model.js +180 -157
- package/dist/native/charts/src/engine/model.js.map +1 -1
- package/dist/native/charts/src/engine/overlay.cjs.map +1 -1
- package/dist/native/charts/src/engine/overlay.js.map +1 -1
- package/dist/native/charts/src/engine/presets.cjs +1 -1
- package/dist/native/charts/src/engine/presets.cjs.map +1 -1
- package/dist/native/charts/src/engine/presets.js +8 -2
- package/dist/native/charts/src/engine/presets.js.map +1 -1
- package/dist/native/charts/src/engine/scene.cjs +1 -1
- package/dist/native/charts/src/engine/scene.cjs.map +1 -1
- package/dist/native/charts/src/engine/scene.js +188 -122
- package/dist/native/charts/src/engine/scene.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/chord.cjs +1 -1
- package/dist/native/charts/src/engine/shapes/chord.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/chord.js +108 -103
- package/dist/native/charts/src/engine/shapes/chord.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/layout.cjs +2 -2
- package/dist/native/charts/src/engine/shapes/layout.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/layout.js +88 -73
- package/dist/native/charts/src/engine/shapes/layout.js.map +1 -1
- package/dist/native/components/Chart/ChartBase.cjs +1 -1
- package/dist/native/components/Chart/ChartBase.cjs.map +1 -1
- package/dist/native/components/Chart/ChartBase.js +127 -115
- package/dist/native/components/Chart/ChartBase.js.map +1 -1
- package/dist/native/components/Chart/charts.cjs +1 -1
- package/dist/native/components/Chart/charts.cjs.map +1 -1
- package/dist/native/components/Chart/charts.js +8 -5
- package/dist/native/components/Chart/charts.js.map +1 -1
- package/dist/native/components/Chart/scene.cjs +1 -1
- package/dist/native/components/Chart/scene.cjs.map +1 -1
- package/dist/native/components/Chart/scene.d.cts +6 -1
- package/dist/native/components/Chart/scene.d.ts +6 -1
- package/dist/native/components/Chart/scene.js +99 -50
- package/dist/native/components/Chart/scene.js.map +1 -1
- package/dist/native/components/Chart/types.d.cts +7 -1
- package/dist/native/components/Chart/types.d.ts +7 -1
- package/dist/native/components/Charts/charts.cjs +1 -1
- package/dist/native/components/Charts/charts.cjs.map +1 -1
- package/dist/native/components/Charts/charts.js +23 -18
- package/dist/native/components/Charts/charts.js.map +1 -1
- package/dist/native/components/ShapeChart/ShapeChartBase.cjs +1 -1
- package/dist/native/components/ShapeChart/ShapeChartBase.cjs.map +1 -1
- package/dist/native/components/ShapeChart/ShapeChartBase.d.cts +1 -1
- package/dist/native/components/ShapeChart/ShapeChartBase.d.ts +1 -1
- package/dist/native/components/ShapeChart/ShapeChartBase.js +97 -107
- package/dist/native/components/ShapeChart/ShapeChartBase.js.map +1 -1
- package/dist/native/components/ShapeChart/geometry.cjs +1 -1
- package/dist/native/components/ShapeChart/geometry.cjs.map +1 -1
- package/dist/native/components/ShapeChart/geometry.js +120 -36
- package/dist/native/components/ShapeChart/geometry.js.map +1 -1
- package/dist/native/components/ShapeChart/types.d.cts +6 -4
- package/dist/native/components/ShapeChart/types.d.ts +6 -4
- package/dist/native/source/components/Chart/ChartBase.tsx +19 -6
- package/dist/native/source/components/Chart/charts.tsx +10 -3
- package/dist/native/source/components/Chart/scene.tsx +85 -0
- package/dist/native/source/components/Chart/types.ts +7 -0
- package/dist/native/source/components/Charts/charts.tsx +7 -0
- package/dist/native/source/components/ShapeChart/ShapeChartBase.tsx +10 -36
- package/dist/native/source/components/ShapeChart/geometry.ts +188 -18
- package/dist/native/source/components/ShapeChart/types.ts +6 -4
- package/dist/taro/chart-a11y.d.ts +7 -0
- package/dist/taro/charts.d.ts +4 -1
- package/dist/taro/index.js +3212 -3049
- package/dist/taro/shape-charts.d.ts +6 -4
- package/dist/uni/AreaChart.vue +2 -1
- package/dist/uni/AreaChart.vue.d.ts +1 -1
- package/dist/uni/BarChart.vue +2 -1
- package/dist/uni/BarChart.vue.d.ts +1 -1
- package/dist/uni/BoxPlotChart.vue +2 -1
- package/dist/uni/BubbleChart.vue +2 -1
- package/dist/uni/CandlestickChart.vue +2 -1
- package/dist/uni/Chart.vue +2 -1
- package/dist/uni/Divider.vue.d.ts +1 -1
- package/dist/uni/DonutChart.vue.d.ts +1 -1
- package/dist/uni/GanttChart.vue +2 -1
- package/dist/uni/GanttChart.vue.d.ts +11 -0
- package/dist/uni/GaugeChart.vue.d.ts +1 -1
- package/dist/uni/HeatmapChart.vue +2 -1
- package/dist/uni/HistogramChart.vue +2 -1
- package/dist/uni/HorizontalBarChart.vue +2 -1
- package/dist/uni/HorizontalBarChart.vue.d.ts +1 -1
- package/dist/uni/LineChart.vue +2 -1
- package/dist/uni/MixedChart.vue +2 -1
- package/dist/uni/PieChart.vue.d.ts +1 -1
- package/dist/uni/QuadrantChart.vue +2 -1
- package/dist/uni/RangeAreaChart.vue +2 -1
- package/dist/uni/ScatterChart.vue +2 -1
- package/dist/uni/Sparkline.vue +2 -1
- package/dist/uni/WaterfallChart.vue +2 -1
- package/dist/uni/chart-a11y.d.ts +7 -0
- package/dist/uni/chart-a11y.js +29 -0
- package/dist/uni/chart-canvas.d.ts +9 -0
- package/dist/uni/chart-canvas.js +11 -1
- package/dist/uni/chart-types.d.ts +8 -1
- package/dist/uni/chart-types.js +5 -1
- package/dist/uni/charts-canvas.js +2 -1
- package/dist/uni/named-chart-options.d.ts +2 -0
- package/dist/uni/named-chart-options.js +3 -0
- package/dist/uni/shape-chart-canvas.d.ts +0 -2
- package/dist/uni/shape-chart-canvas.js +4 -36
- package/dist/uni/shape-chart-types.d.ts +2 -2
- package/dist/uni/shape-chart-types.js +2 -2
- package/dist/vue/components/Chart/Bar3DChart.vue.d.ts +2 -0
- package/dist/vue/components/Chart/DependencyGraph.vue.d.ts +2 -0
- package/dist/vue/components/Chart/GanttChart.vue.d.ts +15 -0
- package/dist/vue/components/Chart/GanttChart.vue.js.map +1 -1
- package/dist/vue/components/Chart/GanttChart.vue_vue_type_script_setup_true_lang.js +8 -0
- package/dist/vue/components/Chart/GanttChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/vue/components/Chart/GraphChart.vue.d.ts +2 -0
- package/dist/vue/components/Chart/Line3DChart.vue.d.ts +2 -0
- package/dist/vue/components/Chart/Scatter3DChart.vue.d.ts +2 -0
- package/dist/vue/components/Chart/Surface3DChart.vue.d.ts +2 -0
- package/dist/vue/components/Chart/TradingChart.vue.d.ts +9 -0
- package/dist/vue/components/Chart/TreeChart.vue.d.ts +2 -0
- package/dist/vue/components/Chart/graph.d.ts +3 -0
- package/dist/vue/components/Chart/graph.js +2 -0
- package/dist/vue/components/Chart/graph.js.map +1 -1
- package/dist/vue/components/Chart/three-d.d.ts +3 -0
- package/dist/vue/components/Chart/three-d.js +2 -0
- package/dist/vue/components/Chart/three-d.js.map +1 -1
- package/dist/vue/components/Chart/trading.d.ts +7 -2
- package/dist/vue/components/Chart/trading.js +1 -0
- package/dist/vue/components/Chart/trading.js.map +1 -1
- package/dist/weapp/area-chart/index.wxml +1 -1
- package/dist/weapp/bar-chart/index.wxml +1 -1
- package/dist/weapp/box-plot-chart/index.wxml +1 -1
- package/dist/weapp/bubble-chart/index.wxml +1 -1
- package/dist/weapp/candlestick-chart/index.wxml +1 -1
- package/dist/weapp/chart/index.wxml +1 -1
- package/dist/weapp/charts/canvas.js +326 -54
- package/dist/weapp/charts/core.js +2 -0
- package/dist/weapp/controls.js +58 -27
- package/dist/weapp/gantt-chart/index.wxml +1 -1
- package/dist/weapp/heatmap-chart/index.wxml +1 -1
- package/dist/weapp/histogram-chart/index.wxml +1 -1
- package/dist/weapp/horizontal-bar-chart/index.wxml +1 -1
- package/dist/weapp/line-chart/index.wxml +1 -1
- package/dist/weapp/mixed-chart/index.wxml +1 -1
- package/dist/weapp/quadrant-chart/index.wxml +1 -1
- package/dist/weapp/range-area-chart/index.wxml +1 -1
- package/dist/weapp/scatter-chart/index.wxml +1 -1
- package/dist/weapp/sparkline/index.wxml +1 -1
- package/dist/weapp/types.d.ts +11 -2
- package/dist/weapp/waterfall-chart/index.wxml +1 -1
- package/dist/web-components/components/chart/extended.d.ts +4 -0
- package/dist/web-components/components/chart/extended.js +8 -2
- package/dist/web-components/components/chart/extended.js.map +1 -1
- package/dist/web-components/components/chart-3d/chart-3d.d.ts +1 -1
- package/dist/web-components/components/chart-3d/chart-3d.js.map +1 -1
- package/dist/web-components/components/graph/graph.d.ts +2 -0
- package/dist/web-components/components/graph/graph.js +3 -2
- package/dist/web-components/components/graph/graph.js.map +1 -1
- package/dist/web-components/components/trading-chart/trading-chart.d.ts +1 -1
- package/dist/web-components/components/trading-chart/trading-chart.js.map +1 -1
- package/dist/web-components/html-custom-data.json +45 -0
- package/dist/web-components/types/react.d.ts +4 -4
- package/dist/web-components/types/solid.d.ts +8 -8
- package/dist/web-components/types/svelte.d.ts +8 -8
- package/dist/web-components/types/vue.d.ts +4 -4
- package/package.json +1 -1
|
@@ -84,7 +84,7 @@ export interface ShapeChartCommonProps extends ShapeChartFrameProps {
|
|
|
84
84
|
padding?: ChartPadding;
|
|
85
85
|
/**
|
|
86
86
|
* Accessible name of the chart
|
|
87
|
-
* @default the chart type, e.g. "Donut chart"
|
|
87
|
+
* @default the chart type in its locale, e.g. "Donut chart" (a gauge: "Gauge: {label}")
|
|
88
88
|
*/
|
|
89
89
|
ariaLabel?: string;
|
|
90
90
|
/**
|
|
@@ -514,9 +514,11 @@ export interface ChordChartProps extends ShapeChartCommonProps {
|
|
|
514
514
|
/** Flows as a list (by group name or index); takes precedence over `matrix` */
|
|
515
515
|
links?: readonly ChordLink[];
|
|
516
516
|
/**
|
|
517
|
-
* `false`: one ribbon per pair of groups,
|
|
518
|
-
*
|
|
519
|
-
*
|
|
517
|
+
* `false`: one ribbon per pair of groups, as wide as the flows between
|
|
518
|
+
* them in both directions (a symmetric matrix counts each relation once),
|
|
519
|
+
* arcs sized by the ribbons of the group. `true`: one ribbon per
|
|
520
|
+
* direction (same width at both ends), arcs sized by the outgoing plus
|
|
521
|
+
* the incoming flows; flows from a group to itself are ignored.
|
|
520
522
|
* @default false
|
|
521
523
|
*/
|
|
522
524
|
directed?: boolean;
|
package/dist/uni/AreaChart.vue
CHANGED
|
@@ -30,6 +30,7 @@ const {
|
|
|
30
30
|
id,
|
|
31
31
|
root,
|
|
32
32
|
rootStyle,
|
|
33
|
+
ariaLabel,
|
|
33
34
|
handle,
|
|
34
35
|
onTouchStart,
|
|
35
36
|
onTouchMove,
|
|
@@ -58,7 +59,7 @@ defineExpose(handle);
|
|
|
58
59
|
:hidpi="false"
|
|
59
60
|
:disable-scroll="scrollLocked"
|
|
60
61
|
role="img"
|
|
61
|
-
:aria-label="
|
|
62
|
+
:aria-label="ariaLabel"
|
|
62
63
|
style="display: block; width: 100%; height: 100%"
|
|
63
64
|
@touchstart="onTouchStart"
|
|
64
65
|
@touchmove="onTouchMove"
|
|
@@ -115,9 +115,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
115
115
|
height: string | number;
|
|
116
116
|
percent: boolean;
|
|
117
117
|
tooltip: boolean | import("./charts-canvas.js").ChartTooltipOptions;
|
|
118
|
-
stacked: boolean;
|
|
119
118
|
crosshair: boolean;
|
|
120
119
|
interaction: boolean | import("./charts-canvas.js").ChartInteractionOptions;
|
|
120
|
+
stacked: boolean;
|
|
121
121
|
disableScroll: boolean;
|
|
122
122
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
123
123
|
declare const _default: typeof __VLS_export;
|
package/dist/uni/BarChart.vue
CHANGED
|
@@ -33,6 +33,7 @@ const {
|
|
|
33
33
|
id,
|
|
34
34
|
root,
|
|
35
35
|
rootStyle,
|
|
36
|
+
ariaLabel,
|
|
36
37
|
handle,
|
|
37
38
|
onTouchStart,
|
|
38
39
|
onTouchMove,
|
|
@@ -65,7 +66,7 @@ defineExpose(handle);
|
|
|
65
66
|
:hidpi="false"
|
|
66
67
|
:disable-scroll="scrollLocked"
|
|
67
68
|
role="img"
|
|
68
|
-
:aria-label="
|
|
69
|
+
:aria-label="ariaLabel"
|
|
69
70
|
style="display: block; width: 100%; height: 100%"
|
|
70
71
|
@touchstart="onTouchStart"
|
|
71
72
|
@touchmove="onTouchMove"
|
|
@@ -106,9 +106,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
106
106
|
width: string | number;
|
|
107
107
|
height: string | number;
|
|
108
108
|
tooltip: boolean | import("./charts-canvas.js").ChartTooltipOptions;
|
|
109
|
-
stacked: boolean;
|
|
110
109
|
crosshair: boolean;
|
|
111
110
|
interaction: boolean | import("./charts-canvas.js").ChartInteractionOptions;
|
|
111
|
+
stacked: boolean;
|
|
112
112
|
disableScroll: boolean;
|
|
113
113
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
114
114
|
declare const _default: typeof __VLS_export;
|
|
@@ -28,6 +28,7 @@ const {
|
|
|
28
28
|
id,
|
|
29
29
|
root,
|
|
30
30
|
rootStyle,
|
|
31
|
+
ariaLabel,
|
|
31
32
|
handle,
|
|
32
33
|
onTouchStart,
|
|
33
34
|
onTouchMove,
|
|
@@ -56,7 +57,7 @@ defineExpose(handle);
|
|
|
56
57
|
:hidpi="false"
|
|
57
58
|
:disable-scroll="scrollLocked"
|
|
58
59
|
role="img"
|
|
59
|
-
:aria-label="
|
|
60
|
+
:aria-label="ariaLabel"
|
|
60
61
|
style="display: block; width: 100%; height: 100%"
|
|
61
62
|
@touchstart="onTouchStart"
|
|
62
63
|
@touchmove="onTouchMove"
|
package/dist/uni/BubbleChart.vue
CHANGED
|
@@ -30,6 +30,7 @@ const {
|
|
|
30
30
|
id,
|
|
31
31
|
root,
|
|
32
32
|
rootStyle,
|
|
33
|
+
ariaLabel,
|
|
33
34
|
handle,
|
|
34
35
|
onTouchStart,
|
|
35
36
|
onTouchMove,
|
|
@@ -58,7 +59,7 @@ defineExpose(handle);
|
|
|
58
59
|
:hidpi="false"
|
|
59
60
|
:disable-scroll="scrollLocked"
|
|
60
61
|
role="img"
|
|
61
|
-
:aria-label="
|
|
62
|
+
:aria-label="ariaLabel"
|
|
62
63
|
style="display: block; width: 100%; height: 100%"
|
|
63
64
|
@touchstart="onTouchStart"
|
|
64
65
|
@touchmove="onTouchMove"
|
|
@@ -28,6 +28,7 @@ const {
|
|
|
28
28
|
id,
|
|
29
29
|
root,
|
|
30
30
|
rootStyle,
|
|
31
|
+
ariaLabel,
|
|
31
32
|
handle,
|
|
32
33
|
onTouchStart,
|
|
33
34
|
onTouchMove,
|
|
@@ -56,7 +57,7 @@ defineExpose(handle);
|
|
|
56
57
|
:hidpi="false"
|
|
57
58
|
:disable-scroll="scrollLocked"
|
|
58
59
|
role="img"
|
|
59
|
-
:aria-label="
|
|
60
|
+
:aria-label="ariaLabel"
|
|
60
61
|
style="display: block; width: 100%; height: 100%"
|
|
61
62
|
@touchstart="onTouchStart"
|
|
62
63
|
@touchmove="onTouchMove"
|
package/dist/uni/Chart.vue
CHANGED
|
@@ -30,6 +30,7 @@ const {
|
|
|
30
30
|
id,
|
|
31
31
|
root,
|
|
32
32
|
rootStyle,
|
|
33
|
+
ariaLabel,
|
|
33
34
|
handle,
|
|
34
35
|
onTouchStart,
|
|
35
36
|
onTouchMove,
|
|
@@ -58,7 +59,7 @@ defineExpose(handle);
|
|
|
58
59
|
:hidpi="false"
|
|
59
60
|
:disable-scroll="scrollLocked"
|
|
60
61
|
role="img"
|
|
61
|
-
:aria-label="
|
|
62
|
+
:aria-label="ariaLabel"
|
|
62
63
|
style="display: block; width: 100%; height: 100%"
|
|
63
64
|
@touchstart="onTouchStart"
|
|
64
65
|
@touchmove="onTouchMove"
|
|
@@ -16,8 +16,8 @@ type __VLS_Slots = {} & {
|
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
18
|
variant: "solid" | "dashed" | "dotted";
|
|
19
|
-
textAlign: "center" | "right" | "left";
|
|
20
19
|
thickness: number;
|
|
20
|
+
textAlign: "center" | "right" | "left";
|
|
21
21
|
spacing: number;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -110,9 +110,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
110
110
|
legend: boolean | import("./charts-canvas.js").ShapeLegendOptions;
|
|
111
111
|
width: string | number;
|
|
112
112
|
height: string | number;
|
|
113
|
+
rose: boolean;
|
|
113
114
|
tooltip: boolean | import("./charts-canvas.js").ShapeTooltipOptions;
|
|
114
115
|
disableScroll: boolean;
|
|
115
|
-
rose: boolean;
|
|
116
116
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
117
117
|
declare const _default: typeof __VLS_export;
|
|
118
118
|
export default _default;
|
package/dist/uni/GanttChart.vue
CHANGED
|
@@ -29,6 +29,7 @@ const {
|
|
|
29
29
|
id,
|
|
30
30
|
root,
|
|
31
31
|
rootStyle,
|
|
32
|
+
ariaLabel,
|
|
32
33
|
handle,
|
|
33
34
|
onTouchStart,
|
|
34
35
|
onTouchMove,
|
|
@@ -57,7 +58,7 @@ defineExpose(handle);
|
|
|
57
58
|
:hidpi="false"
|
|
58
59
|
:disable-scroll="scrollLocked"
|
|
59
60
|
role="img"
|
|
60
|
-
:aria-label="
|
|
61
|
+
:aria-label="ariaLabel"
|
|
61
62
|
style="display: block; width: 100%; height: 100%"
|
|
62
63
|
@touchstart="onTouchStart"
|
|
63
64
|
@touchmove="onTouchMove"
|
|
@@ -10,6 +10,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
10
10
|
milestoneName: StringConstructor;
|
|
11
11
|
formatProgress: import("vue").PropType<(share: number) => string>;
|
|
12
12
|
dependenciesName: StringConstructor;
|
|
13
|
+
dependencyArrows: {
|
|
14
|
+
readonly type: BooleanConstructor;
|
|
15
|
+
readonly default: undefined;
|
|
16
|
+
};
|
|
17
|
+
dependencyColor: StringConstructor;
|
|
13
18
|
locale: StringConstructor;
|
|
14
19
|
today: {
|
|
15
20
|
readonly type: import("vue").PropType<boolean | number | Date>;
|
|
@@ -67,6 +72,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
67
72
|
milestoneName: StringConstructor;
|
|
68
73
|
formatProgress: import("vue").PropType<(share: number) => string>;
|
|
69
74
|
dependenciesName: StringConstructor;
|
|
75
|
+
dependencyArrows: {
|
|
76
|
+
readonly type: BooleanConstructor;
|
|
77
|
+
readonly default: undefined;
|
|
78
|
+
};
|
|
79
|
+
dependencyColor: StringConstructor;
|
|
70
80
|
locale: StringConstructor;
|
|
71
81
|
today: {
|
|
72
82
|
readonly type: import("vue").PropType<boolean | number | Date>;
|
|
@@ -120,6 +130,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
120
130
|
tooltip: boolean | import("./charts-canvas.js").ChartTooltipOptions;
|
|
121
131
|
crosshair: boolean;
|
|
122
132
|
interaction: boolean | import("./charts-canvas.js").ChartInteractionOptions;
|
|
133
|
+
dependencyArrows: boolean;
|
|
123
134
|
disableScroll: boolean;
|
|
124
135
|
today: number | boolean | Date;
|
|
125
136
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -120,8 +120,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
120
120
|
height: string | number;
|
|
121
121
|
tooltip: boolean | import("./charts-canvas.js").ShapeTooltipOptions;
|
|
122
122
|
disableScroll: boolean;
|
|
123
|
-
ticks: boolean;
|
|
124
123
|
needle: boolean;
|
|
124
|
+
ticks: boolean;
|
|
125
125
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
126
126
|
declare const _default: typeof __VLS_export;
|
|
127
127
|
export default _default;
|
|
@@ -28,6 +28,7 @@ const {
|
|
|
28
28
|
id,
|
|
29
29
|
root,
|
|
30
30
|
rootStyle,
|
|
31
|
+
ariaLabel,
|
|
31
32
|
handle,
|
|
32
33
|
onTouchStart,
|
|
33
34
|
onTouchMove,
|
|
@@ -56,7 +57,7 @@ defineExpose(handle);
|
|
|
56
57
|
:hidpi="false"
|
|
57
58
|
:disable-scroll="scrollLocked"
|
|
58
59
|
role="img"
|
|
59
|
-
:aria-label="
|
|
60
|
+
:aria-label="ariaLabel"
|
|
60
61
|
style="display: block; width: 100%; height: 100%"
|
|
61
62
|
@touchstart="onTouchStart"
|
|
62
63
|
@touchmove="onTouchMove"
|
|
@@ -28,6 +28,7 @@ const {
|
|
|
28
28
|
id,
|
|
29
29
|
root,
|
|
30
30
|
rootStyle,
|
|
31
|
+
ariaLabel,
|
|
31
32
|
handle,
|
|
32
33
|
onTouchStart,
|
|
33
34
|
onTouchMove,
|
|
@@ -56,7 +57,7 @@ defineExpose(handle);
|
|
|
56
57
|
:hidpi="false"
|
|
57
58
|
:disable-scroll="scrollLocked"
|
|
58
59
|
role="img"
|
|
59
|
-
:aria-label="
|
|
60
|
+
:aria-label="ariaLabel"
|
|
60
61
|
style="display: block; width: 100%; height: 100%"
|
|
61
62
|
@touchstart="onTouchStart"
|
|
62
63
|
@touchmove="onTouchMove"
|
|
@@ -30,6 +30,7 @@ const {
|
|
|
30
30
|
id,
|
|
31
31
|
root,
|
|
32
32
|
rootStyle,
|
|
33
|
+
ariaLabel,
|
|
33
34
|
handle,
|
|
34
35
|
onTouchStart,
|
|
35
36
|
onTouchMove,
|
|
@@ -58,7 +59,7 @@ defineExpose(handle);
|
|
|
58
59
|
:hidpi="false"
|
|
59
60
|
:disable-scroll="scrollLocked"
|
|
60
61
|
role="img"
|
|
61
|
-
:aria-label="
|
|
62
|
+
:aria-label="ariaLabel"
|
|
62
63
|
style="display: block; width: 100%; height: 100%"
|
|
63
64
|
@touchstart="onTouchStart"
|
|
64
65
|
@touchmove="onTouchMove"
|
|
@@ -120,9 +120,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
120
120
|
labels: boolean;
|
|
121
121
|
percent: boolean;
|
|
122
122
|
tooltip: boolean | import("./charts-canvas.js").ChartTooltipOptions;
|
|
123
|
-
stacked: boolean;
|
|
124
123
|
crosshair: boolean;
|
|
125
124
|
interaction: boolean | import("./charts-canvas.js").ChartInteractionOptions;
|
|
125
|
+
stacked: boolean;
|
|
126
126
|
disableScroll: boolean;
|
|
127
127
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
128
128
|
declare const _default: typeof __VLS_export;
|
package/dist/uni/LineChart.vue
CHANGED
|
@@ -33,6 +33,7 @@ const {
|
|
|
33
33
|
id,
|
|
34
34
|
root,
|
|
35
35
|
rootStyle,
|
|
36
|
+
ariaLabel,
|
|
36
37
|
handle,
|
|
37
38
|
onTouchStart,
|
|
38
39
|
onTouchMove,
|
|
@@ -65,7 +66,7 @@ defineExpose(handle);
|
|
|
65
66
|
:hidpi="false"
|
|
66
67
|
:disable-scroll="scrollLocked"
|
|
67
68
|
role="img"
|
|
68
|
-
:aria-label="
|
|
69
|
+
:aria-label="ariaLabel"
|
|
69
70
|
style="display: block; width: 100%; height: 100%"
|
|
70
71
|
@touchstart="onTouchStart"
|
|
71
72
|
@touchmove="onTouchMove"
|
package/dist/uni/MixedChart.vue
CHANGED
|
@@ -30,6 +30,7 @@ const {
|
|
|
30
30
|
id,
|
|
31
31
|
root,
|
|
32
32
|
rootStyle,
|
|
33
|
+
ariaLabel,
|
|
33
34
|
handle,
|
|
34
35
|
onTouchStart,
|
|
35
36
|
onTouchMove,
|
|
@@ -58,7 +59,7 @@ defineExpose(handle);
|
|
|
58
59
|
:hidpi="false"
|
|
59
60
|
:disable-scroll="scrollLocked"
|
|
60
61
|
role="img"
|
|
61
|
-
:aria-label="
|
|
62
|
+
:aria-label="ariaLabel"
|
|
62
63
|
style="display: block; width: 100%; height: 100%"
|
|
63
64
|
@touchstart="onTouchStart"
|
|
64
65
|
@touchmove="onTouchMove"
|
|
@@ -110,9 +110,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
110
110
|
legend: boolean | import("./charts-canvas.js").ShapeLegendOptions;
|
|
111
111
|
width: string | number;
|
|
112
112
|
height: string | number;
|
|
113
|
+
rose: boolean;
|
|
113
114
|
tooltip: boolean | import("./charts-canvas.js").ShapeTooltipOptions;
|
|
114
115
|
disableScroll: boolean;
|
|
115
|
-
rose: boolean;
|
|
116
116
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
117
117
|
declare const _default: typeof __VLS_export;
|
|
118
118
|
export default _default;
|
|
@@ -45,6 +45,7 @@ const {
|
|
|
45
45
|
root,
|
|
46
46
|
plot,
|
|
47
47
|
rootStyle,
|
|
48
|
+
ariaLabel,
|
|
48
49
|
handle,
|
|
49
50
|
onTouchStart,
|
|
50
51
|
onTouchMove,
|
|
@@ -151,7 +152,7 @@ defineExpose(handle);
|
|
|
151
152
|
:hidpi="false"
|
|
152
153
|
:disable-scroll="scrollLocked"
|
|
153
154
|
role="img"
|
|
154
|
-
:aria-label="
|
|
155
|
+
:aria-label="ariaLabel"
|
|
155
156
|
style="display: block; width: 100%; height: 100%"
|
|
156
157
|
@touchstart="onTouchStart"
|
|
157
158
|
@touchmove="onTouchMove"
|
|
@@ -30,6 +30,7 @@ const {
|
|
|
30
30
|
id,
|
|
31
31
|
root,
|
|
32
32
|
rootStyle,
|
|
33
|
+
ariaLabel,
|
|
33
34
|
handle,
|
|
34
35
|
onTouchStart,
|
|
35
36
|
onTouchMove,
|
|
@@ -58,7 +59,7 @@ defineExpose(handle);
|
|
|
58
59
|
:hidpi="false"
|
|
59
60
|
:disable-scroll="scrollLocked"
|
|
60
61
|
role="img"
|
|
61
|
-
:aria-label="
|
|
62
|
+
:aria-label="ariaLabel"
|
|
62
63
|
style="display: block; width: 100%; height: 100%"
|
|
63
64
|
@touchstart="onTouchStart"
|
|
64
65
|
@touchmove="onTouchMove"
|
|
@@ -31,6 +31,7 @@ const {
|
|
|
31
31
|
id,
|
|
32
32
|
root,
|
|
33
33
|
rootStyle,
|
|
34
|
+
ariaLabel,
|
|
34
35
|
handle,
|
|
35
36
|
onTouchStart,
|
|
36
37
|
onTouchMove,
|
|
@@ -59,7 +60,7 @@ defineExpose(handle);
|
|
|
59
60
|
:hidpi="false"
|
|
60
61
|
:disable-scroll="scrollLocked"
|
|
61
62
|
role="img"
|
|
62
|
-
:aria-label="
|
|
63
|
+
:aria-label="ariaLabel"
|
|
63
64
|
style="display: block; width: 100%; height: 100%"
|
|
64
65
|
@touchstart="onTouchStart"
|
|
65
66
|
@touchmove="onTouchMove"
|
package/dist/uni/Sparkline.vue
CHANGED
|
@@ -20,6 +20,7 @@ const {
|
|
|
20
20
|
id,
|
|
21
21
|
root,
|
|
22
22
|
rootStyle,
|
|
23
|
+
ariaLabel,
|
|
23
24
|
handle,
|
|
24
25
|
onTouchStart,
|
|
25
26
|
onTouchMove,
|
|
@@ -48,7 +49,7 @@ defineExpose(handle);
|
|
|
48
49
|
:hidpi="false"
|
|
49
50
|
:disable-scroll="scrollLocked"
|
|
50
51
|
role="img"
|
|
51
|
-
:aria-label="
|
|
52
|
+
:aria-label="ariaLabel"
|
|
52
53
|
style="display: block; width: 100%; height: 100%"
|
|
53
54
|
@touchstart="onTouchStart"
|
|
54
55
|
@touchmove="onTouchMove"
|
|
@@ -28,6 +28,7 @@ const {
|
|
|
28
28
|
id,
|
|
29
29
|
root,
|
|
30
30
|
rootStyle,
|
|
31
|
+
ariaLabel,
|
|
31
32
|
handle,
|
|
32
33
|
onTouchStart,
|
|
33
34
|
onTouchMove,
|
|
@@ -56,7 +57,7 @@ defineExpose(handle);
|
|
|
56
57
|
:hidpi="false"
|
|
57
58
|
:disable-scroll="scrollLocked"
|
|
58
59
|
role="img"
|
|
59
|
-
:aria-label="
|
|
60
|
+
:aria-label="ariaLabel"
|
|
60
61
|
style="display: block; width: 100%; height: 100%"
|
|
61
62
|
@touchstart="onTouchStart"
|
|
62
63
|
@touchmove="onTouchMove"
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ChartOptions, type ShapeChartOptions } from "./charts-canvas.js";
|
|
2
|
+
/** Language of the page or the system, when the runtime has one (H5) */
|
|
3
|
+
export declare const systemLocale: () => string | undefined;
|
|
4
|
+
/** Default accessible name of a cartesian chart: its series */
|
|
5
|
+
export declare const describeCartesianChart: (o: ChartOptions) => string;
|
|
6
|
+
/** Default accessible name of a shape chart: its type, in its locale ("Pie chart", "弦图") */
|
|
7
|
+
export declare const describeShapeChart: (o: ShapeChartOptions) => string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Accessible names of the charts, in their locale ("Chart: A, B", "饼图")
|
|
2
|
+
import { describeChart, describeShapeChart as describeShapeType, } from "./charts-canvas.js";
|
|
3
|
+
/** Language of the page or the system, when the runtime has one (H5) */
|
|
4
|
+
export const systemLocale = () => {
|
|
5
|
+
const g = globalThis;
|
|
6
|
+
return g.document?.documentElement?.lang || g.navigator?.language;
|
|
7
|
+
};
|
|
8
|
+
/** Names of the entries of a list (strings or `{ name }`), unnamed ones skipped */
|
|
9
|
+
const namesOf = (list) => {
|
|
10
|
+
const out = [];
|
|
11
|
+
for (const entry of list) {
|
|
12
|
+
const name = typeof entry === "string"
|
|
13
|
+
? entry
|
|
14
|
+
: entry?.name;
|
|
15
|
+
if (typeof name === "string" && name)
|
|
16
|
+
out.push({ name });
|
|
17
|
+
}
|
|
18
|
+
return out;
|
|
19
|
+
};
|
|
20
|
+
/** Default accessible name of a cartesian chart: its series */
|
|
21
|
+
export const describeCartesianChart = (o) => o.ariaLabel ??
|
|
22
|
+
describeChart({
|
|
23
|
+
locale: o.locale ?? systemLocale(),
|
|
24
|
+
series: namesOf(o.series),
|
|
25
|
+
labels: o.labels,
|
|
26
|
+
});
|
|
27
|
+
/** Default accessible name of a shape chart: its type, in its locale ("Pie chart", "弦图") */
|
|
28
|
+
export const describeShapeChart = (o) => o.ariaLabel ??
|
|
29
|
+
describeShapeType({ ...o, locale: o.locale ?? systemLocale() });
|
|
@@ -7,6 +7,7 @@ interface ChartConfiguration {
|
|
|
7
7
|
theme?: unknown;
|
|
8
8
|
palette?: Palette | null;
|
|
9
9
|
design?: DesignOptions;
|
|
10
|
+
locale?: string;
|
|
10
11
|
}
|
|
11
12
|
/** Minerva token values (`--name` keys) of the provider configuration */
|
|
12
13
|
export declare function chartThemeVariables(config?: ChartConfiguration | null): Readonly<Record<string, string>>;
|
|
@@ -39,6 +40,13 @@ export interface ChartOptionProps {
|
|
|
39
40
|
}
|
|
40
41
|
/** Engine options of the props (like `engineOptions` of the web charts) */
|
|
41
42
|
export declare function chartEngineOptions(props: ChartOptionProps, series: readonly ChartSeries[]): ChartOptions;
|
|
43
|
+
/**
|
|
44
|
+
* Options with the provider's language when they have no locale (mini-programs
|
|
45
|
+
* have no `<html lang>`)
|
|
46
|
+
*/
|
|
47
|
+
export declare function withProviderLocale<T extends {
|
|
48
|
+
locale?: string;
|
|
49
|
+
}>(options: T, locale: string | undefined): T;
|
|
42
50
|
export interface CanvasChartFrame {
|
|
43
51
|
width?: number | string;
|
|
44
52
|
height?: number | string;
|
|
@@ -62,6 +70,7 @@ export declare function useCanvasChart(frame: () => CanvasChartFrame, options: (
|
|
|
62
70
|
root: import("vue").Ref<unknown, unknown>;
|
|
63
71
|
plot: import("vue").ShallowRef<ChartRect | null, ChartRect | null>;
|
|
64
72
|
rootStyle: ComputedRef<string>;
|
|
73
|
+
ariaLabel: ComputedRef<string>;
|
|
65
74
|
handle: ChartHandle;
|
|
66
75
|
onTouchStart: (event: TouchEventLike) => void;
|
|
67
76
|
onTouchMove: (event: TouchEventLike) => void;
|
package/dist/uni/chart-canvas.js
CHANGED
|
@@ -7,6 +7,7 @@ import { computed, getCurrentInstance, inject, nextTick, onBeforeUnmount, onMoun
|
|
|
7
7
|
import { githubDark, resolveTokens, } from "../core/index.js";
|
|
8
8
|
import { createCanvasChart, } from "./charts-canvas.js";
|
|
9
9
|
import { useNativeId } from "./native-id.js";
|
|
10
|
+
import { describeCartesianChart } from "./chart-a11y.js";
|
|
10
11
|
const themeCache = new Map();
|
|
11
12
|
/** Minerva token values (`--name` keys) of the provider configuration */
|
|
12
13
|
export function chartThemeVariables(config) {
|
|
@@ -90,6 +91,13 @@ export function chartEngineOptions(props, series) {
|
|
|
90
91
|
: undefined,
|
|
91
92
|
};
|
|
92
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* Options with the provider's language when they have no locale (mini-programs
|
|
96
|
+
* have no `<html lang>`)
|
|
97
|
+
*/
|
|
98
|
+
export function withProviderLocale(options, locale) {
|
|
99
|
+
return options.locale || !locale ? options : { ...options, locale };
|
|
100
|
+
}
|
|
93
101
|
const cssSize = (value) => typeof value === "number" ? `${value}px` : value;
|
|
94
102
|
function pixelRatio() {
|
|
95
103
|
try {
|
|
@@ -118,7 +126,8 @@ export function useCanvasChart(frame, options, listeners) {
|
|
|
118
126
|
const plot = shallowRef(null);
|
|
119
127
|
const config = inject("minerva:config", null);
|
|
120
128
|
const variables = computed(() => chartThemeVariables(config?.value));
|
|
121
|
-
const engineOptions = computed(options);
|
|
129
|
+
const engineOptions = computed(() => withProviderLocale(options(), config?.value?.locale));
|
|
130
|
+
const ariaLabel = computed(() => describeCartesianChart(engineOptions.value));
|
|
122
131
|
const rootStyle = computed(() => [
|
|
123
132
|
"position: relative",
|
|
124
133
|
`width: ${cssSize(frame().width) ?? "100%"}`,
|
|
@@ -358,6 +367,7 @@ export function useCanvasChart(frame, options, listeners) {
|
|
|
358
367
|
root,
|
|
359
368
|
plot,
|
|
360
369
|
rootStyle,
|
|
370
|
+
ariaLabel,
|
|
361
371
|
handle,
|
|
362
372
|
onTouchStart,
|
|
363
373
|
onTouchMove,
|
|
@@ -62,7 +62,7 @@ export declare const chartCommonProps: {
|
|
|
62
62
|
padding: PropType<ChartPadding>;
|
|
63
63
|
/** Series colors (defaults to the theme colors) */
|
|
64
64
|
palette: PropType<readonly string[]>;
|
|
65
|
-
/** Accessible name of the chart */
|
|
65
|
+
/** Accessible name of the chart (default: the series names in the chart's locale, e.g. "Chart: Revenue, Costs") */
|
|
66
66
|
ariaLabel: StringConstructor;
|
|
67
67
|
/**
|
|
68
68
|
* Locale of the texts and numbers the chart writes (tooltip rows, compact
|
|
@@ -342,6 +342,13 @@ export declare const ganttChartProps: {
|
|
|
342
342
|
readonly formatProgress: PropType<(share: number) => string>;
|
|
343
343
|
/** Name of the tooltip row listing the dependencies of a task (default "Depends on") */
|
|
344
344
|
readonly dependenciesName: StringConstructor;
|
|
345
|
+
/** Draws the dependencies as elbow arrows from the end of every predecessor to the start of the task (default `true`) */
|
|
346
|
+
readonly dependencyArrows: {
|
|
347
|
+
readonly type: BooleanConstructor;
|
|
348
|
+
readonly default: undefined;
|
|
349
|
+
};
|
|
350
|
+
/** Color of the dependency arrows (any CSS color; default: the secondary text color) */
|
|
351
|
+
readonly dependencyColor: StringConstructor;
|
|
345
352
|
/** Locale of the default names and of the progress shares */
|
|
346
353
|
readonly locale: StringConstructor;
|
|
347
354
|
/** Draws a line at this date (`true`: now) */
|
package/dist/uni/chart-types.js
CHANGED
|
@@ -32,7 +32,7 @@ export const chartCommonProps = {
|
|
|
32
32
|
padding: Object,
|
|
33
33
|
/** Series colors (defaults to the theme colors) */
|
|
34
34
|
palette: Array,
|
|
35
|
-
/** Accessible name of the chart */
|
|
35
|
+
/** Accessible name of the chart (default: the series names in the chart's locale, e.g. "Chart: Revenue, Costs") */
|
|
36
36
|
ariaLabel: String,
|
|
37
37
|
/**
|
|
38
38
|
* Locale of the texts and numbers the chart writes (tooltip rows, compact
|
|
@@ -260,6 +260,10 @@ export const ganttChartProps = {
|
|
|
260
260
|
formatProgress: Function,
|
|
261
261
|
/** Name of the tooltip row listing the dependencies of a task (default "Depends on") */
|
|
262
262
|
dependenciesName: String,
|
|
263
|
+
/** Draws the dependencies as elbow arrows from the end of every predecessor to the start of the task (default `true`) */
|
|
264
|
+
dependencyArrows: { type: Boolean, default: undefined },
|
|
265
|
+
/** Color of the dependency arrows (any CSS color; default: the secondary text color) */
|
|
266
|
+
dependencyColor: String,
|
|
263
267
|
/** Locale of the default names and of the progress shares */
|
|
264
268
|
locale: String,
|
|
265
269
|
/** Draws a line at this date (`true`: now) */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export { createCanvasChart, drawScene, } from "../charts/engine/canvas.js";
|
|
5
5
|
export { createChartController, scenePrimitives, } from "../charts/engine/controller.js";
|
|
6
6
|
export { formatCompact, formatDuration, formatValue } from "../charts/engine/format.js";
|
|
7
|
-
export { chartAriaLabel } from "../charts/engine/labels.js";
|
|
7
|
+
export { chartAriaLabel, describeChart } from "../charts/engine/labels.js";
|
|
8
8
|
export { drawPrimitives } from "../charts/engine/canvas.js";
|
|
9
9
|
export { lineOf as annotationLine, rectOf as annotationRect, textBox as annotationTextBox, } from "../charts/engine/overlay.js";
|
|
10
10
|
export { toData, toScreen } from "../charts/engine/layout.js";
|
|
@@ -13,3 +13,4 @@ export { toCss } from "../charts/engine/color.js";
|
|
|
13
13
|
export { createCanvasShapeChart, } from "../charts/engine/shapes/canvas.js";
|
|
14
14
|
export { drawShapeScene } from "../charts/engine/shapes/draw.js";
|
|
15
15
|
export { calendarStrips } from "../charts/engine/shapes/calendar.js";
|
|
16
|
+
export { describeChart as describeShapeChart } from "../charts/engine/shapes/layout.js";
|
|
@@ -88,6 +88,8 @@ export declare function ganttChartOptions(props: ChartOptionProps & {
|
|
|
88
88
|
milestoneName?: string;
|
|
89
89
|
formatProgress?: (share: number) => string;
|
|
90
90
|
dependenciesName?: string;
|
|
91
|
+
dependencyArrows?: boolean;
|
|
92
|
+
dependencyColor?: string;
|
|
91
93
|
locale?: string;
|
|
92
94
|
today?: boolean | number | Date;
|
|
93
95
|
todayLabel?: string;
|
|
@@ -132,6 +132,8 @@ export function ganttChartOptions(props, mountedAt) {
|
|
|
132
132
|
milestoneName: props.milestoneName,
|
|
133
133
|
formatProgress: props.formatProgress,
|
|
134
134
|
dependenciesName: props.dependenciesName,
|
|
135
|
+
dependencyArrows: props.dependencyArrows,
|
|
136
|
+
dependencyColor: props.dependencyColor,
|
|
135
137
|
locale: props.locale,
|
|
136
138
|
});
|
|
137
139
|
const today = props.today ?? false;
|
|
@@ -158,6 +160,7 @@ export function ganttChartOptions(props, mountedAt) {
|
|
|
158
160
|
return {
|
|
159
161
|
...base,
|
|
160
162
|
...defined({ locale: props.locale }),
|
|
163
|
+
dependencies: gantt.dependencies,
|
|
161
164
|
orientation: "horizontal",
|
|
162
165
|
xAxis: { type: "category", categories: gantt.categories, ...base.xAxis },
|
|
163
166
|
yAxis: {
|
|
@@ -17,8 +17,6 @@ export interface ShapeOptionProps {
|
|
|
17
17
|
}
|
|
18
18
|
/** Engine options shared by every shape type, from the props */
|
|
19
19
|
export declare function shapeCommonOptions(props: ShapeOptionProps): ShapeChartCommonOptions;
|
|
20
|
-
/** Default accessible name of a chart (like the web charts) */
|
|
21
|
-
export declare function describeShapeChart(options: ShapeChartOptions): string;
|
|
22
20
|
/** Default height of a shape chart (like the web components): by type, or from the data */
|
|
23
21
|
export declare function shapeDefaultHeight(options: ShapeChartOptions): number;
|
|
24
22
|
export interface ShapeChartFrame {
|