@antv/component 0.9.7 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +22 -0
- package/esm/ui/marker/index.js +96 -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 +18 -6
- package/esm/util/text.js +40 -73
- 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 +22 -0
- package/lib/ui/marker/index.js +99 -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 +18 -6
- package/lib/util/text.js +45 -77
- 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 +125 -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 +122 -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 +50 -70
- 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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-marker.js","sourceRoot":"","sources":["../../src/annotation/data-marker.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,MAAM,eAAe,CAAC;AAElC;IAAmC,wCAAuC;IAA1E;;IA4MA,CAAC;IA3MC;;;O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AG,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxE,IAAM,MAAM,GAAG,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/C,OAAO;YACL,KAAK,aACH,CAAC,EAAE,CAAC,EACJ,CAAC,EAAE,CAAC,IACD,UAAU,CACd;YACD,IAAI,aACF,IAAI,EAAE;oBACJ,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;oBACX,CAAC,GAAG,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;iBAC9B,IACE,SAAS,CACb;YACD,IAAI,aACF,CAAC,EAAE,CAAC,EACJ,CAAC,EAAE,CAAC,UAAU,GAAG,CAAC,CAAC,GAAG,MAAM,EAC5B,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,EAC1C,YAAY,EAAE,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,IACpD,SAAS,CACb;SACF,CAAC;IACJ,CAAC;IACH,2BAAC;AAAD,CAAC,AA5MD,CAAmC,cAAc,GA4MhD;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { IGroup } from '@antv/g-base';
|
|
2
|
-
import GroupComponent from '../abstract/group-component';
|
|
3
|
-
import { ILocation } from '../interfaces';
|
|
4
|
-
import { DataRegionAnnotationCfg, PointsLocationCfg } from '../types';
|
|
5
|
-
declare class DataRegionAnnotation extends GroupComponent<DataRegionAnnotationCfg> implements ILocation<PointsLocationCfg> {
|
|
6
|
-
/**
|
|
7
|
-
* 默认的配置项
|
|
8
|
-
* @returns {object} 默认的配置项
|
|
9
|
-
*/
|
|
10
|
-
getDefaultCfg(): {
|
|
11
|
-
name: string;
|
|
12
|
-
type: string;
|
|
13
|
-
locationType: string;
|
|
14
|
-
points: any[];
|
|
15
|
-
lineLength: number;
|
|
16
|
-
region: {};
|
|
17
|
-
text: {};
|
|
18
|
-
defaultCfg: {
|
|
19
|
-
region: {
|
|
20
|
-
style: {
|
|
21
|
-
lineWidth: number;
|
|
22
|
-
fill: string;
|
|
23
|
-
opacity: number;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
text: {
|
|
27
|
-
content: string;
|
|
28
|
-
style: {
|
|
29
|
-
textAlign: string;
|
|
30
|
-
textBaseline: string;
|
|
31
|
-
fontSize: number;
|
|
32
|
-
fill: string;
|
|
33
|
-
fontFamily: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
container: any;
|
|
38
|
-
shapesMap: {};
|
|
39
|
-
group: any;
|
|
40
|
-
capture: boolean;
|
|
41
|
-
isRegister: boolean;
|
|
42
|
-
isUpdating: boolean;
|
|
43
|
-
isInit: boolean;
|
|
44
|
-
id: string;
|
|
45
|
-
offsetX: number;
|
|
46
|
-
offsetY: number;
|
|
47
|
-
animate: boolean;
|
|
48
|
-
updateAutoRender: boolean;
|
|
49
|
-
animateOption: {
|
|
50
|
-
appear: any;
|
|
51
|
-
update: {
|
|
52
|
-
duration: number;
|
|
53
|
-
easing: string;
|
|
54
|
-
};
|
|
55
|
-
enter: {
|
|
56
|
-
duration: number;
|
|
57
|
-
easing: string;
|
|
58
|
-
};
|
|
59
|
-
leave: {
|
|
60
|
-
duration: number;
|
|
61
|
-
easing: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
events: any;
|
|
65
|
-
visible: boolean;
|
|
66
|
-
};
|
|
67
|
-
protected renderInner(group: IGroup): void;
|
|
68
|
-
}
|
|
69
|
-
export default DataRegionAnnotation;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
|
-
import { get } from '@antv/util';
|
|
3
|
-
import GroupComponent from '../abstract/group-component';
|
|
4
|
-
import Theme from '../util/theme';
|
|
5
|
-
import { pointsToBBox } from '../util/util';
|
|
6
|
-
import { renderTag } from '../util/graphic';
|
|
7
|
-
var DataRegionAnnotation = /** @class */ (function (_super) {
|
|
8
|
-
__extends(DataRegionAnnotation, _super);
|
|
9
|
-
function DataRegionAnnotation() {
|
|
10
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* 默认的配置项
|
|
14
|
-
* @returns {object} 默认的配置项
|
|
15
|
-
*/
|
|
16
|
-
DataRegionAnnotation.prototype.getDefaultCfg = function () {
|
|
17
|
-
var cfg = _super.prototype.getDefaultCfg.call(this);
|
|
18
|
-
return __assign(__assign({}, cfg), { name: 'annotation', type: 'dataRegion', locationType: 'points', points: [], lineLength: 0, region: {}, text: {}, defaultCfg: {
|
|
19
|
-
region: {
|
|
20
|
-
style: {
|
|
21
|
-
lineWidth: 0,
|
|
22
|
-
fill: Theme.regionColor,
|
|
23
|
-
opacity: 0.4,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
text: {
|
|
27
|
-
content: '',
|
|
28
|
-
style: {
|
|
29
|
-
textAlign: 'center',
|
|
30
|
-
textBaseline: 'bottom',
|
|
31
|
-
fontSize: 12,
|
|
32
|
-
fill: Theme.textColor,
|
|
33
|
-
fontFamily: Theme.fontFamily,
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
} });
|
|
37
|
-
};
|
|
38
|
-
DataRegionAnnotation.prototype.renderInner = function (group) {
|
|
39
|
-
var regionStyle = get(this.get('region'), 'style', {});
|
|
40
|
-
var textStyle = get(this.get('text'), 'style', {});
|
|
41
|
-
var lineLength = this.get('lineLength') || 0;
|
|
42
|
-
var points = this.get('points');
|
|
43
|
-
if (!points.length) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
var bbox = pointsToBBox(points);
|
|
47
|
-
// render region
|
|
48
|
-
var path = [];
|
|
49
|
-
path.push(['M', points[0].x, bbox.minY - lineLength]);
|
|
50
|
-
points.forEach(function (point) {
|
|
51
|
-
path.push(['L', point.x, point.y]);
|
|
52
|
-
});
|
|
53
|
-
path.push(['L', points[points.length - 1].x, points[points.length - 1].y - lineLength]);
|
|
54
|
-
this.addShape(group, {
|
|
55
|
-
type: 'path',
|
|
56
|
-
id: this.getElementId('region'),
|
|
57
|
-
name: 'annotation-region',
|
|
58
|
-
attrs: __assign({ path: path }, regionStyle),
|
|
59
|
-
});
|
|
60
|
-
// render text
|
|
61
|
-
var textCfg = __assign({ id: this.getElementId('text'), name: 'annotation-text', x: (bbox.minX + bbox.maxX) / 2, y: bbox.minY - lineLength }, this.get('text'));
|
|
62
|
-
renderTag(group, textCfg);
|
|
63
|
-
};
|
|
64
|
-
return DataRegionAnnotation;
|
|
65
|
-
}(GroupComponent));
|
|
66
|
-
export default DataRegionAnnotation;
|
|
67
|
-
//# sourceMappingURL=data-region.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-region.js","sourceRoot":"","sources":["../../src/annotation/data-region.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAGzD,OAAO,KAAK,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C;IAAmC,wCAAuC;IAA1E;;IA6EA,CAAC;IA5EC;;;OAGG;IACI,4CAAa,GAApB;QACE,IAAM,GAAG,GAAG,iBAAM,aAAa,WAAE,CAAC;QAClC,6BACK,GAAG,KACN,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,YAAY,EAClB,YAAY,EAAE,QAAQ,EACtB,MAAM,EAAE,EAAE,EACV,UAAU,EAAE,CAAC,EACb,MAAM,EAAE,EAAE,EACV,IAAI,EAAE,EAAE,EACR,UAAU,E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CAAC;QACrC,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;QACxF,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE;YACnB,IAAI,EAAE,MAAM;YACZ,EAAE,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;YAC/B,IAAI,EAAE,mBAAmB;YACzB,KAAK,aACH,IAAI,MAAA,IACD,WAAW,CACf;SACF,CAAC,CAAC;QAEH,cAAc;QACd,IAAM,OAAO,cACX,EAAE,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAC7B,IAAI,EAAE,iBAAiB,EACvB,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAC9B,CAAC,EAAE,IAAI,CAAC,IAAI,GAAG,UAAU,IACtB,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CACpB,CAAC;QAEF,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5B,CAAC;IACH,2BAAC;AAAD,CAAC,AA7ED,CAAmC,cAAc,GA6EhD;AAED,eAAe,oBAAoB,CAAC"}
|
package/esm/annotation/html.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import HtmlComponent from '../abstract/html-component';
|
|
2
|
-
import { ILocation } from '../interfaces';
|
|
3
|
-
import { HtmlAnnotationCfg, PointLocationCfg } from '../types';
|
|
4
|
-
export default class HtmlAnnotation extends HtmlComponent<HtmlAnnotationCfg> implements ILocation<PointLocationCfg> {
|
|
5
|
-
getDefaultCfg(): {
|
|
6
|
-
name: string;
|
|
7
|
-
type: string;
|
|
8
|
-
locationType: string;
|
|
9
|
-
x: number;
|
|
10
|
-
y: number;
|
|
11
|
-
containerTpl: string;
|
|
12
|
-
alignX: string;
|
|
13
|
-
alignY: string;
|
|
14
|
-
html: string;
|
|
15
|
-
zIndex: number;
|
|
16
|
-
container: any;
|
|
17
|
-
updateAutoRender: boolean;
|
|
18
|
-
containerClassName: string;
|
|
19
|
-
parent: any;
|
|
20
|
-
id: string;
|
|
21
|
-
offsetX: number;
|
|
22
|
-
offsetY: number;
|
|
23
|
-
animate: boolean;
|
|
24
|
-
capture: boolean;
|
|
25
|
-
animateOption: {
|
|
26
|
-
appear: any;
|
|
27
|
-
update: {
|
|
28
|
-
duration: number;
|
|
29
|
-
easing: string;
|
|
30
|
-
};
|
|
31
|
-
enter: {
|
|
32
|
-
duration: number;
|
|
33
|
-
easing: string;
|
|
34
|
-
};
|
|
35
|
-
leave: {
|
|
36
|
-
duration: number;
|
|
37
|
-
easing: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
events: any;
|
|
41
|
-
defaultCfg: {};
|
|
42
|
-
visible: boolean;
|
|
43
|
-
};
|
|
44
|
-
render(): void;
|
|
45
|
-
protected resetPosition(): void;
|
|
46
|
-
}
|
package/esm/annotation/html.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
|
-
import { createDom, getOuterHeight, getOuterWidth, modifyCSS } from '@antv/dom-util';
|
|
3
|
-
import { isElement, isFunction, isNumber, isString } from '@antv/util';
|
|
4
|
-
import HtmlComponent from '../abstract/html-component';
|
|
5
|
-
import { clearDom } from '../util/util';
|
|
6
|
-
var HtmlAnnotation = /** @class */ (function (_super) {
|
|
7
|
-
__extends(HtmlAnnotation, _super);
|
|
8
|
-
function HtmlAnnotation() {
|
|
9
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
10
|
-
}
|
|
11
|
-
HtmlAnnotation.prototype.getDefaultCfg = function () {
|
|
12
|
-
var cfg = _super.prototype.getDefaultCfg.call(this);
|
|
13
|
-
return __assign(__assign({}, cfg), { name: 'annotation', type: 'html', locationType: 'point', x: 0, y: 0, containerTpl: "<div class=\"g2-html-annotation\" style=\"position:absolute\"></div>", alignX: 'left', alignY: 'top', html: '', zIndex: 7 });
|
|
14
|
-
};
|
|
15
|
-
HtmlAnnotation.prototype.render = function () {
|
|
16
|
-
var container = this.getContainer();
|
|
17
|
-
var html = this.get('html');
|
|
18
|
-
clearDom(container);
|
|
19
|
-
var rst = isFunction(html) ? html(container) : html;
|
|
20
|
-
if (isElement(rst)) {
|
|
21
|
-
container.appendChild(rst);
|
|
22
|
-
}
|
|
23
|
-
else if (isString(rst) || isNumber(rst)) {
|
|
24
|
-
var dom = createDom("" + rst);
|
|
25
|
-
if (dom) {
|
|
26
|
-
container.appendChild(dom);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
this.resetPosition();
|
|
30
|
-
};
|
|
31
|
-
HtmlAnnotation.prototype.resetPosition = function () {
|
|
32
|
-
var container = this.getContainer();
|
|
33
|
-
var _a = this.getLocation(), x = _a.x, y = _a.y;
|
|
34
|
-
var alignX = this.get('alignX');
|
|
35
|
-
var alignY = this.get('alignY');
|
|
36
|
-
var offsetX = this.get('offsetX');
|
|
37
|
-
var offsetY = this.get('offsetY');
|
|
38
|
-
var domWidth = getOuterWidth(container);
|
|
39
|
-
var domHeight = getOuterHeight(container);
|
|
40
|
-
var position = {
|
|
41
|
-
x: x,
|
|
42
|
-
y: y,
|
|
43
|
-
};
|
|
44
|
-
if (alignX === 'middle') {
|
|
45
|
-
position.x -= Math.round(domWidth / 2);
|
|
46
|
-
}
|
|
47
|
-
else if (alignX === 'right') {
|
|
48
|
-
position.x -= Math.round(domWidth);
|
|
49
|
-
}
|
|
50
|
-
if (alignY === 'middle') {
|
|
51
|
-
position.y -= Math.round(domHeight / 2);
|
|
52
|
-
}
|
|
53
|
-
else if (alignY === 'bottom') {
|
|
54
|
-
position.y -= Math.round(domHeight);
|
|
55
|
-
}
|
|
56
|
-
if (offsetX) {
|
|
57
|
-
position.x += offsetX;
|
|
58
|
-
}
|
|
59
|
-
if (offsetY) {
|
|
60
|
-
position.y += offsetY;
|
|
61
|
-
}
|
|
62
|
-
modifyCSS(container, {
|
|
63
|
-
position: 'absolute',
|
|
64
|
-
left: position.x + "px",
|
|
65
|
-
top: position.y + "px",
|
|
66
|
-
zIndex: this.get('zIndex'),
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
return HtmlAnnotation;
|
|
70
|
-
}(HtmlComponent));
|
|
71
|
-
export default HtmlAnnotation;
|
|
72
|
-
//# sourceMappingURL=html.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../src/annotation/html.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,aAAa,MAAM,4BAA4B,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC;IAA4C,kCAAgC;IAA5E;;IA6EA,CAAC;IA5EQ,sCAAa,GAApB;QACE,IAAM,GAAG,GAAG,iBAAM,aAAa,WAAE,CAAC;QAClC,6BACK,GAAG,KACN,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,OAAO,EACrB,CAAC,EAAE,CAAC,EACJ,CAAC,EAAE,CAAC,EACJ,YAAY,EAAE,sEAAkE,EAChF,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,KAAK,EACb,IAAI,EAAE,EAAE,EACR,MAAM,EAAE,CAAC,IACT;IACJ,CAAC;IAEM,+BAAM,GAAb;QACE,IAAM,SAAS,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QACtC,IAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,M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,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;SACxC;aAAM,IAAI,MAAM,KAAK,OAAO,EAAE;YAC7B,QAAQ,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;SACpC;QACD,IAAI,MAAM,KAAK,QAAQ,EAAE;YACvB,QAAQ,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;SACzC;aAAM,IAAI,MAAM,KAAK,QAAQ,EAAE;YAC9B,QAAQ,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;SACrC;QACD,IAAI,OAAO,EAAE;YACX,QAAQ,CAAC,CAAC,IAAI,OAAO,CAAC;SACvB;QACD,IAAI,OAAO,EAAE;YACX,QAAQ,CAAC,CAAC,IAAI,OAAO,CAAC;SACvB;QAED,SAAS,CAAC,SAAS,EAAE;YACnB,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAK,QAAQ,CAAC,CAAC,OAAI;YACvB,GAAG,EAAK,QAAQ,CAAC,CAAC,OAAI;YACtB,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC;SAC3B,CAAC,CAAC;IACL,CAAC;IACH,qBAAC;AAAD,CAAC,AA7ED,CAA4C,aAAa,GA6ExD"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { IGroup } from '@antv/g-base';
|
|
2
|
-
import GroupComponent from '../abstract/group-component';
|
|
3
|
-
import { ILocation } from '../interfaces';
|
|
4
|
-
import { ImageAnnotationCfg, RegionLocationCfg } from '../types';
|
|
5
|
-
declare class ImageAnnotation extends GroupComponent<ImageAnnotationCfg> implements ILocation<RegionLocationCfg> {
|
|
6
|
-
/**
|
|
7
|
-
* @protected
|
|
8
|
-
* 默认的配置项
|
|
9
|
-
* @returns {object} 默认的配置项
|
|
10
|
-
*/
|
|
11
|
-
getDefaultCfg(): {
|
|
12
|
-
name: string;
|
|
13
|
-
type: string;
|
|
14
|
-
locationType: string;
|
|
15
|
-
start: any;
|
|
16
|
-
end: any;
|
|
17
|
-
src: any;
|
|
18
|
-
style: {};
|
|
19
|
-
container: any;
|
|
20
|
-
shapesMap: {};
|
|
21
|
-
group: any;
|
|
22
|
-
capture: boolean;
|
|
23
|
-
isRegister: boolean;
|
|
24
|
-
isUpdating: boolean;
|
|
25
|
-
isInit: boolean;
|
|
26
|
-
id: string;
|
|
27
|
-
offsetX: number;
|
|
28
|
-
offsetY: number;
|
|
29
|
-
animate: boolean;
|
|
30
|
-
updateAutoRender: boolean;
|
|
31
|
-
animateOption: {
|
|
32
|
-
appear: any;
|
|
33
|
-
update: {
|
|
34
|
-
duration: number;
|
|
35
|
-
easing: string;
|
|
36
|
-
};
|
|
37
|
-
enter: {
|
|
38
|
-
duration: number;
|
|
39
|
-
easing: string;
|
|
40
|
-
};
|
|
41
|
-
leave: {
|
|
42
|
-
duration: number;
|
|
43
|
-
easing: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
events: any;
|
|
47
|
-
defaultCfg: {};
|
|
48
|
-
visible: boolean;
|
|
49
|
-
};
|
|
50
|
-
renderInner(group: IGroup): void;
|
|
51
|
-
private getImageAttrs;
|
|
52
|
-
private renderImage;
|
|
53
|
-
}
|
|
54
|
-
export default ImageAnnotation;
|
package/esm/annotation/image.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
|
-
import GroupComponent from '../abstract/group-component';
|
|
3
|
-
import { regionToBBox } from '../util/util';
|
|
4
|
-
var ImageAnnotation = /** @class */ (function (_super) {
|
|
5
|
-
__extends(ImageAnnotation, _super);
|
|
6
|
-
function ImageAnnotation() {
|
|
7
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @protected
|
|
11
|
-
* 默认的配置项
|
|
12
|
-
* @returns {object} 默认的配置项
|
|
13
|
-
*/
|
|
14
|
-
ImageAnnotation.prototype.getDefaultCfg = function () {
|
|
15
|
-
var cfg = _super.prototype.getDefaultCfg.call(this);
|
|
16
|
-
return __assign(__assign({}, cfg), { name: 'annotation', type: 'image', locationType: 'region', start: null, end: null, src: null, style: {} });
|
|
17
|
-
};
|
|
18
|
-
ImageAnnotation.prototype.renderInner = function (group) {
|
|
19
|
-
this.renderImage(group);
|
|
20
|
-
};
|
|
21
|
-
ImageAnnotation.prototype.getImageAttrs = function () {
|
|
22
|
-
var start = this.get('start');
|
|
23
|
-
var end = this.get('end');
|
|
24
|
-
var style = this.get('style');
|
|
25
|
-
var bbox = regionToBBox({ start: start, end: end });
|
|
26
|
-
var src = this.get('src');
|
|
27
|
-
return __assign({ x: bbox.x, y: bbox.y, img: src, width: bbox.width, height: bbox.height }, style);
|
|
28
|
-
};
|
|
29
|
-
// 绘制图片
|
|
30
|
-
ImageAnnotation.prototype.renderImage = function (group) {
|
|
31
|
-
this.addShape(group, {
|
|
32
|
-
type: 'image',
|
|
33
|
-
id: this.getElementId('image'),
|
|
34
|
-
name: 'annotation-image',
|
|
35
|
-
attrs: this.getImageAttrs(),
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
return ImageAnnotation;
|
|
39
|
-
}(GroupComponent));
|
|
40
|
-
export default ImageAnnotation;
|
|
41
|
-
//# sourceMappingURL=image.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../src/annotation/image.ts"],"names":[],"mappings":";AACA,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAGzD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C;IAA8B,mCAAkC;IAAhE;;IAiDA,CAAC;IAhDC;;;;OAIG;IACI,uCAAa,GAApB;QACE,IAAM,GAAG,GAAG,iBAAM,aAAa,WAAE,CAAC;QAClC,6BACK,GAAG,KACN,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,OAAO,E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3
|
-
export { default as Arc } from './arc';
|
|
4
|
-
export { default as Region } from './region';
|
|
5
|
-
export { default as Image } from './image';
|
|
6
|
-
export { default as DataMarker } from './data-marker';
|
|
7
|
-
export { default as DataRegion } from './data-region';
|
|
8
|
-
export { default as RegionFilter } from './region-filter';
|
|
9
|
-
export { default as Shape } from './shape';
|
|
10
|
-
export { default as Html } from './html';
|
package/esm/annotation/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { default as Line } from './line';
|
|
2
|
-
export { default as Text } from './text';
|
|
3
|
-
export { default as Arc } from './arc';
|
|
4
|
-
export { default as Region } from './region';
|
|
5
|
-
export { default as Image } from './image';
|
|
6
|
-
export { default as DataMarker } from './data-marker';
|
|
7
|
-
export { default as DataRegion } from './data-region';
|
|
8
|
-
export { default as RegionFilter } from './region-filter';
|
|
9
|
-
export { default as Shape } from './shape';
|
|
10
|
-
export { default as Html } from './html';
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/annotation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|
package/esm/annotation/line.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { IGroup } from '@antv/g-base';
|
|
2
|
-
import GroupComponent from '../abstract/group-component';
|
|
3
|
-
import { ILocation } from '../interfaces';
|
|
4
|
-
import { LineAnnotationCfg, RegionLocationCfg } from '../types';
|
|
5
|
-
declare class LineAnnotation extends GroupComponent<LineAnnotationCfg> implements ILocation<RegionLocationCfg> {
|
|
6
|
-
/**
|
|
7
|
-
* @protected
|
|
8
|
-
* 默认的配置项
|
|
9
|
-
* @returns {object} 默认的配置项
|
|
10
|
-
*/
|
|
11
|
-
getDefaultCfg(): {
|
|
12
|
-
name: string;
|
|
13
|
-
type: string;
|
|
14
|
-
locationType: string;
|
|
15
|
-
start: any;
|
|
16
|
-
end: any;
|
|
17
|
-
style: {};
|
|
18
|
-
text: any;
|
|
19
|
-
defaultCfg: {
|
|
20
|
-
style: {
|
|
21
|
-
fill: string;
|
|
22
|
-
fontSize: number;
|
|
23
|
-
textAlign: string;
|
|
24
|
-
textBaseline: string;
|
|
25
|
-
fontFamily: string;
|
|
26
|
-
};
|
|
27
|
-
text: {
|
|
28
|
-
position: string;
|
|
29
|
-
autoRotate: boolean;
|
|
30
|
-
content: any;
|
|
31
|
-
offsetX: number;
|
|
32
|
-
offsetY: number;
|
|
33
|
-
style: {
|
|
34
|
-
stroke: string;
|
|
35
|
-
lineWidth: number;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
container: any;
|
|
40
|
-
shapesMap: {};
|
|
41
|
-
group: any;
|
|
42
|
-
capture: boolean;
|
|
43
|
-
isRegister: boolean;
|
|
44
|
-
isUpdating: boolean;
|
|
45
|
-
isInit: boolean;
|
|
46
|
-
id: string;
|
|
47
|
-
offsetX: number;
|
|
48
|
-
offsetY: number;
|
|
49
|
-
animate: boolean;
|
|
50
|
-
updateAutoRender: boolean;
|
|
51
|
-
animateOption: {
|
|
52
|
-
appear: any;
|
|
53
|
-
update: {
|
|
54
|
-
duration: number;
|
|
55
|
-
easing: string;
|
|
56
|
-
};
|
|
57
|
-
enter: {
|
|
58
|
-
duration: number;
|
|
59
|
-
easing: string;
|
|
60
|
-
};
|
|
61
|
-
leave: {
|
|
62
|
-
duration: number;
|
|
63
|
-
easing: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
events: any;
|
|
67
|
-
visible: boolean;
|
|
68
|
-
};
|
|
69
|
-
protected renderInner(group: IGroup): void;
|
|
70
|
-
private renderLine;
|
|
71
|
-
private getLabelPoint;
|
|
72
|
-
private renderLabel;
|
|
73
|
-
}
|
|
74
|
-
export default LineAnnotation;
|
package/esm/annotation/line.js
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
|
-
import { isNumber, isString } from '@antv/util';
|
|
3
|
-
import GroupComponent from '../abstract/group-component';
|
|
4
|
-
import { renderTag } from '../util/graphic';
|
|
5
|
-
import Theme from '../util/theme';
|
|
6
|
-
import { getValueByPercent } from '../util/util';
|
|
7
|
-
var LineAnnotation = /** @class */ (function (_super) {
|
|
8
|
-
__extends(LineAnnotation, _super);
|
|
9
|
-
function LineAnnotation() {
|
|
10
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @protected
|
|
14
|
-
* 默认的配置项
|
|
15
|
-
* @returns {object} 默认的配置项
|
|
16
|
-
*/
|
|
17
|
-
LineAnnotation.prototype.getDefaultCfg = function () {
|
|
18
|
-
var cfg = _super.prototype.getDefaultCfg.call(this);
|
|
19
|
-
return __assign(__assign({}, cfg), { name: 'annotation', type: 'line', locationType: 'region', start: null, end: null, style: {}, text: null, defaultCfg: {
|
|
20
|
-
style: {
|
|
21
|
-
fill: Theme.textColor,
|
|
22
|
-
fontSize: 12,
|
|
23
|
-
textAlign: 'center',
|
|
24
|
-
textBaseline: 'bottom',
|
|
25
|
-
fontFamily: Theme.fontFamily,
|
|
26
|
-
},
|
|
27
|
-
text: {
|
|
28
|
-
position: 'center',
|
|
29
|
-
autoRotate: true,
|
|
30
|
-
content: null,
|
|
31
|
-
offsetX: 0,
|
|
32
|
-
offsetY: 0,
|
|
33
|
-
style: {
|
|
34
|
-
stroke: Theme.lineColor,
|
|
35
|
-
lineWidth: 1,
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
} });
|
|
39
|
-
};
|
|
40
|
-
LineAnnotation.prototype.renderInner = function (group) {
|
|
41
|
-
this.renderLine(group);
|
|
42
|
-
if (this.get('text')) {
|
|
43
|
-
this.renderLabel(group);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
// 绘制线
|
|
47
|
-
LineAnnotation.prototype.renderLine = function (group) {
|
|
48
|
-
var start = this.get('start');
|
|
49
|
-
var end = this.get('end');
|
|
50
|
-
var style = this.get('style');
|
|
51
|
-
this.addShape(group, {
|
|
52
|
-
type: 'line',
|
|
53
|
-
id: this.getElementId('line'),
|
|
54
|
-
name: 'annotation-line',
|
|
55
|
-
attrs: __assign({ x1: start.x, y1: start.y, x2: end.x, y2: end.y }, style),
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
// 获取 label 的位置
|
|
59
|
-
LineAnnotation.prototype.getLabelPoint = function (start, end, position) {
|
|
60
|
-
var percent;
|
|
61
|
-
if (position === 'start') {
|
|
62
|
-
percent = 0;
|
|
63
|
-
}
|
|
64
|
-
else if (position === 'center') {
|
|
65
|
-
percent = 0.5;
|
|
66
|
-
}
|
|
67
|
-
else if (isString(position) && position.indexOf('%') !== -1) {
|
|
68
|
-
percent = parseInt(position, 10) / 100;
|
|
69
|
-
}
|
|
70
|
-
else if (isNumber(position)) {
|
|
71
|
-
percent = position;
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
percent = 1;
|
|
75
|
-
}
|
|
76
|
-
if (percent > 1 || percent < 0) {
|
|
77
|
-
percent = 1;
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
x: getValueByPercent(start.x, end.x, percent),
|
|
81
|
-
y: getValueByPercent(start.y, end.y, percent),
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
// 绘制 label
|
|
85
|
-
LineAnnotation.prototype.renderLabel = function (group) {
|
|
86
|
-
var text = this.get('text');
|
|
87
|
-
var start = this.get('start');
|
|
88
|
-
var end = this.get('end');
|
|
89
|
-
var position = text.position, content = text.content, style = text.style, offsetX = text.offsetX, offsetY = text.offsetY, autoRotate = text.autoRotate, maxLength = text.maxLength, autoEllipsis = text.autoEllipsis, ellipsisPosition = text.ellipsisPosition, background = text.background, _a = text.isVertical, isVertical = _a === void 0 ? false : _a;
|
|
90
|
-
var point = this.getLabelPoint(start, end, position);
|
|
91
|
-
var x = point.x + offsetX;
|
|
92
|
-
var y = point.y + offsetY;
|
|
93
|
-
var cfg = {
|
|
94
|
-
id: this.getElementId('line-text'),
|
|
95
|
-
name: 'annotation-line-text',
|
|
96
|
-
x: x,
|
|
97
|
-
y: y,
|
|
98
|
-
content: content,
|
|
99
|
-
style: style,
|
|
100
|
-
maxLength: maxLength,
|
|
101
|
-
autoEllipsis: autoEllipsis,
|
|
102
|
-
ellipsisPosition: ellipsisPosition,
|
|
103
|
-
background: background,
|
|
104
|
-
isVertical: isVertical,
|
|
105
|
-
};
|
|
106
|
-
// 如果自动旋转
|
|
107
|
-
if (autoRotate) {
|
|
108
|
-
var vector = [end.x - start.x, end.y - start.y];
|
|
109
|
-
cfg.rotate = Math.atan2(vector[1], vector[0]);
|
|
110
|
-
}
|
|
111
|
-
renderTag(group, cfg);
|
|
112
|
-
};
|
|
113
|
-
return LineAnnotation;
|
|
114
|
-
}(GroupComponent));
|
|
115
|
-
export default LineAnnotation;
|
|
116
|
-
//# sourceMappingURL=line.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file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YACD,OAAO,SAAA;YACP,KAAK,OAAA;YACL,SAAS,WAAA;YACT,YAAY,cAAA;YACZ,gBAAgB,kBAAA;YAChB,UAAU,YAAA;YACV,UAAU,YAAA;SACX,CAAC;QAEF,SAAS;QACT,IAAI,UAAU,EAAE;YACd,IAAM,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YAClD,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;SAC/C;QAED,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACxB,CAAC;IACH,qBAAC;AAAD,CAAC,AA5HD,CAA6B,cAAc,GA4H1C;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { IGroup } from '@antv/g-base';
|
|
2
|
-
import GroupComponent from '../abstract/group-component';
|
|
3
|
-
import { ILocation } from '../interfaces';
|
|
4
|
-
import { RegionFilterAnnotationCfg, RegionLocationCfg } from '../types';
|
|
5
|
-
declare class RegionFilterAnnotation extends GroupComponent<RegionFilterAnnotationCfg> implements ILocation<RegionLocationCfg> {
|
|
6
|
-
/**
|
|
7
|
-
* 默认的配置项
|
|
8
|
-
* @returns {object} 默认的配置项
|
|
9
|
-
*/
|
|
10
|
-
getDefaultCfg(): {
|
|
11
|
-
name: string;
|
|
12
|
-
type: string;
|
|
13
|
-
locationType: string;
|
|
14
|
-
start: any;
|
|
15
|
-
end: any;
|
|
16
|
-
color: any;
|
|
17
|
-
shape: any[];
|
|
18
|
-
container: any;
|
|
19
|
-
shapesMap: {};
|
|
20
|
-
group: any;
|
|
21
|
-
capture: boolean;
|
|
22
|
-
isRegister: boolean;
|
|
23
|
-
isUpdating: boolean;
|
|
24
|
-
isInit: boolean;
|
|
25
|
-
id: string;
|
|
26
|
-
offsetX: number;
|
|
27
|
-
offsetY: number;
|
|
28
|
-
animate: boolean;
|
|
29
|
-
updateAutoRender: boolean;
|
|
30
|
-
animateOption: {
|
|
31
|
-
appear: any;
|
|
32
|
-
update: {
|
|
33
|
-
duration: number;
|
|
34
|
-
easing: string;
|
|
35
|
-
};
|
|
36
|
-
enter: {
|
|
37
|
-
duration: number;
|
|
38
|
-
easing: string;
|
|
39
|
-
};
|
|
40
|
-
leave: {
|
|
41
|
-
duration: number;
|
|
42
|
-
easing: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
events: any;
|
|
46
|
-
defaultCfg: {};
|
|
47
|
-
visible: boolean;
|
|
48
|
-
};
|
|
49
|
-
protected renderInner(group: IGroup): void;
|
|
50
|
-
private adjustShapeAttrs;
|
|
51
|
-
}
|
|
52
|
-
export default RegionFilterAnnotation;
|