@antv/component 0.9.6 → 1.0.0-beta.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/LICENSE +3 -3
- package/README.md +61 -823
- package/dist/component.min.js +1 -0
- package/esm/animation/fadeIn.d.ts +3 -0
- package/esm/animation/fadeIn.js +7 -0
- package/esm/animation/fadeIn.js.map +1 -0
- package/esm/animation/fadeOut.d.ts +3 -0
- package/esm/animation/fadeOut.js +7 -0
- package/esm/animation/fadeOut.js.map +1 -0
- package/esm/animation/index.d.ts +4 -0
- package/esm/animation/index.js +4 -0
- package/esm/animation/index.js.map +1 -0
- package/esm/animation/types.d.ts +9 -0
- package/esm/animation/types.js +3 -0
- package/esm/animation/types.js.map +1 -0
- package/esm/animation/utils.d.ts +26 -0
- package/esm/animation/utils.js +151 -0
- package/esm/animation/utils.js.map +1 -0
- package/esm/constant.d.ts +1 -0
- package/esm/constant.js +3 -0
- package/esm/constant.js.map +1 -0
- package/esm/core/component.d.ts +18 -0
- package/esm/core/component.js +58 -0
- package/esm/core/component.js.map +1 -0
- package/esm/core/index.d.ts +2 -0
- package/esm/core/index.js +3 -0
- package/esm/core/index.js.map +1 -0
- package/esm/core/types.d.ts +27 -0
- package/esm/core/types.js +2 -0
- package/esm/core/types.js.map +1 -0
- package/esm/index.d.ts +2 -17
- package/esm/index.js +6 -17
- package/esm/index.js.map +1 -1
- package/esm/shapes/Circle.d.ts +4 -0
- package/esm/shapes/Circle.js +2 -0
- package/esm/shapes/Circle.js.map +1 -0
- package/esm/shapes/CustomElement.d.ts +4 -0
- package/esm/shapes/CustomElement.js +2 -0
- package/esm/shapes/CustomElement.js.map +1 -0
- package/esm/shapes/DisplayObject.d.ts +2 -0
- package/esm/shapes/DisplayObject.js +2 -0
- package/esm/shapes/DisplayObject.js.map +1 -0
- package/esm/shapes/Ellipse.d.ts +4 -0
- package/esm/shapes/Ellipse.js +2 -0
- package/esm/shapes/Ellipse.js.map +1 -0
- package/esm/shapes/Group.d.ts +4 -0
- package/esm/shapes/Group.js +2 -0
- package/esm/shapes/Group.js.map +1 -0
- package/esm/shapes/HTML.d.ts +4 -0
- package/esm/shapes/HTML.js +2 -0
- package/esm/shapes/HTML.js.map +1 -0
- package/esm/shapes/Image.d.ts +4 -0
- package/esm/shapes/Image.js +2 -0
- package/esm/shapes/Image.js.map +1 -0
- package/esm/shapes/Line.d.ts +4 -0
- package/esm/shapes/Line.js +2 -0
- package/esm/shapes/Line.js.map +1 -0
- package/esm/shapes/Path.d.ts +4 -0
- package/esm/shapes/Path.js +2 -0
- package/esm/shapes/Path.js.map +1 -0
- package/esm/shapes/Polygon.d.ts +4 -0
- package/esm/shapes/Polygon.js +2 -0
- package/esm/shapes/Polygon.js.map +1 -0
- package/esm/shapes/Polyline.d.ts +4 -0
- package/esm/shapes/Polyline.js +2 -0
- package/esm/shapes/Polyline.js.map +1 -0
- package/esm/shapes/Rect.d.ts +4 -0
- package/esm/shapes/Rect.js +2 -0
- package/esm/shapes/Rect.js.map +1 -0
- package/esm/shapes/Text.d.ts +10 -0
- package/esm/shapes/Text.js +27 -0
- package/esm/shapes/Text.js.map +1 -0
- package/esm/shapes/index.d.ts +13 -0
- package/esm/shapes/index.js +14 -0
- package/esm/shapes/index.js.map +1 -0
- package/esm/shapes/types.d.ts +6 -0
- package/esm/shapes/types.js +2 -0
- package/esm/shapes/types.js.map +1 -0
- package/esm/types/index.d.ts +19 -0
- package/esm/types/index.js +3 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/prefix.d.ts +3 -0
- package/esm/types/prefix.js +2 -0
- package/esm/types/prefix.js.map +1 -0
- package/esm/types/styles.d.ts +5 -0
- package/esm/types/styles.js +2 -0
- package/esm/types/styles.js.map +1 -0
- package/esm/ui/axis/axis.d.ts +9 -0
- package/esm/ui/axis/axis.js +65 -0
- package/esm/ui/axis/axis.js.map +1 -0
- package/esm/ui/axis/constant.d.ts +81 -0
- package/esm/ui/axis/constant.js +91 -0
- package/esm/ui/axis/constant.js.map +1 -0
- package/esm/ui/axis/guides/grid.d.ts +4 -0
- package/esm/ui/axis/guides/grid.js +76 -0
- package/esm/ui/axis/guides/grid.js.map +1 -0
- package/esm/ui/axis/guides/labels.d.ts +4 -0
- package/esm/ui/axis/guides/labels.js +232 -0
- package/esm/ui/axis/guides/labels.js.map +1 -0
- package/esm/ui/axis/guides/line.d.ts +10 -0
- package/esm/ui/axis/guides/line.js +197 -0
- package/esm/ui/axis/guides/line.js.map +1 -0
- package/esm/ui/axis/guides/ticks.d.ts +7 -0
- package/esm/ui/axis/guides/ticks.js +73 -0
- package/esm/ui/axis/guides/ticks.js.map +1 -0
- package/esm/ui/axis/guides/title.d.ts +5 -0
- package/esm/ui/axis/guides/title.js +77 -0
- package/esm/ui/axis/guides/title.js.map +1 -0
- package/esm/ui/axis/guides/utils.d.ts +14 -0
- package/esm/ui/axis/guides/utils.js +42 -0
- package/esm/ui/axis/guides/utils.js.map +1 -0
- package/esm/ui/axis/index.d.ts +3 -0
- package/esm/ui/axis/index.js +2 -0
- package/esm/ui/axis/index.js.map +1 -0
- package/esm/ui/axis/overlap/autoEllipsis.d.ts +8 -0
- package/esm/ui/axis/overlap/autoEllipsis.js +44 -0
- package/esm/ui/axis/overlap/autoEllipsis.js.map +1 -0
- package/esm/ui/axis/overlap/autoHide.d.ts +10 -0
- package/esm/ui/axis/overlap/autoHide.js +55 -0
- package/esm/ui/axis/overlap/autoHide.js.map +1 -0
- package/esm/ui/axis/overlap/autoRotate.d.ts +6 -0
- package/esm/ui/axis/overlap/autoRotate.js +33 -0
- package/esm/ui/axis/overlap/autoRotate.js.map +1 -0
- package/esm/ui/axis/overlap/autoWrap.d.ts +6 -0
- package/esm/ui/axis/overlap/autoWrap.js +34 -0
- package/esm/ui/axis/overlap/autoWrap.js.map +1 -0
- package/esm/ui/axis/overlap/index.d.ts +12 -0
- package/esm/ui/axis/overlap/index.js +34 -0
- package/esm/ui/axis/overlap/index.js.map +1 -0
- package/esm/ui/axis/types.d.ts +175 -0
- package/esm/ui/axis/types.js +2 -0
- package/esm/ui/axis/types.js.map +1 -0
- package/esm/ui/axis/utils/bounds.d.ts +21 -0
- package/esm/ui/axis/utils/bounds.js +134 -0
- package/esm/ui/axis/utils/bounds.js.map +1 -0
- package/esm/ui/axis/utils/contain.d.ts +10 -0
- package/esm/ui/axis/utils/contain.js +66 -0
- package/esm/ui/axis/utils/contain.js.map +1 -0
- package/esm/ui/axis/utils/index.d.ts +3 -0
- package/esm/ui/axis/utils/index.js +10 -0
- package/esm/ui/axis/utils/index.js.map +1 -0
- package/esm/ui/axis/utils/intersect.d.ts +18 -0
- package/esm/ui/axis/utils/intersect.js +69 -0
- package/esm/ui/axis/utils/intersect.js.map +1 -0
- package/esm/ui/axis/utils/test.d.ts +4 -0
- package/esm/ui/axis/utils/test.js +80 -0
- package/esm/ui/axis/utils/test.js.map +1 -0
- package/esm/ui/breadcrumb/index.d.ts +31 -0
- package/esm/ui/breadcrumb/index.js +125 -0
- package/esm/ui/breadcrumb/index.js.map +1 -0
- package/esm/ui/breadcrumb/type.d.ts +40 -0
- package/esm/ui/breadcrumb/type.js +2 -0
- package/esm/ui/breadcrumb/type.js.map +1 -0
- package/esm/ui/button/constant.d.ts +95 -0
- package/esm/ui/button/constant.js +73 -0
- package/esm/ui/button/constant.js.map +1 -0
- package/esm/ui/button/index.d.ts +36 -0
- package/esm/ui/button/index.js +163 -0
- package/esm/ui/button/index.js.map +1 -0
- package/esm/ui/button/types.d.ts +56 -0
- package/esm/ui/button/types.js +2 -0
- package/esm/ui/button/types.js.map +1 -0
- package/esm/ui/checkbox/constant.d.ts +16 -0
- package/esm/ui/checkbox/constant.js +40 -0
- package/esm/ui/checkbox/constant.js.map +1 -0
- package/esm/ui/checkbox/index.d.ts +16 -0
- package/esm/ui/checkbox/index.js +40 -0
- package/esm/ui/checkbox/index.js.map +1 -0
- package/esm/ui/checkbox/types.d.ts +17 -0
- package/esm/ui/checkbox/types.js +2 -0
- package/esm/ui/checkbox/types.js.map +1 -0
- package/esm/ui/crosshair/base.d.ts +37 -0
- package/esm/ui/crosshair/base.js +64 -0
- package/esm/ui/crosshair/base.js.map +1 -0
- package/esm/ui/crosshair/circle.d.ts +16 -0
- package/esm/ui/crosshair/circle.js +43 -0
- package/esm/ui/crosshair/circle.js.map +1 -0
- package/esm/ui/crosshair/constant.d.ts +5 -0
- package/esm/ui/crosshair/constant.js +24 -0
- package/esm/ui/crosshair/constant.js.map +1 -0
- package/esm/ui/crosshair/index.d.ts +4 -0
- package/esm/ui/crosshair/index.js +5 -0
- package/esm/ui/crosshair/index.js.map +1 -0
- package/esm/ui/crosshair/line.d.ts +34 -0
- package/esm/ui/crosshair/line.js +107 -0
- package/esm/ui/crosshair/line.js.map +1 -0
- package/esm/ui/crosshair/polygon.d.ts +29 -0
- package/esm/ui/crosshair/polygon.js +98 -0
- package/esm/ui/crosshair/polygon.js.map +1 -0
- package/esm/ui/crosshair/types.d.ts +29 -0
- package/esm/ui/crosshair/types.js +2 -0
- package/esm/ui/crosshair/types.js.map +1 -0
- package/esm/ui/grid/index.d.ts +7 -0
- package/esm/ui/grid/index.js +157 -0
- package/esm/ui/grid/index.js.map +1 -0
- package/esm/ui/grid/types.d.ts +21 -0
- package/esm/ui/grid/types.js +2 -0
- package/esm/ui/grid/types.js.map +1 -0
- package/esm/ui/index.d.ts +41 -0
- package/esm/ui/index.js +34 -0
- package/esm/ui/index.js.map +1 -0
- package/esm/ui/indicator/constant.d.ts +2 -0
- package/esm/ui/indicator/constant.js +16 -0
- package/esm/ui/indicator/constant.js.map +1 -0
- package/esm/ui/indicator/index.d.ts +1 -0
- package/esm/ui/indicator/index.js +2 -0
- package/esm/ui/indicator/index.js.map +1 -0
- package/esm/ui/indicator/indicator.d.ts +18 -0
- package/esm/ui/indicator/indicator.js +136 -0
- package/esm/ui/indicator/indicator.js.map +1 -0
- package/esm/ui/indicator/types.d.ts +15 -0
- package/esm/ui/indicator/types.js +2 -0
- package/esm/ui/indicator/types.js.map +1 -0
- package/esm/ui/layout/index.d.ts +2 -0
- package/esm/ui/layout/index.js +2 -0
- package/esm/ui/layout/index.js.map +1 -0
- package/esm/ui/layout/layout.d.ts +22 -0
- package/esm/ui/layout/layout.js +92 -0
- package/esm/ui/layout/layout.js.map +1 -0
- package/esm/ui/layout/types.d.ts +11 -0
- package/esm/ui/layout/types.js +2 -0
- package/esm/ui/layout/types.js.map +1 -0
- package/esm/ui/legend/base.d.ts +10 -0
- package/esm/ui/legend/base.js +51 -0
- package/esm/ui/legend/base.js.map +1 -0
- package/esm/ui/legend/category/item.d.ts +41 -0
- package/esm/ui/legend/category/item.js +209 -0
- package/esm/ui/legend/category/item.js.map +1 -0
- package/esm/ui/legend/category/items.d.ts +49 -0
- package/esm/ui/legend/category/items.js +293 -0
- package/esm/ui/legend/category/items.js.map +1 -0
- package/esm/ui/legend/category.d.ts +17 -0
- package/esm/ui/legend/category.js +80 -0
- package/esm/ui/legend/category.js.map +1 -0
- package/esm/ui/legend/constant.d.ts +78 -0
- package/esm/ui/legend/constant.js +64 -0
- package/esm/ui/legend/constant.js.map +1 -0
- package/esm/ui/legend/continuous/handle.d.ts +24 -0
- package/esm/ui/legend/continuous/handle.js +65 -0
- package/esm/ui/legend/continuous/handle.js.map +1 -0
- package/esm/ui/legend/continuous/ribbon.d.ts +24 -0
- package/esm/ui/legend/continuous/ribbon.js +106 -0
- package/esm/ui/legend/continuous/ribbon.js.map +1 -0
- package/esm/ui/legend/continuous/utils.d.ts +5 -0
- package/esm/ui/legend/continuous/utils.js +24 -0
- package/esm/ui/legend/continuous/utils.js.map +1 -0
- package/esm/ui/legend/continuous.d.ts +81 -0
- package/esm/ui/legend/continuous.js +668 -0
- package/esm/ui/legend/continuous.js.map +1 -0
- package/esm/ui/legend/index.d.ts +6 -0
- package/esm/ui/legend/index.js +4 -0
- package/esm/ui/legend/index.js.map +1 -0
- package/esm/ui/legend/types.d.ts +51 -0
- package/esm/ui/legend/types.js +2 -0
- package/esm/ui/legend/types.js.map +1 -0
- package/esm/ui/legend/utils.d.ts +10 -0
- package/esm/ui/legend/utils.js +104 -0
- package/esm/ui/legend/utils.js.map +1 -0
- package/esm/ui/marker/index.d.ts +18 -0
- package/esm/ui/marker/index.js +90 -0
- package/esm/ui/marker/index.js.map +1 -0
- package/esm/ui/marker/symbol.d.ts +70 -0
- package/esm/ui/marker/symbol.js +172 -0
- package/esm/ui/marker/symbol.js.map +1 -0
- package/esm/ui/marker/types.d.ts +8 -0
- package/esm/ui/marker/types.js +2 -0
- package/esm/ui/marker/types.js.map +1 -0
- package/esm/ui/marker/utils.d.ts +5 -0
- package/esm/ui/marker/utils.js +26 -0
- package/esm/ui/marker/utils.js.map +1 -0
- package/esm/ui/navigator/index.d.ts +35 -0
- package/esm/ui/navigator/index.js +286 -0
- package/esm/ui/navigator/index.js.map +1 -0
- package/esm/ui/navigator/types.d.ts +22 -0
- package/esm/ui/navigator/types.js +2 -0
- package/esm/ui/navigator/types.js.map +1 -0
- package/esm/ui/poptip/constant.d.ts +291 -0
- package/esm/ui/poptip/constant.js +161 -0
- package/esm/ui/poptip/constant.js.map +1 -0
- package/esm/ui/poptip/index.d.ts +76 -0
- package/esm/ui/poptip/index.js +241 -0
- package/esm/ui/poptip/index.js.map +1 -0
- package/esm/ui/poptip/types.d.ts +58 -0
- package/esm/ui/poptip/types.js +2 -0
- package/esm/ui/poptip/types.js.map +1 -0
- package/esm/ui/poptip/utils.d.ts +12 -0
- package/esm/ui/poptip/utils.js +66 -0
- package/esm/ui/poptip/utils.js.map +1 -0
- package/esm/ui/scrollbar/index.d.ts +50 -0
- package/esm/ui/scrollbar/index.js +199 -0
- package/esm/ui/scrollbar/index.js.map +1 -0
- package/esm/ui/scrollbar/types.d.ts +29 -0
- package/esm/ui/scrollbar/types.js +2 -0
- package/esm/ui/scrollbar/types.js.map +1 -0
- package/esm/ui/select/index.d.ts +2 -0
- package/esm/ui/select/index.js +2 -0
- package/esm/ui/select/index.js.map +1 -0
- package/esm/ui/select/option.d.ts +15 -0
- package/esm/ui/select/option.js +77 -0
- package/esm/ui/select/option.js.map +1 -0
- package/esm/ui/select/select.d.ts +18 -0
- package/esm/ui/select/select.js +208 -0
- package/esm/ui/select/select.js.map +1 -0
- package/esm/ui/select/types.d.ts +42 -0
- package/esm/ui/select/types.js +2 -0
- package/esm/ui/select/types.js.map +1 -0
- package/esm/ui/slider/constant.d.ts +59 -0
- package/esm/ui/slider/constant.js +33 -0
- package/esm/ui/slider/constant.js.map +1 -0
- package/esm/ui/slider/handle.d.ts +26 -0
- package/esm/ui/slider/handle.js +85 -0
- package/esm/ui/slider/handle.js.map +1 -0
- package/esm/ui/slider/index.d.ts +84 -0
- package/esm/ui/slider/index.js +508 -0
- package/esm/ui/slider/index.js.map +1 -0
- package/esm/ui/slider/types.d.ts +55 -0
- package/esm/ui/slider/types.js +2 -0
- package/esm/ui/slider/types.js.map +1 -0
- package/esm/ui/sparkline/columns.d.ts +12 -0
- package/esm/ui/sparkline/columns.js +44 -0
- package/esm/ui/sparkline/columns.js.map +1 -0
- package/esm/ui/sparkline/index.d.ts +31 -0
- package/esm/ui/sparkline/index.js +242 -0
- package/esm/ui/sparkline/index.js.map +1 -0
- package/esm/ui/sparkline/lines.d.ts +16 -0
- package/esm/ui/sparkline/lines.js +68 -0
- package/esm/ui/sparkline/lines.js.map +1 -0
- package/esm/ui/sparkline/path.d.ts +32 -0
- package/esm/ui/sparkline/path.js +137 -0
- package/esm/ui/sparkline/path.js.map +1 -0
- package/esm/ui/sparkline/types.d.ts +35 -0
- package/esm/ui/sparkline/types.js +2 -0
- package/esm/ui/sparkline/types.js.map +1 -0
- package/esm/ui/sparkline/utils.d.ts +9 -0
- package/esm/ui/sparkline/utils.js +35 -0
- package/esm/ui/sparkline/utils.js.map +1 -0
- package/esm/ui/switch/constant.d.ts +59 -0
- package/esm/ui/switch/constant.js +60 -0
- package/esm/ui/switch/constant.js.map +1 -0
- package/esm/ui/switch/index.d.ts +16 -0
- package/esm/ui/switch/index.js +136 -0
- package/esm/ui/switch/index.js.map +1 -0
- package/esm/ui/switch/types.d.ts +38 -0
- package/esm/ui/switch/types.js +2 -0
- package/esm/ui/switch/types.js.map +1 -0
- package/esm/ui/tag/index.d.ts +17 -0
- package/esm/ui/tag/index.js +85 -0
- package/esm/ui/tag/index.js.map +1 -0
- package/esm/ui/tag/types.d.ts +20 -0
- package/esm/ui/tag/types.js +2 -0
- package/esm/ui/tag/types.js.map +1 -0
- package/esm/ui/timebar/controller.d.ts +15 -0
- package/esm/ui/timebar/controller.js +132 -0
- package/esm/ui/timebar/controller.js.map +1 -0
- package/esm/ui/timebar/handle.d.ts +35 -0
- package/esm/ui/timebar/handle.js +93 -0
- package/esm/ui/timebar/handle.js.map +1 -0
- package/esm/ui/timebar/icons.d.ts +126 -0
- package/esm/ui/timebar/icons.js +708 -0
- package/esm/ui/timebar/icons.js.map +1 -0
- package/esm/ui/timebar/index.d.ts +2 -0
- package/esm/ui/timebar/index.js +2 -0
- package/esm/ui/timebar/index.js.map +1 -0
- package/esm/ui/timebar/timebar.d.ts +49 -0
- package/esm/ui/timebar/timebar.js +507 -0
- package/esm/ui/timebar/timebar.js.map +1 -0
- package/esm/ui/timebar/types.d.ts +90 -0
- package/esm/ui/timebar/types.js +2 -0
- package/esm/ui/timebar/types.js.map +1 -0
- package/esm/ui/timebar/utils.d.ts +16 -0
- package/esm/ui/timebar/utils.js +78 -0
- package/esm/ui/timebar/utils.js.map +1 -0
- package/esm/ui/timeline/button.js +159 -0
- package/esm/ui/timeline/button.js.map +1 -0
- package/esm/ui/timeline/cellAxis.js +223 -0
- package/esm/ui/timeline/cellAxis.js.map +1 -0
- package/esm/ui/timeline/checkbox.js +103 -0
- package/esm/ui/timeline/checkbox.js.map +1 -0
- package/esm/ui/timeline/constants.js +113 -0
- package/esm/ui/timeline/constants.js.map +1 -0
- package/esm/ui/timeline/index.d.ts +4 -0
- package/esm/ui/timeline/index.js +236 -0
- package/esm/ui/timeline/index.js.map +1 -0
- package/esm/ui/timeline/playAxis.js +166 -0
- package/esm/ui/timeline/playAxis.js.map +1 -0
- package/esm/ui/timeline/sliderAxis.js +306 -0
- package/esm/ui/timeline/sliderAxis.js.map +1 -0
- package/esm/ui/timeline/speedcontrol.js +114 -0
- package/esm/ui/timeline/speedcontrol.js.map +1 -0
- package/esm/ui/timeline/types.js +103 -0
- package/esm/ui/timeline/types.js.map +1 -0
- package/esm/ui/title/index.d.ts +24 -0
- package/esm/ui/title/index.js +140 -0
- package/esm/ui/title/index.js.map +1 -0
- package/esm/ui/title/types.d.ts +12 -0
- package/esm/ui/title/types.js +2 -0
- package/esm/ui/title/types.js.map +1 -0
- package/esm/ui/tooltip/constant.d.ts +264 -0
- package/esm/ui/tooltip/constant.js +89 -0
- package/esm/ui/tooltip/constant.js.map +1 -0
- package/esm/ui/tooltip/index.d.ts +50 -0
- package/esm/ui/tooltip/index.js +252 -0
- package/esm/ui/tooltip/index.js.map +1 -0
- package/esm/ui/tooltip/types.d.ts +50 -0
- package/esm/ui/tooltip/types.js +2 -0
- package/esm/ui/tooltip/types.js.map +1 -0
- package/esm/util/angle-converter.d.ts +2 -0
- package/esm/util/angle-converter.js +7 -0
- package/esm/util/angle-converter.js.map +1 -0
- package/esm/util/bbox.d.ts +24 -0
- package/esm/util/bbox.js +69 -0
- package/esm/util/bbox.js.map +1 -0
- package/esm/util/callback.d.ts +1 -0
- package/esm/util/callback.js +6 -0
- package/esm/util/callback.js.map +1 -0
- package/esm/util/classnames.d.ts +7 -0
- package/esm/util/classnames.js +22 -0
- package/esm/util/classnames.js.map +1 -0
- package/esm/util/deep-assign.d.ts +1 -0
- package/esm/util/deep-assign.js +47 -0
- package/esm/util/deep-assign.js.map +1 -0
- package/esm/util/defined.d.ts +1 -0
- package/esm/util/defined.js +2 -0
- package/esm/util/defined.js.map +1 -0
- package/esm/util/ellipsis.d.ts +2 -0
- package/esm/util/ellipsis.js +6 -0
- package/esm/util/ellipsis.js.map +1 -0
- package/esm/util/event.d.ts +2 -15
- package/esm/util/event.js +13 -28
- package/esm/util/event.js.map +1 -1
- package/esm/util/extend-display-object.d.ts +3 -0
- package/esm/util/extend-display-object.js +8 -0
- package/esm/util/extend-display-object.js.map +1 -0
- package/esm/util/geometry/index.d.ts +2 -0
- package/esm/util/geometry/index.js +3 -0
- package/esm/util/geometry/index.js.map +1 -0
- package/esm/util/geometry/line-length.d.ts +5 -0
- package/esm/util/geometry/line-length.js +10 -0
- package/esm/util/geometry/line-length.js.map +1 -0
- package/esm/util/geometry/lines-intersection.d.ts +6 -0
- package/esm/util/geometry/lines-intersection.js +56 -0
- package/esm/util/geometry/lines-intersection.js.map +1 -0
- package/esm/util/group-by.d.ts +3 -0
- package/esm/util/group-by.js +7 -0
- package/esm/util/group-by.js.map +1 -0
- package/esm/util/group.d.ts +1 -0
- package/esm/util/group.js +12 -0
- package/esm/util/group.js.map +1 -0
- package/esm/util/html.d.ts +2 -0
- package/esm/util/html.js +12 -0
- package/esm/util/html.js.map +1 -0
- package/esm/util/if-show.d.ts +2 -0
- package/esm/util/if-show.js +13 -0
- package/esm/util/if-show.js.map +1 -0
- package/esm/util/in-range.d.ts +1 -0
- package/esm/util/in-range.js +8 -0
- package/esm/util/in-range.js.map +1 -0
- package/esm/util/index.d.ts +40 -0
- package/esm/util/index.js +41 -0
- package/esm/util/index.js.map +1 -0
- package/esm/util/interpolate.d.ts +17 -0
- package/esm/util/interpolate.js +58 -0
- package/esm/util/interpolate.js.map +1 -0
- package/esm/util/keyframe-interpolate.d.ts +4 -0
- package/esm/util/keyframe-interpolate.js +17 -0
- package/esm/util/keyframe-interpolate.js.map +1 -0
- package/esm/util/layout/executer.d.ts +3 -0
- package/esm/util/layout/executer.js +11 -0
- package/esm/util/layout/executer.js.map +1 -0
- package/esm/util/layout/flex/index.d.ts +3 -0
- package/esm/util/layout/flex/index.js +73 -0
- package/esm/util/layout/flex/index.js.map +1 -0
- package/esm/util/layout/flex/types.d.ts +28 -0
- package/esm/util/layout/flex/types.js +2 -0
- package/esm/util/layout/flex/types.js.map +1 -0
- package/esm/util/layout/grid/index.d.ts +3 -0
- package/esm/util/layout/grid/index.js +5 -0
- package/esm/util/layout/grid/index.js.map +1 -0
- package/esm/util/layout/grid/types.d.ts +9 -0
- package/esm/util/layout/grid/types.js +2 -0
- package/esm/util/layout/grid/types.js.map +1 -0
- package/esm/util/layout/index.d.ts +4 -0
- package/esm/util/layout/index.js +5 -0
- package/esm/util/layout/index.js.map +1 -0
- package/esm/util/layout/types.d.ts +8 -0
- package/esm/util/layout/types.js +2 -0
- package/esm/util/layout/types.js.map +1 -0
- package/esm/util/layout/utils/helper.d.ts +3 -0
- package/esm/util/layout/utils/helper.js +22 -0
- package/esm/util/layout/utils/helper.js.map +1 -0
- package/esm/util/layout/utils/index.d.ts +1 -0
- package/esm/util/layout/utils/index.js +2 -0
- package/esm/util/layout/utils/index.js.map +1 -0
- package/esm/util/matrix.d.ts +20 -17
- package/esm/util/matrix.js +40 -58
- package/esm/util/matrix.js.map +1 -1
- package/esm/util/number.d.ts +24 -0
- package/esm/util/number.js +40 -0
- package/esm/util/number.js.map +1 -0
- package/esm/util/offscreen.d.ts +8 -0
- package/esm/util/offscreen.js +37 -0
- package/esm/util/offscreen.js.map +1 -0
- package/esm/util/omit.d.ts +1 -0
- package/esm/util/omit.js +11 -0
- package/esm/util/omit.js.map +1 -0
- package/esm/util/path.d.ts +23 -0
- package/esm/util/path.js +118 -0
- package/esm/util/path.js.map +1 -0
- package/esm/util/primitive.d.ts +3 -0
- package/esm/util/primitive.js +91 -0
- package/esm/util/primitive.js.map +1 -0
- package/esm/util/sampling.d.ts +1 -0
- package/esm/util/sampling.js +11 -0
- package/esm/util/sampling.js.map +1 -0
- package/esm/util/scale-to-pixel.d.ts +5 -0
- package/esm/util/scale-to-pixel.js +12 -0
- package/esm/util/scale-to-pixel.js.map +1 -0
- package/esm/util/selection.d.ts +77 -0
- package/esm/util/selection.js +370 -0
- package/esm/util/selection.js.map +1 -0
- package/esm/util/series.d.ts +6 -0
- package/esm/util/series.js +26 -0
- package/esm/util/series.js.map +1 -0
- package/esm/util/shape.d.ts +23 -0
- package/esm/util/shape.js +58 -0
- package/esm/util/shape.js.map +1 -0
- package/esm/util/string.d.ts +4 -0
- package/esm/util/string.js +17 -0
- package/esm/util/string.js.map +1 -0
- package/esm/util/style.d.ts +29 -0
- package/esm/util/style.js +113 -0
- package/esm/util/style.js.map +1 -0
- package/esm/util/svg2marker.d.ts +14 -0
- package/esm/util/svg2marker.js +64 -0
- package/esm/util/svg2marker.js.map +1 -0
- package/esm/util/text.d.ts +17 -6
- package/esm/util/text.js +34 -74
- package/esm/util/text.js.map +1 -1
- package/esm/util/throttle.d.ts +5 -0
- package/esm/util/throttle.js +31 -0
- package/esm/util/throttle.js.map +1 -0
- package/esm/util/time.d.ts +26 -0
- package/esm/util/time.js +94 -0
- package/esm/util/time.js.map +1 -0
- package/esm/util/timer.d.ts +4 -0
- package/esm/util/timer.js +23 -0
- package/esm/util/timer.js.map +1 -0
- package/esm/util/transform.d.ts +6 -0
- package/esm/util/transform.js +27 -0
- package/esm/util/transform.js.map +1 -0
- package/esm/util/transpose.d.ts +1 -0
- package/esm/util/transpose.js +5 -0
- package/esm/util/transpose.js.map +1 -0
- package/esm/util/traverse.d.ts +2 -0
- package/esm/util/traverse.js +10 -0
- package/esm/util/traverse.js.map +1 -0
- package/esm/util/visibility.d.ts +4 -0
- package/esm/util/visibility.js +14 -0
- package/esm/util/visibility.js.map +1 -0
- package/esm/util/wrap.d.ts +2 -0
- package/esm/util/wrap.js +7 -0
- package/esm/util/wrap.js.map +1 -0
- package/lib/animation/fadeIn.d.ts +3 -0
- package/lib/animation/fadeIn.js +10 -0
- package/lib/animation/fadeIn.js.map +1 -0
- package/lib/animation/fadeOut.d.ts +3 -0
- package/lib/animation/fadeOut.js +10 -0
- package/lib/animation/fadeOut.js.map +1 -0
- package/lib/animation/index.d.ts +4 -0
- package/lib/animation/index.js +10 -0
- package/lib/animation/index.js.map +1 -0
- package/lib/animation/types.d.ts +9 -0
- package/lib/animation/types.js +4 -0
- package/lib/animation/types.js.map +1 -0
- package/lib/animation/utils.d.ts +26 -0
- package/lib/animation/utils.js +160 -0
- package/lib/animation/utils.js.map +1 -0
- package/lib/constant.d.ts +1 -0
- package/lib/constant.js +6 -0
- package/lib/constant.js.map +1 -0
- package/lib/core/component.d.ts +18 -0
- package/lib/core/component.js +61 -0
- package/lib/core/component.js.map +1 -0
- package/lib/core/index.d.ts +2 -0
- package/lib/core/index.js +8 -0
- package/lib/core/index.js.map +1 -0
- package/lib/core/types.d.ts +27 -0
- package/lib/core/types.js.map +1 -0
- package/lib/index.d.ts +2 -17
- package/lib/index.js +6 -29
- package/lib/index.js.map +1 -1
- package/lib/shapes/Circle.d.ts +4 -0
- package/lib/shapes/Circle.js +6 -0
- package/lib/shapes/Circle.js.map +1 -0
- package/lib/shapes/CustomElement.d.ts +4 -0
- package/lib/shapes/CustomElement.js +6 -0
- package/lib/shapes/CustomElement.js.map +1 -0
- package/lib/shapes/DisplayObject.d.ts +2 -0
- package/lib/shapes/DisplayObject.js +6 -0
- package/lib/shapes/DisplayObject.js.map +1 -0
- package/lib/shapes/Ellipse.d.ts +4 -0
- package/lib/shapes/Ellipse.js +6 -0
- package/lib/shapes/Ellipse.js.map +1 -0
- package/lib/shapes/Group.d.ts +4 -0
- package/lib/shapes/Group.js +6 -0
- package/lib/shapes/Group.js.map +1 -0
- package/lib/shapes/HTML.d.ts +4 -0
- package/lib/shapes/HTML.js +6 -0
- package/lib/shapes/HTML.js.map +1 -0
- package/lib/shapes/Image.d.ts +4 -0
- package/lib/shapes/Image.js +6 -0
- package/lib/shapes/Image.js.map +1 -0
- package/lib/shapes/Line.d.ts +4 -0
- package/lib/shapes/Line.js +6 -0
- package/lib/shapes/Line.js.map +1 -0
- package/lib/shapes/Path.d.ts +4 -0
- package/lib/shapes/Path.js +6 -0
- package/lib/shapes/Path.js.map +1 -0
- package/lib/shapes/Polygon.d.ts +4 -0
- package/lib/shapes/Polygon.js +6 -0
- package/lib/shapes/Polygon.js.map +1 -0
- package/lib/shapes/Polyline.d.ts +4 -0
- package/lib/shapes/Polyline.js +6 -0
- package/lib/shapes/Polyline.js.map +1 -0
- package/lib/shapes/Rect.d.ts +4 -0
- package/lib/shapes/Rect.js +6 -0
- package/lib/shapes/Rect.js.map +1 -0
- package/lib/shapes/Text.d.ts +10 -0
- package/lib/shapes/Text.js +30 -0
- package/lib/shapes/Text.js.map +1 -0
- package/lib/shapes/index.d.ts +13 -0
- package/lib/shapes/index.js +17 -0
- package/lib/shapes/index.js.map +1 -0
- package/lib/shapes/types.d.ts +6 -0
- package/lib/shapes/types.js +3 -0
- package/lib/shapes/types.js.map +1 -0
- package/lib/types/index.d.ts +19 -0
- package/lib/types/index.js +6 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/prefix.d.ts +3 -0
- package/lib/types/prefix.js +3 -0
- package/lib/types/prefix.js.map +1 -0
- package/lib/types/styles.d.ts +5 -0
- package/lib/types/styles.js +3 -0
- package/lib/types/styles.js.map +1 -0
- package/lib/ui/axis/axis.d.ts +9 -0
- package/lib/ui/axis/axis.js +68 -0
- package/lib/ui/axis/axis.js.map +1 -0
- package/lib/ui/axis/constant.d.ts +81 -0
- package/lib/ui/axis/constant.js +94 -0
- package/lib/ui/axis/constant.js.map +1 -0
- package/lib/ui/axis/guides/grid.d.ts +4 -0
- package/lib/ui/axis/guides/grid.js +80 -0
- package/lib/ui/axis/guides/grid.js.map +1 -0
- package/lib/ui/axis/guides/labels.d.ts +4 -0
- package/lib/ui/axis/guides/labels.js +236 -0
- package/lib/ui/axis/guides/labels.js.map +1 -0
- package/lib/ui/axis/guides/line.d.ts +10 -0
- package/lib/ui/axis/guides/line.js +206 -0
- package/lib/ui/axis/guides/line.js.map +1 -0
- package/lib/ui/axis/guides/ticks.d.ts +7 -0
- package/lib/ui/axis/guides/ticks.js +79 -0
- package/lib/ui/axis/guides/ticks.js.map +1 -0
- package/lib/ui/axis/guides/title.d.ts +5 -0
- package/lib/ui/axis/guides/title.js +81 -0
- package/lib/ui/axis/guides/title.js.map +1 -0
- package/lib/ui/axis/guides/utils.d.ts +14 -0
- package/lib/ui/axis/guides/utils.js +52 -0
- package/lib/ui/axis/guides/utils.js.map +1 -0
- package/lib/ui/axis/index.d.ts +3 -0
- package/lib/ui/axis/index.js +6 -0
- package/lib/ui/axis/index.js.map +1 -0
- package/lib/ui/axis/overlap/autoEllipsis.d.ts +8 -0
- package/lib/ui/axis/overlap/autoEllipsis.js +47 -0
- package/lib/ui/axis/overlap/autoEllipsis.js.map +1 -0
- package/lib/ui/axis/overlap/autoHide.d.ts +10 -0
- package/lib/ui/axis/overlap/autoHide.js +58 -0
- package/lib/ui/axis/overlap/autoHide.js.map +1 -0
- package/lib/ui/axis/overlap/autoRotate.d.ts +6 -0
- package/lib/ui/axis/overlap/autoRotate.js +36 -0
- package/lib/ui/axis/overlap/autoRotate.js.map +1 -0
- package/lib/ui/axis/overlap/autoWrap.d.ts +6 -0
- package/lib/ui/axis/overlap/autoWrap.js +37 -0
- package/lib/ui/axis/overlap/autoWrap.js.map +1 -0
- package/lib/ui/axis/overlap/index.d.ts +12 -0
- package/lib/ui/axis/overlap/index.js +40 -0
- package/lib/ui/axis/overlap/index.js.map +1 -0
- package/lib/ui/axis/types.d.ts +175 -0
- package/lib/ui/axis/types.js +3 -0
- package/lib/ui/axis/types.js.map +1 -0
- package/lib/ui/axis/utils/bounds.d.ts +21 -0
- package/lib/ui/axis/utils/bounds.js +139 -0
- package/lib/ui/axis/utils/bounds.js.map +1 -0
- package/lib/ui/axis/utils/contain.d.ts +10 -0
- package/lib/ui/axis/utils/contain.js +72 -0
- package/lib/ui/axis/utils/contain.js.map +1 -0
- package/lib/ui/axis/utils/index.d.ts +3 -0
- package/lib/ui/axis/utils/index.js +15 -0
- package/lib/ui/axis/utils/index.js.map +1 -0
- package/lib/ui/axis/utils/intersect.d.ts +18 -0
- package/lib/ui/axis/utils/intersect.js +73 -0
- package/lib/ui/axis/utils/intersect.js.map +1 -0
- package/lib/ui/axis/utils/test.d.ts +4 -0
- package/lib/ui/axis/utils/test.js +84 -0
- package/lib/ui/axis/utils/test.js.map +1 -0
- package/lib/ui/breadcrumb/index.d.ts +31 -0
- package/lib/ui/breadcrumb/index.js +128 -0
- package/lib/ui/breadcrumb/index.js.map +1 -0
- package/lib/ui/breadcrumb/type.d.ts +40 -0
- package/lib/ui/breadcrumb/type.js +3 -0
- package/lib/ui/breadcrumb/type.js.map +1 -0
- package/lib/ui/button/constant.d.ts +95 -0
- package/lib/ui/button/constant.js +76 -0
- package/lib/ui/button/constant.js.map +1 -0
- package/lib/ui/button/index.d.ts +36 -0
- package/lib/ui/button/index.js +166 -0
- package/lib/ui/button/index.js.map +1 -0
- package/lib/ui/button/types.d.ts +56 -0
- package/lib/ui/button/types.js +3 -0
- package/lib/ui/button/types.js.map +1 -0
- package/lib/ui/checkbox/constant.d.ts +16 -0
- package/lib/ui/checkbox/constant.js +43 -0
- package/lib/ui/checkbox/constant.js.map +1 -0
- package/lib/ui/checkbox/index.d.ts +16 -0
- package/lib/ui/checkbox/index.js +43 -0
- package/lib/ui/checkbox/index.js.map +1 -0
- package/lib/ui/checkbox/types.d.ts +17 -0
- package/lib/ui/checkbox/types.js +3 -0
- package/lib/ui/checkbox/types.js.map +1 -0
- package/lib/ui/crosshair/base.d.ts +37 -0
- package/lib/ui/crosshair/base.js +67 -0
- package/lib/ui/crosshair/base.js.map +1 -0
- package/lib/ui/crosshair/circle.d.ts +16 -0
- package/lib/ui/crosshair/circle.js +46 -0
- package/lib/ui/crosshair/circle.js.map +1 -0
- package/lib/ui/crosshair/constant.d.ts +5 -0
- package/lib/ui/crosshair/constant.js +27 -0
- package/lib/ui/crosshair/constant.js.map +1 -0
- package/lib/ui/crosshair/index.d.ts +4 -0
- package/lib/ui/crosshair/index.js +8 -0
- package/lib/ui/crosshair/index.js.map +1 -0
- package/lib/ui/crosshair/line.d.ts +34 -0
- package/lib/ui/crosshair/line.js +110 -0
- package/lib/ui/crosshair/line.js.map +1 -0
- package/lib/ui/crosshair/polygon.d.ts +29 -0
- package/lib/ui/crosshair/polygon.js +101 -0
- package/lib/ui/crosshair/polygon.js.map +1 -0
- package/lib/ui/crosshair/types.d.ts +29 -0
- package/lib/ui/crosshair/types.js +3 -0
- package/lib/ui/crosshair/types.js.map +1 -0
- package/lib/ui/grid/index.d.ts +7 -0
- package/lib/ui/grid/index.js +160 -0
- package/lib/ui/grid/index.js.map +1 -0
- package/lib/ui/grid/types.d.ts +21 -0
- package/lib/ui/grid/types.js +3 -0
- package/lib/ui/grid/types.js.map +1 -0
- package/lib/ui/index.d.ts +41 -0
- package/lib/ui/index.js +59 -0
- package/lib/ui/index.js.map +1 -0
- package/lib/ui/indicator/constant.d.ts +2 -0
- package/lib/ui/indicator/constant.js +19 -0
- package/lib/ui/indicator/constant.js.map +1 -0
- package/lib/ui/indicator/index.d.ts +1 -0
- package/lib/ui/indicator/index.js +5 -0
- package/lib/ui/indicator/index.js.map +1 -0
- package/lib/ui/indicator/indicator.d.ts +18 -0
- package/lib/ui/indicator/indicator.js +139 -0
- package/lib/ui/indicator/indicator.js.map +1 -0
- package/lib/ui/indicator/types.d.ts +15 -0
- package/lib/ui/indicator/types.js +3 -0
- package/lib/ui/indicator/types.js.map +1 -0
- package/lib/ui/layout/index.d.ts +2 -0
- package/lib/ui/layout/index.js +6 -0
- package/lib/ui/layout/index.js.map +1 -0
- package/lib/ui/layout/layout.d.ts +22 -0
- package/lib/ui/layout/layout.js +95 -0
- package/lib/ui/layout/layout.js.map +1 -0
- package/lib/ui/layout/types.d.ts +11 -0
- package/lib/ui/layout/types.js +3 -0
- package/lib/ui/layout/types.js.map +1 -0
- package/lib/ui/legend/base.d.ts +10 -0
- package/lib/ui/legend/base.js +58 -0
- package/lib/ui/legend/base.js.map +1 -0
- package/lib/ui/legend/category/item.d.ts +41 -0
- package/lib/ui/legend/category/item.js +212 -0
- package/lib/ui/legend/category/item.js.map +1 -0
- package/lib/ui/legend/category/items.d.ts +49 -0
- package/lib/ui/legend/category/items.js +296 -0
- package/lib/ui/legend/category/items.js.map +1 -0
- package/lib/ui/legend/category.d.ts +17 -0
- package/lib/ui/legend/category.js +83 -0
- package/lib/ui/legend/category.js.map +1 -0
- package/lib/ui/legend/constant.d.ts +78 -0
- package/lib/ui/legend/constant.js +67 -0
- package/lib/ui/legend/constant.js.map +1 -0
- package/lib/ui/legend/continuous/handle.d.ts +24 -0
- package/lib/ui/legend/continuous/handle.js +68 -0
- package/lib/ui/legend/continuous/handle.js.map +1 -0
- package/lib/ui/legend/continuous/ribbon.d.ts +24 -0
- package/lib/ui/legend/continuous/ribbon.js +109 -0
- package/lib/ui/legend/continuous/ribbon.js.map +1 -0
- package/lib/ui/legend/continuous/utils.d.ts +5 -0
- package/lib/ui/legend/continuous/utils.js +29 -0
- package/lib/ui/legend/continuous/utils.js.map +1 -0
- package/lib/ui/legend/continuous.d.ts +81 -0
- package/lib/ui/legend/continuous.js +671 -0
- package/lib/ui/legend/continuous.js.map +1 -0
- package/lib/ui/legend/index.d.ts +6 -0
- package/lib/ui/legend/index.js +8 -0
- package/lib/ui/legend/index.js.map +1 -0
- package/lib/ui/legend/types.d.ts +51 -0
- package/lib/ui/legend/types.js +3 -0
- package/lib/ui/legend/types.js.map +1 -0
- package/lib/ui/legend/utils.d.ts +10 -0
- package/lib/ui/legend/utils.js +114 -0
- package/lib/ui/legend/utils.js.map +1 -0
- package/lib/ui/marker/index.d.ts +18 -0
- package/lib/ui/marker/index.js +93 -0
- package/lib/ui/marker/index.js.map +1 -0
- package/lib/ui/marker/symbol.d.ts +70 -0
- package/lib/ui/marker/symbol.js +194 -0
- package/lib/ui/marker/symbol.js.map +1 -0
- package/lib/ui/marker/types.d.ts +8 -0
- package/lib/ui/marker/types.js +3 -0
- package/lib/ui/marker/types.js.map +1 -0
- package/lib/ui/marker/utils.d.ts +5 -0
- package/lib/ui/marker/utils.js +30 -0
- package/lib/ui/marker/utils.js.map +1 -0
- package/lib/ui/navigator/index.d.ts +35 -0
- package/lib/ui/navigator/index.js +289 -0
- package/lib/ui/navigator/index.js.map +1 -0
- package/lib/ui/navigator/types.d.ts +22 -0
- package/lib/ui/navigator/types.js +3 -0
- package/lib/ui/navigator/types.js.map +1 -0
- package/lib/ui/poptip/constant.d.ts +291 -0
- package/lib/ui/poptip/constant.js +164 -0
- package/lib/ui/poptip/constant.js.map +1 -0
- package/lib/ui/poptip/index.d.ts +76 -0
- package/lib/ui/poptip/index.js +245 -0
- package/lib/ui/poptip/index.js.map +1 -0
- package/lib/ui/poptip/types.d.ts +58 -0
- package/lib/ui/poptip/types.js +3 -0
- package/lib/ui/poptip/types.js.map +1 -0
- package/lib/ui/poptip/utils.d.ts +12 -0
- package/lib/ui/poptip/utils.js +71 -0
- package/lib/ui/poptip/utils.js.map +1 -0
- package/lib/ui/scrollbar/index.d.ts +50 -0
- package/lib/ui/scrollbar/index.js +202 -0
- package/lib/ui/scrollbar/index.js.map +1 -0
- package/lib/ui/scrollbar/types.d.ts +29 -0
- package/lib/ui/scrollbar/types.js +3 -0
- package/lib/ui/scrollbar/types.js.map +1 -0
- package/lib/ui/select/index.d.ts +2 -0
- package/lib/ui/select/index.js +6 -0
- package/lib/ui/select/index.js.map +1 -0
- package/lib/ui/select/option.d.ts +15 -0
- package/lib/ui/select/option.js +80 -0
- package/lib/ui/select/option.js.map +1 -0
- package/lib/ui/select/select.d.ts +18 -0
- package/lib/ui/select/select.js +211 -0
- package/lib/ui/select/select.js.map +1 -0
- package/lib/ui/select/types.d.ts +42 -0
- package/lib/ui/select/types.js +3 -0
- package/lib/ui/select/types.js.map +1 -0
- package/lib/ui/slider/constant.d.ts +59 -0
- package/lib/ui/slider/constant.js +36 -0
- package/lib/ui/slider/constant.js.map +1 -0
- package/lib/ui/slider/handle.d.ts +26 -0
- package/lib/ui/slider/handle.js +88 -0
- package/lib/ui/slider/handle.js.map +1 -0
- package/lib/ui/slider/index.d.ts +84 -0
- package/lib/ui/slider/index.js +511 -0
- package/lib/ui/slider/index.js.map +1 -0
- package/lib/ui/slider/types.d.ts +55 -0
- package/lib/ui/slider/types.js +3 -0
- package/lib/ui/slider/types.js.map +1 -0
- package/lib/ui/sparkline/columns.d.ts +12 -0
- package/lib/ui/sparkline/columns.js +47 -0
- package/lib/ui/sparkline/columns.js.map +1 -0
- package/lib/ui/sparkline/index.d.ts +31 -0
- package/lib/ui/sparkline/index.js +245 -0
- package/lib/ui/sparkline/index.js.map +1 -0
- package/lib/ui/sparkline/lines.d.ts +16 -0
- package/lib/ui/sparkline/lines.js +71 -0
- package/lib/ui/sparkline/lines.js.map +1 -0
- package/lib/ui/sparkline/path.d.ts +32 -0
- package/lib/ui/sparkline/path.js +147 -0
- package/lib/ui/sparkline/path.js.map +1 -0
- package/lib/ui/sparkline/types.d.ts +35 -0
- package/lib/ui/sparkline/types.js +3 -0
- package/lib/ui/sparkline/types.js.map +1 -0
- package/lib/ui/sparkline/utils.d.ts +9 -0
- package/lib/ui/sparkline/utils.js +40 -0
- package/lib/ui/sparkline/utils.js.map +1 -0
- package/lib/ui/switch/constant.d.ts +59 -0
- package/lib/ui/switch/constant.js +63 -0
- package/lib/ui/switch/constant.js.map +1 -0
- package/lib/ui/switch/index.d.ts +16 -0
- package/lib/ui/switch/index.js +139 -0
- package/lib/ui/switch/index.js.map +1 -0
- package/lib/ui/switch/types.d.ts +38 -0
- package/lib/ui/switch/types.js +3 -0
- package/lib/ui/switch/types.js.map +1 -0
- package/lib/ui/tag/index.d.ts +17 -0
- package/lib/ui/tag/index.js +88 -0
- package/lib/ui/tag/index.js.map +1 -0
- package/lib/ui/tag/types.d.ts +20 -0
- package/lib/ui/tag/types.js +3 -0
- package/lib/ui/tag/types.js.map +1 -0
- package/lib/ui/timebar/controller.d.ts +15 -0
- package/lib/ui/timebar/controller.js +135 -0
- package/lib/ui/timebar/controller.js.map +1 -0
- package/lib/ui/timebar/handle.d.ts +35 -0
- package/lib/ui/timebar/handle.js +96 -0
- package/lib/ui/timebar/handle.js.map +1 -0
- package/lib/ui/timebar/icons.d.ts +126 -0
- package/lib/ui/timebar/icons.js +711 -0
- package/lib/ui/timebar/icons.js.map +1 -0
- package/lib/ui/timebar/index.d.ts +2 -0
- package/lib/ui/timebar/index.js +6 -0
- package/lib/ui/timebar/index.js.map +1 -0
- package/lib/ui/timebar/timebar.d.ts +49 -0
- package/lib/ui/timebar/timebar.js +510 -0
- package/lib/ui/timebar/timebar.js.map +1 -0
- package/lib/ui/timebar/types.d.ts +90 -0
- package/lib/ui/timebar/types.js +3 -0
- package/lib/ui/timebar/types.js.map +1 -0
- package/lib/ui/timebar/utils.d.ts +16 -0
- package/lib/ui/timebar/utils.js +84 -0
- package/lib/ui/timebar/utils.js.map +1 -0
- package/lib/ui/timeline/button.js +159 -0
- package/lib/ui/timeline/button.js.map +1 -0
- package/lib/ui/timeline/cellAxis.js +223 -0
- package/lib/ui/timeline/cellAxis.js.map +1 -0
- package/lib/ui/timeline/checkbox.js +103 -0
- package/lib/ui/timeline/checkbox.js.map +1 -0
- package/lib/ui/timeline/constants.js +113 -0
- package/lib/ui/timeline/constants.js.map +1 -0
- package/lib/ui/timeline/index.d.ts +4 -0
- package/lib/ui/timeline/index.js +239 -0
- package/lib/ui/timeline/index.js.map +1 -0
- package/lib/ui/timeline/playAxis.d.ts +0 -0
- package/lib/ui/timeline/playAxis.js +166 -0
- package/lib/ui/timeline/playAxis.js.map +1 -0
- package/lib/ui/timeline/sliderAxis.d.ts +0 -0
- package/lib/ui/timeline/sliderAxis.js +306 -0
- package/lib/ui/timeline/sliderAxis.js.map +1 -0
- package/lib/ui/timeline/speedcontrol.d.ts +0 -0
- package/lib/ui/timeline/speedcontrol.js +114 -0
- package/lib/ui/timeline/speedcontrol.js.map +1 -0
- package/lib/ui/timeline/types.d.ts +0 -0
- package/lib/ui/timeline/types.js +103 -0
- package/lib/ui/timeline/types.js.map +1 -0
- package/lib/ui/title/index.d.ts +24 -0
- package/lib/ui/title/index.js +145 -0
- package/lib/ui/title/index.js.map +1 -0
- package/lib/ui/title/types.d.ts +12 -0
- package/lib/ui/title/types.js +3 -0
- package/lib/ui/title/types.js.map +1 -0
- package/lib/ui/tooltip/constant.d.ts +264 -0
- package/lib/ui/tooltip/constant.js +94 -0
- package/lib/ui/tooltip/constant.js.map +1 -0
- package/lib/ui/tooltip/index.d.ts +50 -0
- package/lib/ui/tooltip/index.js +255 -0
- package/lib/ui/tooltip/index.js.map +1 -0
- package/lib/ui/tooltip/types.d.ts +50 -0
- package/lib/ui/tooltip/types.js +3 -0
- package/lib/ui/tooltip/types.js.map +1 -0
- package/lib/util/angle-converter.d.ts +2 -0
- package/lib/util/angle-converter.js +12 -0
- package/lib/util/angle-converter.js.map +1 -0
- package/lib/util/bbox.d.ts +24 -0
- package/lib/util/bbox.js +73 -0
- package/lib/util/bbox.js.map +1 -0
- package/lib/util/callback.d.ts +1 -0
- package/lib/util/callback.js +10 -0
- package/lib/util/callback.js.map +1 -0
- package/lib/util/classnames.d.ts +7 -0
- package/lib/util/classnames.js +26 -0
- package/lib/util/classnames.js.map +1 -0
- package/lib/util/deep-assign.d.ts +1 -0
- package/lib/util/deep-assign.js +51 -0
- package/lib/util/deep-assign.js.map +1 -0
- package/lib/util/defined.d.ts +1 -0
- package/lib/util/defined.js +6 -0
- package/lib/util/defined.js.map +1 -0
- package/lib/util/ellipsis.d.ts +2 -0
- package/lib/util/ellipsis.js +10 -0
- package/lib/util/ellipsis.js.map +1 -0
- package/lib/util/event.d.ts +2 -15
- package/lib/util/event.js +15 -31
- package/lib/util/event.js.map +1 -1
- package/lib/util/extend-display-object.d.ts +3 -0
- package/lib/util/extend-display-object.js +12 -0
- package/lib/util/extend-display-object.js.map +1 -0
- package/lib/util/geometry/index.d.ts +2 -0
- package/lib/util/geometry/index.js +6 -0
- package/lib/util/geometry/index.js.map +1 -0
- package/lib/util/geometry/line-length.d.ts +5 -0
- package/lib/util/geometry/line-length.js +14 -0
- package/lib/util/geometry/line-length.js.map +1 -0
- package/lib/util/geometry/lines-intersection.d.ts +6 -0
- package/lib/util/geometry/lines-intersection.js +60 -0
- package/lib/util/geometry/lines-intersection.js.map +1 -0
- package/lib/util/group-by.d.ts +3 -0
- package/lib/util/group-by.js +11 -0
- package/lib/util/group-by.js.map +1 -0
- package/lib/util/group.d.ts +1 -0
- package/lib/util/group.js +16 -0
- package/lib/util/group.js.map +1 -0
- package/lib/util/html.d.ts +2 -0
- package/lib/util/html.js +17 -0
- package/lib/util/html.js.map +1 -0
- package/lib/util/if-show.d.ts +2 -0
- package/lib/util/if-show.js +17 -0
- package/lib/util/if-show.js.map +1 -0
- package/lib/util/in-range.d.ts +1 -0
- package/lib/util/in-range.js +12 -0
- package/lib/util/in-range.js.map +1 -0
- package/lib/util/index.d.ts +40 -0
- package/lib/util/index.js +44 -0
- package/lib/util/index.js.map +1 -0
- package/lib/util/interpolate.d.ts +17 -0
- package/lib/util/interpolate.js +65 -0
- package/lib/util/interpolate.js.map +1 -0
- package/lib/util/keyframe-interpolate.d.ts +4 -0
- package/lib/util/keyframe-interpolate.js +21 -0
- package/lib/util/keyframe-interpolate.js.map +1 -0
- package/lib/util/layout/executer.d.ts +3 -0
- package/lib/util/layout/executer.js +13 -0
- package/lib/util/layout/executer.js.map +1 -0
- package/lib/util/layout/flex/index.d.ts +3 -0
- package/lib/util/layout/flex/index.js +77 -0
- package/lib/util/layout/flex/index.js.map +1 -0
- package/lib/util/layout/flex/types.d.ts +28 -0
- package/lib/util/layout/flex/types.js +3 -0
- package/lib/util/layout/flex/types.js.map +1 -0
- package/lib/util/layout/grid/index.d.ts +3 -0
- package/lib/util/layout/grid/index.js +9 -0
- package/lib/util/layout/grid/index.js.map +1 -0
- package/lib/util/layout/grid/types.d.ts +9 -0
- package/lib/util/layout/grid/types.js +3 -0
- package/lib/util/layout/grid/types.js.map +1 -0
- package/lib/util/layout/index.d.ts +4 -0
- package/lib/util/layout/index.js +10 -0
- package/lib/util/layout/index.js.map +1 -0
- package/lib/util/layout/types.d.ts +8 -0
- package/lib/util/layout/types.js +3 -0
- package/lib/util/layout/types.js.map +1 -0
- package/lib/util/layout/utils/helper.d.ts +3 -0
- package/lib/util/layout/utils/helper.js +26 -0
- package/lib/util/layout/utils/helper.js.map +1 -0
- package/lib/util/layout/utils/index.d.ts +1 -0
- package/lib/util/layout/utils/index.js +6 -0
- package/lib/util/layout/utils/index.js.map +1 -0
- package/lib/util/matrix.d.ts +20 -17
- package/lib/util/matrix.js +50 -65
- package/lib/util/matrix.js.map +1 -1
- package/lib/util/number.d.ts +24 -0
- package/lib/util/number.js +51 -0
- package/lib/util/number.js.map +1 -0
- package/lib/util/offscreen.d.ts +8 -0
- package/lib/util/offscreen.js +42 -0
- package/lib/util/offscreen.js.map +1 -0
- package/lib/util/omit.d.ts +1 -0
- package/lib/util/omit.js +15 -0
- package/lib/util/omit.js.map +1 -0
- package/lib/util/path.d.ts +23 -0
- package/lib/util/path.js +122 -0
- package/lib/util/path.js.map +1 -0
- package/lib/util/primitive.d.ts +3 -0
- package/lib/util/primitive.js +96 -0
- package/lib/util/primitive.js.map +1 -0
- package/lib/util/sampling.d.ts +1 -0
- package/lib/util/sampling.js +15 -0
- package/lib/util/sampling.js.map +1 -0
- package/lib/util/scale-to-pixel.d.ts +5 -0
- package/lib/util/scale-to-pixel.js +16 -0
- package/lib/util/scale-to-pixel.js.map +1 -0
- package/lib/util/selection.d.ts +77 -0
- package/lib/util/selection.js +375 -0
- package/lib/util/selection.js.map +1 -0
- package/lib/util/series.d.ts +6 -0
- package/lib/util/series.js +30 -0
- package/lib/util/series.js.map +1 -0
- package/lib/util/shape.d.ts +23 -0
- package/lib/util/shape.js +67 -0
- package/lib/util/shape.js.map +1 -0
- package/lib/util/string.d.ts +4 -0
- package/lib/util/string.js +24 -0
- package/lib/util/string.js.map +1 -0
- package/lib/util/style.d.ts +29 -0
- package/lib/util/style.js +120 -0
- package/lib/util/style.js.map +1 -0
- package/lib/util/svg2marker.d.ts +14 -0
- package/lib/util/svg2marker.js +69 -0
- package/lib/util/svg2marker.js.map +1 -0
- package/lib/util/text.d.ts +17 -6
- package/lib/util/text.js +38 -78
- package/lib/util/text.js.map +1 -1
- package/lib/util/throttle.d.ts +5 -0
- package/lib/util/throttle.js +35 -0
- package/lib/util/throttle.js.map +1 -0
- package/lib/util/time.d.ts +26 -0
- package/lib/util/time.js +103 -0
- package/lib/util/time.js.map +1 -0
- package/lib/util/timer.d.ts +4 -0
- package/lib/util/timer.js +27 -0
- package/lib/util/timer.js.map +1 -0
- package/lib/util/transform.d.ts +6 -0
- package/lib/util/transform.js +32 -0
- package/lib/util/transform.js.map +1 -0
- package/lib/util/transpose.d.ts +1 -0
- package/lib/util/transpose.js +9 -0
- package/lib/util/transpose.js.map +1 -0
- package/lib/util/traverse.d.ts +2 -0
- package/lib/util/traverse.js +14 -0
- package/lib/util/traverse.js.map +1 -0
- package/lib/util/visibility.d.ts +4 -0
- package/lib/util/visibility.js +20 -0
- package/lib/util/visibility.js.map +1 -0
- package/lib/util/wrap.d.ts +2 -0
- package/lib/util/wrap.js +11 -0
- package/lib/util/wrap.js.map +1 -0
- package/package.json +126 -59
- package/src/animation/fadeIn.ts +8 -0
- package/src/animation/fadeOut.ts +8 -0
- package/src/animation/index.ts +4 -0
- package/src/animation/types.ts +15 -0
- package/src/animation/utils.ts +177 -0
- package/src/constant.ts +2 -0
- package/src/core/component.ts +63 -0
- package/src/core/index.ts +2 -0
- package/src/core/types.ts +28 -0
- package/src/index.ts +6 -19
- package/src/shapes/Circle.ts +5 -0
- package/src/shapes/CustomElement.ts +5 -0
- package/src/shapes/DisplayObject.ts +2 -0
- package/src/shapes/Ellipse.ts +5 -0
- package/src/shapes/Group.ts +5 -0
- package/src/shapes/HTML.ts +5 -0
- package/src/shapes/Image.ts +5 -0
- package/src/shapes/Line.ts +5 -0
- package/src/shapes/Path.ts +5 -0
- package/src/shapes/Polygon.ts +5 -0
- package/src/shapes/Polyline.ts +5 -0
- package/src/shapes/Rect.ts +5 -0
- package/src/shapes/Text.ts +38 -0
- package/src/shapes/index.ts +13 -0
- package/src/shapes/types.ts +7 -0
- package/src/types/index.ts +25 -0
- package/src/types/prefix.ts +3 -0
- package/src/types/styles.ts +7 -0
- package/src/ui/axis/axis.ts +90 -0
- package/src/ui/axis/constant.ts +97 -0
- package/src/ui/axis/guides/grid.ts +94 -0
- package/src/ui/axis/guides/labels.ts +257 -0
- package/src/ui/axis/guides/line.ts +266 -0
- package/src/ui/axis/guides/ticks.ts +115 -0
- package/src/ui/axis/guides/title.ts +126 -0
- package/src/ui/axis/guides/utils.ts +63 -0
- package/src/ui/axis/index.ts +3 -0
- package/src/ui/axis/overlap/autoEllipsis.ts +58 -0
- package/src/ui/axis/overlap/autoHide.ts +72 -0
- package/src/ui/axis/overlap/autoRotate.ts +37 -0
- package/src/ui/axis/overlap/autoWrap.ts +47 -0
- package/src/ui/axis/overlap/index.ts +45 -0
- package/src/ui/axis/types.ts +199 -0
- package/src/ui/axis/utils/bounds.ts +132 -0
- package/src/ui/axis/utils/contain.ts +76 -0
- package/src/ui/axis/utils/index.ts +8 -0
- package/src/ui/axis/utils/intersect.ts +65 -0
- package/src/ui/axis/utils/test.ts +76 -0
- package/src/ui/breadcrumb/index.ts +146 -0
- package/src/ui/breadcrumb/type.ts +45 -0
- package/src/ui/button/constant.ts +74 -0
- package/src/ui/button/index.ts +200 -0
- package/src/ui/button/types.ts +63 -0
- package/src/ui/checkbox/constant.ts +48 -0
- package/src/ui/checkbox/index.ts +78 -0
- package/src/ui/checkbox/types.ts +22 -0
- package/src/ui/crosshair/base.ts +83 -0
- package/src/ui/crosshair/circle.ts +51 -0
- package/src/ui/crosshair/constant.ts +45 -0
- package/src/ui/crosshair/index.ts +4 -0
- package/src/ui/crosshair/line.ts +121 -0
- package/src/ui/crosshair/polygon.ts +99 -0
- package/src/ui/crosshair/types.ts +34 -0
- package/src/ui/grid/index.ts +188 -0
- package/src/ui/grid/types.ts +23 -0
- package/src/ui/index.ts +55 -0
- package/src/ui/indicator/constant.ts +17 -0
- package/src/ui/indicator/index.ts +1 -0
- package/src/ui/indicator/indicator.ts +170 -0
- package/src/ui/indicator/types.ts +20 -0
- package/src/ui/layout/index.ts +2 -0
- package/src/ui/layout/layout.ts +103 -0
- package/src/ui/layout/types.ts +14 -0
- package/src/ui/legend/base.ts +60 -0
- package/src/ui/legend/category/item.ts +252 -0
- package/src/ui/legend/category/items.ts +350 -0
- package/src/ui/legend/category.ts +96 -0
- package/src/ui/legend/constant.ts +78 -0
- package/src/ui/legend/continuous/handle.ts +98 -0
- package/src/ui/legend/continuous/ribbon.ts +140 -0
- package/src/ui/legend/continuous/utils.ts +28 -0
- package/src/ui/legend/continuous.ts +740 -0
- package/src/ui/legend/index.ts +7 -0
- package/src/ui/legend/types.ts +70 -0
- package/src/ui/legend/utils.ts +112 -0
- package/src/ui/marker/index.ts +115 -0
- package/src/ui/marker/symbol.ts +197 -0
- package/src/ui/marker/types.ts +11 -0
- package/src/ui/marker/utils.ts +22 -0
- package/src/ui/navigator/index.ts +340 -0
- package/src/ui/navigator/types.ts +24 -0
- package/src/ui/poptip/constant.ts +161 -0
- package/src/ui/poptip/index.ts +279 -0
- package/src/ui/poptip/types.ts +76 -0
- package/src/ui/poptip/utils.ts +69 -0
- package/src/ui/scrollbar/index.ts +207 -0
- package/src/ui/scrollbar/types.ts +42 -0
- package/src/ui/select/index.ts +2 -0
- package/src/ui/select/option.ts +83 -0
- package/src/ui/select/select.ts +245 -0
- package/src/ui/select/types.ts +61 -0
- package/src/ui/slider/constant.ts +39 -0
- package/src/ui/slider/handle.ts +131 -0
- package/src/ui/slider/index.ts +616 -0
- package/src/ui/slider/types.ts +76 -0
- package/src/ui/sparkline/columns.ts +51 -0
- package/src/ui/sparkline/index.ts +246 -0
- package/src/ui/sparkline/lines.ts +76 -0
- package/src/ui/sparkline/path.ts +142 -0
- package/src/ui/sparkline/types.ts +45 -0
- package/src/ui/sparkline/utils.ts +34 -0
- package/src/ui/switch/constant.ts +59 -0
- package/src/ui/switch/index.ts +195 -0
- package/src/ui/switch/types.ts +40 -0
- package/src/ui/tag/index.ts +107 -0
- package/src/ui/tag/types.ts +24 -0
- package/src/ui/timebar/controller.ts +139 -0
- package/src/ui/timebar/handle.ts +113 -0
- package/src/ui/timebar/icons.ts +673 -0
- package/src/ui/timebar/index.ts +2 -0
- package/src/ui/timebar/timebar.ts +547 -0
- package/src/ui/timebar/types.ts +116 -0
- package/src/ui/timebar/utils.ts +90 -0
- package/src/ui/timeline/button.ts +177 -0
- package/src/ui/timeline/cellAxis.ts +247 -0
- package/src/ui/timeline/checkbox.ts +113 -0
- package/src/ui/timeline/constants.ts +113 -0
- package/src/ui/timeline/index.ts +385 -0
- package/src/ui/timeline/playAxis.ts +183 -0
- package/src/ui/timeline/sliderAxis.ts +334 -0
- package/src/ui/timeline/speedcontrol.ts +130 -0
- package/src/ui/timeline/types.ts +112 -0
- package/src/ui/title/index.ts +176 -0
- package/src/ui/title/types.ts +30 -0
- package/src/ui/tooltip/constant.ts +99 -0
- package/src/ui/tooltip/index.ts +244 -0
- package/src/ui/tooltip/types.ts +72 -0
- package/src/util/angle-converter.ts +7 -0
- package/src/util/bbox.ts +61 -0
- package/src/util/callback.ts +5 -0
- package/src/util/classnames.ts +27 -0
- package/src/util/deep-assign.ts +42 -0
- package/src/util/defined.ts +1 -0
- package/src/util/ellipsis.ts +6 -0
- package/src/util/event.ts +12 -32
- package/src/util/extend-display-object.ts +9 -0
- package/src/util/geometry/index.ts +2 -0
- package/src/util/geometry/line-length.ts +8 -0
- package/src/util/geometry/lines-intersection.ts +56 -0
- package/src/util/group-by.ts +9 -0
- package/src/util/group.ts +13 -0
- package/src/util/html.ts +12 -0
- package/src/util/if-show.ts +17 -0
- package/src/util/in-range.ts +10 -0
- package/src/util/index.ts +40 -0
- package/src/util/interpolate.ts +67 -0
- package/src/util/keyframe-interpolate.ts +24 -0
- package/src/util/layout/executer.ts +11 -0
- package/src/util/layout/flex/index.ts +89 -0
- package/src/util/layout/flex/types.ts +31 -0
- package/src/util/layout/grid/index.ts +7 -0
- package/src/util/layout/grid/types.ts +8 -0
- package/src/util/layout/index.ts +4 -0
- package/src/util/layout/types.ts +13 -0
- package/src/util/layout/utils/helper.ts +19 -0
- package/src/util/layout/utils/index.ts +1 -0
- package/src/util/matrix.ts +42 -63
- package/src/util/number.ts +41 -0
- package/src/util/offscreen.ts +34 -0
- package/src/util/omit.ts +10 -0
- package/src/util/path.ts +155 -0
- package/src/util/primitive.ts +91 -0
- package/src/util/sampling.ts +9 -0
- package/src/util/scale-to-pixel.ts +11 -0
- package/src/util/selection.ts +408 -0
- package/src/util/series.ts +31 -0
- package/src/util/shape.ts +53 -0
- package/src/util/string.ts +17 -0
- package/src/util/style.ts +111 -0
- package/src/util/svg2marker.ts +83 -0
- package/src/util/text.ts +41 -71
- package/src/util/throttle.ts +22 -0
- package/src/util/time.ts +95 -0
- package/src/util/timer.ts +19 -0
- package/src/util/transform.ts +26 -0
- package/src/util/transpose.ts +3 -0
- package/src/util/traverse.ts +10 -0
- package/src/util/visibility.ts +17 -0
- package/src/util/wrap.ts +6 -0
- package/esm/abstract/component.d.ts +0 -83
- package/esm/abstract/component.js +0 -161
- package/esm/abstract/component.js.map +0 -1
- package/esm/abstract/group-component.d.ts +0 -158
- package/esm/abstract/group-component.js +0 -501
- package/esm/abstract/group-component.js.map +0 -1
- package/esm/abstract/html-component.d.ts +0 -88
- package/esm/abstract/html-component.js +0 -190
- package/esm/abstract/html-component.js.map +0 -1
- package/esm/annotation/arc.d.ts +0 -58
- package/esm/annotation/arc.js +0 -56
- package/esm/annotation/arc.js.map +0 -1
- package/esm/annotation/data-marker.d.ts +0 -90
- package/esm/annotation/data-marker.js +0 -174
- package/esm/annotation/data-marker.js.map +0 -1
- package/esm/annotation/data-region.d.ts +0 -69
- package/esm/annotation/data-region.js +0 -67
- package/esm/annotation/data-region.js.map +0 -1
- package/esm/annotation/html.d.ts +0 -46
- package/esm/annotation/html.js +0 -72
- package/esm/annotation/html.js.map +0 -1
- package/esm/annotation/image.d.ts +0 -54
- package/esm/annotation/image.js +0 -41
- package/esm/annotation/image.js.map +0 -1
- package/esm/annotation/index.d.ts +0 -10
- package/esm/annotation/index.js +0 -11
- package/esm/annotation/index.js.map +0 -1
- package/esm/annotation/line.d.ts +0 -74
- package/esm/annotation/line.js +0 -116
- package/esm/annotation/line.js.map +0 -1
- package/esm/annotation/region-filter.d.ts +0 -52
- package/esm/annotation/region-filter.js +0 -61
- package/esm/annotation/region-filter.js.map +0 -1
- package/esm/annotation/region.d.ts +0 -58
- package/esm/annotation/region.js +0 -43
- package/esm/annotation/region.js.map +0 -1
- package/esm/annotation/shape.d.ts +0 -42
- package/esm/annotation/shape.js +0 -22
- package/esm/annotation/shape.js.map +0 -1
- package/esm/annotation/text.d.ts +0 -68
- package/esm/annotation/text.js +0 -74
- package/esm/annotation/text.js.map +0 -1
- package/esm/axis/base.d.ts +0 -229
- package/esm/axis/base.js +0 -621
- package/esm/axis/base.js.map +0 -1
- package/esm/axis/circle.d.ts +0 -142
- package/esm/axis/circle.js +0 -171
- package/esm/axis/circle.js.map +0 -1
- package/esm/axis/group.js +0 -1
- package/esm/axis/group.js.map +0 -1
- package/esm/axis/index.d.ts +0 -3
- package/esm/axis/index.js +0 -4
- package/esm/axis/index.js.map +0 -1
- package/esm/axis/line.d.ts +0 -152
- package/esm/axis/line.js +0 -196
- package/esm/axis/line.js.map +0 -1
- package/esm/axis/overlap/auto-ellipsis-time.d.ts +0 -2
- package/esm/axis/overlap/auto-ellipsis-time.js +0 -157
- package/esm/axis/overlap/auto-ellipsis-time.js.map +0 -1
- package/esm/axis/overlap/auto-ellipsis.d.ts +0 -5
- package/esm/axis/overlap/auto-ellipsis.js +0 -24
- package/esm/axis/overlap/auto-ellipsis.js.map +0 -1
- package/esm/axis/overlap/auto-format.d.ts +0 -2
- package/esm/axis/overlap/auto-format.js +0 -61
- package/esm/axis/overlap/auto-format.js.map +0 -1
- package/esm/axis/overlap/auto-hide.d.ts +0 -43
- package/esm/axis/overlap/auto-hide.js +0 -255
- package/esm/axis/overlap/auto-hide.js.map +0 -1
- package/esm/axis/overlap/auto-rotate.d.ts +0 -19
- package/esm/axis/overlap/auto-rotate.js +0 -94
- package/esm/axis/overlap/auto-rotate.js.map +0 -1
- package/esm/axis/overlap/auto-wrap.d.ts +0 -2
- package/esm/axis/overlap/auto-wrap.js +0 -45
- package/esm/axis/overlap/auto-wrap.js.map +0 -1
- package/esm/axis/overlap/index.d.ts +0 -4
- package/esm/axis/overlap/index.js +0 -5
- package/esm/axis/overlap/index.js.map +0 -1
- package/esm/axis/radius.js +0 -1
- package/esm/axis/radius.js.map +0 -1
- package/esm/crosshair/base.d.ts +0 -81
- package/esm/crosshair/base.js +0 -100
- package/esm/crosshair/base.js.map +0 -1
- package/esm/crosshair/circle.d.ts +0 -76
- package/esm/crosshair/circle.js +0 -64
- package/esm/crosshair/circle.js.map +0 -1
- package/esm/crosshair/css-const.d.ts +0 -3
- package/esm/crosshair/css-const.js +0 -4
- package/esm/crosshair/css-const.js.map +0 -1
- package/esm/crosshair/html-theme.d.ts +0 -19
- package/esm/crosshair/html-theme.js +0 -20
- package/esm/crosshair/html-theme.js.map +0 -1
- package/esm/crosshair/html.d.ts +0 -83
- package/esm/crosshair/html.js +0 -127
- package/esm/crosshair/html.js.map +0 -1
- package/esm/crosshair/index.d.ts +0 -4
- package/esm/crosshair/index.js +0 -5
- package/esm/crosshair/index.js.map +0 -1
- package/esm/crosshair/line.d.ts +0 -74
- package/esm/crosshair/line.js +0 -36
- package/esm/crosshair/line.js.map +0 -1
- package/esm/grid/base.d.ts +0 -75
- package/esm/grid/base.js +0 -111
- package/esm/grid/base.js.map +0 -1
- package/esm/grid/circle.d.ts +0 -65
- package/esm/grid/circle.js +0 -76
- package/esm/grid/circle.js.map +0 -1
- package/esm/grid/index.d.ts +0 -3
- package/esm/grid/index.js +0 -4
- package/esm/grid/index.js.map +0 -1
- package/esm/grid/line.d.ts +0 -53
- package/esm/grid/line.js +0 -28
- package/esm/grid/line.js.map +0 -1
- package/esm/interfaces.d.ts +0 -149
- package/esm/interfaces.js +0 -1
- package/esm/interfaces.js.map +0 -1
- package/esm/legend/base.d.ts +0 -62
- package/esm/legend/base.js +0 -113
- package/esm/legend/base.js.map +0 -1
- package/esm/legend/category.d.ts +0 -233
- package/esm/legend/category.js +0 -762
- package/esm/legend/category.js.map +0 -1
- package/esm/legend/continuous.d.ts +0 -138
- package/esm/legend/continuous.js +0 -677
- package/esm/legend/continuous.js.map +0 -1
- package/esm/legend/index.d.ts +0 -3
- package/esm/legend/index.js +0 -4
- package/esm/legend/index.js.map +0 -1
- package/esm/legend/size.js +0 -1
- package/esm/legend/size.js.map +0 -1
- package/esm/legend/table.js +0 -1
- package/esm/legend/table.js.map +0 -1
- package/esm/scrollbar/index.d.ts +0 -1
- package/esm/scrollbar/index.js +0 -2
- package/esm/scrollbar/index.js.map +0 -1
- package/esm/scrollbar/scrollbar.d.ts +0 -95
- package/esm/scrollbar/scrollbar.js +0 -280
- package/esm/scrollbar/scrollbar.js.map +0 -1
- package/esm/slider/constant.d.ts +0 -70
- package/esm/slider/constant.js +0 -72
- package/esm/slider/constant.js.map +0 -1
- package/esm/slider/foreground.d.ts +0 -82
- package/esm/slider/foreground.js +0 -112
- package/esm/slider/foreground.js.map +0 -1
- package/esm/slider/handler.d.ts +0 -78
- package/esm/slider/handler.js +0 -104
- package/esm/slider/handler.js.map +0 -1
- package/esm/slider/index.d.ts +0 -1
- package/esm/slider/index.js +0 -2
- package/esm/slider/index.js.map +0 -1
- package/esm/slider/slider.d.ts +0 -168
- package/esm/slider/slider.js +0 -598
- package/esm/slider/slider.js.map +0 -1
- package/esm/tooltip/css-const.d.ts +0 -9
- package/esm/tooltip/css-const.js +0 -10
- package/esm/tooltip/css-const.js.map +0 -1
- package/esm/tooltip/html-theme.d.ts +0 -180
- package/esm/tooltip/html-theme.js +0 -60
- package/esm/tooltip/html-theme.js.map +0 -1
- package/esm/tooltip/html.d.ts +0 -264
- package/esm/tooltip/html.js +0 -323
- package/esm/tooltip/html.js.map +0 -1
- package/esm/tooltip/index.d.ts +0 -1
- package/esm/tooltip/index.js +0 -2
- package/esm/tooltip/index.js.map +0 -1
- package/esm/trend/constant.d.ts +0 -11
- package/esm/trend/constant.js +0 -13
- package/esm/trend/constant.js.map +0 -1
- package/esm/trend/path.d.ts +0 -34
- package/esm/trend/path.js +0 -97
- package/esm/trend/path.js.map +0 -1
- package/esm/trend/trend.d.ts +0 -73
- package/esm/trend/trend.js +0 -53
- package/esm/trend/trend.js.map +0 -1
- package/esm/types.d.ts +0 -1327
- package/esm/types.js +0 -1
- package/esm/types.js.map +0 -1
- package/esm/util/align.d.ts +0 -11
- package/esm/util/align.js +0 -91
- package/esm/util/align.js.map +0 -1
- package/esm/util/graphic.d.ts +0 -17
- package/esm/util/graphic.js +0 -44
- package/esm/util/graphic.js.map +0 -1
- package/esm/util/label.d.ts +0 -8
- package/esm/util/label.js +0 -105
- package/esm/util/label.js.map +0 -1
- package/esm/util/mask.d.ts +0 -9
- package/esm/util/mask.js +0 -26
- package/esm/util/mask.js.map +0 -1
- package/esm/util/state.d.ts +0 -2
- package/esm/util/state.js +0 -16
- package/esm/util/state.js.map +0 -1
- package/esm/util/theme.d.ts +0 -13
- package/esm/util/theme.js +0 -14
- package/esm/util/theme.js.map +0 -1
- package/esm/util/util.d.ts +0 -36
- package/esm/util/util.js +0 -280
- package/esm/util/util.js.map +0 -1
- package/lib/abstract/component.d.ts +0 -83
- package/lib/abstract/component.js +0 -163
- package/lib/abstract/component.js.map +0 -1
- package/lib/abstract/group-component.d.ts +0 -158
- package/lib/abstract/group-component.js +0 -503
- package/lib/abstract/group-component.js.map +0 -1
- package/lib/abstract/html-component.d.ts +0 -88
- package/lib/abstract/html-component.js +0 -192
- package/lib/abstract/html-component.js.map +0 -1
- package/lib/annotation/arc.d.ts +0 -58
- package/lib/annotation/arc.js +0 -58
- package/lib/annotation/arc.js.map +0 -1
- package/lib/annotation/data-marker.d.ts +0 -90
- package/lib/annotation/data-marker.js +0 -176
- package/lib/annotation/data-marker.js.map +0 -1
- package/lib/annotation/data-region.d.ts +0 -69
- package/lib/annotation/data-region.js +0 -69
- package/lib/annotation/data-region.js.map +0 -1
- package/lib/annotation/html.d.ts +0 -46
- package/lib/annotation/html.js +0 -74
- package/lib/annotation/html.js.map +0 -1
- package/lib/annotation/image.d.ts +0 -54
- package/lib/annotation/image.js +0 -43
- package/lib/annotation/image.js.map +0 -1
- package/lib/annotation/index.d.ts +0 -10
- package/lib/annotation/index.js +0 -23
- package/lib/annotation/index.js.map +0 -1
- package/lib/annotation/line.d.ts +0 -74
- package/lib/annotation/line.js +0 -118
- package/lib/annotation/line.js.map +0 -1
- package/lib/annotation/region-filter.d.ts +0 -52
- package/lib/annotation/region-filter.js +0 -63
- package/lib/annotation/region-filter.js.map +0 -1
- package/lib/annotation/region.d.ts +0 -58
- package/lib/annotation/region.js +0 -45
- package/lib/annotation/region.js.map +0 -1
- package/lib/annotation/shape.d.ts +0 -42
- package/lib/annotation/shape.js +0 -24
- package/lib/annotation/shape.js.map +0 -1
- package/lib/annotation/text.d.ts +0 -68
- package/lib/annotation/text.js +0 -76
- package/lib/annotation/text.js.map +0 -1
- package/lib/axis/base.d.ts +0 -229
- package/lib/axis/base.js +0 -623
- package/lib/axis/base.js.map +0 -1
- package/lib/axis/circle.d.ts +0 -142
- package/lib/axis/circle.js +0 -173
- package/lib/axis/circle.js.map +0 -1
- package/lib/axis/group.js +0 -1
- package/lib/axis/group.js.map +0 -1
- package/lib/axis/index.d.ts +0 -3
- package/lib/axis/index.js +0 -9
- package/lib/axis/index.js.map +0 -1
- package/lib/axis/line.d.ts +0 -152
- package/lib/axis/line.js +0 -198
- package/lib/axis/line.js.map +0 -1
- package/lib/axis/overlap/auto-ellipsis-time.d.ts +0 -2
- package/lib/axis/overlap/auto-ellipsis-time.js +0 -161
- package/lib/axis/overlap/auto-ellipsis-time.js.map +0 -1
- package/lib/axis/overlap/auto-ellipsis.d.ts +0 -5
- package/lib/axis/overlap/auto-ellipsis.js +0 -31
- package/lib/axis/overlap/auto-ellipsis.js.map +0 -1
- package/lib/axis/overlap/auto-format.d.ts +0 -2
- package/lib/axis/overlap/auto-format.js +0 -65
- package/lib/axis/overlap/auto-format.js.map +0 -1
- package/lib/axis/overlap/auto-hide.d.ts +0 -43
- package/lib/axis/overlap/auto-hide.js +0 -264
- package/lib/axis/overlap/auto-hide.js.map +0 -1
- package/lib/axis/overlap/auto-rotate.d.ts +0 -19
- package/lib/axis/overlap/auto-rotate.js +0 -100
- package/lib/axis/overlap/auto-rotate.js.map +0 -1
- package/lib/axis/overlap/auto-wrap.d.ts +0 -2
- package/lib/axis/overlap/auto-wrap.js +0 -49
- package/lib/axis/overlap/auto-wrap.js.map +0 -1
- package/lib/axis/overlap/index.d.ts +0 -4
- package/lib/axis/overlap/index.js +0 -10
- package/lib/axis/overlap/index.js.map +0 -1
- package/lib/axis/radius.js +0 -1
- package/lib/axis/radius.js.map +0 -1
- package/lib/crosshair/base.d.ts +0 -81
- package/lib/crosshair/base.js +0 -102
- package/lib/crosshair/base.js.map +0 -1
- package/lib/crosshair/circle.d.ts +0 -76
- package/lib/crosshair/circle.js +0 -66
- package/lib/crosshair/circle.js.map +0 -1
- package/lib/crosshair/css-const.d.ts +0 -3
- package/lib/crosshair/css-const.js +0 -7
- package/lib/crosshair/css-const.js.map +0 -1
- package/lib/crosshair/html-theme.d.ts +0 -19
- package/lib/crosshair/html-theme.js +0 -22
- package/lib/crosshair/html-theme.js.map +0 -1
- package/lib/crosshair/html.d.ts +0 -83
- package/lib/crosshair/html.js +0 -129
- package/lib/crosshair/html.js.map +0 -1
- package/lib/crosshair/index.d.ts +0 -4
- package/lib/crosshair/index.js +0 -11
- package/lib/crosshair/index.js.map +0 -1
- package/lib/crosshair/line.d.ts +0 -74
- package/lib/crosshair/line.js +0 -38
- package/lib/crosshair/line.js.map +0 -1
- package/lib/grid/base.d.ts +0 -75
- package/lib/grid/base.js +0 -113
- package/lib/grid/base.js.map +0 -1
- package/lib/grid/circle.d.ts +0 -65
- package/lib/grid/circle.js +0 -78
- package/lib/grid/circle.js.map +0 -1
- package/lib/grid/index.d.ts +0 -3
- package/lib/grid/index.js +0 -9
- package/lib/grid/index.js.map +0 -1
- package/lib/grid/line.d.ts +0 -53
- package/lib/grid/line.js +0 -30
- package/lib/grid/line.js.map +0 -1
- package/lib/interfaces.d.ts +0 -149
- package/lib/interfaces.js +0 -3
- package/lib/interfaces.js.map +0 -1
- package/lib/legend/base.d.ts +0 -62
- package/lib/legend/base.js +0 -115
- package/lib/legend/base.js.map +0 -1
- package/lib/legend/category.d.ts +0 -233
- package/lib/legend/category.js +0 -764
- package/lib/legend/category.js.map +0 -1
- package/lib/legend/continuous.d.ts +0 -138
- package/lib/legend/continuous.js +0 -679
- package/lib/legend/continuous.js.map +0 -1
- package/lib/legend/index.d.ts +0 -3
- package/lib/legend/index.js +0 -9
- package/lib/legend/index.js.map +0 -1
- package/lib/legend/size.js +0 -1
- package/lib/legend/size.js.map +0 -1
- package/lib/legend/table.js +0 -1
- package/lib/legend/table.js.map +0 -1
- package/lib/scrollbar/index.d.ts +0 -1
- package/lib/scrollbar/index.js +0 -5
- package/lib/scrollbar/index.js.map +0 -1
- package/lib/scrollbar/scrollbar.d.ts +0 -95
- package/lib/scrollbar/scrollbar.js +0 -283
- package/lib/scrollbar/scrollbar.js.map +0 -1
- package/lib/slider/constant.d.ts +0 -70
- package/lib/slider/constant.js +0 -75
- package/lib/slider/constant.js.map +0 -1
- package/lib/slider/foreground.d.ts +0 -82
- package/lib/slider/foreground.js +0 -115
- package/lib/slider/foreground.js.map +0 -1
- package/lib/slider/handler.d.ts +0 -78
- package/lib/slider/handler.js +0 -107
- package/lib/slider/handler.js.map +0 -1
- package/lib/slider/index.d.ts +0 -1
- package/lib/slider/index.js +0 -5
- package/lib/slider/index.js.map +0 -1
- package/lib/slider/slider.d.ts +0 -168
- package/lib/slider/slider.js +0 -601
- package/lib/slider/slider.js.map +0 -1
- package/lib/tooltip/css-const.d.ts +0 -9
- package/lib/tooltip/css-const.js +0 -13
- package/lib/tooltip/css-const.js.map +0 -1
- package/lib/tooltip/html-theme.d.ts +0 -180
- package/lib/tooltip/html-theme.js +0 -62
- package/lib/tooltip/html-theme.js.map +0 -1
- package/lib/tooltip/html.d.ts +0 -264
- package/lib/tooltip/html.js +0 -325
- package/lib/tooltip/html.js.map +0 -1
- package/lib/tooltip/index.d.ts +0 -1
- package/lib/tooltip/index.js +0 -5
- package/lib/tooltip/index.js.map +0 -1
- package/lib/trend/constant.d.ts +0 -11
- package/lib/trend/constant.js +0 -16
- package/lib/trend/constant.js.map +0 -1
- package/lib/trend/path.d.ts +0 -34
- package/lib/trend/path.js +0 -105
- package/lib/trend/path.js.map +0 -1
- package/lib/trend/trend.d.ts +0 -73
- package/lib/trend/trend.js +0 -56
- package/lib/trend/trend.js.map +0 -1
- package/lib/types.d.ts +0 -1327
- package/lib/types.js.map +0 -1
- package/lib/util/align.d.ts +0 -11
- package/lib/util/align.js +0 -97
- package/lib/util/align.js.map +0 -1
- package/lib/util/graphic.d.ts +0 -17
- package/lib/util/graphic.js +0 -48
- package/lib/util/graphic.js.map +0 -1
- package/lib/util/label.d.ts +0 -8
- package/lib/util/label.js +0 -112
- package/lib/util/label.js.map +0 -1
- package/lib/util/mask.d.ts +0 -9
- package/lib/util/mask.js +0 -32
- package/lib/util/mask.js.map +0 -1
- package/lib/util/state.d.ts +0 -2
- package/lib/util/state.js +0 -20
- package/lib/util/state.js.map +0 -1
- package/lib/util/theme.d.ts +0 -13
- package/lib/util/theme.js +0 -16
- package/lib/util/theme.js.map +0 -1
- package/lib/util/util.d.ts +0 -36
- package/lib/util/util.js +0 -300
- package/lib/util/util.js.map +0 -1
- package/src/abstract/component.ts +0 -189
- package/src/abstract/group-component.ts +0 -574
- package/src/abstract/html-component.ts +0 -205
- package/src/annotation/arc.ts +0 -70
- package/src/annotation/data-marker.ts +0 -216
- package/src/annotation/data-region.ts +0 -89
- package/src/annotation/html.ts +0 -85
- package/src/annotation/image.ts +0 -58
- package/src/annotation/index.ts +0 -10
- package/src/annotation/line.ts +0 -136
- package/src/annotation/region-filter.ts +0 -72
- package/src/annotation/region.ts +0 -58
- package/src/annotation/shape.ts +0 -24
- package/src/annotation/text.ts +0 -94
- package/src/axis/base.ts +0 -706
- package/src/axis/circle.ts +0 -181
- package/src/axis/index.ts +0 -3
- package/src/axis/line.ts +0 -205
- package/src/axis/overlap/auto-ellipsis-time.ts +0 -167
- package/src/axis/overlap/auto-ellipsis.ts +0 -29
- package/src/axis/overlap/auto-format.ts +0 -66
- package/src/axis/overlap/auto-hide.ts +0 -294
- package/src/axis/overlap/auto-rotate.ts +0 -110
- package/src/axis/overlap/auto-wrap.ts +0 -48
- package/src/axis/overlap/index.ts +0 -5
- package/src/crosshair/base.ts +0 -137
- package/src/crosshair/circle.ts +0 -71
- package/src/crosshair/css-const.ts +0 -3
- package/src/crosshair/html-theme.ts +0 -20
- package/src/crosshair/html.ts +0 -142
- package/src/crosshair/index.ts +0 -4
- package/src/crosshair/line.ts +0 -42
- package/src/grid/base.ts +0 -131
- package/src/grid/circle.ts +0 -73
- package/src/grid/index.ts +0 -3
- package/src/grid/line.ts +0 -27
- package/src/interfaces.ts +0 -153
- package/src/legend/base.ts +0 -145
- package/src/legend/category.ts +0 -906
- package/src/legend/continuous.ts +0 -722
- package/src/legend/index.ts +0 -3
- package/src/scrollbar/index.ts +0 -1
- package/src/scrollbar/scrollbar.ts +0 -356
- package/src/slider/constant.ts +0 -80
- package/src/slider/foreground.ts +0 -170
- package/src/slider/handler.ts +0 -144
- package/src/slider/index.ts +0 -1
- package/src/slider/slider.ts +0 -801
- package/src/tooltip/css-const.ts +0 -9
- package/src/tooltip/html-theme.ts +0 -61
- package/src/tooltip/html.ts +0 -358
- package/src/tooltip/index.ts +0 -1
- package/src/trend/constant.ts +0 -14
- package/src/trend/path.ts +0 -112
- package/src/trend/trend.ts +0 -95
- package/src/types.ts +0 -1395
- package/src/util/align.ts +0 -115
- package/src/util/graphic.ts +0 -76
- package/src/util/label.ts +0 -112
- package/src/util/mask.ts +0 -32
- package/src/util/state.ts +0 -17
- package/src/util/theme.ts +0 -17
- package/src/util/util.ts +0 -302
- /package/esm/{axis/group.d.ts → ui/timeline/button.d.ts} +0 -0
- /package/esm/{axis/radius.d.ts → ui/timeline/cellAxis.d.ts} +0 -0
- /package/esm/{legend/size.d.ts → ui/timeline/checkbox.d.ts} +0 -0
- /package/esm/{legend/table.d.ts → ui/timeline/constants.d.ts} +0 -0
- /package/{lib/axis/group.d.ts → esm/ui/timeline/playAxis.d.ts} +0 -0
- /package/{lib/axis/radius.d.ts → esm/ui/timeline/sliderAxis.d.ts} +0 -0
- /package/{lib/legend/size.d.ts → esm/ui/timeline/speedcontrol.d.ts} +0 -0
- /package/{lib/legend/table.d.ts → esm/ui/timeline/types.d.ts} +0 -0
- /package/lib/{types.js → core/types.js} +0 -0
- /package/{src/axis/group.ts → lib/ui/timeline/button.d.ts} +0 -0
- /package/{src/axis/radius.ts → lib/ui/timeline/cellAxis.d.ts} +0 -0
- /package/{src/legend/size.ts → lib/ui/timeline/checkbox.d.ts} +0 -0
- /package/{src/legend/table.ts → lib/ui/timeline/constants.d.ts} +0 -0
package/esm/legend/category.js
DELETED
|
@@ -1,762 +0,0 @@
|
|
|
1
|
-
import { __assign, __extends, __rest } from "tslib";
|
|
2
|
-
import { clamp, deepMix, each, filter, get, mix, isNumber, isFunction } from '@antv/util';
|
|
3
|
-
import { ellipsisLabel } from '../util/label';
|
|
4
|
-
import { getMatrixByAngle, getMatrixByTranslate } from '../util/matrix';
|
|
5
|
-
import { getStatesStyle } from '../util/state';
|
|
6
|
-
import Theme from '../util/theme';
|
|
7
|
-
import LegendBase from './base';
|
|
8
|
-
/**
|
|
9
|
-
* 分页器 默认配置
|
|
10
|
-
*/
|
|
11
|
-
var DEFAULT_PAGE_NAVIGATOR = {
|
|
12
|
-
marker: {
|
|
13
|
-
style: {
|
|
14
|
-
inactiveFill: '#000',
|
|
15
|
-
inactiveOpacity: 0.45,
|
|
16
|
-
fill: '#000',
|
|
17
|
-
opacity: 1,
|
|
18
|
-
size: 12,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
text: {
|
|
22
|
-
style: {
|
|
23
|
-
fill: '#ccc',
|
|
24
|
-
fontSize: 12,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
// 默认 文本style
|
|
29
|
-
var textStyle = {
|
|
30
|
-
fill: Theme.textColor,
|
|
31
|
-
fontSize: 12,
|
|
32
|
-
textAlign: 'start',
|
|
33
|
-
textBaseline: 'middle',
|
|
34
|
-
fontFamily: Theme.fontFamily,
|
|
35
|
-
fontWeight: 'normal',
|
|
36
|
-
lineHeight: 12,
|
|
37
|
-
};
|
|
38
|
-
var RIGHT_ARROW_NAME = 'navigation-arrow-right';
|
|
39
|
-
var LEFT_ARROW_NAME = 'navigation-arrow-left';
|
|
40
|
-
var ROTATE_MAP = {
|
|
41
|
-
right: (90 * Math.PI) / 180,
|
|
42
|
-
left: ((360 - 90) * Math.PI) / 180,
|
|
43
|
-
up: 0,
|
|
44
|
-
down: (180 * Math.PI) / 180,
|
|
45
|
-
};
|
|
46
|
-
var Category = /** @class */ (function (_super) {
|
|
47
|
-
__extends(Category, _super);
|
|
48
|
-
function Category() {
|
|
49
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
50
|
-
_this.currentPageIndex = 1;
|
|
51
|
-
_this.totalPagesCnt = 1;
|
|
52
|
-
_this.pageWidth = 0;
|
|
53
|
-
_this.pageHeight = 0;
|
|
54
|
-
_this.startX = 0;
|
|
55
|
-
_this.startY = 0;
|
|
56
|
-
_this.onNavigationBack = function () {
|
|
57
|
-
var itemGroup = _this.getElementByLocalId('item-group');
|
|
58
|
-
if (_this.currentPageIndex > 1) {
|
|
59
|
-
_this.currentPageIndex -= 1;
|
|
60
|
-
_this.updateNavigation();
|
|
61
|
-
var matrix = _this.getCurrentNavigationMatrix();
|
|
62
|
-
if (_this.get('animate')) {
|
|
63
|
-
itemGroup.animate({
|
|
64
|
-
matrix: matrix,
|
|
65
|
-
}, 100);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
itemGroup.attr({ matrix: matrix });
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
_this.onNavigationAfter = function () {
|
|
73
|
-
var itemGroup = _this.getElementByLocalId('item-group');
|
|
74
|
-
if (_this.currentPageIndex < _this.totalPagesCnt) {
|
|
75
|
-
_this.currentPageIndex += 1;
|
|
76
|
-
_this.updateNavigation();
|
|
77
|
-
var matrix = _this.getCurrentNavigationMatrix();
|
|
78
|
-
if (_this.get('animate')) {
|
|
79
|
-
itemGroup.animate({
|
|
80
|
-
matrix: matrix,
|
|
81
|
-
}, 100);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
itemGroup.attr({ matrix: matrix });
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
return _this;
|
|
89
|
-
}
|
|
90
|
-
Category.prototype.getDefaultCfg = function () {
|
|
91
|
-
var cfg = _super.prototype.getDefaultCfg.call(this);
|
|
92
|
-
return __assign(__assign({}, cfg), { name: 'legend', type: 'category', itemSpacing: 24, itemMarginBottom: 8, maxItemWidth: null, itemWidth: null, itemHeight: null, itemName: {}, itemValue: null, maxWidth: null, maxHeight: null, marker: {}, radio: null, items: [], itemStates: {}, itemBackground: {}, pageNavigator: {}, defaultCfg: {
|
|
93
|
-
title: {
|
|
94
|
-
spacing: 5,
|
|
95
|
-
style: {
|
|
96
|
-
fill: Theme.textColor,
|
|
97
|
-
fontSize: 12,
|
|
98
|
-
textAlign: 'start',
|
|
99
|
-
textBaseline: 'top',
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
background: {
|
|
103
|
-
padding: 5,
|
|
104
|
-
style: {
|
|
105
|
-
stroke: Theme.lineColor,
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
itemBackground: {
|
|
109
|
-
style: {
|
|
110
|
-
opacity: 0,
|
|
111
|
-
fill: '#fff',
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
pageNavigator: DEFAULT_PAGE_NAVIGATOR,
|
|
115
|
-
itemName: {
|
|
116
|
-
spacing: 16,
|
|
117
|
-
style: textStyle,
|
|
118
|
-
},
|
|
119
|
-
marker: {
|
|
120
|
-
spacing: 8,
|
|
121
|
-
style: {
|
|
122
|
-
r: 6,
|
|
123
|
-
symbol: 'circle',
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
itemValue: {
|
|
127
|
-
alignRight: false,
|
|
128
|
-
formatter: null,
|
|
129
|
-
style: textStyle,
|
|
130
|
-
spacing: 6,
|
|
131
|
-
},
|
|
132
|
-
itemStates: {
|
|
133
|
-
active: {
|
|
134
|
-
nameStyle: {
|
|
135
|
-
opacity: 0.8,
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
unchecked: {
|
|
139
|
-
nameStyle: {
|
|
140
|
-
fill: Theme.uncheckedColor,
|
|
141
|
-
},
|
|
142
|
-
markerStyle: {
|
|
143
|
-
fill: Theme.uncheckedColor,
|
|
144
|
-
stroke: Theme.uncheckedColor,
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
inactive: {
|
|
148
|
-
nameStyle: {
|
|
149
|
-
fill: Theme.uncheckedColor,
|
|
150
|
-
},
|
|
151
|
-
markerStyle: {
|
|
152
|
-
opacity: 0.2,
|
|
153
|
-
},
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
} });
|
|
157
|
-
};
|
|
158
|
-
// 实现 IList 接口
|
|
159
|
-
Category.prototype.isList = function () {
|
|
160
|
-
return true;
|
|
161
|
-
};
|
|
162
|
-
/**
|
|
163
|
-
* 获取图例项
|
|
164
|
-
* @return {ListItem[]} 列表项集合
|
|
165
|
-
*/
|
|
166
|
-
Category.prototype.getItems = function () {
|
|
167
|
-
return this.get('items');
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* 设置列表项
|
|
171
|
-
* @param {ListItem[]} items 列表项集合
|
|
172
|
-
*/
|
|
173
|
-
Category.prototype.setItems = function (items) {
|
|
174
|
-
this.update({
|
|
175
|
-
items: items,
|
|
176
|
-
});
|
|
177
|
-
};
|
|
178
|
-
/**
|
|
179
|
-
* 更新列表项
|
|
180
|
-
* @param {ListItem} item 列表项
|
|
181
|
-
* @param {object} cfg 列表项
|
|
182
|
-
*/
|
|
183
|
-
Category.prototype.updateItem = function (item, cfg) {
|
|
184
|
-
mix(item, cfg);
|
|
185
|
-
this.clear(); // 由于单个图例项变化,会引起全局变化,所以全部更新
|
|
186
|
-
this.render();
|
|
187
|
-
};
|
|
188
|
-
/**
|
|
189
|
-
* 清空列表
|
|
190
|
-
*/
|
|
191
|
-
Category.prototype.clearItems = function () {
|
|
192
|
-
var itemGroup = this.getElementByLocalId('item-group');
|
|
193
|
-
itemGroup && itemGroup.clear();
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
* 设置列表项的状态
|
|
197
|
-
* @param {ListItem} item 列表项
|
|
198
|
-
* @param {string} state 状态名
|
|
199
|
-
* @param {boolean} value 状态值, true, false
|
|
200
|
-
*/
|
|
201
|
-
Category.prototype.setItemState = function (item, state, value) {
|
|
202
|
-
item[state] = value;
|
|
203
|
-
var itemElement = this.getElementByLocalId("item-" + item.id);
|
|
204
|
-
if (itemElement) {
|
|
205
|
-
var items = this.getItems();
|
|
206
|
-
var index = items.indexOf(item);
|
|
207
|
-
var offsetGroup = this.createOffScreenGroup(); // 离屏的 group
|
|
208
|
-
var newElement = this.drawItem(item, index, this.getItemHeight(), offsetGroup);
|
|
209
|
-
this.updateElements(newElement, itemElement); // 更新整个分组
|
|
210
|
-
this.clearUpdateStatus(itemElement); // 清理更新状态,防止出现 bug
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
/**
|
|
214
|
-
* 是否存在指定的状态
|
|
215
|
-
* @param {ListItem} item 列表项
|
|
216
|
-
* @param {boolean} state 状态名
|
|
217
|
-
*/
|
|
218
|
-
Category.prototype.hasState = function (item, state) {
|
|
219
|
-
return !!item[state];
|
|
220
|
-
};
|
|
221
|
-
Category.prototype.getItemStates = function (item) {
|
|
222
|
-
var itemStates = this.get('itemStates');
|
|
223
|
-
var rst = [];
|
|
224
|
-
each(itemStates, function (v, k) {
|
|
225
|
-
if (item[k]) {
|
|
226
|
-
// item.selected
|
|
227
|
-
rst.push(k);
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
return rst;
|
|
231
|
-
};
|
|
232
|
-
/**
|
|
233
|
-
* 清楚所有列表项的状态
|
|
234
|
-
* @param {string} state 状态值
|
|
235
|
-
*/
|
|
236
|
-
Category.prototype.clearItemsState = function (state) {
|
|
237
|
-
var _this = this;
|
|
238
|
-
var items = this.getItemsByState(state);
|
|
239
|
-
each(items, function (item) {
|
|
240
|
-
_this.setItemState(item, state, false);
|
|
241
|
-
});
|
|
242
|
-
};
|
|
243
|
-
/**
|
|
244
|
-
* 根据状态获取图例项
|
|
245
|
-
* @param {string} state [description]
|
|
246
|
-
* @return {ListItem[]} [description]
|
|
247
|
-
*/
|
|
248
|
-
Category.prototype.getItemsByState = function (state) {
|
|
249
|
-
var _this = this;
|
|
250
|
-
var items = this.getItems();
|
|
251
|
-
return filter(items, function (item) {
|
|
252
|
-
return _this.hasState(item, state);
|
|
253
|
-
});
|
|
254
|
-
};
|
|
255
|
-
// 绘制 legend 的选项
|
|
256
|
-
Category.prototype.drawLegendContent = function (group) {
|
|
257
|
-
this.processItems();
|
|
258
|
-
this.drawItems(group);
|
|
259
|
-
};
|
|
260
|
-
// 防止未设置 id
|
|
261
|
-
Category.prototype.processItems = function () {
|
|
262
|
-
var items = this.get('items');
|
|
263
|
-
each(items, function (item) {
|
|
264
|
-
if (!item.id) {
|
|
265
|
-
// 如果没有设置 id,默认使用 name
|
|
266
|
-
item.id = item.name;
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
};
|
|
270
|
-
// 绘制所有的图例选项
|
|
271
|
-
Category.prototype.drawItems = function (group) {
|
|
272
|
-
var _this = this;
|
|
273
|
-
var itemContainerGroup = this.addGroup(group, {
|
|
274
|
-
id: this.getElementId('item-container-group'),
|
|
275
|
-
name: 'legend-item-container-group',
|
|
276
|
-
});
|
|
277
|
-
var itemGroup = this.addGroup(itemContainerGroup, {
|
|
278
|
-
id: this.getElementId('item-group'),
|
|
279
|
-
name: 'legend-item-group',
|
|
280
|
-
});
|
|
281
|
-
var itemHeight = this.getItemHeight();
|
|
282
|
-
var itemWidth = this.get('itemWidth');
|
|
283
|
-
var itemSpacing = this.get('itemSpacing');
|
|
284
|
-
var itemMarginBottom = this.get('itemMarginBottom');
|
|
285
|
-
var currentPoint = this.get('currentPoint');
|
|
286
|
-
var startX = currentPoint.x;
|
|
287
|
-
var startY = currentPoint.y;
|
|
288
|
-
var layout = this.get('layout');
|
|
289
|
-
var items = this.get('items');
|
|
290
|
-
var wrapped = false;
|
|
291
|
-
var pageWidth = 0;
|
|
292
|
-
var maxWidth = this.get('maxWidth'); // 最大宽度,会导致 layout : 'horizontal' 时自动换行
|
|
293
|
-
var maxHeight = this.get('maxHeight'); // 最大高度,会导致出现分页
|
|
294
|
-
// 暂时不考虑分页
|
|
295
|
-
each(items, function (item, index) {
|
|
296
|
-
var subGroup = _this.drawItem(item, index, itemHeight, itemGroup);
|
|
297
|
-
var bbox = subGroup.getBBox();
|
|
298
|
-
var width = itemWidth || bbox.width;
|
|
299
|
-
if (width > pageWidth) {
|
|
300
|
-
pageWidth = width;
|
|
301
|
-
}
|
|
302
|
-
if (layout === 'horizontal') {
|
|
303
|
-
// 如果水平布局
|
|
304
|
-
if (maxWidth && maxWidth < currentPoint.x + width - startX) {
|
|
305
|
-
// 检测是否换行
|
|
306
|
-
wrapped = true;
|
|
307
|
-
currentPoint.x = startX;
|
|
308
|
-
currentPoint.y += itemHeight + itemMarginBottom;
|
|
309
|
-
}
|
|
310
|
-
_this.moveElementTo(subGroup, currentPoint);
|
|
311
|
-
currentPoint.x += width + itemSpacing;
|
|
312
|
-
}
|
|
313
|
-
else {
|
|
314
|
-
// 如果垂直布局
|
|
315
|
-
if (maxHeight && maxHeight < currentPoint.y + itemHeight + itemMarginBottom - startY) {
|
|
316
|
-
// 换行
|
|
317
|
-
wrapped = true;
|
|
318
|
-
currentPoint.x += pageWidth + itemSpacing;
|
|
319
|
-
currentPoint.y = startY;
|
|
320
|
-
pageWidth = 0;
|
|
321
|
-
}
|
|
322
|
-
_this.moveElementTo(subGroup, currentPoint);
|
|
323
|
-
currentPoint.y += itemHeight + itemMarginBottom; // itemSpacing 仅影响水平间距
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
|
-
if (wrapped && this.get('flipPage')) {
|
|
327
|
-
this.pageHeight = 0;
|
|
328
|
-
this.pageWidth = 0;
|
|
329
|
-
this.totalPagesCnt = 1;
|
|
330
|
-
this.startX = startX;
|
|
331
|
-
this.startY = startY;
|
|
332
|
-
this.adjustNavigation(group, itemGroup);
|
|
333
|
-
}
|
|
334
|
-
};
|
|
335
|
-
// 获取图例项的高度,如果未定义,则按照 name 的高度计算
|
|
336
|
-
Category.prototype.getItemHeight = function () {
|
|
337
|
-
var itemHeight = this.get('itemHeight');
|
|
338
|
-
if (!itemHeight) {
|
|
339
|
-
var style_1 = (this.get('itemName') || {}).style;
|
|
340
|
-
if (isFunction(style_1)) {
|
|
341
|
-
var items_1 = this.getItems();
|
|
342
|
-
items_1.forEach(function (item, index) {
|
|
343
|
-
var fontSize = __assign(__assign({}, textStyle), style_1(item, index, items_1)).fontSize;
|
|
344
|
-
if (itemHeight < fontSize) {
|
|
345
|
-
itemHeight = fontSize;
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
else if (style_1) {
|
|
350
|
-
itemHeight = style_1.fontSize;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
return itemHeight;
|
|
354
|
-
};
|
|
355
|
-
// 绘制 marker
|
|
356
|
-
Category.prototype.drawMarker = function (container, markerCfg, item, itemHeight) {
|
|
357
|
-
var markerAttrs = __assign(__assign(__assign({ x: 0, y: itemHeight / 2 }, markerCfg.style), { symbol: get(item.marker, 'symbol', 'circle') }), get(item.marker, 'style', {}));
|
|
358
|
-
var shape = this.addShape(container, {
|
|
359
|
-
type: 'marker',
|
|
360
|
-
id: this.getElementId("item-" + item.id + "-marker"),
|
|
361
|
-
name: 'legend-item-marker',
|
|
362
|
-
attrs: markerAttrs,
|
|
363
|
-
});
|
|
364
|
-
var bbox = shape.getBBox();
|
|
365
|
-
shape.attr('x', bbox.width / 2); // marker 需要左对齐,所以不能占用左侧的空间
|
|
366
|
-
var _a = shape.attr(), stroke = _a.stroke, fill = _a.fill;
|
|
367
|
-
if (stroke) {
|
|
368
|
-
shape.set('isStroke', true);
|
|
369
|
-
}
|
|
370
|
-
if (fill) {
|
|
371
|
-
shape.set('isFill', true);
|
|
372
|
-
}
|
|
373
|
-
return shape;
|
|
374
|
-
};
|
|
375
|
-
// 绘制文本
|
|
376
|
-
Category.prototype.drawItemText = function (container, textName, cfg, item, itemHeight, xPosition, index) {
|
|
377
|
-
var formatter = cfg.formatter;
|
|
378
|
-
var style = cfg.style;
|
|
379
|
-
var attrs = __assign(__assign({ x: xPosition, y: itemHeight / 2, text: formatter ? formatter(item[textName], item, index) : item[textName] }, textStyle), (isFunction(style) ? style(item, index, this.getItems()) : style));
|
|
380
|
-
return this.addShape(container, {
|
|
381
|
-
type: 'text',
|
|
382
|
-
id: this.getElementId("item-" + item.id + "-" + textName),
|
|
383
|
-
name: "legend-item-" + textName,
|
|
384
|
-
attrs: attrs,
|
|
385
|
-
});
|
|
386
|
-
};
|
|
387
|
-
Category.prototype.drawRadio = function (container, radioCfg, item, itemHeight, x) {
|
|
388
|
-
var _a, _b;
|
|
389
|
-
var style = radioCfg.style || {};
|
|
390
|
-
// 以用户设置的 r 为主
|
|
391
|
-
var r = (_a = style.r) !== null && _a !== void 0 ? _a : itemHeight / 2;
|
|
392
|
-
var lineWidth = (r * 3.6) / 8;
|
|
393
|
-
var _c = [x + r, itemHeight / 2 - r], x0 = _c[0], y0 = _c[1];
|
|
394
|
-
var _d = [x0 + r, y0 + r], x1 = _d[0], y1 = _d[1];
|
|
395
|
-
var _e = [x0, y1 + r], x2 = _e[0], y2 = _e[1];
|
|
396
|
-
var _f = [x, y0 + r], x3 = _f[0], y3 = _f[1];
|
|
397
|
-
var showRadio = item.showRadio;
|
|
398
|
-
var attrs = __assign(__assign({ path: [
|
|
399
|
-
['M', x0, y0],
|
|
400
|
-
['A', r, r, 0, 0, 1, x1, y1],
|
|
401
|
-
['L', x1 - lineWidth, y1],
|
|
402
|
-
['L', x1, y1],
|
|
403
|
-
['A', r, r, 0, 0, 1, x2, y2],
|
|
404
|
-
['L', x2, y2 - lineWidth],
|
|
405
|
-
['L', x2, y2],
|
|
406
|
-
['A', r, r, 0, 0, 1, x3, y3],
|
|
407
|
-
['L', x3 + lineWidth, y3],
|
|
408
|
-
['L', x3, y3],
|
|
409
|
-
['A', r, r, 0, 0, 1, x0, y0],
|
|
410
|
-
['L', x0, y0 + lineWidth],
|
|
411
|
-
], stroke: '#000000', fill: '#ffffff' }, style), { opacity: showRadio ? ((_b = style === null || style === void 0 ? void 0 : style.opacity) !== null && _b !== void 0 ? _b : 0.45) : 0 });
|
|
412
|
-
var radioShape = this.addShape(container, {
|
|
413
|
-
type: 'path',
|
|
414
|
-
id: this.getElementId("item-" + item.id + "-radio"),
|
|
415
|
-
name: 'legend-item-radio',
|
|
416
|
-
attrs: attrs,
|
|
417
|
-
});
|
|
418
|
-
radioShape.set('tip', radioCfg.tip);
|
|
419
|
-
return radioShape;
|
|
420
|
-
};
|
|
421
|
-
// 绘制图例项
|
|
422
|
-
Category.prototype.drawItem = function (item, index, itemHeight, itemGroup) {
|
|
423
|
-
var groupId = "item-" + item.id;
|
|
424
|
-
// 设置单独的 Group 用于 setClip
|
|
425
|
-
var subContainer = this.addGroup(itemGroup, {
|
|
426
|
-
name: 'legend-item-container',
|
|
427
|
-
id: this.getElementId("item-container-" + groupId),
|
|
428
|
-
delegateObject: {
|
|
429
|
-
item: item,
|
|
430
|
-
index: index,
|
|
431
|
-
},
|
|
432
|
-
});
|
|
433
|
-
var subGroup = this.addGroup(subContainer, {
|
|
434
|
-
name: 'legend-item',
|
|
435
|
-
id: this.getElementId(groupId),
|
|
436
|
-
delegateObject: {
|
|
437
|
-
item: item,
|
|
438
|
-
index: index,
|
|
439
|
-
},
|
|
440
|
-
});
|
|
441
|
-
var marker = this.get('marker');
|
|
442
|
-
var itemName = this.get('itemName');
|
|
443
|
-
var itemValue = this.get('itemValue');
|
|
444
|
-
var itemBackground = this.get('itemBackground');
|
|
445
|
-
var radio = this.get('radio');
|
|
446
|
-
var itemWidth = this.getLimitItemWidth();
|
|
447
|
-
var curX = 0; // 记录当前 x 的位置
|
|
448
|
-
if (marker) {
|
|
449
|
-
var markerShape = this.drawMarker(subGroup, marker, item, itemHeight);
|
|
450
|
-
var spacing = marker.spacing;
|
|
451
|
-
var itemMarkerSpacing = get(item, ['marker', 'spacing']);
|
|
452
|
-
if (isNumber(itemMarkerSpacing)) {
|
|
453
|
-
// 如果 item 有配置 marker.spacing,采用 item 的配置
|
|
454
|
-
spacing = itemMarkerSpacing;
|
|
455
|
-
}
|
|
456
|
-
curX = markerShape.getBBox().maxX + spacing;
|
|
457
|
-
}
|
|
458
|
-
if (itemName) {
|
|
459
|
-
var nameShape = this.drawItemText(subGroup, 'name', itemName, item, itemHeight, curX, index);
|
|
460
|
-
if (itemWidth) {
|
|
461
|
-
// 设置了 item 的最大宽度限制,并且超出了,进行省略处理
|
|
462
|
-
ellipsisLabel(true, nameShape, clamp(itemWidth - curX, 0, itemWidth));
|
|
463
|
-
}
|
|
464
|
-
curX = nameShape.getBBox().maxX + itemName.spacing;
|
|
465
|
-
}
|
|
466
|
-
if (itemValue) {
|
|
467
|
-
var valueShape = this.drawItemText(subGroup, 'value', itemValue, item, itemHeight, curX, index);
|
|
468
|
-
if (itemWidth) {
|
|
469
|
-
if (itemValue.alignRight) {
|
|
470
|
-
valueShape.attr({
|
|
471
|
-
textAlign: 'right',
|
|
472
|
-
x: itemWidth,
|
|
473
|
-
});
|
|
474
|
-
ellipsisLabel(true, valueShape, clamp(itemWidth - curX, 0, itemWidth), 'head');
|
|
475
|
-
}
|
|
476
|
-
else {
|
|
477
|
-
ellipsisLabel(true, valueShape, clamp(itemWidth - curX, 0, itemWidth));
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
curX = valueShape.getBBox().maxX + itemValue.spacing;
|
|
481
|
-
}
|
|
482
|
-
if (radio) {
|
|
483
|
-
this.drawRadio(subGroup, radio, item, itemHeight, curX);
|
|
484
|
-
}
|
|
485
|
-
// 添加透明的背景,便于拾取和包围盒计算
|
|
486
|
-
if (itemBackground) {
|
|
487
|
-
var bbox = subGroup.getBBox();
|
|
488
|
-
var backShape = this.addShape(subGroup, {
|
|
489
|
-
type: 'rect',
|
|
490
|
-
name: 'legend-item-background',
|
|
491
|
-
id: this.getElementId(groupId + "-background"),
|
|
492
|
-
attrs: __assign({ x: 0, y: 0, width: bbox.width, height: itemHeight }, itemBackground.style),
|
|
493
|
-
});
|
|
494
|
-
backShape.toBack();
|
|
495
|
-
}
|
|
496
|
-
this.applyItemStates(item, subGroup);
|
|
497
|
-
return subGroup;
|
|
498
|
-
};
|
|
499
|
-
// 加上分页器并重新排序 items
|
|
500
|
-
Category.prototype.adjustNavigation = function (container, itemGroup) {
|
|
501
|
-
var _this = this;
|
|
502
|
-
var startX = this.startX;
|
|
503
|
-
var startY = this.startY;
|
|
504
|
-
var layout = this.get('layout');
|
|
505
|
-
var subGroups = itemGroup.findAll(function (item) { return item.get('name') === 'legend-item'; });
|
|
506
|
-
var maxWidth = this.get('maxWidth');
|
|
507
|
-
var maxHeight = this.get('maxHeight');
|
|
508
|
-
var itemWidth = this.get('itemWidth');
|
|
509
|
-
var itemSpacing = this.get('itemSpacing');
|
|
510
|
-
var itemHeight = this.getItemHeight();
|
|
511
|
-
var pageNavigator = deepMix({}, DEFAULT_PAGE_NAVIGATOR, this.get('pageNavigator'));
|
|
512
|
-
var navigation = this.drawNavigation(container, layout, '00/00', pageNavigator);
|
|
513
|
-
var navigationBBox = navigation.getBBox();
|
|
514
|
-
var currentPoint = { x: startX, y: startY };
|
|
515
|
-
var pages = 1;
|
|
516
|
-
var widthLimit = 0;
|
|
517
|
-
var pageWidth = 0;
|
|
518
|
-
var maxItemWidth = 0;
|
|
519
|
-
var itemMarginBottom = this.get('itemMarginBottom');
|
|
520
|
-
/** 判断当前 item 是否溢出当前页。是的话,需要换行 */
|
|
521
|
-
function shouldWrap(item, currentPoint) {
|
|
522
|
-
var bbox = item.getBBox();
|
|
523
|
-
var width = itemWidth || bbox.width;
|
|
524
|
-
var newItemXPos = currentPoint.x + width + itemSpacing + navigationBBox.width;
|
|
525
|
-
return newItemXPos > maxWidth;
|
|
526
|
-
}
|
|
527
|
-
if (layout === 'horizontal') {
|
|
528
|
-
var maxRow = this.get('maxRow') || 1;
|
|
529
|
-
var maxRowHeight_1 = itemHeight + (maxRow === 1 ? 0 : itemMarginBottom);
|
|
530
|
-
// 分页器一直靠右上角
|
|
531
|
-
var navigationX_1 = maxWidth - itemSpacing - navigationBBox.width - navigationBBox.minX; // 理论上不需要减 navigationBBox.minX
|
|
532
|
-
this.pageHeight = maxRowHeight_1 * maxRow;
|
|
533
|
-
this.pageWidth = navigationX_1;
|
|
534
|
-
each(subGroups, function (item) {
|
|
535
|
-
var bbox = item.getBBox();
|
|
536
|
-
var width = itemWidth || bbox.width;
|
|
537
|
-
if ((widthLimit && widthLimit < currentPoint.x + width + itemSpacing) ||
|
|
538
|
-
shouldWrap(item, currentPoint)) {
|
|
539
|
-
if (pages === 1) {
|
|
540
|
-
widthLimit = currentPoint.x + itemSpacing;
|
|
541
|
-
_this.moveElementTo(navigation, {
|
|
542
|
-
x: navigationX_1,
|
|
543
|
-
y: currentPoint.y + itemHeight / 2 - navigationBBox.height / 2 - navigationBBox.minY,
|
|
544
|
-
});
|
|
545
|
-
}
|
|
546
|
-
pages += 1;
|
|
547
|
-
currentPoint.x = startX;
|
|
548
|
-
currentPoint.y += maxRowHeight_1;
|
|
549
|
-
}
|
|
550
|
-
_this.moveElementTo(item, currentPoint);
|
|
551
|
-
item.getParent().setClip({
|
|
552
|
-
type: 'rect',
|
|
553
|
-
attrs: {
|
|
554
|
-
x: currentPoint.x,
|
|
555
|
-
y: currentPoint.y,
|
|
556
|
-
width: width + itemSpacing,
|
|
557
|
-
height: itemHeight,
|
|
558
|
-
},
|
|
559
|
-
});
|
|
560
|
-
currentPoint.x += width + itemSpacing;
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
else {
|
|
564
|
-
each(subGroups, function (item) {
|
|
565
|
-
var bbox = item.getBBox();
|
|
566
|
-
if (bbox.width > pageWidth) {
|
|
567
|
-
pageWidth = bbox.width;
|
|
568
|
-
}
|
|
569
|
-
});
|
|
570
|
-
maxItemWidth = pageWidth;
|
|
571
|
-
pageWidth += itemSpacing;
|
|
572
|
-
if (maxWidth) {
|
|
573
|
-
// maxWidth 限制加上
|
|
574
|
-
pageWidth = Math.min(maxWidth, pageWidth);
|
|
575
|
-
maxItemWidth = Math.min(maxWidth, maxItemWidth);
|
|
576
|
-
}
|
|
577
|
-
this.pageWidth = pageWidth;
|
|
578
|
-
this.pageHeight = maxHeight - Math.max(navigationBBox.height, itemHeight + itemMarginBottom);
|
|
579
|
-
var cntPerPage_1 = Math.floor(this.pageHeight / (itemHeight + itemMarginBottom));
|
|
580
|
-
each(subGroups, function (item, index) {
|
|
581
|
-
if (index !== 0 && index % cntPerPage_1 === 0) {
|
|
582
|
-
pages += 1;
|
|
583
|
-
currentPoint.x += pageWidth;
|
|
584
|
-
currentPoint.y = startY;
|
|
585
|
-
}
|
|
586
|
-
_this.moveElementTo(item, currentPoint);
|
|
587
|
-
item.getParent().setClip({
|
|
588
|
-
type: 'rect',
|
|
589
|
-
attrs: {
|
|
590
|
-
x: currentPoint.x,
|
|
591
|
-
y: currentPoint.y,
|
|
592
|
-
width: pageWidth,
|
|
593
|
-
height: itemHeight,
|
|
594
|
-
},
|
|
595
|
-
});
|
|
596
|
-
currentPoint.y += itemHeight + itemMarginBottom;
|
|
597
|
-
});
|
|
598
|
-
this.totalPagesCnt = pages;
|
|
599
|
-
this.moveElementTo(navigation, {
|
|
600
|
-
x: startX + maxItemWidth / 2 - navigationBBox.width / 2 - navigationBBox.minX,
|
|
601
|
-
y: maxHeight - navigationBBox.height - navigationBBox.minY,
|
|
602
|
-
});
|
|
603
|
-
}
|
|
604
|
-
if (this.pageHeight && this.pageWidth) {
|
|
605
|
-
// 为了使固定的 clip 生效,clip 设置在 itemContainerGroup 上,itemGroup 需要在翻页时会设置 matrix
|
|
606
|
-
itemGroup.getParent().setClip({
|
|
607
|
-
type: 'rect',
|
|
608
|
-
attrs: {
|
|
609
|
-
x: this.startX,
|
|
610
|
-
y: this.startY,
|
|
611
|
-
width: this.pageWidth,
|
|
612
|
-
height: this.pageHeight,
|
|
613
|
-
},
|
|
614
|
-
});
|
|
615
|
-
}
|
|
616
|
-
// 重新计算 totalPagesCnt
|
|
617
|
-
if (layout === 'horizontal' && this.get('maxRow')) {
|
|
618
|
-
this.totalPagesCnt = Math.ceil(pages / this.get('maxRow'));
|
|
619
|
-
}
|
|
620
|
-
else {
|
|
621
|
-
this.totalPagesCnt = pages;
|
|
622
|
-
}
|
|
623
|
-
if (this.currentPageIndex > this.totalPagesCnt) {
|
|
624
|
-
this.currentPageIndex = 1;
|
|
625
|
-
}
|
|
626
|
-
this.updateNavigation(navigation);
|
|
627
|
-
// update initial matrix
|
|
628
|
-
itemGroup.attr('matrix', this.getCurrentNavigationMatrix());
|
|
629
|
-
};
|
|
630
|
-
/**
|
|
631
|
-
* 绘制分页器
|
|
632
|
-
*/
|
|
633
|
-
Category.prototype.drawNavigation = function (group, layout, text, styleCfg) {
|
|
634
|
-
var currentPoint = { x: 0, y: 0 };
|
|
635
|
-
var subGroup = this.addGroup(group, {
|
|
636
|
-
id: this.getElementId('navigation-group'),
|
|
637
|
-
name: 'legend-navigation',
|
|
638
|
-
});
|
|
639
|
-
var _a = get(styleCfg.marker, 'style', {}), _b = _a.size, size = _b === void 0 ? 12 : _b, arrowStyle = __rest(_a, ["size"]);
|
|
640
|
-
var leftArrow = this.drawArrow(subGroup, currentPoint, LEFT_ARROW_NAME, layout === 'horizontal' ? 'up' : 'left', size, arrowStyle);
|
|
641
|
-
leftArrow.on('click', this.onNavigationBack);
|
|
642
|
-
var leftArrowBBox = leftArrow.getBBox();
|
|
643
|
-
currentPoint.x += leftArrowBBox.width + 2;
|
|
644
|
-
var textShape = this.addShape(subGroup, {
|
|
645
|
-
type: 'text',
|
|
646
|
-
id: this.getElementId('navigation-text'),
|
|
647
|
-
name: 'navigation-text',
|
|
648
|
-
attrs: __assign({ x: currentPoint.x, y: currentPoint.y + size / 2, text: text, textBaseline: 'middle' }, get(styleCfg.text, 'style')),
|
|
649
|
-
});
|
|
650
|
-
var textBBox = textShape.getBBox();
|
|
651
|
-
currentPoint.x += textBBox.width + 2;
|
|
652
|
-
var rightArrow = this.drawArrow(subGroup, currentPoint, RIGHT_ARROW_NAME, layout === 'horizontal' ? 'down' : 'right', size, arrowStyle);
|
|
653
|
-
rightArrow.on('click', this.onNavigationAfter);
|
|
654
|
-
return subGroup;
|
|
655
|
-
};
|
|
656
|
-
Category.prototype.updateNavigation = function (navigation) {
|
|
657
|
-
var pageNavigator = deepMix({}, DEFAULT_PAGE_NAVIGATOR, this.get('pageNavigator'));
|
|
658
|
-
var _a = pageNavigator.marker.style, fill = _a.fill, opacity = _a.opacity, inactiveFill = _a.inactiveFill, inactiveOpacity = _a.inactiveOpacity;
|
|
659
|
-
var text = this.currentPageIndex + "/" + this.totalPagesCnt;
|
|
660
|
-
var textShape = navigation ? navigation.getChildren()[1] : this.getElementByLocalId('navigation-text');
|
|
661
|
-
var leftArrow = navigation
|
|
662
|
-
? navigation.findById(this.getElementId(LEFT_ARROW_NAME))
|
|
663
|
-
: this.getElementByLocalId(LEFT_ARROW_NAME);
|
|
664
|
-
var rightArrow = navigation
|
|
665
|
-
? navigation.findById(this.getElementId(RIGHT_ARROW_NAME))
|
|
666
|
-
: this.getElementByLocalId(RIGHT_ARROW_NAME);
|
|
667
|
-
textShape.attr('text', text);
|
|
668
|
-
// 更新 left-arrow marker
|
|
669
|
-
leftArrow.attr('opacity', this.currentPageIndex === 1 ? inactiveOpacity : opacity);
|
|
670
|
-
leftArrow.attr('fill', this.currentPageIndex === 1 ? inactiveFill : fill);
|
|
671
|
-
leftArrow.attr('cursor', this.currentPageIndex === 1 ? 'not-allowed' : 'pointer');
|
|
672
|
-
// 更新 right-arrow marker
|
|
673
|
-
rightArrow.attr('opacity', this.currentPageIndex === this.totalPagesCnt ? inactiveOpacity : opacity);
|
|
674
|
-
rightArrow.attr('fill', this.currentPageIndex === this.totalPagesCnt ? inactiveFill : fill);
|
|
675
|
-
rightArrow.attr('cursor', this.currentPageIndex === this.totalPagesCnt ? 'not-allowed' : 'pointer');
|
|
676
|
-
// 更新位置
|
|
677
|
-
var cursorX = leftArrow.getBBox().maxX + 2;
|
|
678
|
-
textShape.attr('x', cursorX);
|
|
679
|
-
cursorX += textShape.getBBox().width + 2;
|
|
680
|
-
this.updateArrowPath(rightArrow, { x: cursorX, y: 0 });
|
|
681
|
-
};
|
|
682
|
-
Category.prototype.drawArrow = function (group, currentPoint, name, direction, size, style) {
|
|
683
|
-
var x = currentPoint.x, y = currentPoint.y;
|
|
684
|
-
var shape = this.addShape(group, {
|
|
685
|
-
type: 'path',
|
|
686
|
-
id: this.getElementId(name),
|
|
687
|
-
name: name,
|
|
688
|
-
attrs: __assign({ size: size,
|
|
689
|
-
direction: direction, path: [['M', x + size / 2, y], ['L', x, y + size], ['L', x + size, y + size], ['Z']], cursor: 'pointer' }, style),
|
|
690
|
-
});
|
|
691
|
-
shape.attr('matrix', getMatrixByAngle({ x: x + size / 2, y: y + size / 2 }, ROTATE_MAP[direction]));
|
|
692
|
-
return shape;
|
|
693
|
-
};
|
|
694
|
-
/**
|
|
695
|
-
* 更新分页器 arrow 组件
|
|
696
|
-
*/
|
|
697
|
-
Category.prototype.updateArrowPath = function (arrow, point) {
|
|
698
|
-
var x = point.x, y = point.y;
|
|
699
|
-
var _a = arrow.attr(), size = _a.size, direction = _a.direction;
|
|
700
|
-
var matrix = getMatrixByAngle({ x: x + size / 2, y: y + size / 2 }, ROTATE_MAP[direction]);
|
|
701
|
-
arrow.attr('path', [['M', x + size / 2, y], ['L', x, y + size], ['L', x + size, y + size], ['Z']]);
|
|
702
|
-
arrow.attr('matrix', matrix);
|
|
703
|
-
};
|
|
704
|
-
Category.prototype.getCurrentNavigationMatrix = function () {
|
|
705
|
-
var _a = this, currentPageIndex = _a.currentPageIndex, pageWidth = _a.pageWidth, pageHeight = _a.pageHeight;
|
|
706
|
-
var layout = this.get('layout');
|
|
707
|
-
var translate = layout === 'horizontal'
|
|
708
|
-
? {
|
|
709
|
-
x: 0,
|
|
710
|
-
y: pageHeight * (1 - currentPageIndex),
|
|
711
|
-
}
|
|
712
|
-
: {
|
|
713
|
-
x: pageWidth * (1 - currentPageIndex),
|
|
714
|
-
y: 0,
|
|
715
|
-
};
|
|
716
|
-
return getMatrixByTranslate(translate);
|
|
717
|
-
};
|
|
718
|
-
// 附加状态对应的样式
|
|
719
|
-
Category.prototype.applyItemStates = function (item, subGroup) {
|
|
720
|
-
var states = this.getItemStates(item);
|
|
721
|
-
var hasStates = states.length > 0;
|
|
722
|
-
if (hasStates) {
|
|
723
|
-
var children = subGroup.getChildren();
|
|
724
|
-
var itemStates_1 = this.get('itemStates');
|
|
725
|
-
each(children, function (element) {
|
|
726
|
-
var name = element.get('name');
|
|
727
|
-
var elName = name.split('-')[2]; // marker, name, value
|
|
728
|
-
var statesStyle = getStatesStyle(item, elName, itemStates_1);
|
|
729
|
-
if (statesStyle) {
|
|
730
|
-
element.attr(statesStyle);
|
|
731
|
-
if (elName === 'marker' && !(element.get('isStroke') && element.get('isFill'))) {
|
|
732
|
-
// 如果 marker 是单填充或者单描边的话,就不要额外添加 stroke 或这 fill 属性,否则会影响 unchecked 后的显示
|
|
733
|
-
if (element.get('isStroke')) {
|
|
734
|
-
element.attr('fill', null);
|
|
735
|
-
}
|
|
736
|
-
if (element.get('isFill')) {
|
|
737
|
-
element.attr('stroke', null);
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
});
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
|
-
// 获取 itemWidth 的最终设置
|
|
745
|
-
Category.prototype.getLimitItemWidth = function () {
|
|
746
|
-
var itemWidth = this.get('itemWidth');
|
|
747
|
-
var maxItemWidth = this.get('maxItemWidth');
|
|
748
|
-
if (maxItemWidth) {
|
|
749
|
-
// 设置了最大宽度
|
|
750
|
-
if (itemWidth) {
|
|
751
|
-
maxItemWidth = itemWidth <= maxItemWidth ? itemWidth : maxItemWidth;
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
else if (itemWidth) {
|
|
755
|
-
maxItemWidth = itemWidth;
|
|
756
|
-
}
|
|
757
|
-
return maxItemWidth;
|
|
758
|
-
};
|
|
759
|
-
return Category;
|
|
760
|
-
}(LegendBase));
|
|
761
|
-
export default Category;
|
|
762
|
-
//# sourceMappingURL=category.js.map
|