@antv/component 2.0.4 → 2.1.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component.min.js +1 -1
- package/esm/animation/fadeIn.d.ts +1 -1
- package/esm/animation/fadeOut.d.ts +1 -1
- package/esm/animation/utils.d.ts +3 -3
- package/esm/animation/utils.js +31 -37
- package/esm/animation/utils.js.map +1 -1
- package/esm/constant.js +1 -1
- package/esm/constant.js.map +1 -1
- package/esm/core/component.js +30 -43
- package/esm/core/component.js.map +1 -1
- package/esm/shapes/Text.js +13 -21
- package/esm/shapes/Text.js.map +1 -1
- package/esm/ui/axis/axis.d.ts +1 -1
- package/esm/ui/axis/axis.js +25 -31
- package/esm/ui/axis/axis.js.map +1 -1
- package/esm/ui/axis/constant.js +11 -13
- package/esm/ui/axis/constant.js.map +1 -1
- package/esm/ui/axis/guides/grid.d.ts +1 -1
- package/esm/ui/axis/guides/grid.js +29 -34
- package/esm/ui/axis/guides/grid.js.map +1 -1
- package/esm/ui/axis/guides/labels.js +76 -83
- package/esm/ui/axis/guides/labels.js.map +1 -1
- package/esm/ui/axis/guides/line.js +74 -87
- package/esm/ui/axis/guides/line.js.map +1 -1
- package/esm/ui/axis/guides/ticks.d.ts +1 -1
- package/esm/ui/axis/guides/ticks.js +31 -39
- package/esm/ui/axis/guides/ticks.js.map +1 -1
- package/esm/ui/axis/guides/title.d.ts +1 -1
- package/esm/ui/axis/guides/title.js +33 -37
- package/esm/ui/axis/guides/title.js.map +1 -1
- package/esm/ui/axis/guides/utils.js +10 -12
- package/esm/ui/axis/guides/utils.js.map +1 -1
- package/esm/ui/axis/overlap/autoEllipsis.js +12 -19
- package/esm/ui/axis/overlap/autoEllipsis.js.map +1 -1
- package/esm/ui/axis/overlap/autoHide.js +20 -24
- package/esm/ui/axis/overlap/autoHide.js.map +1 -1
- package/esm/ui/axis/overlap/autoRotate.js +11 -25
- package/esm/ui/axis/overlap/autoRotate.js.map +1 -1
- package/esm/ui/axis/overlap/autoWrap.js +11 -14
- package/esm/ui/axis/overlap/autoWrap.js.map +1 -1
- package/esm/ui/axis/overlap/index.js +7 -7
- package/esm/ui/axis/overlap/index.js.map +1 -1
- package/esm/ui/axis/utils/bounds.js +48 -75
- package/esm/ui/axis/utils/bounds.js.map +1 -1
- package/esm/ui/axis/utils/contain.js +14 -14
- package/esm/ui/axis/utils/contain.js.map +1 -1
- package/esm/ui/axis/utils/index.js +3 -7
- package/esm/ui/axis/utils/index.js.map +1 -1
- package/esm/ui/axis/utils/intersect.js +21 -33
- package/esm/ui/axis/utils/intersect.js.map +1 -1
- package/esm/ui/axis/utils/test.js +29 -41
- package/esm/ui/axis/utils/test.js.map +1 -1
- package/esm/ui/breadcrumb/index.js +64 -72
- package/esm/ui/breadcrumb/index.js.map +1 -1
- package/esm/ui/button/constant.js +3 -3
- package/esm/ui/button/constant.js.map +1 -1
- package/esm/ui/button/index.js +81 -97
- package/esm/ui/button/index.js.map +1 -1
- package/esm/ui/checkbox/constant.js +4 -4
- package/esm/ui/checkbox/constant.js.map +1 -1
- package/esm/ui/checkbox/index.js +23 -26
- package/esm/ui/checkbox/index.js.map +1 -1
- package/esm/ui/crosshair/base.js +29 -45
- package/esm/ui/crosshair/base.js.map +1 -1
- package/esm/ui/crosshair/circle.js +25 -34
- package/esm/ui/crosshair/circle.js.map +1 -1
- package/esm/ui/crosshair/constant.js +4 -4
- package/esm/ui/crosshair/constant.js.map +1 -1
- package/esm/ui/crosshair/line.js +55 -75
- package/esm/ui/crosshair/line.js.map +1 -1
- package/esm/ui/crosshair/polygon.js +54 -70
- package/esm/ui/crosshair/polygon.js.map +1 -1
- package/esm/ui/grid/index.d.ts +1 -1
- package/esm/ui/grid/index.js +73 -95
- package/esm/ui/grid/index.js.map +1 -1
- package/esm/ui/indicator/constant.js +2 -2
- package/esm/ui/indicator/constant.js.map +1 -1
- package/esm/ui/indicator/indicator.js +58 -63
- package/esm/ui/indicator/indicator.js.map +1 -1
- package/esm/ui/layout/layout.js +52 -66
- package/esm/ui/layout/layout.js.map +1 -1
- package/esm/ui/legend/base.js +12 -13
- package/esm/ui/legend/base.js.map +1 -1
- package/esm/ui/legend/category/item.js +122 -156
- package/esm/ui/legend/category/item.js.map +1 -1
- package/esm/ui/legend/category/items.js +158 -201
- package/esm/ui/legend/category/items.js.map +1 -1
- package/esm/ui/legend/category.js +46 -56
- package/esm/ui/legend/category.js.map +1 -1
- package/esm/ui/legend/constant.js +6 -6
- package/esm/ui/legend/constant.js.map +1 -1
- package/esm/ui/legend/continuous/handle.js +28 -33
- package/esm/ui/legend/continuous/handle.js.map +1 -1
- package/esm/ui/legend/continuous/ribbon.js +34 -38
- package/esm/ui/legend/continuous/ribbon.js.map +1 -1
- package/esm/ui/legend/continuous/utils.js +10 -11
- package/esm/ui/legend/continuous/utils.js.map +1 -1
- package/esm/ui/legend/continuous.js +417 -521
- package/esm/ui/legend/continuous.js.map +1 -1
- package/esm/ui/legend/utils.js +24 -31
- package/esm/ui/legend/utils.js.map +1 -1
- package/esm/ui/marker/index.js +38 -44
- package/esm/ui/marker/index.js.map +1 -1
- package/esm/ui/marker/symbol.js +24 -24
- package/esm/ui/marker/symbol.js.map +1 -1
- package/esm/ui/marker/utils.js +2 -2
- package/esm/ui/marker/utils.js.map +1 -1
- package/esm/ui/navigator/index.js +128 -159
- package/esm/ui/navigator/index.js.map +1 -1
- package/esm/ui/poptip/constant.d.ts +1 -1
- package/esm/ui/poptip/constant.js +68 -69
- package/esm/ui/poptip/constant.js.map +1 -1
- package/esm/ui/poptip/index.js +95 -111
- package/esm/ui/poptip/index.js.map +1 -1
- package/esm/ui/poptip/utils.js +8 -15
- package/esm/ui/poptip/utils.js.map +1 -1
- package/esm/ui/scrollbar/index.js +102 -132
- package/esm/ui/scrollbar/index.js.map +1 -1
- package/esm/ui/select/option.js +48 -58
- package/esm/ui/select/option.js.map +1 -1
- package/esm/ui/select/select.js +142 -164
- package/esm/ui/select/select.js.map +1 -1
- package/esm/ui/slider/constant.js +4 -4
- package/esm/ui/slider/constant.js.map +1 -1
- package/esm/ui/slider/handle.js +46 -54
- package/esm/ui/slider/handle.js.map +1 -1
- package/esm/ui/slider/index.js +282 -328
- package/esm/ui/slider/index.js.map +1 -1
- package/esm/ui/sparkline/columns.js +25 -34
- package/esm/ui/sparkline/columns.js.map +1 -1
- package/esm/ui/sparkline/index.js +145 -180
- package/esm/ui/sparkline/index.js.map +1 -1
- package/esm/ui/sparkline/lines.js +37 -50
- package/esm/ui/sparkline/lines.js.map +1 -1
- package/esm/ui/sparkline/path.js +36 -40
- package/esm/ui/sparkline/path.js.map +1 -1
- package/esm/ui/sparkline/utils.js +10 -8
- package/esm/ui/sparkline/utils.js.map +1 -1
- package/esm/ui/switch/constant.js +1 -1
- package/esm/ui/switch/constant.js.map +1 -1
- package/esm/ui/switch/index.js +44 -54
- package/esm/ui/switch/index.js.map +1 -1
- package/esm/ui/tag/index.js +29 -32
- package/esm/ui/tag/index.js.map +1 -1
- package/esm/ui/timebar/controller.js +69 -79
- package/esm/ui/timebar/controller.js.map +1 -1
- package/esm/ui/timebar/handle.js +62 -71
- package/esm/ui/timebar/handle.js.map +1 -1
- package/esm/ui/timebar/icons.js +308 -478
- package/esm/ui/timebar/icons.js.map +1 -1
- package/esm/ui/timebar/timebar.js +263 -318
- package/esm/ui/timebar/timebar.js.map +1 -1
- package/esm/ui/timebar/utils.js +7 -7
- package/esm/ui/timebar/utils.js.map +1 -1
- package/esm/ui/timeline/index.js +2 -6
- package/esm/ui/timeline/index.js.map +1 -1
- package/esm/ui/title/index.js +59 -64
- package/esm/ui/title/index.js.map +1 -1
- package/esm/ui/title/types.d.ts +1 -1
- package/esm/ui/tooltip/constant.js +26 -30
- package/esm/ui/tooltip/constant.js.map +1 -1
- package/esm/ui/tooltip/index.js +109 -126
- package/esm/ui/tooltip/index.js.map +1 -1
- package/esm/util/bbox.js +24 -47
- package/esm/util/bbox.js.map +1 -1
- package/esm/util/callback.js +1 -2
- package/esm/util/callback.js.map +1 -1
- package/esm/util/classnames.js +8 -10
- package/esm/util/classnames.js.map +1 -1
- package/esm/util/deep-assign.js +6 -14
- package/esm/util/deep-assign.js.map +1 -1
- package/esm/util/defined.js +1 -1
- package/esm/util/defined.js.map +1 -1
- package/esm/util/ellipsis.js +1 -2
- package/esm/util/ellipsis.js.map +1 -1
- package/esm/util/event.js +3 -3
- package/esm/util/event.js.map +1 -1
- package/esm/util/geometry/line-length.js +1 -4
- package/esm/util/geometry/line-length.js.map +1 -1
- package/esm/util/geometry/lines-intersection.js +5 -10
- package/esm/util/geometry/lines-intersection.js.map +1 -1
- package/esm/util/group-by.js +1 -1
- package/esm/util/group-by.js.map +1 -1
- package/esm/util/group.js +3 -3
- package/esm/util/group.js.map +1 -1
- package/esm/util/html.js +1 -1
- package/esm/util/html.js.map +1 -1
- package/esm/util/if-show.js +3 -5
- package/esm/util/if-show.js.map +1 -1
- package/esm/util/in-range.js +1 -3
- package/esm/util/in-range.js.map +1 -1
- package/esm/util/interpolate.js +12 -19
- package/esm/util/interpolate.js.map +1 -1
- package/esm/util/keyframe-interpolate.d.ts +1 -1
- package/esm/util/keyframe-interpolate.js +6 -7
- package/esm/util/keyframe-interpolate.js.map +1 -1
- package/esm/util/layout/executer.js +4 -4
- package/esm/util/layout/executer.js.map +1 -1
- package/esm/util/layout/flex/index.js +24 -26
- package/esm/util/layout/flex/index.js.map +1 -1
- package/esm/util/layout/grid/index.js +1 -1
- package/esm/util/layout/grid/index.js.map +1 -1
- package/esm/util/layout/utils/helper.js +7 -8
- package/esm/util/layout/utils/helper.js.map +1 -1
- package/esm/util/matrix.js +7 -8
- package/esm/util/matrix.js.map +1 -1
- package/esm/util/number.js +6 -7
- package/esm/util/number.js.map +1 -1
- package/esm/util/offscreen.js +9 -17
- package/esm/util/offscreen.js.map +1 -1
- package/esm/util/omit.js +3 -3
- package/esm/util/omit.js.map +1 -1
- package/esm/util/path.js +36 -41
- package/esm/util/path.js.map +1 -1
- package/esm/util/primitive.js +3 -3
- package/esm/util/primitive.js.map +1 -1
- package/esm/util/replace-children.js +3 -4
- package/esm/util/replace-children.js.map +1 -1
- package/esm/util/sampling.js +3 -3
- package/esm/util/sampling.js.map +1 -1
- package/esm/util/scale-to-pixel.js +4 -5
- package/esm/util/scale-to-pixel.js.map +1 -1
- package/esm/util/selection.js +142 -186
- package/esm/util/selection.js.map +1 -1
- package/esm/util/series.js +1 -1
- package/esm/util/series.js.map +1 -1
- package/esm/util/shape.js +15 -27
- package/esm/util/shape.js.map +1 -1
- package/esm/util/string.js +4 -5
- package/esm/util/string.js.map +1 -1
- package/esm/util/style.js +23 -29
- package/esm/util/style.js.map +1 -1
- package/esm/util/svg2marker.js +13 -16
- package/esm/util/svg2marker.js.map +1 -1
- package/esm/util/text.d.ts +1 -9
- package/esm/util/text.js +14 -14
- package/esm/util/text.js.map +1 -1
- package/esm/util/throttle.js +7 -13
- package/esm/util/throttle.js.map +1 -1
- package/esm/util/time.js +22 -24
- package/esm/util/time.js.map +1 -1
- package/esm/util/timer.js +5 -9
- package/esm/util/timer.js.map +1 -1
- package/esm/util/transform.js +5 -6
- package/esm/util/transform.js.map +1 -1
- package/esm/util/transpose.js +1 -1
- package/esm/util/transpose.js.map +1 -1
- package/esm/util/traverse.js +1 -1
- package/esm/util/traverse.js.map +1 -1
- package/esm/util/visibility.js +2 -2
- package/esm/util/visibility.js.map +1 -1
- package/esm/util/wrap.js +2 -4
- package/esm/util/wrap.js.map +1 -1
- package/lib/animation/fadeIn.d.ts +1 -1
- package/lib/animation/fadeIn.js +1 -1
- package/lib/animation/fadeIn.js.map +1 -1
- package/lib/animation/fadeOut.d.ts +1 -1
- package/lib/animation/fadeOut.js +1 -1
- package/lib/animation/fadeOut.js.map +1 -1
- package/lib/animation/index.js +1 -1
- package/lib/animation/utils.d.ts +3 -3
- package/lib/animation/utils.js +33 -39
- package/lib/animation/utils.js.map +1 -1
- package/lib/core/component.js +31 -43
- package/lib/core/component.js.map +1 -1
- package/lib/core/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/shapes/Text.js +15 -22
- package/lib/shapes/Text.js.map +1 -1
- package/lib/shapes/index.js +1 -1
- package/lib/types/index.js +1 -1
- package/lib/ui/axis/axis.d.ts +1 -1
- package/lib/ui/axis/axis.js +34 -39
- package/lib/ui/axis/axis.js.map +1 -1
- package/lib/ui/axis/constant.js +10 -12
- package/lib/ui/axis/constant.js.map +1 -1
- package/lib/ui/axis/guides/grid.d.ts +1 -1
- package/lib/ui/axis/guides/grid.js +35 -40
- package/lib/ui/axis/guides/grid.js.map +1 -1
- package/lib/ui/axis/guides/labels.js +82 -89
- package/lib/ui/axis/guides/labels.js.map +1 -1
- package/lib/ui/axis/guides/line.js +79 -92
- package/lib/ui/axis/guides/line.js.map +1 -1
- package/lib/ui/axis/guides/ticks.d.ts +1 -1
- package/lib/ui/axis/guides/ticks.js +37 -45
- package/lib/ui/axis/guides/ticks.js.map +1 -1
- package/lib/ui/axis/guides/title.d.ts +1 -1
- package/lib/ui/axis/guides/title.js +37 -41
- package/lib/ui/axis/guides/title.js.map +1 -1
- package/lib/ui/axis/guides/utils.js +12 -14
- package/lib/ui/axis/guides/utils.js.map +1 -1
- package/lib/ui/axis/overlap/autoEllipsis.js +15 -22
- package/lib/ui/axis/overlap/autoEllipsis.js.map +1 -1
- package/lib/ui/axis/overlap/autoHide.js +23 -27
- package/lib/ui/axis/overlap/autoHide.js.map +1 -1
- package/lib/ui/axis/overlap/autoRotate.js +12 -26
- package/lib/ui/axis/overlap/autoRotate.js.map +1 -1
- package/lib/ui/axis/overlap/autoWrap.js +13 -16
- package/lib/ui/axis/overlap/autoWrap.js.map +1 -1
- package/lib/ui/axis/overlap/index.js +12 -12
- package/lib/ui/axis/overlap/index.js.map +1 -1
- package/lib/ui/axis/utils/bounds.js +49 -75
- package/lib/ui/axis/utils/bounds.js.map +1 -1
- package/lib/ui/axis/utils/contain.js +15 -15
- package/lib/ui/axis/utils/contain.js.map +1 -1
- package/lib/ui/axis/utils/index.js +4 -8
- package/lib/ui/axis/utils/index.js.map +1 -1
- package/lib/ui/axis/utils/intersect.js +22 -34
- package/lib/ui/axis/utils/intersect.js.map +1 -1
- package/lib/ui/axis/utils/test.js +35 -47
- package/lib/ui/axis/utils/test.js.map +1 -1
- package/lib/ui/breadcrumb/index.js +70 -77
- package/lib/ui/breadcrumb/index.js.map +1 -1
- package/lib/ui/button/index.js +86 -101
- package/lib/ui/button/index.js.map +1 -1
- package/lib/ui/checkbox/constant.js +2 -2
- package/lib/ui/checkbox/constant.js.map +1 -1
- package/lib/ui/checkbox/index.js +26 -28
- package/lib/ui/checkbox/index.js.map +1 -1
- package/lib/ui/crosshair/base.js +33 -48
- package/lib/ui/crosshair/base.js.map +1 -1
- package/lib/ui/crosshair/circle.js +29 -37
- package/lib/ui/crosshair/circle.js.map +1 -1
- package/lib/ui/crosshair/constant.js +1 -1
- package/lib/ui/crosshair/constant.js.map +1 -1
- package/lib/ui/crosshair/index.js +1 -1
- package/lib/ui/crosshair/line.js +58 -77
- package/lib/ui/crosshair/line.js.map +1 -1
- package/lib/ui/crosshair/polygon.js +57 -72
- package/lib/ui/crosshair/polygon.js.map +1 -1
- package/lib/ui/grid/index.d.ts +1 -1
- package/lib/ui/grid/index.js +76 -97
- package/lib/ui/grid/index.js.map +1 -1
- package/lib/ui/indicator/constant.js +1 -1
- package/lib/ui/indicator/constant.js.map +1 -1
- package/lib/ui/indicator/index.js +1 -1
- package/lib/ui/indicator/indicator.js +63 -67
- package/lib/ui/indicator/indicator.js.map +1 -1
- package/lib/ui/layout/layout.js +57 -70
- package/lib/ui/layout/layout.js.map +1 -1
- package/lib/ui/legend/base.js +14 -15
- package/lib/ui/legend/base.js.map +1 -1
- package/lib/ui/legend/category/item.js +126 -159
- package/lib/ui/legend/category/item.js.map +1 -1
- package/lib/ui/legend/category/items.js +166 -208
- package/lib/ui/legend/category/items.js.map +1 -1
- package/lib/ui/legend/category.js +51 -60
- package/lib/ui/legend/category.js.map +1 -1
- package/lib/ui/legend/constant.js +2 -2
- package/lib/ui/legend/constant.js.map +1 -1
- package/lib/ui/legend/continuous/handle.js +31 -35
- package/lib/ui/legend/continuous/handle.js.map +1 -1
- package/lib/ui/legend/continuous/ribbon.js +40 -43
- package/lib/ui/legend/continuous/ribbon.js.map +1 -1
- package/lib/ui/legend/continuous/utils.js +10 -11
- package/lib/ui/legend/continuous/utils.js.map +1 -1
- package/lib/ui/legend/continuous.js +432 -535
- package/lib/ui/legend/continuous.js.map +1 -1
- package/lib/ui/legend/index.js +2 -2
- package/lib/ui/legend/index.js.map +1 -1
- package/lib/ui/legend/utils.js +25 -32
- package/lib/ui/legend/utils.js.map +1 -1
- package/lib/ui/marker/index.js +43 -48
- package/lib/ui/marker/index.js.map +1 -1
- package/lib/ui/marker/symbol.js +22 -22
- package/lib/ui/marker/symbol.js.map +1 -1
- package/lib/ui/marker/utils.js +3 -3
- package/lib/ui/marker/utils.js.map +1 -1
- package/lib/ui/navigator/index.js +135 -165
- package/lib/ui/navigator/index.js.map +1 -1
- package/lib/ui/poptip/constant.d.ts +1 -1
- package/lib/ui/poptip/constant.js +66 -67
- package/lib/ui/poptip/constant.js.map +1 -1
- package/lib/ui/poptip/index.js +100 -115
- package/lib/ui/poptip/index.js.map +1 -1
- package/lib/ui/poptip/utils.js +8 -15
- package/lib/ui/poptip/utils.js.map +1 -1
- package/lib/ui/scrollbar/index.js +107 -136
- package/lib/ui/scrollbar/index.js.map +1 -1
- package/lib/ui/select/option.js +52 -61
- package/lib/ui/select/option.js.map +1 -1
- package/lib/ui/select/select.js +148 -169
- package/lib/ui/select/select.js.map +1 -1
- package/lib/ui/slider/constant.js +1 -1
- package/lib/ui/slider/constant.js.map +1 -1
- package/lib/ui/slider/handle.js +49 -56
- package/lib/ui/slider/handle.js.map +1 -1
- package/lib/ui/slider/index.js +291 -336
- package/lib/ui/slider/index.js.map +1 -1
- package/lib/ui/sparkline/columns.js +28 -36
- package/lib/ui/sparkline/columns.js.map +1 -1
- package/lib/ui/sparkline/index.js +153 -187
- package/lib/ui/sparkline/index.js.map +1 -1
- package/lib/ui/sparkline/lines.js +40 -52
- package/lib/ui/sparkline/lines.js.map +1 -1
- package/lib/ui/sparkline/path.js +38 -42
- package/lib/ui/sparkline/path.js.map +1 -1
- package/lib/ui/sparkline/utils.js +11 -9
- package/lib/ui/sparkline/utils.js.map +1 -1
- package/lib/ui/switch/index.js +49 -58
- package/lib/ui/switch/index.js.map +1 -1
- package/lib/ui/tag/index.js +34 -36
- package/lib/ui/tag/index.js.map +1 -1
- package/lib/ui/timebar/controller.js +73 -82
- package/lib/ui/timebar/controller.js.map +1 -1
- package/lib/ui/timebar/handle.js +67 -74
- package/lib/ui/timebar/handle.js.map +1 -1
- package/lib/ui/timebar/icons.js +312 -466
- package/lib/ui/timebar/icons.js.map +1 -1
- package/lib/ui/timebar/timebar.js +272 -326
- package/lib/ui/timebar/timebar.js.map +1 -1
- package/lib/ui/timebar/utils.js +8 -8
- package/lib/ui/timebar/utils.js.map +1 -1
- package/lib/ui/timeline/index.js +2 -5
- package/lib/ui/timeline/index.js.map +1 -1
- package/lib/ui/title/index.js +61 -65
- package/lib/ui/title/index.js.map +1 -1
- package/lib/ui/title/types.d.ts +1 -1
- package/lib/ui/tooltip/constant.js +26 -30
- package/lib/ui/tooltip/constant.js.map +1 -1
- package/lib/ui/tooltip/index.js +113 -129
- package/lib/ui/tooltip/index.js.map +1 -1
- package/lib/util/bbox.js +24 -46
- package/lib/util/bbox.js.map +1 -1
- package/lib/util/callback.js +2 -3
- package/lib/util/callback.js.map +1 -1
- package/lib/util/classnames.js +8 -10
- package/lib/util/classnames.js.map +1 -1
- package/lib/util/deep-assign.js +7 -15
- package/lib/util/deep-assign.js.map +1 -1
- package/lib/util/defined.js +1 -1
- package/lib/util/defined.js.map +1 -1
- package/lib/util/ellipsis.js +2 -3
- package/lib/util/ellipsis.js.map +1 -1
- package/lib/util/event.js +3 -3
- package/lib/util/event.js.map +1 -1
- package/lib/util/extend-display-object.js +2 -2
- package/lib/util/extend-display-object.js.map +1 -1
- package/lib/util/geometry/index.js +1 -1
- package/lib/util/geometry/line-length.js +1 -4
- package/lib/util/geometry/line-length.js.map +1 -1
- package/lib/util/geometry/lines-intersection.js +5 -10
- package/lib/util/geometry/lines-intersection.js.map +1 -1
- package/lib/util/group-by.js +1 -1
- package/lib/util/group-by.js.map +1 -1
- package/lib/util/group.js +3 -3
- package/lib/util/group.js.map +1 -1
- package/lib/util/html.js +1 -1
- package/lib/util/html.js.map +1 -1
- package/lib/util/if-show.js +3 -5
- package/lib/util/if-show.js.map +1 -1
- package/lib/util/in-range.js +1 -3
- package/lib/util/in-range.js.map +1 -1
- package/lib/util/index.js +1 -1
- package/lib/util/interpolate.js +12 -19
- package/lib/util/interpolate.js.map +1 -1
- package/lib/util/keyframe-interpolate.d.ts +1 -1
- package/lib/util/keyframe-interpolate.js +7 -8
- package/lib/util/keyframe-interpolate.js.map +1 -1
- package/lib/util/layout/executer.js +6 -6
- package/lib/util/layout/executer.js.map +1 -1
- package/lib/util/layout/flex/index.js +26 -28
- package/lib/util/layout/flex/index.js.map +1 -1
- package/lib/util/layout/grid/index.js +1 -1
- package/lib/util/layout/grid/index.js.map +1 -1
- package/lib/util/layout/index.js +1 -1
- package/lib/util/layout/utils/helper.js +8 -9
- package/lib/util/layout/utils/helper.js.map +1 -1
- package/lib/util/matrix.js +7 -8
- package/lib/util/matrix.js.map +1 -1
- package/lib/util/number.js +6 -7
- package/lib/util/number.js.map +1 -1
- package/lib/util/offscreen.js +12 -20
- package/lib/util/offscreen.js.map +1 -1
- package/lib/util/omit.js +3 -3
- package/lib/util/omit.js.map +1 -1
- package/lib/util/path.js +37 -42
- package/lib/util/path.js.map +1 -1
- package/lib/util/primitive.js +2 -2
- package/lib/util/primitive.js.map +1 -1
- package/lib/util/replace-children.js +3 -4
- package/lib/util/replace-children.js.map +1 -1
- package/lib/util/sampling.js +3 -3
- package/lib/util/sampling.js.map +1 -1
- package/lib/util/scale-to-pixel.js +4 -5
- package/lib/util/scale-to-pixel.js.map +1 -1
- package/lib/util/selection.js +144 -187
- package/lib/util/selection.js.map +1 -1
- package/lib/util/series.js +2 -2
- package/lib/util/series.js.map +1 -1
- package/lib/util/shape.js +16 -28
- package/lib/util/shape.js.map +1 -1
- package/lib/util/string.js +4 -5
- package/lib/util/string.js.map +1 -1
- package/lib/util/style.js +24 -30
- package/lib/util/style.js.map +1 -1
- package/lib/util/svg2marker.js +15 -17
- package/lib/util/svg2marker.js.map +1 -1
- package/lib/util/text.d.ts +1 -9
- package/lib/util/text.js +16 -16
- package/lib/util/text.js.map +1 -1
- package/lib/util/throttle.js +7 -13
- package/lib/util/throttle.js.map +1 -1
- package/lib/util/time.js +22 -24
- package/lib/util/time.js.map +1 -1
- package/lib/util/timer.js +5 -9
- package/lib/util/timer.js.map +1 -1
- package/lib/util/transform.js +5 -6
- package/lib/util/transform.js.map +1 -1
- package/lib/util/transpose.js +1 -1
- package/lib/util/transpose.js.map +1 -1
- package/lib/util/traverse.js +1 -1
- package/lib/util/traverse.js.map +1 -1
- package/lib/util/visibility.js +3 -3
- package/lib/util/visibility.js.map +1 -1
- package/lib/util/wrap.js +3 -5
- package/lib/util/wrap.js.map +1 -1
- package/package.json +9 -8
- package/src/ui/poptip/constant.ts +1 -1
- package/src/ui/slider/index.ts +3 -2
- package/src/ui/sparkline/utils.ts +4 -1
- package/src/ui/title/types.ts +1 -1
package/esm/ui/timebar/icons.js
CHANGED
|
@@ -1,73 +1,55 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest } from "tslib";
|
|
2
2
|
import { clamp, omit } from '@antv/util';
|
|
3
3
|
import { Component } from '../../core';
|
|
4
4
|
import { Group, Path, Rect } from '../../shapes';
|
|
5
5
|
import { deepAssign, parseSeriesAttr, select, subStyleProps } from '../../util';
|
|
6
6
|
import { Indicator } from '../indicator';
|
|
7
7
|
import { Select } from '../select';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
configurable: true
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(IconBase.prototype, "padding", {
|
|
33
|
-
get: function () {
|
|
34
|
-
return parseSeriesAttr(this.attributes.size / 5);
|
|
35
|
-
},
|
|
36
|
-
enumerable: false,
|
|
37
|
-
configurable: true
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(IconBase.prototype, "iconSize", {
|
|
40
|
-
get: function () {
|
|
41
|
-
var size = this.attributes.size;
|
|
42
|
-
var _a = __read(this.padding, 4), top = _a[0], right = _a[1], bottom = _a[2], left = _a[3];
|
|
43
|
-
return Math.max(size - Math.max(left + right, top + bottom), this.lineWidth * 2 + 1);
|
|
44
|
-
},
|
|
45
|
-
enumerable: false,
|
|
46
|
-
configurable: true
|
|
47
|
-
});
|
|
48
|
-
IconBase.prototype.renderBackground = function () {
|
|
49
|
-
var _a = this.attributes, x = _a.x, y = _a.y, size = _a.size;
|
|
50
|
-
var halfSize = size / 2;
|
|
51
|
-
var backgroundStyle = subStyleProps(this.attributes, 'background');
|
|
52
|
-
this.background.attr(__assign({ x: x - halfSize, y: y - halfSize, width: size, height: size }, backgroundStyle));
|
|
53
|
-
};
|
|
54
|
-
IconBase.prototype.showIndicator = function () {
|
|
8
|
+
export class IconBase extends Component {
|
|
9
|
+
get label() {
|
|
10
|
+
return 'BaseIcon';
|
|
11
|
+
}
|
|
12
|
+
get lineWidth() {
|
|
13
|
+
return Math.log10(this.attributes.size);
|
|
14
|
+
}
|
|
15
|
+
get padding() {
|
|
16
|
+
return parseSeriesAttr(this.attributes.size / 5);
|
|
17
|
+
}
|
|
18
|
+
get iconSize() {
|
|
19
|
+
const { size } = this.attributes;
|
|
20
|
+
const [top, right, bottom, left] = this.padding;
|
|
21
|
+
return Math.max(size - Math.max(left + right, top + bottom), this.lineWidth * 2 + 1);
|
|
22
|
+
}
|
|
23
|
+
renderBackground() {
|
|
24
|
+
const { x, y, size } = this.attributes;
|
|
25
|
+
const halfSize = size / 2;
|
|
26
|
+
const backgroundStyle = subStyleProps(this.attributes, 'background');
|
|
27
|
+
this.background.attr(Object.assign({ x: x - halfSize, y: y - halfSize, width: size, height: size }, backgroundStyle));
|
|
28
|
+
}
|
|
29
|
+
showIndicator() {
|
|
55
30
|
if (!this.label)
|
|
56
31
|
return;
|
|
57
|
-
|
|
58
|
-
|
|
32
|
+
const { size } = this.attributes;
|
|
33
|
+
const { x, y } = this.background.getBBox();
|
|
59
34
|
this.indicator.update({ x: x + size / 2, y: y - 5, labelText: this.label, visibility: 'visible' });
|
|
60
|
-
}
|
|
61
|
-
|
|
35
|
+
}
|
|
36
|
+
hideIndicator() {
|
|
62
37
|
this.indicator.update({ visibility: 'hidden' });
|
|
63
|
-
}
|
|
64
|
-
|
|
38
|
+
}
|
|
39
|
+
constructor(options) {
|
|
40
|
+
super(deepAssign({}, { style: { backgroundOpacity: IconBase.backgroundOpacities.default } }, IconBase.defaultOptions, options));
|
|
41
|
+
/** hover 时是否显示背景 */
|
|
42
|
+
this.showBackground = true;
|
|
43
|
+
this.background = this.appendChild(new Rect({}));
|
|
44
|
+
this.icon = this.appendChild(new Group({}));
|
|
45
|
+
}
|
|
46
|
+
connectedCallback() {
|
|
65
47
|
var _a;
|
|
66
|
-
|
|
48
|
+
super.connectedCallback();
|
|
67
49
|
// indicator 脱离文档流,需要手动添加到 canvas
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
50
|
+
const { size } = this.attributes;
|
|
51
|
+
const { x, y } = this.background.getBBox();
|
|
52
|
+
const canvas = (_a = this.ownerDocument) === null || _a === void 0 ? void 0 : _a.defaultView;
|
|
71
53
|
if (canvas) {
|
|
72
54
|
this.indicator = canvas.appendChild(new Indicator({
|
|
73
55
|
style: {
|
|
@@ -80,126 +62,104 @@ var IconBase = /** @class */ (function (_super) {
|
|
|
80
62
|
},
|
|
81
63
|
}));
|
|
82
64
|
}
|
|
83
|
-
}
|
|
84
|
-
|
|
65
|
+
}
|
|
66
|
+
disconnectedCallback() {
|
|
85
67
|
this.indicator.destroy();
|
|
86
|
-
}
|
|
87
|
-
|
|
68
|
+
}
|
|
69
|
+
render() {
|
|
88
70
|
this.renderIcon();
|
|
89
71
|
if (this.showBackground)
|
|
90
72
|
this.renderBackground();
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
onClick === null || onClick === void 0 ? void 0 : onClick(_this);
|
|
73
|
+
}
|
|
74
|
+
bindEvents() {
|
|
75
|
+
const { onClick } = this.attributes;
|
|
76
|
+
this.addEventListener('click', () => {
|
|
77
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(this);
|
|
97
78
|
});
|
|
98
79
|
if (this.showBackground) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
this.addEventListener('pointerenter',
|
|
103
|
-
|
|
104
|
-
|
|
80
|
+
const resetBackground = () => this.background.attr({ opacity: IconBase.backgroundOpacities.default });
|
|
81
|
+
const hoverBackground = () => this.background.attr({ opacity: IconBase.backgroundOpacities.hover });
|
|
82
|
+
const activeBackground = () => this.background.attr({ opacity: IconBase.backgroundOpacities.active });
|
|
83
|
+
this.addEventListener('pointerenter', () => {
|
|
84
|
+
hoverBackground();
|
|
85
|
+
this.showIndicator();
|
|
105
86
|
});
|
|
106
|
-
this.addEventListener('pointerleave',
|
|
107
|
-
|
|
108
|
-
|
|
87
|
+
this.addEventListener('pointerleave', () => {
|
|
88
|
+
resetBackground();
|
|
89
|
+
this.hideIndicator();
|
|
109
90
|
});
|
|
110
|
-
this.addEventListener('pointerdown',
|
|
111
|
-
|
|
91
|
+
this.addEventListener('pointerdown', () => {
|
|
92
|
+
activeBackground();
|
|
112
93
|
});
|
|
113
|
-
this.addEventListener('pointerup',
|
|
114
|
-
|
|
94
|
+
this.addEventListener('pointerup', () => {
|
|
95
|
+
resetBackground();
|
|
115
96
|
});
|
|
116
97
|
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
export { IconBase };
|
|
137
|
-
var arrow = function (size, color) {
|
|
138
|
-
if (color === void 0) { color = '#565758'; }
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
IconBase.tag = 'IconBase';
|
|
101
|
+
IconBase.defaultOptions = {
|
|
102
|
+
style: {
|
|
103
|
+
x: 0,
|
|
104
|
+
y: 0,
|
|
105
|
+
size: 10,
|
|
106
|
+
color: '#565758',
|
|
107
|
+
backgroundRadius: 4,
|
|
108
|
+
backgroundFill: '#e2e2e2',
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
IconBase.backgroundOpacities = {
|
|
112
|
+
default: 0,
|
|
113
|
+
hover: 0.8,
|
|
114
|
+
active: 1,
|
|
115
|
+
};
|
|
116
|
+
const arrow = (size, color = '#565758') => {
|
|
139
117
|
return new Path({
|
|
140
118
|
style: {
|
|
141
119
|
fill: color,
|
|
142
|
-
d:
|
|
120
|
+
d: `M ${size},${size} L -${size},0 L ${size},-${size} Z`,
|
|
143
121
|
transformOrigin: 'center',
|
|
144
122
|
},
|
|
145
123
|
});
|
|
146
124
|
};
|
|
147
125
|
/** 重置 */
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
enumerable: false,
|
|
165
|
-
configurable: true
|
|
166
|
-
});
|
|
167
|
-
Reset.prototype.renderIcon = function () {
|
|
168
|
-
var _a = this.attributes, x = _a.x, y = _a.y, color = _a.color;
|
|
169
|
-
var size = this.iconSize;
|
|
170
|
-
var lineWidth = this.lineWidth;
|
|
171
|
-
var arrowSize = lineWidth + 0.5;
|
|
126
|
+
export class Reset extends IconBase {
|
|
127
|
+
arcPath(cx, cy, radius) {
|
|
128
|
+
const [rx, ry] = [radius, radius];
|
|
129
|
+
const getPosByAngle = (angle) => [cx + radius * Math.cos(angle), cy + radius * Math.sin(angle)];
|
|
130
|
+
const [x1, y1] = getPosByAngle((-5 / 4) * Math.PI);
|
|
131
|
+
const [x2, y2] = getPosByAngle((1 / 4) * Math.PI);
|
|
132
|
+
return `M${x1},${y1},A${rx},${ry},0,1,1,${x2},${y2}`;
|
|
133
|
+
}
|
|
134
|
+
get label() {
|
|
135
|
+
return '重置';
|
|
136
|
+
}
|
|
137
|
+
renderIcon() {
|
|
138
|
+
const { x, y, color } = this.attributes;
|
|
139
|
+
const size = this.iconSize;
|
|
140
|
+
const { lineWidth } = this;
|
|
141
|
+
const arrowSize = lineWidth + 0.5;
|
|
172
142
|
select(this.icon)
|
|
173
143
|
.maybeAppend('.reset', 'path')
|
|
174
144
|
.styles({
|
|
175
145
|
stroke: color,
|
|
176
|
-
lineWidth
|
|
146
|
+
lineWidth,
|
|
177
147
|
d: this.arcPath(x, y, size / 2 - lineWidth),
|
|
178
148
|
markerStart: arrow(arrowSize, color),
|
|
179
149
|
});
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
}(IconBase));
|
|
183
|
-
export { Reset };
|
|
150
|
+
}
|
|
151
|
+
}
|
|
184
152
|
/** 快退 */
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
configurable: true
|
|
196
|
-
});
|
|
197
|
-
Backward.prototype.renderIcon = function () {
|
|
198
|
-
var _a = this.attributes, x = _a.x, y = _a.y, color = _a.color;
|
|
199
|
-
var size = this.iconSize;
|
|
200
|
-
var deltaX = size / 2;
|
|
201
|
-
var deltaY = size / 2 / Math.pow(3, 0.5);
|
|
202
|
-
var points = [
|
|
153
|
+
export class Backward extends IconBase {
|
|
154
|
+
get label() {
|
|
155
|
+
return '快退';
|
|
156
|
+
}
|
|
157
|
+
renderIcon() {
|
|
158
|
+
const { x, y, color } = this.attributes;
|
|
159
|
+
const size = this.iconSize;
|
|
160
|
+
const deltaX = size / 2;
|
|
161
|
+
const deltaY = size / 2 / Math.pow(3, 0.5);
|
|
162
|
+
const points = [
|
|
203
163
|
[x, y],
|
|
204
164
|
[x, y - deltaY],
|
|
205
165
|
[x - deltaX, y],
|
|
@@ -210,32 +170,22 @@ var Backward = /** @class */ (function (_super) {
|
|
|
210
170
|
[x, y],
|
|
211
171
|
];
|
|
212
172
|
select(this.icon).maybeAppend('.backward', 'polygon').styles({
|
|
213
|
-
points
|
|
173
|
+
points,
|
|
214
174
|
fill: color,
|
|
215
175
|
});
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
}(IconBase));
|
|
219
|
-
export { Backward };
|
|
176
|
+
}
|
|
177
|
+
}
|
|
220
178
|
/** 快进 */
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
configurable: true
|
|
232
|
-
});
|
|
233
|
-
Forward.prototype.renderIcon = function () {
|
|
234
|
-
var _a = this.attributes, x = _a.x, y = _a.y, color = _a.color;
|
|
235
|
-
var size = this.iconSize;
|
|
236
|
-
var deltaX = size / 2;
|
|
237
|
-
var deltaY = size / 2 / Math.pow(3, 0.5);
|
|
238
|
-
var points = [
|
|
179
|
+
export class Forward extends IconBase {
|
|
180
|
+
get label() {
|
|
181
|
+
return '快进';
|
|
182
|
+
}
|
|
183
|
+
renderIcon() {
|
|
184
|
+
const { x, y, color } = this.attributes;
|
|
185
|
+
const size = this.iconSize;
|
|
186
|
+
const deltaX = size / 2;
|
|
187
|
+
const deltaY = size / 2 / Math.pow(3, 0.5);
|
|
188
|
+
const points = [
|
|
239
189
|
[x, y],
|
|
240
190
|
[x, y - deltaY],
|
|
241
191
|
[x + deltaX, y],
|
|
@@ -246,60 +196,40 @@ var Forward = /** @class */ (function (_super) {
|
|
|
246
196
|
[x, y],
|
|
247
197
|
];
|
|
248
198
|
select(this.icon).maybeAppend('.forward', 'polygon').styles({
|
|
249
|
-
points
|
|
199
|
+
points,
|
|
250
200
|
fill: color,
|
|
251
201
|
});
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
return '播放';
|
|
264
|
-
},
|
|
265
|
-
enumerable: false,
|
|
266
|
-
configurable: true
|
|
267
|
-
});
|
|
268
|
-
Play.prototype.renderIcon = function () {
|
|
269
|
-
var _a = this.attributes, x = _a.x, y = _a.y, color = _a.color;
|
|
270
|
-
var size = this.iconSize;
|
|
271
|
-
var deltaX = (size / 3) * Math.pow(3, 0.5) * 0.8;
|
|
272
|
-
var points = [
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
export class Play extends IconBase {
|
|
205
|
+
get label() {
|
|
206
|
+
return '播放';
|
|
207
|
+
}
|
|
208
|
+
renderIcon() {
|
|
209
|
+
const { x, y, color } = this.attributes;
|
|
210
|
+
const size = this.iconSize;
|
|
211
|
+
const deltaX = (size / 3) * Math.pow(3, 0.5) * 0.8;
|
|
212
|
+
const points = [
|
|
273
213
|
[x + deltaX, y],
|
|
274
214
|
[x - deltaX / 2, y - (size / 2) * 0.8],
|
|
275
215
|
[x - deltaX / 2, y + (size / 2) * 0.8],
|
|
276
216
|
[x + deltaX, y],
|
|
277
217
|
];
|
|
278
218
|
select(this.icon).maybeAppend('.play', 'polygon').styles({
|
|
279
|
-
points
|
|
219
|
+
points,
|
|
280
220
|
fill: color,
|
|
281
221
|
});
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
return '暂停';
|
|
294
|
-
},
|
|
295
|
-
enumerable: false,
|
|
296
|
-
configurable: true
|
|
297
|
-
});
|
|
298
|
-
Pause.prototype.renderIcon = function () {
|
|
299
|
-
var _a = this.attributes, x = _a.x, y = _a.y, color = _a.color;
|
|
300
|
-
var size = this.iconSize;
|
|
301
|
-
var deltaX = size / 3;
|
|
302
|
-
var points = [
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
export class Pause extends IconBase {
|
|
225
|
+
get label() {
|
|
226
|
+
return '暂停';
|
|
227
|
+
}
|
|
228
|
+
renderIcon() {
|
|
229
|
+
const { x, y, color } = this.attributes;
|
|
230
|
+
const size = this.iconSize;
|
|
231
|
+
const deltaX = size / 3;
|
|
232
|
+
const points = [
|
|
303
233
|
[x - deltaX, y - size / 2],
|
|
304
234
|
[x - deltaX, y + size / 2],
|
|
305
235
|
[x - deltaX / 2, y + size / 2],
|
|
@@ -311,30 +241,20 @@ var Pause = /** @class */ (function (_super) {
|
|
|
311
241
|
[x + deltaX, y - size / 2],
|
|
312
242
|
];
|
|
313
243
|
select(this.icon).maybeAppend('.pause', 'polygon').styles({
|
|
314
|
-
points
|
|
244
|
+
points,
|
|
315
245
|
fill: color,
|
|
316
246
|
});
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
}(IconBase));
|
|
320
|
-
export { Pause };
|
|
247
|
+
}
|
|
248
|
+
}
|
|
321
249
|
/** 时间范围 */
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
},
|
|
331
|
-
enumerable: false,
|
|
332
|
-
configurable: true
|
|
333
|
-
});
|
|
334
|
-
Range.prototype.renderIcon = function () {
|
|
335
|
-
var _a = this.attributes, x = _a.x, y = _a.y, color = _a.color;
|
|
336
|
-
var _b = this, size = _b.iconSize, lineWidth = _b.lineWidth;
|
|
337
|
-
var gap = lineWidth;
|
|
250
|
+
export class Range extends IconBase {
|
|
251
|
+
get label() {
|
|
252
|
+
return '范围时间';
|
|
253
|
+
}
|
|
254
|
+
renderIcon() {
|
|
255
|
+
const { x, y, color } = this.attributes;
|
|
256
|
+
const { iconSize: size, lineWidth } = this;
|
|
257
|
+
const gap = lineWidth;
|
|
338
258
|
select(this.icon)
|
|
339
259
|
.maybeAppend('.left-line', 'line')
|
|
340
260
|
.styles({
|
|
@@ -343,7 +263,7 @@ var Range = /** @class */ (function (_super) {
|
|
|
343
263
|
x2: x - size / 2,
|
|
344
264
|
y2: y + size / 2,
|
|
345
265
|
stroke: color,
|
|
346
|
-
lineWidth
|
|
266
|
+
lineWidth,
|
|
347
267
|
});
|
|
348
268
|
select(this.icon)
|
|
349
269
|
.maybeAppend('.right-line', 'line')
|
|
@@ -353,7 +273,7 @@ var Range = /** @class */ (function (_super) {
|
|
|
353
273
|
x2: x + size / 2,
|
|
354
274
|
y2: y + size / 2,
|
|
355
275
|
stroke: color,
|
|
356
|
-
lineWidth
|
|
276
|
+
lineWidth,
|
|
357
277
|
});
|
|
358
278
|
select(this.icon)
|
|
359
279
|
.maybeAppend('.left-arrow', 'line')
|
|
@@ -363,7 +283,7 @@ var Range = /** @class */ (function (_super) {
|
|
|
363
283
|
x2: x - size / 2 + gap * 2,
|
|
364
284
|
y2: y,
|
|
365
285
|
stroke: color,
|
|
366
|
-
lineWidth
|
|
286
|
+
lineWidth,
|
|
367
287
|
markerEnd: arrow(lineWidth * 2, color),
|
|
368
288
|
});
|
|
369
289
|
select(this.icon)
|
|
@@ -374,29 +294,19 @@ var Range = /** @class */ (function (_super) {
|
|
|
374
294
|
x2: x + size / 2 - gap * 2,
|
|
375
295
|
y2: y,
|
|
376
296
|
stroke: color,
|
|
377
|
-
lineWidth
|
|
297
|
+
lineWidth,
|
|
378
298
|
markerEnd: arrow(lineWidth * 2, color),
|
|
379
299
|
});
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
}(IconBase));
|
|
383
|
-
export { Range };
|
|
300
|
+
}
|
|
301
|
+
}
|
|
384
302
|
/** 值范围 */
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
return '单一时间';
|
|
393
|
-
},
|
|
394
|
-
enumerable: false,
|
|
395
|
-
configurable: true
|
|
396
|
-
});
|
|
397
|
-
Value.prototype.renderIcon = function () {
|
|
398
|
-
var _a = this.attributes, x = _a.x, y = _a.y, color = _a.color;
|
|
399
|
-
var _b = this, size = _b.iconSize, lineWidth = _b.lineWidth;
|
|
303
|
+
export class Value extends IconBase {
|
|
304
|
+
get label() {
|
|
305
|
+
return '单一时间';
|
|
306
|
+
}
|
|
307
|
+
renderIcon() {
|
|
308
|
+
const { x, y, color } = this.attributes;
|
|
309
|
+
const { iconSize: size, lineWidth } = this;
|
|
400
310
|
select(this.icon)
|
|
401
311
|
.maybeAppend('.line', 'line')
|
|
402
312
|
.styles({
|
|
@@ -405,9 +315,9 @@ var Value = /** @class */ (function (_super) {
|
|
|
405
315
|
x2: x,
|
|
406
316
|
y2: y + size / 2,
|
|
407
317
|
stroke: color,
|
|
408
|
-
lineWidth
|
|
318
|
+
lineWidth,
|
|
409
319
|
});
|
|
410
|
-
|
|
320
|
+
const gap = lineWidth;
|
|
411
321
|
select(this.icon)
|
|
412
322
|
.maybeAppend('.left-arrow', 'line')
|
|
413
323
|
.styles({
|
|
@@ -416,7 +326,7 @@ var Value = /** @class */ (function (_super) {
|
|
|
416
326
|
x2: x - gap * 2,
|
|
417
327
|
y2: y,
|
|
418
328
|
stroke: color,
|
|
419
|
-
lineWidth
|
|
329
|
+
lineWidth,
|
|
420
330
|
markerEnd: arrow(lineWidth * 2, color),
|
|
421
331
|
});
|
|
422
332
|
select(this.icon)
|
|
@@ -427,48 +337,35 @@ var Value = /** @class */ (function (_super) {
|
|
|
427
337
|
x2: x + gap * 2,
|
|
428
338
|
y2: y,
|
|
429
339
|
stroke: color,
|
|
430
|
-
lineWidth
|
|
340
|
+
lineWidth,
|
|
431
341
|
markerEnd: arrow(lineWidth * 2, color),
|
|
432
342
|
});
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
export { Value };
|
|
437
|
-
var getCoordinatePoints = function (size) {
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
const getCoordinatePoints = (size) => {
|
|
438
346
|
return [
|
|
439
347
|
[-size / 2, -size / 2],
|
|
440
348
|
[-size / 2, size / 2],
|
|
441
349
|
[size / 2, size / 2],
|
|
442
350
|
];
|
|
443
351
|
};
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
});
|
|
456
|
-
LineChart.prototype.renderIcon = function () {
|
|
457
|
-
var _a = this.attributes, x = _a.x, y = _a.y, color = _a.color;
|
|
458
|
-
var _b = this, size = _b.iconSize, lineWidth = _b.lineWidth;
|
|
459
|
-
var gap = lineWidth;
|
|
460
|
-
var deltaX = (size - gap * 2 - lineWidth) / 4;
|
|
461
|
-
var deltaY = (size - gap * 2 - lineWidth) / 2;
|
|
462
|
-
var _c = __read([x - size / 2 + gap, y + size / 2 - gap * 2], 2), ox = _c[0], oy = _c[1];
|
|
352
|
+
export class LineChart extends IconBase {
|
|
353
|
+
get label() {
|
|
354
|
+
return '折线图';
|
|
355
|
+
}
|
|
356
|
+
renderIcon() {
|
|
357
|
+
const { x, y, color } = this.attributes;
|
|
358
|
+
const { iconSize: size, lineWidth } = this;
|
|
359
|
+
const gap = lineWidth;
|
|
360
|
+
const deltaX = (size - gap * 2 - lineWidth) / 4;
|
|
361
|
+
const deltaY = (size - gap * 2 - lineWidth) / 2;
|
|
362
|
+
const [ox, oy] = [x - size / 2 + gap, y + size / 2 - gap * 2];
|
|
463
363
|
select(this.icon)
|
|
464
364
|
.maybeAppend('.coordinate', 'polyline')
|
|
465
365
|
.styles({
|
|
466
|
-
points: getCoordinatePoints(size).map(
|
|
467
|
-
var _b = __read(_a, 2), px = _b[0], py = _b[1];
|
|
468
|
-
return [px + x, py + y];
|
|
469
|
-
}),
|
|
366
|
+
points: getCoordinatePoints(size).map(([px, py]) => [px + x, py + y]),
|
|
470
367
|
stroke: color,
|
|
471
|
-
lineWidth
|
|
368
|
+
lineWidth,
|
|
472
369
|
});
|
|
473
370
|
select(this.icon)
|
|
474
371
|
.maybeAppend('.line', 'polyline')
|
|
@@ -480,91 +377,59 @@ var LineChart = /** @class */ (function (_super) {
|
|
|
480
377
|
[ox + deltaX * 4, oy - deltaY * 2],
|
|
481
378
|
],
|
|
482
379
|
stroke: color,
|
|
483
|
-
lineWidth
|
|
380
|
+
lineWidth,
|
|
484
381
|
});
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
return
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
get: function () {
|
|
503
|
-
return [1, 4, 2, 4, 3];
|
|
504
|
-
},
|
|
505
|
-
enumerable: false,
|
|
506
|
-
configurable: true
|
|
507
|
-
});
|
|
508
|
-
BarChart.prototype.renderIcon = function () {
|
|
509
|
-
var data = this.data;
|
|
510
|
-
var _a = this.attributes, x = _a.x, y = _a.y, color = _a.color;
|
|
511
|
-
var _b = this, size = _b.iconSize, lineWidth = _b.lineWidth;
|
|
512
|
-
var gap = lineWidth;
|
|
513
|
-
var deltaX = (size - gap) / data.length;
|
|
514
|
-
var deltaY = (size - gap * 2) / 4;
|
|
515
|
-
var _c = __read([x - size / 2 + gap * 2, y + size / 2 - gap], 2), ox = _c[0], oy = _c[1];
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
export class BarChart extends IconBase {
|
|
385
|
+
get label() {
|
|
386
|
+
return '条形图';
|
|
387
|
+
}
|
|
388
|
+
get data() {
|
|
389
|
+
return [1, 4, 2, 4, 3];
|
|
390
|
+
}
|
|
391
|
+
renderIcon() {
|
|
392
|
+
const { data } = this;
|
|
393
|
+
const { x, y, color } = this.attributes;
|
|
394
|
+
const { iconSize: size, lineWidth } = this;
|
|
395
|
+
const gap = lineWidth;
|
|
396
|
+
const deltaX = (size - gap) / data.length;
|
|
397
|
+
const deltaY = (size - gap * 2) / 4;
|
|
398
|
+
const [ox, oy] = [x - size / 2 + gap * 2, y + size / 2 - gap];
|
|
516
399
|
select(this.icon)
|
|
517
400
|
.maybeAppend('.coordinate', 'polyline')
|
|
518
401
|
.styles({
|
|
519
|
-
points: getCoordinatePoints(size).map(
|
|
520
|
-
var _b = __read(_a, 2), px = _b[0], py = _b[1];
|
|
521
|
-
return [px + x, py + y];
|
|
522
|
-
}),
|
|
402
|
+
points: getCoordinatePoints(size).map(([px, py]) => [px + x, py + y]),
|
|
523
403
|
stroke: color,
|
|
524
|
-
lineWidth
|
|
404
|
+
lineWidth,
|
|
525
405
|
});
|
|
526
406
|
select(this.icon)
|
|
527
407
|
.maybeAppend('.bars', 'g')
|
|
528
408
|
.selectAll('.column')
|
|
529
|
-
.data(this.data.map(
|
|
530
|
-
.join(
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
var value = _a.value;
|
|
545
|
-
return oy - deltaY * value;
|
|
546
|
-
})
|
|
547
|
-
.styles({
|
|
548
|
-
y1: oy,
|
|
549
|
-
stroke: color,
|
|
550
|
-
lineWidth: lineWidth,
|
|
551
|
-
});
|
|
552
|
-
});
|
|
553
|
-
};
|
|
554
|
-
return BarChart;
|
|
555
|
-
}(IconBase));
|
|
556
|
-
export { BarChart };
|
|
409
|
+
.data(this.data.map((value, index) => ({ value, index })))
|
|
410
|
+
.join((enter) => enter
|
|
411
|
+
.append('line')
|
|
412
|
+
.attr('className', 'column')
|
|
413
|
+
.style('x1', ({ index }) => ox + deltaX * index)
|
|
414
|
+
.style('y1', oy)
|
|
415
|
+
.style('x2', ({ index }) => ox + deltaX * index)
|
|
416
|
+
.style('y2', ({ value }) => oy - deltaY * value)
|
|
417
|
+
.styles({
|
|
418
|
+
y1: oy,
|
|
419
|
+
stroke: color,
|
|
420
|
+
lineWidth,
|
|
421
|
+
}));
|
|
422
|
+
}
|
|
423
|
+
}
|
|
557
424
|
/** 分割线 */
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
var _a = this.attributes, x = _a.x, y = _a.y, color = _a.color;
|
|
567
|
-
var _b = this, size = _b.iconSize, lineWidth = _b.lineWidth;
|
|
425
|
+
export class Split extends IconBase {
|
|
426
|
+
constructor(options) {
|
|
427
|
+
super(deepAssign({}, { style: { color: '#d8d9d9' } }, options));
|
|
428
|
+
this.showBackground = false;
|
|
429
|
+
}
|
|
430
|
+
renderIcon() {
|
|
431
|
+
const { x, y, color } = this.attributes;
|
|
432
|
+
const { iconSize: size, lineWidth } = this;
|
|
568
433
|
select(this.icon)
|
|
569
434
|
.maybeAppend('.split', 'line')
|
|
570
435
|
.styles({
|
|
@@ -573,30 +438,22 @@ var Split = /** @class */ (function (_super) {
|
|
|
573
438
|
x2: x,
|
|
574
439
|
y2: y + size / 2,
|
|
575
440
|
stroke: color,
|
|
576
|
-
lineWidth
|
|
441
|
+
lineWidth,
|
|
577
442
|
});
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
},
|
|
593
|
-
enumerable: false,
|
|
594
|
-
configurable: true
|
|
595
|
-
});
|
|
596
|
-
SpeedSelect.prototype.renderIcon = function () {
|
|
597
|
-
var iconSize = this.iconSize;
|
|
598
|
-
var _a = this.attributes, x = _a.x, y = _a.y, _b = _a.speed, speed = _b === void 0 ? 1 : _b;
|
|
599
|
-
var inheritStyle = omit(this.attributes, [
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
export class SpeedSelect extends IconBase {
|
|
446
|
+
constructor() {
|
|
447
|
+
super(...arguments);
|
|
448
|
+
this.showBackground = false;
|
|
449
|
+
}
|
|
450
|
+
get padding() {
|
|
451
|
+
return parseSeriesAttr(0);
|
|
452
|
+
}
|
|
453
|
+
renderIcon() {
|
|
454
|
+
const { iconSize } = this;
|
|
455
|
+
const { x, y, speed = 1 } = this.attributes;
|
|
456
|
+
const inheritStyle = omit(this.attributes, [
|
|
600
457
|
'x',
|
|
601
458
|
'y',
|
|
602
459
|
'transform',
|
|
@@ -607,115 +464,88 @@ var SpeedSelect = /** @class */ (function (_super) {
|
|
|
607
464
|
'color',
|
|
608
465
|
'speed',
|
|
609
466
|
]);
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
467
|
+
const width = clamp(iconSize, 20, Infinity);
|
|
468
|
+
const height = 20;
|
|
469
|
+
const style = Object.assign(Object.assign({}, inheritStyle), { x: x - width / 2, y: y - height / 2, width,
|
|
470
|
+
height, defaultValue: speed, bordered: false, showDropdownIcon: false, selectRadius: 2, dropdownPadding: this.padding, dropdownRadius: 2, dropdownSpacing: iconSize / 5, placeholderFontSize: iconSize / 2, optionPadding: 0, optionLabelFontSize: iconSize / 2, optionBackgroundRadius: 1, options: [
|
|
613
471
|
{ label: '1x', value: 1 },
|
|
614
472
|
{ label: '1.5x', value: 1.5 },
|
|
615
473
|
{ label: '2x', value: 2 },
|
|
616
474
|
] });
|
|
617
475
|
select(this.icon)
|
|
618
|
-
.maybeAppend('.speed',
|
|
476
|
+
.maybeAppend('.speed', () => new Select({ style }))
|
|
619
477
|
.attr('className', 'speed')
|
|
620
478
|
.each(function () {
|
|
621
479
|
this.update(style);
|
|
622
480
|
});
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
var ToggleIcon = /** @class */ (function (_super) {
|
|
629
|
-
__extends(ToggleIcon, _super);
|
|
630
|
-
function ToggleIcon(options) {
|
|
631
|
-
var _this = _super.call(this, options) || this;
|
|
632
|
-
_this.icon = _this.appendChild(new Group({}));
|
|
633
|
-
_this.currentType = _this.attributes.type;
|
|
634
|
-
return _this;
|
|
635
|
-
}
|
|
636
|
-
ToggleIcon.prototype.getType = function () {
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
SpeedSelect.tag = 'SpeedSelect';
|
|
484
|
+
export class ToggleIcon extends Component {
|
|
485
|
+
getType() {
|
|
637
486
|
return this.currentType;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
487
|
+
}
|
|
488
|
+
constructor(options) {
|
|
489
|
+
super(options);
|
|
490
|
+
this.icon = this.appendChild(new Group({}));
|
|
491
|
+
this.currentType = this.attributes.type;
|
|
492
|
+
}
|
|
493
|
+
render() {
|
|
494
|
+
const _a = this.attributes, { onChange } = _a, restStyles = __rest(_a, ["onChange"]);
|
|
642
495
|
select(this.icon)
|
|
643
496
|
.selectAll('.icon')
|
|
644
497
|
.data([this.currentType])
|
|
645
|
-
.join(
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
}, function (update) { return update.styles({ restStyles: restStyles }).update({}); }, function (exit) { return exit.remove(); });
|
|
661
|
-
};
|
|
662
|
-
ToggleIcon.prototype.bindEvents = function () {
|
|
663
|
-
var _this = this;
|
|
664
|
-
var onChange = this.attributes.onChange;
|
|
665
|
-
this.addEventListener('click', function (e) {
|
|
498
|
+
.join((enter) => enter
|
|
499
|
+
.append((type) => {
|
|
500
|
+
var _a;
|
|
501
|
+
const Ctor = (_a = this.toggles.find(([key]) => key === type)) === null || _a === void 0 ? void 0 : _a[1];
|
|
502
|
+
if (!Ctor)
|
|
503
|
+
throw new Error(`Invalid type: ${type}`);
|
|
504
|
+
return new Ctor({});
|
|
505
|
+
})
|
|
506
|
+
.attr('className', 'icon')
|
|
507
|
+
.styles(restStyles, false)
|
|
508
|
+
.update({}), (update) => update.styles({ restStyles }).update({}), (exit) => exit.remove());
|
|
509
|
+
}
|
|
510
|
+
bindEvents() {
|
|
511
|
+
const { onChange } = this.attributes;
|
|
512
|
+
this.addEventListener('click', (e) => {
|
|
666
513
|
e.preventDefault();
|
|
667
514
|
e.stopPropagation();
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_this.currentType);
|
|
674
|
-
_this.currentType = nextType;
|
|
675
|
-
_this.render();
|
|
515
|
+
const nextIndex = (this.toggles.findIndex(([key]) => key === this.currentType) + 1) % this.toggles.length;
|
|
516
|
+
const nextType = this.toggles[nextIndex][0];
|
|
517
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(this.currentType);
|
|
518
|
+
this.currentType = nextType;
|
|
519
|
+
this.render();
|
|
676
520
|
});
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
function PlayPause(options) {
|
|
685
|
-
var _this = _super.call(this, deepAssign({}, { style: { type: 'play' } }, options)) || this;
|
|
686
|
-
_this.toggles = [
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
ToggleIcon.tag = 'ToggleIcon';
|
|
524
|
+
export class PlayPause extends ToggleIcon {
|
|
525
|
+
constructor(options) {
|
|
526
|
+
super(deepAssign({}, { style: { type: 'play' } }, options));
|
|
527
|
+
this.toggles = [
|
|
687
528
|
['play', Play],
|
|
688
529
|
['pause', Pause],
|
|
689
530
|
];
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
__extends(SelectionType, _super);
|
|
697
|
-
function SelectionType(options) {
|
|
698
|
-
var _this = _super.call(this, deepAssign({}, { style: { type: 'range' } }, options)) || this;
|
|
699
|
-
_this.toggles = [
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
export class SelectionType extends ToggleIcon {
|
|
534
|
+
constructor(options) {
|
|
535
|
+
super(deepAssign({}, { style: { type: 'range' } }, options));
|
|
536
|
+
this.toggles = [
|
|
700
537
|
['range', Range],
|
|
701
538
|
['value', Value],
|
|
702
539
|
];
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
__extends(ChartType, _super);
|
|
710
|
-
function ChartType(options) {
|
|
711
|
-
var _this = _super.call(this, deepAssign({}, { style: { type: 'column' } }, options)) || this;
|
|
712
|
-
_this.toggles = [
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
export class ChartType extends ToggleIcon {
|
|
543
|
+
constructor(options) {
|
|
544
|
+
super(deepAssign({}, { style: { type: 'column' } }, options));
|
|
545
|
+
this.toggles = [
|
|
713
546
|
['line', LineChart],
|
|
714
547
|
['column', BarChart],
|
|
715
548
|
];
|
|
716
|
-
return _this;
|
|
717
549
|
}
|
|
718
|
-
|
|
719
|
-
}(ToggleIcon));
|
|
720
|
-
export { ChartType };
|
|
550
|
+
}
|
|
721
551
|
//# sourceMappingURL=icons.js.map
|