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