minerva-design 1.4.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 +15 -0
- package/README.md +21 -21
- package/custom-elements.json +3072 -611
- package/dist/angular/fesm2022/minerva-angular.mjs +1491 -5
- package/dist/angular/fesm2022/minerva-angular.mjs.map +1 -1
- package/dist/angular/types/minerva-angular.d.ts +595 -5
- package/dist/charts/canvas.d.cts +4 -3
- package/dist/charts/canvas.d.ts +4 -3
- package/dist/charts/core.cjs +1 -1
- package/dist/charts/core.d.cts +6 -4
- package/dist/charts/core.d.ts +6 -4
- package/dist/charts/core.js +24 -16
- package/dist/charts/engine/axis.cjs +1 -1
- package/dist/charts/engine/axis.cjs.map +1 -1
- package/dist/charts/engine/axis.js +42 -19
- package/dist/charts/engine/axis.js.map +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 +155 -127
- 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 +370 -255
- package/dist/charts/engine/chart.js.map +1 -1
- package/dist/charts/engine/color.cjs +1 -1
- package/dist/charts/engine/color.cjs.map +1 -1
- package/dist/charts/engine/color.d.cts +18 -0
- package/dist/charts/engine/color.d.ts +18 -0
- package/dist/charts/engine/color.js +48 -2
- package/dist/charts/engine/color.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 +34 -1
- package/dist/charts/engine/controller.d.ts +34 -1
- package/dist/charts/engine/controller.js +318 -273
- package/dist/charts/engine/controller.js.map +1 -1
- package/dist/charts/engine/data.cjs +1 -1
- package/dist/charts/engine/data.cjs.map +1 -1
- package/dist/charts/engine/data.d.cts +3 -1
- package/dist/charts/engine/data.d.ts +3 -1
- package/dist/charts/engine/data.js +6 -4
- package/dist/charts/engine/data.js.map +1 -1
- package/dist/charts/engine/defaults.cjs +2 -0
- package/dist/charts/engine/defaults.cjs.map +1 -0
- package/dist/charts/engine/defaults.d.cts +20 -0
- package/dist/charts/engine/defaults.d.ts +20 -0
- package/dist/charts/engine/defaults.js +35 -0
- package/dist/charts/engine/defaults.js.map +1 -0
- package/dist/charts/engine/format.cjs +1 -1
- package/dist/charts/engine/format.cjs.map +1 -1
- package/dist/charts/engine/format.d.cts +6 -0
- package/dist/charts/engine/format.d.ts +6 -0
- package/dist/charts/engine/format.js +15 -2
- package/dist/charts/engine/format.js.map +1 -1
- package/dist/charts/engine/graph/chart.cjs +2 -0
- package/dist/charts/engine/graph/chart.cjs.map +1 -0
- package/dist/charts/engine/graph/chart.d.cts +3 -0
- package/dist/charts/engine/graph/chart.d.ts +3 -0
- package/dist/charts/engine/graph/chart.js +1708 -0
- package/dist/charts/engine/graph/chart.js.map +1 -0
- package/dist/charts/engine/graph/circular.cjs +2 -0
- package/dist/charts/engine/graph/circular.cjs.map +1 -0
- package/dist/charts/engine/graph/circular.d.cts +16 -0
- package/dist/charts/engine/graph/circular.d.ts +16 -0
- package/dist/charts/engine/graph/circular.js +62 -0
- package/dist/charts/engine/graph/circular.js.map +1 -0
- package/dist/charts/engine/graph/dag.cjs +2 -0
- package/dist/charts/engine/graph/dag.cjs.map +1 -0
- package/dist/charts/engine/graph/dag.d.cts +34 -0
- package/dist/charts/engine/graph/dag.d.ts +34 -0
- package/dist/charts/engine/graph/dag.js +339 -0
- package/dist/charts/engine/graph/dag.js.map +1 -0
- package/dist/charts/engine/graph/dom.cjs +2 -0
- package/dist/charts/engine/graph/dom.cjs.map +1 -0
- package/dist/charts/engine/graph/dom.d.cts +23 -0
- package/dist/charts/engine/graph/dom.d.ts +23 -0
- package/dist/charts/engine/graph/dom.js +158 -0
- package/dist/charts/engine/graph/dom.js.map +1 -0
- package/dist/charts/engine/graph/force.cjs +2 -0
- package/dist/charts/engine/graph/force.cjs.map +1 -0
- package/dist/charts/engine/graph/force.d.cts +76 -0
- package/dist/charts/engine/graph/force.d.ts +76 -0
- package/dist/charts/engine/graph/force.js +423 -0
- package/dist/charts/engine/graph/force.js.map +1 -0
- package/dist/charts/engine/graph/geometry.cjs +2 -0
- package/dist/charts/engine/graph/geometry.cjs.map +1 -0
- package/dist/charts/engine/graph/geometry.d.cts +50 -0
- package/dist/charts/engine/graph/geometry.d.ts +50 -0
- package/dist/charts/engine/graph/geometry.js +197 -0
- package/dist/charts/engine/graph/geometry.js.map +1 -0
- package/dist/charts/engine/graph/index.cjs +1 -0
- package/dist/charts/engine/graph/index.d.cts +6 -0
- package/dist/charts/engine/graph/index.d.ts +6 -0
- package/dist/charts/engine/graph/index.js +6 -0
- package/dist/charts/engine/graph/labels.cjs +2 -0
- package/dist/charts/engine/graph/labels.cjs.map +1 -0
- package/dist/charts/engine/graph/labels.d.cts +12 -0
- package/dist/charts/engine/graph/labels.d.ts +12 -0
- package/dist/charts/engine/graph/labels.js +128 -0
- package/dist/charts/engine/graph/labels.js.map +1 -0
- package/dist/charts/engine/graph/model.cjs +2 -0
- package/dist/charts/engine/graph/model.cjs.map +1 -0
- package/dist/charts/engine/graph/model.d.cts +52 -0
- package/dist/charts/engine/graph/model.d.ts +52 -0
- package/dist/charts/engine/graph/model.js +108 -0
- package/dist/charts/engine/graph/model.js.map +1 -0
- package/dist/charts/engine/graph/sizing.cjs +2 -0
- package/dist/charts/engine/graph/sizing.cjs.map +1 -0
- package/dist/charts/engine/graph/sizing.d.cts +33 -0
- package/dist/charts/engine/graph/sizing.d.ts +33 -0
- package/dist/charts/engine/graph/sizing.js +60 -0
- package/dist/charts/engine/graph/sizing.js.map +1 -0
- package/dist/charts/engine/graph/tree.cjs +2 -0
- package/dist/charts/engine/graph/tree.cjs.map +1 -0
- package/dist/charts/engine/graph/tree.d.cts +30 -0
- package/dist/charts/engine/graph/tree.d.ts +30 -0
- package/dist/charts/engine/graph/tree.js +218 -0
- package/dist/charts/engine/graph/tree.js.map +1 -0
- package/dist/charts/engine/graph/types.d.cts +640 -0
- package/dist/charts/engine/graph/types.d.ts +640 -0
- package/dist/charts/engine/graph/worker.cjs +52 -0
- package/dist/charts/engine/graph/worker.cjs.map +1 -0
- package/dist/charts/engine/graph/worker.d.cts +36 -0
- package/dist/charts/engine/graph/worker.d.ts +36 -0
- package/dist/charts/engine/graph/worker.js +135 -0
- package/dist/charts/engine/graph/worker.js.map +1 -0
- package/dist/charts/engine/items.cjs +1 -1
- package/dist/charts/engine/items.cjs.map +1 -1
- package/dist/charts/engine/items.d.cts +15 -2
- package/dist/charts/engine/items.d.ts +15 -2
- package/dist/charts/engine/items.js +131 -112
- package/dist/charts/engine/items.js.map +1 -1
- package/dist/charts/engine/labels.cjs +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 +28 -4
- package/dist/charts/engine/labels.js.map +1 -1
- package/dist/charts/engine/layout.cjs +1 -1
- package/dist/charts/engine/layout.cjs.map +1 -1
- package/dist/charts/engine/layout.d.cts +9 -0
- package/dist/charts/engine/layout.d.ts +9 -0
- package/dist/charts/engine/layout.js +11 -2
- package/dist/charts/engine/layout.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 +73 -3
- package/dist/charts/engine/model.d.ts +73 -3
- package/dist/charts/engine/model.js +258 -154
- 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/format.cjs +1 -1
- package/dist/charts/engine/orderbook/format.cjs.map +1 -1
- package/dist/charts/engine/orderbook/format.d.cts +3 -2
- package/dist/charts/engine/orderbook/format.d.ts +3 -2
- package/dist/charts/engine/orderbook/format.js +5 -5
- package/dist/charts/engine/orderbook/format.js.map +1 -1
- 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 +566 -475
- 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 +2 -0
- package/dist/charts/engine/orderbook/layout.cjs.map +1 -0
- package/dist/charts/engine/orderbook/layout.d.cts +42 -0
- package/dist/charts/engine/orderbook/layout.d.ts +42 -0
- package/dist/charts/engine/orderbook/layout.js +76 -0
- package/dist/charts/engine/orderbook/layout.js.map +1 -0
- 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 +4 -4
- package/dist/charts/engine/orderbook/tape.js.map +1 -1
- package/dist/charts/engine/orderbook/types.d.cts +27 -3
- package/dist/charts/engine/orderbook/types.d.ts +27 -3
- package/dist/charts/engine/overlay.cjs +1 -1
- package/dist/charts/engine/overlay.cjs.map +1 -1
- package/dist/charts/engine/overlay.d.cts +27 -0
- package/dist/charts/engine/overlay.d.ts +27 -0
- package/dist/charts/engine/overlay.js +34 -12
- package/dist/charts/engine/overlay.js.map +1 -1
- package/dist/charts/engine/presets.cjs +2 -2
- package/dist/charts/engine/presets.cjs.map +1 -1
- package/dist/charts/engine/presets.d.cts +35 -3
- package/dist/charts/engine/presets.d.ts +35 -3
- package/dist/charts/engine/presets.js +121 -101
- 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/detect.cjs +1 -1
- package/dist/charts/engine/renderers/detect.cjs.map +1 -1
- package/dist/charts/engine/renderers/detect.d.cts +2 -1
- package/dist/charts/engine/renderers/detect.d.ts +2 -1
- package/dist/charts/engine/renderers/detect.js +23 -21
- package/dist/charts/engine/renderers/detect.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 +104 -4
- package/dist/charts/engine/scene.d.ts +104 -4
- package/dist/charts/engine/scene.js +412 -193
- package/dist/charts/engine/scene.js.map +1 -1
- package/dist/charts/engine/shapes/bullet.cjs +1 -1
- package/dist/charts/engine/shapes/bullet.cjs.map +1 -1
- package/dist/charts/engine/shapes/bullet.js +110 -110
- package/dist/charts/engine/shapes/bullet.js.map +1 -1
- package/dist/charts/engine/shapes/chart.cjs +1 -1
- package/dist/charts/engine/shapes/chart.cjs.map +1 -1
- package/dist/charts/engine/shapes/chart.js +4 -1
- package/dist/charts/engine/shapes/chart.js.map +1 -1
- package/dist/charts/engine/shapes/chord.cjs +2 -0
- package/dist/charts/engine/shapes/chord.cjs.map +1 -0
- package/dist/charts/engine/shapes/chord.d.cts +18 -0
- package/dist/charts/engine/shapes/chord.d.ts +18 -0
- package/dist/charts/engine/shapes/chord.js +419 -0
- package/dist/charts/engine/shapes/chord.js.map +1 -0
- package/dist/charts/engine/shapes/draw.cjs +1 -1
- package/dist/charts/engine/shapes/draw.cjs.map +1 -1
- package/dist/charts/engine/shapes/draw.d.cts +5 -1
- package/dist/charts/engine/shapes/draw.d.ts +5 -1
- package/dist/charts/engine/shapes/draw.js +47 -17
- package/dist/charts/engine/shapes/draw.js.map +1 -1
- package/dist/charts/engine/shapes/hit.cjs +1 -1
- package/dist/charts/engine/shapes/hit.cjs.map +1 -1
- package/dist/charts/engine/shapes/hit.d.cts +3 -1
- package/dist/charts/engine/shapes/hit.d.ts +3 -1
- package/dist/charts/engine/shapes/hit.js +75 -46
- package/dist/charts/engine/shapes/hit.js.map +1 -1
- package/dist/charts/engine/shapes/index.d.cts +3 -2
- package/dist/charts/engine/shapes/index.d.ts +3 -2
- package/dist/charts/engine/shapes/labels.cjs +1 -1
- package/dist/charts/engine/shapes/labels.cjs.map +1 -1
- package/dist/charts/engine/shapes/labels.js +12 -4
- package/dist/charts/engine/shapes/labels.js.map +1 -1
- package/dist/charts/engine/shapes/layout.cjs +2 -2
- package/dist/charts/engine/shapes/layout.cjs.map +1 -1
- package/dist/charts/engine/shapes/layout.d.cts +3 -1
- package/dist/charts/engine/shapes/layout.d.ts +3 -1
- package/dist/charts/engine/shapes/layout.js +106 -78
- package/dist/charts/engine/shapes/layout.js.map +1 -1
- package/dist/charts/engine/shapes/scene.cjs +1 -1
- package/dist/charts/engine/shapes/scene.cjs.map +1 -1
- package/dist/charts/engine/shapes/scene.d.cts +33 -3
- package/dist/charts/engine/shapes/scene.d.ts +33 -3
- package/dist/charts/engine/shapes/scene.js +62 -19
- package/dist/charts/engine/shapes/scene.js.map +1 -1
- package/dist/charts/engine/shapes/types.d.cts +121 -8
- package/dist/charts/engine/shapes/types.d.ts +121 -8
- package/dist/charts/engine/signature.cjs +1 -1
- package/dist/charts/engine/signature.cjs.map +1 -1
- package/dist/charts/engine/signature.js +1 -1
- package/dist/charts/engine/signature.js.map +1 -1
- 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 +41 -3
- package/dist/charts/engine/three-d/canvas2d.d.ts +41 -3
- package/dist/charts/engine/three-d/canvas2d.js +166 -67
- 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/detect.cjs +1 -1
- package/dist/charts/engine/three-d/detect.cjs.map +1 -1
- package/dist/charts/engine/three-d/detect.d.cts +3 -2
- package/dist/charts/engine/three-d/detect.d.ts +3 -2
- package/dist/charts/engine/three-d/detect.js +22 -20
- package/dist/charts/engine/three-d/detect.js.map +1 -1
- package/dist/charts/engine/three-d/geometry.cjs +1 -1
- package/dist/charts/engine/three-d/geometry.cjs.map +1 -1
- package/dist/charts/engine/three-d/geometry.d.cts +6 -0
- package/dist/charts/engine/three-d/geometry.d.ts +6 -0
- package/dist/charts/engine/three-d/geometry.js +106 -90
- package/dist/charts/engine/three-d/geometry.js.map +1 -1
- package/dist/charts/engine/three-d/model.cjs +1 -1
- package/dist/charts/engine/three-d/model.cjs.map +1 -1
- package/dist/charts/engine/three-d/model.d.cts +2 -0
- package/dist/charts/engine/three-d/model.d.ts +2 -0
- package/dist/charts/engine/three-d/model.js +2 -0
- package/dist/charts/engine/three-d/model.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/overlay.cjs +1 -1
- package/dist/charts/engine/three-d/overlay.cjs.map +1 -1
- package/dist/charts/engine/three-d/overlay.js +43 -36
- package/dist/charts/engine/three-d/overlay.js.map +1 -1
- 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 +37 -3
- package/dist/charts/engine/three-d/render-types.d.ts +37 -3
- package/dist/charts/engine/three-d/render-types.js +6 -10
- package/dist/charts/engine/three-d/render-types.js.map +1 -1
- package/dist/charts/engine/three-d/shaders.cjs +109 -48
- package/dist/charts/engine/three-d/shaders.cjs.map +1 -1
- package/dist/charts/engine/three-d/shaders.d.cts +12 -5
- package/dist/charts/engine/three-d/shaders.d.ts +12 -5
- package/dist/charts/engine/three-d/shaders.js +118 -55
- 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 +18 -5
- package/dist/charts/engine/three-d/sort.d.ts +18 -5
- package/dist/charts/engine/three-d/sort.js +129 -43
- package/dist/charts/engine/three-d/sort.js.map +1 -1
- package/dist/charts/engine/three-d/types.d.cts +36 -0
- package/dist/charts/engine/three-d/types.d.ts +36 -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 -74
- 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 +231 -94
- 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 +10 -1
- package/dist/charts/engine/trading/chart.d.ts +10 -1
- package/dist/charts/engine/trading/chart.js +1677 -813
- package/dist/charts/engine/trading/chart.js.map +1 -1
- package/dist/charts/engine/trading/drawings.cjs +2 -1
- package/dist/charts/engine/trading/drawings.cjs.map +1 -1
- package/dist/charts/engine/trading/drawings.d.cts +53 -9
- package/dist/charts/engine/trading/drawings.d.ts +53 -9
- package/dist/charts/engine/trading/drawings.js +346 -71
- 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 +19 -0
- package/dist/charts/engine/trading/format.d.ts +19 -0
- package/dist/charts/engine/trading/format.js +65 -21
- 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/index.cjs +1 -1
- package/dist/charts/engine/trading/index.d.cts +2 -1
- package/dist/charts/engine/trading/index.d.ts +2 -1
- package/dist/charts/engine/trading/index.js +4 -3
- package/dist/charts/engine/trading/indicators.cjs +1 -1
- package/dist/charts/engine/trading/indicators.cjs.map +1 -1
- package/dist/charts/engine/trading/indicators.d.cts +180 -10
- package/dist/charts/engine/trading/indicators.d.ts +180 -10
- package/dist/charts/engine/trading/indicators.js +449 -173
- package/dist/charts/engine/trading/indicators.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 +104 -4
- package/dist/charts/engine/trading/labels.js.map +1 -1
- package/dist/charts/engine/trading/store.cjs +1 -1
- package/dist/charts/engine/trading/store.cjs.map +1 -1
- package/dist/charts/engine/trading/store.d.cts +21 -0
- package/dist/charts/engine/trading/store.d.ts +21 -0
- package/dist/charts/engine/trading/store.js +22 -1
- package/dist/charts/engine/trading/store.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 +49 -8
- package/dist/charts/engine/trading/studies.d.ts +49 -8
- package/dist/charts/engine/trading/studies.js +352 -93
- package/dist/charts/engine/trading/studies.js.map +1 -1
- package/dist/charts/engine/trading/sync.cjs +2 -0
- package/dist/charts/engine/trading/sync.cjs.map +1 -0
- package/dist/charts/engine/trading/sync.d.cts +8 -0
- package/dist/charts/engine/trading/sync.d.ts +8 -0
- package/dist/charts/engine/trading/sync.js +25 -0
- package/dist/charts/engine/trading/sync.js.map +1 -0
- package/dist/charts/engine/trading/types.d.cts +514 -16
- package/dist/charts/engine/trading/types.d.ts +514 -16
- package/dist/charts/engine/types.d.cts +106 -11
- package/dist/charts/engine/types.d.ts +106 -11
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.d.cts +3 -2
- package/dist/charts/index.d.ts +3 -2
- package/dist/charts/index.js +30 -22
- package/dist/charts/react/charts.cjs +1 -1
- package/dist/charts/react/charts.cjs.map +1 -1
- package/dist/charts/react/charts.js +51 -34
- package/dist/charts/react/charts.js.map +1 -1
- package/dist/charts/react/graph.cjs +2 -0
- package/dist/charts/react/graph.cjs.map +1 -0
- package/dist/charts/react/graph.d.cts +219 -0
- package/dist/charts/react/graph.d.ts +219 -0
- package/dist/charts/react/graph.js +160 -0
- package/dist/charts/react/graph.js.map +1 -0
- 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 +1 -1
- package/dist/charts/react/shapes.cjs.map +1 -1
- package/dist/charts/react/shapes.d.cts +88 -4
- package/dist/charts/react/shapes.d.ts +88 -4
- package/dist/charts/react/shapes.js +55 -12
- 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 +1 -1
- package/dist/charts/react/trading.cjs.map +1 -1
- package/dist/charts/react/trading.d.cts +54 -2
- package/dist/charts/react/trading.d.ts +54 -2
- package/dist/charts/react/trading.js +68 -37
- package/dist/charts/react/trading.js.map +1 -1
- package/dist/charts/react/types.d.cts +11 -0
- package/dist/charts/react/types.d.ts +11 -0
- 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 +5 -4
- package/dist/native/charts/src/engine/axis.cjs +1 -1
- package/dist/native/charts/src/engine/axis.cjs.map +1 -1
- package/dist/native/charts/src/engine/axis.js +42 -19
- package/dist/native/charts/src/engine/axis.js.map +1 -1
- package/dist/native/charts/src/engine/color.cjs +1 -1
- package/dist/native/charts/src/engine/color.cjs.map +1 -1
- package/dist/native/charts/src/engine/color.js +47 -5
- package/dist/native/charts/src/engine/color.js.map +1 -1
- 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 +296 -251
- package/dist/native/charts/src/engine/controller.js.map +1 -1
- package/dist/native/charts/src/engine/data.cjs +1 -1
- package/dist/native/charts/src/engine/data.cjs.map +1 -1
- package/dist/native/charts/src/engine/data.js +6 -4
- package/dist/native/charts/src/engine/data.js.map +1 -1
- package/dist/native/charts/src/engine/format.cjs +1 -1
- package/dist/native/charts/src/engine/format.cjs.map +1 -1
- package/dist/native/charts/src/engine/format.js +15 -2
- package/dist/native/charts/src/engine/format.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 +42 -5
- package/dist/native/charts/src/engine/labels.js.map +1 -1
- package/dist/native/charts/src/engine/layout.cjs +1 -1
- package/dist/native/charts/src/engine/layout.cjs.map +1 -1
- package/dist/native/charts/src/engine/layout.js +11 -2
- package/dist/native/charts/src/engine/layout.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 +278 -174
- 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 +2 -2
- package/dist/native/charts/src/engine/presets.cjs.map +1 -1
- package/dist/native/charts/src/engine/presets.js +110 -90
- 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 +421 -202
- package/dist/native/charts/src/engine/scene.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/bullet.cjs +1 -1
- package/dist/native/charts/src/engine/shapes/bullet.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/bullet.js +110 -110
- package/dist/native/charts/src/engine/shapes/bullet.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/calendar.cjs +1 -1
- package/dist/native/charts/src/engine/shapes/calendar.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/calendar.js +21 -16
- package/dist/native/charts/src/engine/shapes/calendar.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/chord.cjs +2 -0
- package/dist/native/charts/src/engine/shapes/chord.cjs.map +1 -0
- package/dist/native/charts/src/engine/shapes/chord.js +419 -0
- package/dist/native/charts/src/engine/shapes/chord.js.map +1 -0
- package/dist/native/charts/src/engine/shapes/draw.cjs +1 -1
- package/dist/native/charts/src/engine/shapes/draw.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/draw.js +47 -17
- package/dist/native/charts/src/engine/shapes/draw.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/hit.cjs +1 -1
- package/dist/native/charts/src/engine/shapes/hit.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/hit.js +73 -44
- package/dist/native/charts/src/engine/shapes/hit.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/labels.cjs +1 -1
- package/dist/native/charts/src/engine/shapes/labels.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/labels.js +12 -4
- package/dist/native/charts/src/engine/shapes/labels.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 +136 -94
- package/dist/native/charts/src/engine/shapes/layout.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/scene.cjs +1 -1
- package/dist/native/charts/src/engine/shapes/scene.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/scene.js +62 -19
- package/dist/native/charts/src/engine/shapes/scene.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 +226 -108
- 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 +60 -43
- package/dist/native/components/Charts/charts.js.map +1 -1
- package/dist/native/components/Charts/types.d.cts +11 -0
- package/dist/native/components/Charts/types.d.ts +11 -0
- 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 -106
- package/dist/native/components/ShapeChart/ShapeChartBase.js.map +1 -1
- package/dist/native/components/ShapeChart/charts.cjs +1 -1
- package/dist/native/components/ShapeChart/charts.cjs.map +1 -1
- package/dist/native/components/ShapeChart/charts.d.cts +6 -1
- package/dist/native/components/ShapeChart/charts.d.ts +6 -1
- package/dist/native/components/ShapeChart/charts.js +138 -96
- package/dist/native/components/ShapeChart/charts.js.map +1 -1
- package/dist/native/components/ShapeChart/draw.cjs +1 -1
- package/dist/native/components/ShapeChart/draw.cjs.map +1 -1
- package/dist/native/components/ShapeChart/draw.d.cts +1 -1
- package/dist/native/components/ShapeChart/draw.d.ts +1 -1
- package/dist/native/components/ShapeChart/draw.js +26 -17
- package/dist/native/components/ShapeChart/draw.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 +233 -70
- package/dist/native/components/ShapeChart/geometry.js.map +1 -1
- package/dist/native/components/ShapeChart/index.cjs +1 -1
- package/dist/native/components/ShapeChart/index.d.cts +1 -1
- package/dist/native/components/ShapeChart/index.d.ts +1 -1
- package/dist/native/components/ShapeChart/index.js +2 -2
- package/dist/native/components/ShapeChart/recorder.cjs +1 -1
- package/dist/native/components/ShapeChart/recorder.cjs.map +1 -1
- package/dist/native/components/ShapeChart/recorder.d.cts +10 -1
- package/dist/native/components/ShapeChart/recorder.d.ts +10 -1
- package/dist/native/components/ShapeChart/recorder.js +19 -10
- package/dist/native/components/ShapeChart/recorder.js.map +1 -1
- package/dist/native/components/ShapeChart/types.d.cts +95 -8
- package/dist/native/components/ShapeChart/types.d.ts +95 -8
- package/dist/native/index.cjs +1 -1
- package/dist/native/index.js +2 -2
- 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 +243 -14
- package/dist/native/source/components/Chart/types.ts +7 -0
- package/dist/native/source/components/Charts/charts.tsx +37 -2
- package/dist/native/source/components/Charts/types.ts +11 -0
- package/dist/native/source/components/ShapeChart/ShapeChartBase.tsx +10 -34
- package/dist/native/source/components/ShapeChart/charts.tsx +91 -35
- package/dist/native/source/components/ShapeChart/draw.tsx +39 -8
- package/dist/native/source/components/ShapeChart/geometry.ts +376 -25
- package/dist/native/source/components/ShapeChart/index.ts +1 -0
- package/dist/native/source/components/ShapeChart/recorder.ts +20 -5
- package/dist/native/source/components/ShapeChart/types.ts +99 -6
- package/dist/native/source/manifest.ts +1 -0
- package/dist/taro/chart-a11y.d.ts +7 -0
- package/dist/taro/charts.d.ts +29 -6
- package/dist/taro/index.js +3129 -1902
- package/dist/taro/shape-charts.d.ts +99 -5
- package/dist/uni/AreaChart.vue +2 -1
- package/dist/uni/AreaChart.vue.d.ts +5 -1
- package/dist/uni/Badge.vue.d.ts +1 -1
- package/dist/uni/BarChart.vue +2 -1
- package/dist/uni/BarChart.vue.d.ts +5 -1
- package/dist/uni/BoxPlotChart.vue +2 -1
- package/dist/uni/BoxPlotChart.vue.d.ts +8 -0
- package/dist/uni/BubbleChart.vue +2 -1
- package/dist/uni/BubbleChart.vue.d.ts +4 -0
- package/dist/uni/BulletChart.vue.d.ts +4 -0
- package/dist/uni/CalendarHeatmap.vue.d.ts +2 -0
- package/dist/uni/CandlestickChart.vue +2 -1
- package/dist/uni/CandlestickChart.vue.d.ts +4 -0
- package/dist/uni/Chart.vue +2 -1
- package/dist/uni/Chart.vue.d.ts +4 -0
- package/dist/uni/ChordChart.vue +93 -0
- package/dist/uni/ChordChart.vue.d.ts +136 -0
- package/dist/uni/Divider.vue.d.ts +1 -1
- package/dist/uni/DonutChart.vue.d.ts +5 -1
- package/dist/uni/FunnelChart.vue.d.ts +4 -0
- package/dist/uni/GanttChart.vue +2 -1
- package/dist/uni/GanttChart.vue.d.ts +15 -0
- package/dist/uni/GaugeChart.vue.d.ts +5 -1
- package/dist/uni/HeatmapChart.vue +2 -1
- package/dist/uni/HeatmapChart.vue.d.ts +8 -2
- package/dist/uni/HistogramChart.vue +2 -1
- package/dist/uni/HistogramChart.vue.d.ts +4 -0
- package/dist/uni/HorizontalBarChart.vue +2 -1
- package/dist/uni/HorizontalBarChart.vue.d.ts +3 -1
- package/dist/uni/LineChart.vue +2 -1
- package/dist/uni/LineChart.vue.d.ts +4 -0
- package/dist/uni/MixedChart.vue +2 -1
- package/dist/uni/MixedChart.vue.d.ts +4 -0
- package/dist/uni/PieChart.vue.d.ts +5 -1
- package/dist/uni/QuadrantChart.vue +2 -1
- package/dist/uni/QuadrantChart.vue.d.ts +4 -0
- package/dist/uni/RadarChart.vue.d.ts +4 -0
- package/dist/uni/RadialBarChart.vue.d.ts +4 -0
- package/dist/uni/RangeAreaChart.vue +2 -1
- package/dist/uni/RangeAreaChart.vue.d.ts +4 -0
- package/dist/uni/SankeyChart.vue.d.ts +4 -0
- package/dist/uni/ScatterChart.vue +2 -1
- package/dist/uni/ScatterChart.vue.d.ts +4 -0
- package/dist/uni/Sparkline.vue +2 -1
- package/dist/uni/Sparkline.vue.d.ts +4 -0
- package/dist/uni/SunburstChart.vue.d.ts +4 -0
- package/dist/uni/ToastProvider.vue.d.ts +1 -1
- package/dist/uni/TreemapChart.vue.d.ts +4 -0
- package/dist/uni/WaterfallChart.vue +2 -1
- package/dist/uni/WaterfallChart.vue.d.ts +9 -0
- package/dist/uni/chart-a11y.d.ts +7 -0
- package/dist/uni/chart-a11y.js +29 -0
- package/dist/uni/chart-canvas.d.ts +12 -0
- package/dist/uni/chart-canvas.js +15 -1
- package/dist/uni/chart-types.d.ts +36 -5
- package/dist/uni/chart-types.js +31 -3
- package/dist/uni/charts-canvas.js +3 -2
- package/dist/uni/index.d.ts +2 -1
- package/dist/uni/index.js +1 -0
- package/dist/uni/manifest.d.ts +7 -0
- package/dist/uni/manifest.js +10 -0
- package/dist/uni/named-chart-options.d.ts +11 -2
- package/dist/uni/named-chart-options.js +21 -1
- package/dist/uni/shape-chart-canvas.d.ts +3 -3
- package/dist/uni/shape-chart-canvas.js +17 -58
- package/dist/uni/shape-chart-types.d.ts +53 -3
- package/dist/uni/shape-chart-types.js +45 -1
- package/dist/vue/charts-global.d.ts +48 -0
- package/dist/vue/charts.d.ts +18 -0
- package/dist/vue/charts.js +56 -0
- package/dist/vue/charts.js.map +1 -0
- package/dist/vue/components/Chart/Bar3DChart.vue.d.ts +2 -0
- package/dist/vue/components/Chart/BoxPlotChart.vue.d.ts +8 -0
- package/dist/vue/components/Chart/BoxPlotChart.vue.js.map +1 -1
- package/dist/vue/components/Chart/BoxPlotChart.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/vue/components/Chart/BoxPlotChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/vue/components/Chart/ChordChart.vue.d.ts +153 -0
- package/dist/vue/components/Chart/ChordChart.vue.js +7 -0
- package/dist/vue/components/Chart/ChordChart.vue.js.map +1 -0
- package/dist/vue/components/Chart/ChordChart.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/vue/components/Chart/ChordChart.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/vue/components/Chart/DependencyGraph.vue.d.ts +181 -0
- package/dist/vue/components/Chart/DependencyGraph.vue.js +7 -0
- package/dist/vue/components/Chart/DependencyGraph.vue.js.map +1 -0
- package/dist/vue/components/Chart/DependencyGraph.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/vue/components/Chart/DependencyGraph.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/vue/components/Chart/GanttChart.vue.d.ts +19 -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 +12 -1
- 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 +186 -0
- package/dist/vue/components/Chart/GraphChart.vue.js +7 -0
- package/dist/vue/components/Chart/GraphChart.vue.js.map +1 -0
- package/dist/vue/components/Chart/GraphChart.vue_vue_type_script_setup_true_lang.js +62 -0
- package/dist/vue/components/Chart/GraphChart.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/vue/components/Chart/HeatmapChart.vue.d.ts +9 -5
- package/dist/vue/components/Chart/HeatmapChart.vue.js.map +1 -1
- package/dist/vue/components/Chart/HeatmapChart.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/vue/components/Chart/HeatmapChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/vue/components/Chart/Line3DChart.vue.d.ts +2 -0
- package/dist/vue/components/Chart/OrderBookHeatmap.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/TimeAndSales.vue.d.ts +2 -0
- package/dist/vue/components/Chart/TradingChart.vue.d.ts +58 -1
- package/dist/vue/components/Chart/TradingChart.vue.js.map +1 -1
- package/dist/vue/components/Chart/TradingChart.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/vue/components/Chart/TradingChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/vue/components/Chart/TreeChart.vue.d.ts +174 -0
- package/dist/vue/components/Chart/TreeChart.vue.js +7 -0
- package/dist/vue/components/Chart/TreeChart.vue.js.map +1 -0
- package/dist/vue/components/Chart/TreeChart.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/vue/components/Chart/TreeChart.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/vue/components/Chart/WaterfallChart.vue.d.ts +12 -1
- package/dist/vue/components/Chart/WaterfallChart.vue.js.map +1 -1
- package/dist/vue/components/Chart/WaterfallChart.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/vue/components/Chart/WaterfallChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/vue/components/Chart/graph.d.ts +156 -0
- package/dist/vue/components/Chart/graph.js +137 -0
- package/dist/vue/components/Chart/graph.js.map +1 -0
- package/dist/vue/components/Chart/index.d.ts +5 -1
- package/dist/vue/components/Chart/index.js +5 -1
- package/dist/vue/components/Chart/orderbook.d.ts +5 -1
- package/dist/vue/components/Chart/orderbook.js +2 -0
- package/dist/vue/components/Chart/orderbook.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 +30 -3
- package/dist/vue/components/Chart/trading.js +9 -0
- package/dist/vue/components/Chart/trading.js.map +1 -1
- package/dist/vue/components/Chart/types.d.ts +74 -2
- package/dist/vue/global.d.ts +2 -38
- package/dist/vue/groups/charts.js +10 -2
- package/dist/vue/groups/charts.js.map +1 -1
- package/dist/vue/index.js +6 -2
- package/dist/vue/internal/register.d.ts +7 -0
- package/dist/vue/internal/register.js +14 -0
- package/dist/vue/internal/register.js.map +1 -0
- package/dist/vue/plugin.d.ts +9 -4
- package/dist/vue/plugin.js +6 -11
- package/dist/vue/plugin.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 +1987 -175
- package/dist/weapp/charts/core.js +3 -0
- package/dist/weapp/chord-chart/index.js +1 -0
- package/dist/weapp/chord-chart/index.json +1 -0
- package/dist/weapp/chord-chart/index.wxml +1 -0
- package/dist/weapp/chord-chart/index.wxss +1 -0
- package/dist/weapp/controls.js +148 -57
- 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 +96 -4
- package/dist/weapp/waterfall-chart/index.wxml +1 -1
- package/dist/web-components/components/chart/charts.d.ts +4 -2
- package/dist/web-components/components/chart/charts.js +8 -1
- package/dist/web-components/components/chart/charts.js.map +1 -1
- package/dist/web-components/components/chart/extended.d.ts +21 -7
- package/dist/web-components/components/chart/extended.js +29 -9
- package/dist/web-components/components/chart/extended.js.map +1 -1
- package/dist/web-components/components/chart/shapes-extended.d.ts +37 -1
- package/dist/web-components/components/chart/shapes-extended.js +27 -1
- package/dist/web-components/components/chart/shapes-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 +156 -0
- package/dist/web-components/components/graph/graph.js +150 -0
- package/dist/web-components/components/graph/graph.js.map +1 -0
- package/dist/web-components/components/trading-chart/trading-chart.d.ts +49 -2
- package/dist/web-components/components/trading-chart/trading-chart.js +62 -0
- package/dist/web-components/components/trading-chart/trading-chart.js.map +1 -1
- package/dist/web-components/elements/chart.d.ts +1 -1
- package/dist/web-components/elements/chart.js +6 -5
- package/dist/web-components/elements/chart.js.map +1 -1
- package/dist/web-components/elements/graph.d.ts +2 -0
- package/dist/web-components/elements/graph.js +12 -0
- package/dist/web-components/elements/graph.js.map +1 -0
- package/dist/web-components/html-custom-data.json +318 -4
- package/dist/web-components/types/react.d.ts +63 -4
- package/dist/web-components/types/solid.d.ts +55 -8
- package/dist/web-components/types/svelte.d.ts +55 -8
- package/dist/web-components/types/vue.d.ts +55 -4
- package/package.json +16 -1
|
@@ -6,8 +6,34 @@ export type ChartRendererKind = "webgpu" | "webgl2" | "webgl" | "canvas2d";
|
|
|
6
6
|
* acceleration). A forced backend falls back along the same chain.
|
|
7
7
|
*/
|
|
8
8
|
export type ChartRendererPreference = "auto" | ChartRendererKind;
|
|
9
|
-
/**
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Scale of an axis; `log` (base 10, positive values only) applies to the
|
|
11
|
+
* numeric axes (`xAxis`, `yAxis`, `yAxis2`)
|
|
12
|
+
*/
|
|
13
|
+
export type ChartAxisType = "linear" | "log" | "time" | "category";
|
|
14
|
+
/**
|
|
15
|
+
* Built-in color ramps of heatmaps, theme-aware (light and dark):
|
|
16
|
+
* `sequential` goes from a tint of the surface to a deep (light theme) or
|
|
17
|
+
* bright (dark theme) series color; `diverging` from the danger color
|
|
18
|
+
* through a neutral middle to the series color
|
|
19
|
+
*/
|
|
20
|
+
export type ChartColorScheme = "sequential" | "diverging";
|
|
21
|
+
/** An extra row of the default tooltip of a point */
|
|
22
|
+
export interface ChartTooltipDetail {
|
|
23
|
+
/** Name (left column) */
|
|
24
|
+
name: string;
|
|
25
|
+
/** Value (right column) */
|
|
26
|
+
value: string;
|
|
27
|
+
}
|
|
28
|
+
/** Lines joining the end of every bar to the start of the next one */
|
|
29
|
+
export interface ChartConnectorOptions {
|
|
30
|
+
/** Line color (any CSS color) @default the secondary text color */
|
|
31
|
+
color?: string;
|
|
32
|
+
/** Dash pattern in CSS pixels; `[]` draws solid lines @default [3, 3] */
|
|
33
|
+
dash?: readonly number[];
|
|
34
|
+
/** Line width in CSS pixels @default 1 */
|
|
35
|
+
width?: number;
|
|
36
|
+
}
|
|
11
37
|
/** How a series is drawn */
|
|
12
38
|
export type ChartSeriesType = "line" | "area" | "bar" | "scatter" | "candlestick" | "heatmap" | "boxplot";
|
|
13
39
|
/** Direction of the value axis: `horizontal` puts the x (category) axis on the left */
|
|
@@ -57,6 +83,8 @@ export interface ChartPointDatum {
|
|
|
57
83
|
* a value shown in the tooltip
|
|
58
84
|
*/
|
|
59
85
|
value?: number | null;
|
|
86
|
+
/** Extra rows of the default tooltip of this point, after its values */
|
|
87
|
+
details?: readonly ChartTooltipDetail[];
|
|
60
88
|
}
|
|
61
89
|
/** Column-oriented data: the fastest form for large data sets (typed arrays are used as is) */
|
|
62
90
|
export interface ChartColumnData {
|
|
@@ -136,12 +164,19 @@ export interface ChartSeries {
|
|
|
136
164
|
/** Candlestick: color of the falling candles; `--danger-color` by default */
|
|
137
165
|
downColor?: string;
|
|
138
166
|
/**
|
|
139
|
-
* Heatmap: colors from the lowest to the highest value (two or more
|
|
140
|
-
*
|
|
167
|
+
* Heatmap: colors from the lowest to the highest value (two or more,
|
|
168
|
+
* interpolated in OKLab) or a built-in theme-aware scheme
|
|
169
|
+
* @default "sequential"
|
|
141
170
|
*/
|
|
142
|
-
colorScale?: readonly string[];
|
|
171
|
+
colorScale?: readonly string[] | ChartColorScheme;
|
|
143
172
|
/** Heatmap: values mapped to the ends of `colorScale`; the data range by default */
|
|
144
173
|
valueRange?: readonly [number, number];
|
|
174
|
+
/**
|
|
175
|
+
* Heatmap: value at the middle of the color scale (diverging data such as
|
|
176
|
+
* correlations or changes); each half of the ramp covers one side
|
|
177
|
+
* @default 0 for `diverging` ramps spanning it, else the middle of the range
|
|
178
|
+
*/
|
|
179
|
+
colorMidpoint?: number;
|
|
145
180
|
/** Bar / heatmap: corner radius in CSS pixels (bars: 3, heatmap cells: 2) */
|
|
146
181
|
radius?: number;
|
|
147
182
|
/** Formats the values of this series in the tooltip (the y axis format by default) */
|
|
@@ -161,12 +196,35 @@ export interface ChartSeries {
|
|
|
161
196
|
barWidth?: number;
|
|
162
197
|
/** Scatter: name of the `value` of the points in the tooltip (bubble charts) */
|
|
163
198
|
valueName?: string;
|
|
199
|
+
/**
|
|
200
|
+
* `false` leaves the series out of hit tests and tooltips (decorations,
|
|
201
|
+
* overlays such as the progress of Gantt tasks)
|
|
202
|
+
* @default true
|
|
203
|
+
*/
|
|
204
|
+
tooltip?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Box plot: outliers drawn as rings of the series color or as filled dots
|
|
207
|
+
* @default "hollow"
|
|
208
|
+
*/
|
|
209
|
+
outlierShape?: "hollow" | "filled";
|
|
210
|
+
/**
|
|
211
|
+
* Box plot: diameter of the outliers in CSS pixels
|
|
212
|
+
* @default 7
|
|
213
|
+
*/
|
|
214
|
+
outlierSize?: number;
|
|
215
|
+
/**
|
|
216
|
+
* Bars: thin lines from the end of every bar to the next bar (waterfall
|
|
217
|
+
* charts); `true` uses dashed lines of the secondary text color
|
|
218
|
+
* @default false
|
|
219
|
+
*/
|
|
220
|
+
connector?: boolean | ChartConnectorOptions;
|
|
164
221
|
}
|
|
165
222
|
/** Options of an axis */
|
|
166
223
|
export interface ChartAxisOptions {
|
|
167
224
|
/**
|
|
168
|
-
* Scale of the axis: `linear` numbers, `
|
|
169
|
-
*
|
|
225
|
+
* Scale of the axis: `linear` numbers, `log` base-10 logarithms (positive
|
|
226
|
+
* values; on `x` too), `time` timestamps / dates, `category` names (x axis,
|
|
227
|
+
* and y axis of heatmaps)
|
|
170
228
|
* @default "linear"
|
|
171
229
|
*/
|
|
172
230
|
type?: ChartAxisType;
|
|
@@ -269,6 +327,19 @@ export interface ChartTextAnnotation {
|
|
|
269
327
|
}
|
|
270
328
|
/** Background area, reference line or text */
|
|
271
329
|
export type ChartAnnotation = ChartRectAnnotation | ChartLineAnnotation | ChartTextAnnotation;
|
|
330
|
+
/**
|
|
331
|
+
* Arrow from one category to another (Gantt dependencies): an elbow
|
|
332
|
+
* connector from the end of the `from` bar (or dot) to the start of the
|
|
333
|
+
* `to` bar, with a filled arrowhead
|
|
334
|
+
*/
|
|
335
|
+
export interface ChartDependency {
|
|
336
|
+
/** Category (x value) of the predecessor */
|
|
337
|
+
from: string;
|
|
338
|
+
/** Category (x value) of the successor, where the arrow points */
|
|
339
|
+
to: string;
|
|
340
|
+
/** Color of the arrow (any CSS color); the secondary text color by default */
|
|
341
|
+
color?: string;
|
|
342
|
+
}
|
|
272
343
|
/** Zoom / pan / keyboard options */
|
|
273
344
|
export interface ChartInteractionOptions {
|
|
274
345
|
/**
|
|
@@ -301,10 +372,13 @@ export interface ChartInteractionOptions {
|
|
|
301
372
|
/** Tooltip options */
|
|
302
373
|
export interface ChartTooltipOptions {
|
|
303
374
|
/**
|
|
304
|
-
* `nearest` shows the closest point, `axis` all the series at the closest
|
|
305
|
-
*
|
|
375
|
+
* `nearest` shows the closest point, `axis` all the series at the closest
|
|
376
|
+
* x, `item` only the shape under the pointer (bar, box, cell or dot;
|
|
377
|
+
* nothing over empty space)
|
|
378
|
+
* @default "axis" ("nearest" when every series is a scatter, "item" for
|
|
379
|
+
* range bars on a time axis such as Gantt charts)
|
|
306
380
|
*/
|
|
307
|
-
mode?: "nearest" | "axis";
|
|
381
|
+
mode?: "nearest" | "axis" | "item";
|
|
308
382
|
/** Renders the tooltip content (a string is set as text) */
|
|
309
383
|
render?: (event: ChartHoverEvent) => string | Node | null;
|
|
310
384
|
/**
|
|
@@ -376,6 +450,18 @@ export interface ChartLabels {
|
|
|
376
450
|
chart: string;
|
|
377
451
|
/** Accessible name of a chart; `{series}` is the list of the series names @default "Chart: {series}" */
|
|
378
452
|
chartOf: string;
|
|
453
|
+
/** Start of a range bar on a time axis (Gantt tasks) @default "Start" */
|
|
454
|
+
start: string;
|
|
455
|
+
/** End of a range bar on a time axis @default "End" */
|
|
456
|
+
end: string;
|
|
457
|
+
/** Length of a range bar on a time axis (`4 weeks`, `26 days`) @default "Duration" */
|
|
458
|
+
duration: string;
|
|
459
|
+
/** Done share of a Gantt task @default "Progress" */
|
|
460
|
+
progress: string;
|
|
461
|
+
/** Tasks a Gantt task waits for @default "Depends on" */
|
|
462
|
+
dependencies: string;
|
|
463
|
+
/** A hovered box plot outlier @default "Outlier" */
|
|
464
|
+
outlier: string;
|
|
379
465
|
}
|
|
380
466
|
/** Legend options */
|
|
381
467
|
export interface ChartLegendOptions {
|
|
@@ -430,6 +516,11 @@ export interface ChartOptions {
|
|
|
430
516
|
crosshair?: boolean;
|
|
431
517
|
/** Background areas and reference lines */
|
|
432
518
|
annotations?: readonly ChartAnnotation[];
|
|
519
|
+
/**
|
|
520
|
+
* Arrows between categories (category x axis), e.g. the dependencies of
|
|
521
|
+
* a Gantt chart: from the end of a bar to the start of another
|
|
522
|
+
*/
|
|
523
|
+
dependencies?: readonly ChartDependency[];
|
|
433
524
|
/** Zoom / pan / keyboard; `false` makes the chart static */
|
|
434
525
|
interaction?: boolean | ChartInteractionOptions;
|
|
435
526
|
/** Space around the plot area */
|
|
@@ -480,6 +571,8 @@ export interface ChartHoverItem {
|
|
|
480
571
|
q3?: number;
|
|
481
572
|
/** Box plot: number of outliers */
|
|
482
573
|
outliers?: number;
|
|
574
|
+
/** Box plot: value of the hovered outlier (the pointer is on an outlier) */
|
|
575
|
+
outlier?: number;
|
|
483
576
|
}
|
|
484
577
|
/** Hover / click payload */
|
|
485
578
|
export interface ChartHoverEvent {
|
|
@@ -490,9 +583,11 @@ export interface ChartHoverEvent {
|
|
|
490
583
|
/** Formatted x value */
|
|
491
584
|
xLabel: string;
|
|
492
585
|
}
|
|
493
|
-
/** Visible range of the axes */
|
|
586
|
+
/** Visible range of the axes, in values of the axes (not logarithms on log axes) */
|
|
494
587
|
export interface ChartView {
|
|
588
|
+
/** Range of the x axis (category axes: indexes) */
|
|
495
589
|
x: [number, number];
|
|
590
|
+
/** Range of the (left) y axis */
|
|
496
591
|
y: [number, number];
|
|
497
592
|
}
|
|
498
593
|
/** Rectangle in CSS pixels, relative to the chart's container */
|
|
@@ -6,8 +6,34 @@ export type ChartRendererKind = "webgpu" | "webgl2" | "webgl" | "canvas2d";
|
|
|
6
6
|
* acceleration). A forced backend falls back along the same chain.
|
|
7
7
|
*/
|
|
8
8
|
export type ChartRendererPreference = "auto" | ChartRendererKind;
|
|
9
|
-
/**
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Scale of an axis; `log` (base 10, positive values only) applies to the
|
|
11
|
+
* numeric axes (`xAxis`, `yAxis`, `yAxis2`)
|
|
12
|
+
*/
|
|
13
|
+
export type ChartAxisType = "linear" | "log" | "time" | "category";
|
|
14
|
+
/**
|
|
15
|
+
* Built-in color ramps of heatmaps, theme-aware (light and dark):
|
|
16
|
+
* `sequential` goes from a tint of the surface to a deep (light theme) or
|
|
17
|
+
* bright (dark theme) series color; `diverging` from the danger color
|
|
18
|
+
* through a neutral middle to the series color
|
|
19
|
+
*/
|
|
20
|
+
export type ChartColorScheme = "sequential" | "diverging";
|
|
21
|
+
/** An extra row of the default tooltip of a point */
|
|
22
|
+
export interface ChartTooltipDetail {
|
|
23
|
+
/** Name (left column) */
|
|
24
|
+
name: string;
|
|
25
|
+
/** Value (right column) */
|
|
26
|
+
value: string;
|
|
27
|
+
}
|
|
28
|
+
/** Lines joining the end of every bar to the start of the next one */
|
|
29
|
+
export interface ChartConnectorOptions {
|
|
30
|
+
/** Line color (any CSS color) @default the secondary text color */
|
|
31
|
+
color?: string;
|
|
32
|
+
/** Dash pattern in CSS pixels; `[]` draws solid lines @default [3, 3] */
|
|
33
|
+
dash?: readonly number[];
|
|
34
|
+
/** Line width in CSS pixels @default 1 */
|
|
35
|
+
width?: number;
|
|
36
|
+
}
|
|
11
37
|
/** How a series is drawn */
|
|
12
38
|
export type ChartSeriesType = "line" | "area" | "bar" | "scatter" | "candlestick" | "heatmap" | "boxplot";
|
|
13
39
|
/** Direction of the value axis: `horizontal` puts the x (category) axis on the left */
|
|
@@ -57,6 +83,8 @@ export interface ChartPointDatum {
|
|
|
57
83
|
* a value shown in the tooltip
|
|
58
84
|
*/
|
|
59
85
|
value?: number | null;
|
|
86
|
+
/** Extra rows of the default tooltip of this point, after its values */
|
|
87
|
+
details?: readonly ChartTooltipDetail[];
|
|
60
88
|
}
|
|
61
89
|
/** Column-oriented data: the fastest form for large data sets (typed arrays are used as is) */
|
|
62
90
|
export interface ChartColumnData {
|
|
@@ -136,12 +164,19 @@ export interface ChartSeries {
|
|
|
136
164
|
/** Candlestick: color of the falling candles; `--danger-color` by default */
|
|
137
165
|
downColor?: string;
|
|
138
166
|
/**
|
|
139
|
-
* Heatmap: colors from the lowest to the highest value (two or more
|
|
140
|
-
*
|
|
167
|
+
* Heatmap: colors from the lowest to the highest value (two or more,
|
|
168
|
+
* interpolated in OKLab) or a built-in theme-aware scheme
|
|
169
|
+
* @default "sequential"
|
|
141
170
|
*/
|
|
142
|
-
colorScale?: readonly string[];
|
|
171
|
+
colorScale?: readonly string[] | ChartColorScheme;
|
|
143
172
|
/** Heatmap: values mapped to the ends of `colorScale`; the data range by default */
|
|
144
173
|
valueRange?: readonly [number, number];
|
|
174
|
+
/**
|
|
175
|
+
* Heatmap: value at the middle of the color scale (diverging data such as
|
|
176
|
+
* correlations or changes); each half of the ramp covers one side
|
|
177
|
+
* @default 0 for `diverging` ramps spanning it, else the middle of the range
|
|
178
|
+
*/
|
|
179
|
+
colorMidpoint?: number;
|
|
145
180
|
/** Bar / heatmap: corner radius in CSS pixels (bars: 3, heatmap cells: 2) */
|
|
146
181
|
radius?: number;
|
|
147
182
|
/** Formats the values of this series in the tooltip (the y axis format by default) */
|
|
@@ -161,12 +196,35 @@ export interface ChartSeries {
|
|
|
161
196
|
barWidth?: number;
|
|
162
197
|
/** Scatter: name of the `value` of the points in the tooltip (bubble charts) */
|
|
163
198
|
valueName?: string;
|
|
199
|
+
/**
|
|
200
|
+
* `false` leaves the series out of hit tests and tooltips (decorations,
|
|
201
|
+
* overlays such as the progress of Gantt tasks)
|
|
202
|
+
* @default true
|
|
203
|
+
*/
|
|
204
|
+
tooltip?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Box plot: outliers drawn as rings of the series color or as filled dots
|
|
207
|
+
* @default "hollow"
|
|
208
|
+
*/
|
|
209
|
+
outlierShape?: "hollow" | "filled";
|
|
210
|
+
/**
|
|
211
|
+
* Box plot: diameter of the outliers in CSS pixels
|
|
212
|
+
* @default 7
|
|
213
|
+
*/
|
|
214
|
+
outlierSize?: number;
|
|
215
|
+
/**
|
|
216
|
+
* Bars: thin lines from the end of every bar to the next bar (waterfall
|
|
217
|
+
* charts); `true` uses dashed lines of the secondary text color
|
|
218
|
+
* @default false
|
|
219
|
+
*/
|
|
220
|
+
connector?: boolean | ChartConnectorOptions;
|
|
164
221
|
}
|
|
165
222
|
/** Options of an axis */
|
|
166
223
|
export interface ChartAxisOptions {
|
|
167
224
|
/**
|
|
168
|
-
* Scale of the axis: `linear` numbers, `
|
|
169
|
-
*
|
|
225
|
+
* Scale of the axis: `linear` numbers, `log` base-10 logarithms (positive
|
|
226
|
+
* values; on `x` too), `time` timestamps / dates, `category` names (x axis,
|
|
227
|
+
* and y axis of heatmaps)
|
|
170
228
|
* @default "linear"
|
|
171
229
|
*/
|
|
172
230
|
type?: ChartAxisType;
|
|
@@ -269,6 +327,19 @@ export interface ChartTextAnnotation {
|
|
|
269
327
|
}
|
|
270
328
|
/** Background area, reference line or text */
|
|
271
329
|
export type ChartAnnotation = ChartRectAnnotation | ChartLineAnnotation | ChartTextAnnotation;
|
|
330
|
+
/**
|
|
331
|
+
* Arrow from one category to another (Gantt dependencies): an elbow
|
|
332
|
+
* connector from the end of the `from` bar (or dot) to the start of the
|
|
333
|
+
* `to` bar, with a filled arrowhead
|
|
334
|
+
*/
|
|
335
|
+
export interface ChartDependency {
|
|
336
|
+
/** Category (x value) of the predecessor */
|
|
337
|
+
from: string;
|
|
338
|
+
/** Category (x value) of the successor, where the arrow points */
|
|
339
|
+
to: string;
|
|
340
|
+
/** Color of the arrow (any CSS color); the secondary text color by default */
|
|
341
|
+
color?: string;
|
|
342
|
+
}
|
|
272
343
|
/** Zoom / pan / keyboard options */
|
|
273
344
|
export interface ChartInteractionOptions {
|
|
274
345
|
/**
|
|
@@ -301,10 +372,13 @@ export interface ChartInteractionOptions {
|
|
|
301
372
|
/** Tooltip options */
|
|
302
373
|
export interface ChartTooltipOptions {
|
|
303
374
|
/**
|
|
304
|
-
* `nearest` shows the closest point, `axis` all the series at the closest
|
|
305
|
-
*
|
|
375
|
+
* `nearest` shows the closest point, `axis` all the series at the closest
|
|
376
|
+
* x, `item` only the shape under the pointer (bar, box, cell or dot;
|
|
377
|
+
* nothing over empty space)
|
|
378
|
+
* @default "axis" ("nearest" when every series is a scatter, "item" for
|
|
379
|
+
* range bars on a time axis such as Gantt charts)
|
|
306
380
|
*/
|
|
307
|
-
mode?: "nearest" | "axis";
|
|
381
|
+
mode?: "nearest" | "axis" | "item";
|
|
308
382
|
/** Renders the tooltip content (a string is set as text) */
|
|
309
383
|
render?: (event: ChartHoverEvent) => string | Node | null;
|
|
310
384
|
/**
|
|
@@ -376,6 +450,18 @@ export interface ChartLabels {
|
|
|
376
450
|
chart: string;
|
|
377
451
|
/** Accessible name of a chart; `{series}` is the list of the series names @default "Chart: {series}" */
|
|
378
452
|
chartOf: string;
|
|
453
|
+
/** Start of a range bar on a time axis (Gantt tasks) @default "Start" */
|
|
454
|
+
start: string;
|
|
455
|
+
/** End of a range bar on a time axis @default "End" */
|
|
456
|
+
end: string;
|
|
457
|
+
/** Length of a range bar on a time axis (`4 weeks`, `26 days`) @default "Duration" */
|
|
458
|
+
duration: string;
|
|
459
|
+
/** Done share of a Gantt task @default "Progress" */
|
|
460
|
+
progress: string;
|
|
461
|
+
/** Tasks a Gantt task waits for @default "Depends on" */
|
|
462
|
+
dependencies: string;
|
|
463
|
+
/** A hovered box plot outlier @default "Outlier" */
|
|
464
|
+
outlier: string;
|
|
379
465
|
}
|
|
380
466
|
/** Legend options */
|
|
381
467
|
export interface ChartLegendOptions {
|
|
@@ -430,6 +516,11 @@ export interface ChartOptions {
|
|
|
430
516
|
crosshair?: boolean;
|
|
431
517
|
/** Background areas and reference lines */
|
|
432
518
|
annotations?: readonly ChartAnnotation[];
|
|
519
|
+
/**
|
|
520
|
+
* Arrows between categories (category x axis), e.g. the dependencies of
|
|
521
|
+
* a Gantt chart: from the end of a bar to the start of another
|
|
522
|
+
*/
|
|
523
|
+
dependencies?: readonly ChartDependency[];
|
|
433
524
|
/** Zoom / pan / keyboard; `false` makes the chart static */
|
|
434
525
|
interaction?: boolean | ChartInteractionOptions;
|
|
435
526
|
/** Space around the plot area */
|
|
@@ -480,6 +571,8 @@ export interface ChartHoverItem {
|
|
|
480
571
|
q3?: number;
|
|
481
572
|
/** Box plot: number of outliers */
|
|
482
573
|
outliers?: number;
|
|
574
|
+
/** Box plot: value of the hovered outlier (the pointer is on an outlier) */
|
|
575
|
+
outlier?: number;
|
|
483
576
|
}
|
|
484
577
|
/** Hover / click payload */
|
|
485
578
|
export interface ChartHoverEvent {
|
|
@@ -490,9 +583,11 @@ export interface ChartHoverEvent {
|
|
|
490
583
|
/** Formatted x value */
|
|
491
584
|
xLabel: string;
|
|
492
585
|
}
|
|
493
|
-
/** Visible range of the axes */
|
|
586
|
+
/** Visible range of the axes, in values of the axes (not logarithms on log axes) */
|
|
494
587
|
export interface ChartView {
|
|
588
|
+
/** Range of the x axis (category axes: indexes) */
|
|
495
589
|
x: [number, number];
|
|
590
|
+
/** Range of the (left) y axis */
|
|
496
591
|
y: [number, number];
|
|
497
592
|
}
|
|
498
593
|
/** Rectangle in CSS pixels, relative to the chart's container */
|
package/dist/charts/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./engine/format.cjs"),t=require("./engine/
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./engine/format.cjs"),t=require("./engine/defaults.cjs"),n=require("./engine/chart.cjs"),r=require("./react/Chart.cjs"),i=require("./engine/presets.cjs"),a=require("./react/charts.cjs"),o=require("./engine/shapes/chart.cjs"),s=require("./react/shapes.cjs"),c=require("./engine/trading/indicators.cjs"),l=require("./engine/trading/chart.cjs"),u=require("./react/trading.cjs"),d=require("./engine/orderbook/book.cjs"),f=require("./engine/orderbook/depth.cjs"),p=require("./engine/orderbook/heatmap.cjs"),m=require("./engine/orderbook/ladder.cjs"),h=require("./engine/orderbook/tape.cjs"),g=require("./react/orderbook.cjs"),_=require("./engine/three-d/chart.cjs"),v=require("./react/three-d.cjs"),y=require("./engine/graph/force.cjs"),b=require("./engine/graph/circular.cjs"),x=require("./engine/graph/dag.cjs"),S=require("./engine/graph/tree.cjs"),C=require("./engine/graph/chart.cjs"),w=require("./react/graph.cjs"),T=require("./engine/shapes/canvas.cjs"),E=require("./engine/controller.cjs"),D=require("./engine/canvas.cjs"),O=require("./engine/trading/sync.cjs");require("./core.cjs"),exports.AreaChart=a.AreaChart,exports.Bar3DChart=v.Bar3DChart,exports.BarChart=a.BarChart,exports.BoxPlotChart=a.BoxPlotChart,exports.BubbleChart=a.BubbleChart,exports.BulletChart=s.BulletChart,exports.CalendarHeatmap=s.CalendarHeatmap,exports.CandlestickChart=a.CandlestickChart,exports.Chart=r.Chart,exports.ChordChart=s.ChordChart,exports.DependencyGraph=w.DependencyGraph,exports.DepthChart=g.DepthChart,exports.DonutChart=s.DonutChart,exports.FunnelChart=s.FunnelChart,exports.GanttChart=a.GanttChart,exports.GaugeChart=s.GaugeChart,exports.GraphChart=w.GraphChart,exports.HeatmapChart=a.HeatmapChart,exports.HistogramChart=a.HistogramChart,exports.HorizontalBarChart=a.HorizontalBarChart,exports.Line3DChart=v.Line3DChart,exports.LineChart=a.LineChart,exports.MixedChart=a.MixedChart,exports.OrderBook=g.OrderBook,exports.OrderBookHeatmap=g.OrderBookHeatmap,exports.PieChart=s.PieChart,exports.QuadrantChart=a.QuadrantChart,exports.RadarChart=s.RadarChart,exports.RadialBarChart=s.RadialBarChart,exports.RangeAreaChart=a.RangeAreaChart,exports.SankeyChart=s.SankeyChart,exports.Scatter3DChart=v.Scatter3DChart,exports.ScatterChart=a.ScatterChart,exports.Sparkline=a.Sparkline,exports.SunburstChart=s.SunburstChart,exports.Surface3DChart=v.Surface3DChart,exports.TimeAndSales=g.TimeAndSales,exports.TradingChart=u.TradingChart,exports.TreeChart=w.TreeChart,exports.TreemapChart=s.TreemapChart,exports.WaterfallChart=a.WaterfallChart,exports.arcLayout=b.arcLayout,exports.areaSeries=i.areaSeries,exports.atr=c.atr,exports.barSeries=i.barSeries,exports.binValues=i.binValues,exports.bollinger=c.bollinger,exports.boxplotData=i.boxplotData,exports.boxplotSeries=i.boxplotSeries,exports.boxplotStats=i.boxplotStats,exports.bubbleSeries=i.bubbleSeries,exports.candlestickSeries=i.candlestickSeries,exports.cci=c.cci,exports.circularLayout=b.circularLayout,exports.countCrossings=x.countCrossings,exports.createCanvasChart=D.createCanvasChart,exports.createCanvasShapeChart=T.createCanvasShapeChart,exports.createChart=n.createChart,exports.createChart3D=_.createChart3D,exports.createChartController=E.createChartController,exports.createDepthChart=f.createDepthChart,exports.createForceSimulation=y.createForceSimulation,exports.createGraphChart=C.createGraphChart,exports.createOrderBook=m.createOrderBook,exports.createOrderBookHeatmap=p.createOrderBookHeatmap,exports.createOrderBookStore=d.createOrderBookStore,exports.createShapeChart=o.createShapeChart,exports.createTimeAndSales=h.createTimeAndSales,exports.createTradingChart=l.createTradingChart,exports.criticalPath=x.criticalPath,exports.dagLayout=x.dagLayout,exports.dmi=c.dmi,exports.donchian=c.donchian,exports.ema=c.ema,exports.forceLayout=y.forceLayout,exports.formatCompact=e.formatCompact,exports.formatDuration=e.formatDuration,exports.formatValue=e.formatValue,exports.ganttSeries=i.ganttSeries,exports.getDefaultChartRenderer=t.getDefaultChartRenderer,exports.heatmapChartOptions=i.heatmapChartOptions,exports.heikinAshi=c.heikinAshi,exports.histogramSeries=i.histogramSeries,exports.ichimoku=c.ichimoku,exports.kdj=c.kdj,exports.keltner=c.keltner,exports.lineSeries=i.lineSeries,exports.macd=c.macd,exports.mfi=c.mfi,exports.obv=c.obv,exports.psar=c.psar,exports.quadrantCenter=i.quadrantCenter,exports.quadrantChartOptions=i.quadrantChartOptions,exports.quadrantOf=i.quadrantOf,exports.quantiles=i.quantiles,exports.rangeAreaSeries=i.rangeAreaSeries,exports.resampleBars=c.resampleBars,exports.rsi=c.rsi,exports.scatterSeries=i.scatterSeries,exports.scenePrimitives=E.scenePrimitives,exports.setDefaultChartRenderer=t.setDefaultChartRenderer,exports.sma=c.sma,exports.sparklineOptions=i.sparklineOptions,exports.stochRsi=c.stochRsi,exports.subscribeDefaultChartRenderer=t.subscribeDefaultChartRenderer,exports.supertrend=c.supertrend,exports.syncCharts=O.syncCharts,exports.treeLayout=S.treeLayout,exports.volumeProfile=c.volumeProfile,exports.vwap=c.vwap,exports.waterfallSeries=i.waterfallSeries,exports.williamsR=c.williamsR,exports.withSeriesType=i.withSeriesType,exports.wma=c.wma;
|
package/dist/charts/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export { Chart } from './react/Chart.cjs';
|
|
2
2
|
export { AreaChart, BarChart, BoxPlotChart, BubbleChart, CandlestickChart, GanttChart, HeatmapChart, HistogramChart, HorizontalBarChart, LineChart, MixedChart, QuadrantChart, RangeAreaChart, ScatterChart, Sparkline, WaterfallChart, } from './react/charts.cjs';
|
|
3
|
-
export { BulletChart, CalendarHeatmap, DonutChart, FunnelChart, GaugeChart, PieChart, RadarChart, RadialBarChart, SankeyChart, SunburstChart, TreemapChart, } from './react/shapes.cjs';
|
|
3
|
+
export { BulletChart, CalendarHeatmap, ChordChart, DonutChart, FunnelChart, GaugeChart, PieChart, RadarChart, RadialBarChart, SankeyChart, SunburstChart, TreemapChart, } from './react/shapes.cjs';
|
|
4
4
|
export type { AreaChartProps, BarChartProps, BoxPlotChartProps, BubbleChartProps, CandlestickChartProps, ChartCommonProps, ChartHandle, ChartProps, GanttChartProps, HeatmapChartProps, HistogramChartProps, HorizontalBarChartProps, LineChartProps, MixedChartProps, QuadrantChartProps, QuadrantDropTarget, RangeAreaChartProps, ScatterChartProps, SparklineProps, WaterfallChartProps, } from './react/types.cjs';
|
|
5
|
-
export type { BulletChartProps, CalendarHeatmapProps, DonutChartProps, FunnelChartProps, GaugeChartProps, PieChartProps, RadarChartProps, RadialBarChartProps, SankeyChartProps, ShapeChartCommonProps, ShapeChartHandle, SunburstChartProps, TreemapChartProps, } from './react/shapes.cjs';
|
|
5
|
+
export type { BulletChartProps, CalendarHeatmapProps, ChordChartProps, DonutChartProps, FunnelChartProps, GaugeChartProps, PieChartProps, RadarChartProps, RadialBarChartProps, SankeyChartProps, ShapeChartCommonProps, ShapeChartHandle, SunburstChartProps, TreemapChartProps, } from './react/shapes.cjs';
|
|
6
6
|
export * from './react/trading.cjs';
|
|
7
7
|
export * from './react/orderbook.cjs';
|
|
8
8
|
export * from './react/three-d.cjs';
|
|
9
|
+
export * from './react/graph.cjs';
|
|
9
10
|
export * from './core.cjs';
|
package/dist/charts/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export { Chart } from './react/Chart.js';
|
|
2
2
|
export { AreaChart, BarChart, BoxPlotChart, BubbleChart, CandlestickChart, GanttChart, HeatmapChart, HistogramChart, HorizontalBarChart, LineChart, MixedChart, QuadrantChart, RangeAreaChart, ScatterChart, Sparkline, WaterfallChart, } from './react/charts.js';
|
|
3
|
-
export { BulletChart, CalendarHeatmap, DonutChart, FunnelChart, GaugeChart, PieChart, RadarChart, RadialBarChart, SankeyChart, SunburstChart, TreemapChart, } from './react/shapes.js';
|
|
3
|
+
export { BulletChart, CalendarHeatmap, ChordChart, DonutChart, FunnelChart, GaugeChart, PieChart, RadarChart, RadialBarChart, SankeyChart, SunburstChart, TreemapChart, } from './react/shapes.js';
|
|
4
4
|
export type { AreaChartProps, BarChartProps, BoxPlotChartProps, BubbleChartProps, CandlestickChartProps, ChartCommonProps, ChartHandle, ChartProps, GanttChartProps, HeatmapChartProps, HistogramChartProps, HorizontalBarChartProps, LineChartProps, MixedChartProps, QuadrantChartProps, QuadrantDropTarget, RangeAreaChartProps, ScatterChartProps, SparklineProps, WaterfallChartProps, } from './react/types.js';
|
|
5
|
-
export type { BulletChartProps, CalendarHeatmapProps, DonutChartProps, FunnelChartProps, GaugeChartProps, PieChartProps, RadarChartProps, RadialBarChartProps, SankeyChartProps, ShapeChartCommonProps, ShapeChartHandle, SunburstChartProps, TreemapChartProps, } from './react/shapes.js';
|
|
5
|
+
export type { BulletChartProps, CalendarHeatmapProps, ChordChartProps, DonutChartProps, FunnelChartProps, GaugeChartProps, PieChartProps, RadarChartProps, RadialBarChartProps, SankeyChartProps, ShapeChartCommonProps, ShapeChartHandle, SunburstChartProps, TreemapChartProps, } from './react/shapes.js';
|
|
6
6
|
export * from './react/trading.js';
|
|
7
7
|
export * from './react/orderbook.js';
|
|
8
8
|
export * from './react/three-d.js';
|
|
9
|
+
export * from './react/graph.js';
|
|
9
10
|
export * from './core.js';
|
package/dist/charts/index.js
CHANGED
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { formatCompact as e,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
2
|
+
import { formatCompact as e, formatDuration as t, formatValue as n } from "./engine/format.js";
|
|
3
|
+
import { getDefaultChartRenderer as r, setDefaultChartRenderer as i, subscribeDefaultChartRenderer as a } from "./engine/defaults.js";
|
|
4
|
+
import { createChart as o } from "./engine/chart.js";
|
|
5
|
+
import { Chart as s } from "./react/Chart.js";
|
|
6
|
+
import { areaSeries as c, barSeries as l, binValues as u, boxplotData as d, boxplotSeries as f, boxplotStats as p, bubbleSeries as m, candlestickSeries as h, ganttSeries as g, heatmapChartOptions as _, histogramSeries as v, lineSeries as y, quadrantCenter as b, quadrantChartOptions as x, quadrantOf as S, quantiles as C, rangeAreaSeries as w, scatterSeries as T, sparklineOptions as E, waterfallSeries as D, withSeriesType as O } from "./engine/presets.js";
|
|
7
|
+
import { AreaChart as k, BarChart as A, BoxPlotChart as j, BubbleChart as M, CandlestickChart as N, GanttChart as P, HeatmapChart as F, HistogramChart as I, HorizontalBarChart as L, LineChart as R, MixedChart as z, QuadrantChart as B, RangeAreaChart as V, ScatterChart as H, Sparkline as U, WaterfallChart as W } from "./react/charts.js";
|
|
8
|
+
import { createShapeChart as G } from "./engine/shapes/chart.js";
|
|
9
|
+
import { BulletChart as K, CalendarHeatmap as q, ChordChart as J, DonutChart as Y, FunnelChart as X, GaugeChart as Z, PieChart as Q, RadarChart as $, RadialBarChart as ee, SankeyChart as te, SunburstChart as ne, TreemapChart as re } from "./react/shapes.js";
|
|
10
|
+
import { atr as ie, bollinger as ae, cci as oe, dmi as se, donchian as ce, ema as le, heikinAshi as ue, ichimoku as de, kdj as fe, keltner as pe, macd as me, mfi as he, obv as ge, psar as _e, resampleBars as ve, rsi as ye, sma as be, stochRsi as xe, supertrend as Se, volumeProfile as Ce, vwap as we, williamsR as Te, wma as Ee } from "./engine/trading/indicators.js";
|
|
11
|
+
import { createTradingChart as De } from "./engine/trading/chart.js";
|
|
12
|
+
import { TradingChart as Oe } from "./react/trading.js";
|
|
13
|
+
import { createOrderBookStore as ke } from "./engine/orderbook/book.js";
|
|
14
|
+
import { createDepthChart as Ae } from "./engine/orderbook/depth.js";
|
|
15
|
+
import { createOrderBookHeatmap as je } from "./engine/orderbook/heatmap.js";
|
|
16
|
+
import { createOrderBook as Me } from "./engine/orderbook/ladder.js";
|
|
17
|
+
import { createTimeAndSales as Ne } from "./engine/orderbook/tape.js";
|
|
18
|
+
import { DepthChart as Pe, OrderBook as Fe, OrderBookHeatmap as Ie, TimeAndSales as Le } from "./react/orderbook.js";
|
|
19
|
+
import { createChart3D as Re } from "./engine/three-d/chart.js";
|
|
20
|
+
import { Bar3DChart as ze, Line3DChart as Be, Scatter3DChart as Ve, Surface3DChart as He } from "./react/three-d.js";
|
|
21
|
+
import { createForceSimulation as Ue, forceLayout as We } from "./engine/graph/force.js";
|
|
22
|
+
import { arcLayout as Ge, circularLayout as Ke } from "./engine/graph/circular.js";
|
|
23
|
+
import { countCrossings as qe, criticalPath as Je, dagLayout as Ye } from "./engine/graph/dag.js";
|
|
24
|
+
import { treeLayout as Xe } from "./engine/graph/tree.js";
|
|
25
|
+
import { createGraphChart as Ze } from "./engine/graph/chart.js";
|
|
26
|
+
import { DependencyGraph as Qe, GraphChart as $e, TreeChart as et } from "./react/graph.js";
|
|
27
|
+
import { createCanvasShapeChart as tt } from "./engine/shapes/canvas.js";
|
|
28
|
+
import { createChartController as nt, scenePrimitives as rt } from "./engine/controller.js";
|
|
29
|
+
import { createCanvasChart as it } from "./engine/canvas.js";
|
|
30
|
+
import { syncCharts as at } from "./engine/trading/sync.js";
|
|
23
31
|
import "./core.js";
|
|
24
|
-
export {
|
|
32
|
+
export { k as AreaChart, ze as Bar3DChart, A as BarChart, j as BoxPlotChart, M as BubbleChart, K as BulletChart, q as CalendarHeatmap, N as CandlestickChart, s as Chart, J as ChordChart, Qe as DependencyGraph, Pe as DepthChart, Y as DonutChart, X as FunnelChart, P as GanttChart, Z as GaugeChart, $e as GraphChart, F as HeatmapChart, I as HistogramChart, L as HorizontalBarChart, Be as Line3DChart, R as LineChart, z as MixedChart, Fe as OrderBook, Ie as OrderBookHeatmap, Q as PieChart, B as QuadrantChart, $ as RadarChart, ee as RadialBarChart, V as RangeAreaChart, te as SankeyChart, Ve as Scatter3DChart, H as ScatterChart, U as Sparkline, ne as SunburstChart, He as Surface3DChart, Le as TimeAndSales, Oe as TradingChart, et as TreeChart, re as TreemapChart, W as WaterfallChart, Ge as arcLayout, c as areaSeries, ie as atr, l as barSeries, u as binValues, ae as bollinger, d as boxplotData, f as boxplotSeries, p as boxplotStats, m as bubbleSeries, h as candlestickSeries, oe as cci, Ke as circularLayout, qe as countCrossings, it as createCanvasChart, tt as createCanvasShapeChart, o as createChart, Re as createChart3D, nt as createChartController, Ae as createDepthChart, Ue as createForceSimulation, Ze as createGraphChart, Me as createOrderBook, je as createOrderBookHeatmap, ke as createOrderBookStore, G as createShapeChart, Ne as createTimeAndSales, De as createTradingChart, Je as criticalPath, Ye as dagLayout, se as dmi, ce as donchian, le as ema, We as forceLayout, e as formatCompact, t as formatDuration, n as formatValue, g as ganttSeries, r as getDefaultChartRenderer, _ as heatmapChartOptions, ue as heikinAshi, v as histogramSeries, de as ichimoku, fe as kdj, pe as keltner, y as lineSeries, me as macd, he as mfi, ge as obv, _e as psar, b as quadrantCenter, x as quadrantChartOptions, S as quadrantOf, C as quantiles, w as rangeAreaSeries, ve as resampleBars, ye as rsi, T as scatterSeries, rt as scenePrimitives, i as setDefaultChartRenderer, be as sma, E as sparklineOptions, xe as stochRsi, a as subscribeDefaultChartRenderer, Se as supertrend, at as syncCharts, Xe as treeLayout, Ce as volumeProfile, we as vwap, D as waterfallSeries, Te as williamsR, O as withSeriesType, Ee as wma };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require("../engine/locale.cjs"),t=require("./Chart.cjs"),n=require("../engine/presets.cjs");let r=require("react"),i=require("react/jsx-runtime");var a=e=>({height:e.height,width:e.width,className:e.className,style:e.style,handleRef:e.ref,onHover:e.onHover,onPointClick:e.onPointClick,onPlotClick:e.onPlotClick,onZoom:e.onZoom,onRendererChange:e.onRendererChange,renderTooltip:e.renderTooltip});function o(e){let{series:o,area:s=!1,curve:c,stacked:l=!1,percent:u=!1}=e,d=(0,r.useMemo)(()=>n.lineSeries(o,s,{curve:c,stacked:l||u}),[o,s,c,l,u]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:d,stackMode:u?`percent`:void 0}),...a(e)})}function s(e){let{series:o,curve:s=`smooth`,stacked:c=!1,percent:l=!1}=e,u=(0,r.useMemo)(()=>n.areaSeries(o,{curve:s,stacked:c||l}),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:u,stackMode:l?`percent`:void 0}),...a(e)})}function c(e){let{series:o,stacked:s=!1,percent:c=!1,labels:l=!1}=e,u=(0,r.useMemo)(()=>n.barSeries(o,s||c,l),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,labels:void 0,series:u,stackMode:c?`percent`:void 0}),...a(e)})}function l(e){let{series:o}=e,s=(0,r.useMemo)(()=>n.candlestickSeries(o),[o]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:s}),...a(e)})}function u(e){let{data:o,xCategories:s,yCategories:c,colorScale:l,valueRange:u,
|
|
1
|
+
"use client";const e=require("../engine/locale.cjs"),t=require("./Chart.cjs"),n=require("../engine/presets.cjs");let r=require("react"),i=require("react/jsx-runtime");var a=e=>({height:e.height,width:e.width,className:e.className,style:e.style,handleRef:e.ref,onHover:e.onHover,onPointClick:e.onPointClick,onPlotClick:e.onPlotClick,onZoom:e.onZoom,onRendererChange:e.onRendererChange,renderTooltip:e.renderTooltip});function o(e){let{series:o,area:s=!1,curve:c,stacked:l=!1,percent:u=!1}=e,d=(0,r.useMemo)(()=>n.lineSeries(o,s,{curve:c,stacked:l||u}),[o,s,c,l,u]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:d,stackMode:u?`percent`:void 0}),...a(e)})}function s(e){let{series:o,curve:s=`smooth`,stacked:c=!1,percent:l=!1}=e,u=(0,r.useMemo)(()=>n.areaSeries(o,{curve:s,stacked:c||l}),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:u,stackMode:l?`percent`:void 0}),...a(e)})}function c(e){let{series:o,stacked:s=!1,percent:c=!1,labels:l=!1}=e,u=(0,r.useMemo)(()=>n.barSeries(o,s||c,l),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,labels:void 0,series:u,stackMode:c?`percent`:void 0}),...a(e)})}function l(e){let{series:o}=e,s=(0,r.useMemo)(()=>n.candlestickSeries(o),[o]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:s}),...a(e)})}function u(e){let{data:o,xCategories:s,yCategories:c,colorScale:l,valueRange:u,colorMidpoint:d,name:f,radius:p,format:m}=e,h=(0,r.useMemo)(()=>n.heatmapChartOptions({data:o,xCategories:s,yCategories:c,colorScale:l,valueRange:u,colorMidpoint:d,name:f,radius:p,format:m}).series,[o,s,c,l,u,d,f,p,m]),g=t.engineOptions({...e,series:h});return(0,i.jsx)(t.ChartBase,{options:{...n.heatmapChartOptions({data:o,xCategories:s,yCategories:c},{...g,legend:e.legend,interaction:e.interaction,tooltip:e.tooltip}),series:h},...a(e)})}function d(e){let{data:a,type:o,color:s,curve:c,name:l,reference:u,format:d,height:f=48,width:p,renderer:m,tooltip:h,palette:g,ariaLabel:_,locale:v,labels:y,className:b,style:x,ref:S,onHover:C,renderTooltip:w}=e,T=(0,r.useMemo)(()=>n.sparklineOptions({data:a,type:o,color:s,curve:c,name:l,reference:u,format:d},{renderer:m,tooltip:h,palette:g,ariaLabel:_,locale:v,labels:y}),[a,o,s,c,l,u,d,m,h,g,_,v,y]);return(0,i.jsx)(t.ChartBase,{options:T,height:f,width:p,className:b,style:x,handleRef:S,onHover:C,renderTooltip:w})}function f(e){let{series:o}=e,s=(0,r.useMemo)(()=>n.scatterSeries(o),[o]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:s}),...a(e)})}var p=[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`],m=(e,t,n)=>{let r=e.endsWith(`Left`),i=e.startsWith(`top`);return{position:`absolute`,left:r?0:n.x-t.x,top:i?0:n.y-t.y,width:r?n.x-t.x:t.x+t.width-n.x,height:i?n.y-t.y:t.y+t.height-n.y,pointerEvents:`none`}};function h(e){let{points:r,xDomain:o,yDomain:s,xSplit:c,ySplit:l,quadrants:u,xLabel:d,yLabel:f,axisLabels:h,showTicks:g,reverseX:_,showLabels:v,pointSize:y,name:b,draggable:x,onPointClick:S,onPointDrop:C,onQuadrantClick:w,renderTooltip:T,quadrantContent:E}=e,D={xDomain:o,yDomain:s,xSplit:c,ySplit:l,reverseX:_},O=n.quadrantChartOptions({points:r,xDomain:o,yDomain:s,xSplit:c,ySplit:l,quadrants:u,xLabel:d,yLabel:f,axisLabels:h,showTicks:g,reverseX:_,showLabels:v,pointSize:y,name:b,draggable:x??!!C},t.engineOptions({...e,series:[]})),k=E?e=>{let[t,n]=o??[0,10],[r,a]=s??[0,10],u=c??(t+n)/2,d=l??(r+a)/2,f=(u-t)/(n-t||1),h=(d-r)/(a-r||1),g={x:e.x+e.width*(_?1-f:f),y:e.y+e.height*(1-h)};return p.map(t=>E[t]?(0,i.jsx)(`div`,{className:`minerva-chart-quadrant minerva-chart-quadrant-${t}`,style:m(t,e,g),children:E[t]},t):null)}:void 0;return(0,i.jsx)(t.ChartBase,{options:O,...a({...e,onPointClick:void 0,renderTooltip:void 0}),overlay:k,onPointClick:S?e=>{let t=e.items[0]?.index;t!==void 0&&r[t]&&S(r[t],t)}:void 0,onPlotClick:w?e=>w(n.quadrantOf(D,e.x,e.y),e):void 0,onDrop:C?e=>{let t=e.item.index;r[t]&&C(r[t],t,{x:e.x,y:e.y,quadrant:n.quadrantOf(D,e.x,e.y)})}:void 0,renderTooltip:T?e=>{let t=e.items[0]?.index;return t!==void 0&&r[t]?T(r[t],t):null}:void 0})}function g(e){return(0,i.jsx)(c,{...e,orientation:`horizontal`})}function _(e){let{series:o,curve:s=`smooth`}=e,c=(0,r.useMemo)(()=>n.rangeAreaSeries(o,s),[o,s]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:c}),...a(e)})}function v(e){return(0,i.jsx)(t.Chart,{...e})}function y(e){let{series:o,minSize:s,maxSize:c,maxValue:l}=e,u=(0,r.useMemo)(()=>n.bubbleSeries(o,{minSize:s,maxSize:c,maxValue:l}),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:u}),...a(e)})}function b(o){let{values:s,bins:c,domain:l,nice:u,name:d,color:f,formatBin:p,series:m,locale:h}=o,g=e.resolveLocale(h),_=(0,r.useMemo)(()=>[n.histogramSeries(s,{bins:c,domain:l,nice:u,name:d,color:f,format:p,locale:g}),...m??[]],[s,c,l,u,d,f,p,m,g]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...o,series:_}),...a(o)})}function x(o){let{series:s,groups:c,name:l,whisker:u,orientation:d,locale:f,outlierShape:p,outlierSize:m}=o,h=l??n.presetLabels(e.resolveLocale(f)).values,g=(0,r.useMemo)(()=>n.boxplotSeries([...c?.length?[{id:`boxplot`,name:h,data:n.boxplotData(c,{whisker:u})}]:[],...s??[]]).map(e=>e.type===`boxplot`?{...e,outlierShape:e.outlierShape??p,outlierSize:e.outlierSize??m}:e),[s,c,h,u,p,m]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...o,series:g,orientation:d}),...a(o)})}function S(o){let{steps:s,name:c,upColor:l,downColor:u,totalColor:d,start:f,labels:p=!0,format:m,connector:h,orientation:g,locale:_}=o,v=e.resolveLocale(_),y=(0,r.useMemo)(()=>[n.waterfallSeries(s,{name:c,upColor:l,downColor:u,totalColor:d,start:f,labels:p,format:m,connector:h,locale:v})],[s,c,l,u,d,f,p,m,h,v]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...o,labels:void 0,series:y,orientation:g}),...a(o)})}function C(o){let{tasks:s,colors:c,taskName:l,progressName:u,milestoneName:d,formatProgress:f,dependenciesName:p,dependencyArrows:m,dependencyColor:h,today:g=!1,todayLabel:_,xAxis:v,yAxis:y,annotations:b,interaction:x,legend:S,locale:C}=o,w=e.resolveLocale(C),T=(0,r.useMemo)(()=>n.ganttSeries(s,{colors:c,taskName:l,progressName:u,milestoneName:d,formatProgress:f,dependenciesName:p,dependencyArrows:m,dependencyColor:h,locale:w}),[s,c,l,u,d,f,p,m,h,w]),[E]=(0,r.useState)(()=>Date.now()),D=g===!1?null:g===!0?E:g instanceof Date?g.getTime():g,O=D===null?[]:[{type:`line`,axis:`y`,value:D,color:`var(--danger-color, #dc2626)`,dash:[4,3],label:_}];return(0,i.jsx)(t.ChartBase,{options:{...t.engineOptions({...o,series:T.series,orientation:`horizontal`}),xAxis:{type:`category`,categories:T.categories,...v},yAxis:{type:`time`,min:T.domain[0],max:T.domain[1],...y},annotations:[...b??[],...O],dependencies:T.dependencies,interaction:x??{zoom:`y`},legend:S??T.series.length>1},...a(o)})}exports.AreaChart=s,exports.BarChart=c,exports.BoxPlotChart=x,exports.BubbleChart=y,exports.CandlestickChart=l,exports.GanttChart=C,exports.HeatmapChart=u,exports.HistogramChart=b,exports.HorizontalBarChart=g,exports.LineChart=o,exports.MixedChart=v,exports.QuadrantChart=h,exports.RangeAreaChart=_,exports.ScatterChart=f,exports.Sparkline=d,exports.WaterfallChart=S;
|
|
2
2
|
//# sourceMappingURL=charts.cjs.map
|