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