@visactor/vrender-core 0.16.0-alpha.0
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/README.md +9 -0
- package/cjs/allocator/allocator-modules.d.ts +1 -0
- package/cjs/allocator/allocator-modules.js +1 -0
- package/cjs/allocator/allocator-modules.js.map +1 -0
- package/cjs/allocator/canvas-allocate.d.ts +14 -0
- package/cjs/allocator/canvas-allocate.js +46 -0
- package/cjs/allocator/canvas-allocate.js.map +1 -0
- package/cjs/allocator/constants.d.ts +9 -0
- package/cjs/allocator/constants.js +11 -0
- package/cjs/allocator/constants.js.map +1 -0
- package/cjs/allocator/graphic-allocate.d.ts +1 -0
- package/cjs/allocator/graphic-allocate.js +1 -0
- package/cjs/allocator/graphic-allocate.js.map +1 -0
- package/cjs/allocator/matrix-allocate.d.ts +25 -0
- package/cjs/allocator/matrix-allocate.js +77 -0
- package/cjs/allocator/matrix-allocate.js.map +1 -0
- package/cjs/allocator/point-allocate.d.ts +1 -0
- package/cjs/allocator/point-allocate.js +1 -0
- package/cjs/allocator/point-allocate.js.map +1 -0
- package/cjs/animate/Ticker/default-ticker.d.ts +87 -0
- package/cjs/animate/Ticker/default-ticker.js +244 -0
- package/cjs/animate/Ticker/default-ticker.js.map +1 -0
- package/cjs/animate/Ticker/index.d.ts +1 -0
- package/cjs/animate/Ticker/index.js +21 -0
- package/cjs/animate/Ticker/index.js.map +1 -0
- package/cjs/animate/animate.d.ts +146 -0
- package/cjs/animate/animate.js +395 -0
- package/cjs/animate/animate.js.map +1 -0
- package/cjs/animate/config.d.ts +3 -0
- package/cjs/animate/config.js +13 -0
- package/cjs/animate/config.js.map +1 -0
- package/cjs/animate/custom-animate.d.ts +229 -0
- package/cjs/animate/custom-animate.js +643 -0
- package/cjs/animate/custom-animate.js.map +1 -0
- package/cjs/animate/default-ticker.d.ts +2 -0
- package/cjs/animate/default-ticker.js +13 -0
- package/cjs/animate/default-ticker.js.map +1 -0
- package/cjs/animate/easing.d.ts +45 -0
- package/cjs/animate/easing.js +118 -0
- package/cjs/animate/easing.js.map +1 -0
- package/cjs/animate/index.d.ts +6 -0
- package/cjs/animate/index.js +23 -0
- package/cjs/animate/index.js.map +1 -0
- package/cjs/animate/morphing.d.ts +52 -0
- package/cjs/animate/morphing.js +289 -0
- package/cjs/animate/morphing.js.map +1 -0
- package/cjs/animate/timeline.d.ts +17 -0
- package/cjs/animate/timeline.js +46 -0
- package/cjs/animate/timeline.js.map +1 -0
- package/cjs/application.d.ts +11 -0
- package/cjs/application.js +9 -0
- package/cjs/application.js.map +1 -0
- package/cjs/canvas/conical-gradient.d.ts +12 -0
- package/cjs/canvas/conical-gradient.js +124 -0
- package/cjs/canvas/conical-gradient.js.map +1 -0
- package/cjs/canvas/constants.d.ts +2 -0
- package/cjs/canvas/constants.js +7 -0
- package/cjs/canvas/constants.js.map +1 -0
- package/cjs/canvas/contributions/base-canvas.d.ts +52 -0
- package/cjs/canvas/contributions/base-canvas.js +107 -0
- package/cjs/canvas/contributions/base-canvas.js.map +1 -0
- package/cjs/canvas/empty-context.d.ts +97 -0
- package/cjs/canvas/empty-context.js +209 -0
- package/cjs/canvas/empty-context.js.map +1 -0
- package/cjs/canvas/index.d.ts +4 -0
- package/cjs/canvas/index.js +22 -0
- package/cjs/canvas/index.js.map +1 -0
- package/cjs/canvas/util.d.ts +24 -0
- package/cjs/canvas/util.js +399 -0
- package/cjs/canvas/util.js.map +1 -0
- package/cjs/color-string/colorName.d.ts +2 -0
- package/cjs/color-string/colorName.js +13 -0
- package/cjs/color-string/colorName.js.map +1 -0
- package/cjs/color-string/index.d.ts +3 -0
- package/cjs/color-string/index.js +22 -0
- package/cjs/color-string/index.js.map +1 -0
- package/cjs/color-string/interpolate.d.ts +7 -0
- package/cjs/color-string/interpolate.js +103 -0
- package/cjs/color-string/interpolate.js.map +1 -0
- package/cjs/color-string/store.d.ts +11 -0
- package/cjs/color-string/store.js +54 -0
- package/cjs/color-string/store.js.map +1 -0
- package/cjs/common/Reflect-metadata.d.ts +2 -0
- package/cjs/common/Reflect-metadata.js +392 -0
- package/cjs/common/Reflect-metadata.js.map +1 -0
- package/cjs/common/bezier-utils.d.ts +5 -0
- package/cjs/common/bezier-utils.js +35 -0
- package/cjs/common/bezier-utils.js.map +1 -0
- package/cjs/common/bounds-context.d.ts +18 -0
- package/cjs/common/bounds-context.js +59 -0
- package/cjs/common/bounds-context.js.map +1 -0
- package/cjs/common/canvas-utils.d.ts +8 -0
- package/cjs/common/canvas-utils.js +73 -0
- package/cjs/common/canvas-utils.js.map +1 -0
- package/cjs/common/contribution-provider.d.ts +4 -0
- package/cjs/common/contribution-provider.js +27 -0
- package/cjs/common/contribution-provider.js.map +1 -0
- package/cjs/common/custom-path2d.d.ts +47 -0
- package/cjs/common/custom-path2d.js +333 -0
- package/cjs/common/custom-path2d.js.map +1 -0
- package/cjs/common/enums.d.ts +70 -0
- package/cjs/common/enums.js +49 -0
- package/cjs/common/enums.js.map +1 -0
- package/cjs/common/generator.d.ts +4 -0
- package/cjs/common/generator.js +14 -0
- package/cjs/common/generator.js.map +1 -0
- package/cjs/common/inversify-lite/annotation/decorator_utils.d.ts +16 -0
- package/cjs/common/inversify-lite/annotation/decorator_utils.js +97 -0
- package/cjs/common/inversify-lite/annotation/decorator_utils.js.map +1 -0
- package/cjs/common/inversify-lite/annotation/inject.d.ts +2 -0
- package/cjs/common/inversify-lite/annotation/inject.js +36 -0
- package/cjs/common/inversify-lite/annotation/inject.js.map +1 -0
- package/cjs/common/inversify-lite/annotation/inject_base.d.ts +3 -0
- package/cjs/common/inversify-lite/annotation/inject_base.js +20 -0
- package/cjs/common/inversify-lite/annotation/inject_base.js.map +1 -0
- package/cjs/common/inversify-lite/annotation/injectable.d.ts +2 -0
- package/cjs/common/inversify-lite/annotation/injectable.js +48 -0
- package/cjs/common/inversify-lite/annotation/injectable.js.map +1 -0
- package/cjs/common/inversify-lite/annotation/lazy_service_identifier.d.ts +7 -0
- package/cjs/common/inversify-lite/annotation/lazy_service_identifier.js +17 -0
- package/cjs/common/inversify-lite/annotation/lazy_service_identifier.js.map +1 -0
- package/cjs/common/inversify-lite/annotation/multi_inject.d.ts +2 -0
- package/cjs/common/inversify-lite/annotation/multi_inject.js +36 -0
- package/cjs/common/inversify-lite/annotation/multi_inject.js.map +1 -0
- package/cjs/common/inversify-lite/annotation/named.d.ts +2 -0
- package/cjs/common/inversify-lite/annotation/named.js +39 -0
- package/cjs/common/inversify-lite/annotation/named.js.map +1 -0
- package/cjs/common/inversify-lite/annotation/post_construct.d.ts +4 -0
- package/cjs/common/inversify-lite/annotation/post_construct.js +36 -0
- package/cjs/common/inversify-lite/annotation/post_construct.js.map +1 -0
- package/cjs/common/inversify-lite/annotation/property_event_decorator.d.ts +4 -0
- package/cjs/common/inversify-lite/annotation/property_event_decorator.js +24 -0
- package/cjs/common/inversify-lite/annotation/property_event_decorator.js.map +1 -0
- package/cjs/common/inversify-lite/bindings/binding.d.ts +20 -0
- package/cjs/common/inversify-lite/bindings/binding.js +27 -0
- package/cjs/common/inversify-lite/bindings/binding.js.map +1 -0
- package/cjs/common/inversify-lite/bindings/binding_count.d.ts +5 -0
- package/cjs/common/inversify-lite/bindings/binding_count.js +10 -0
- package/cjs/common/inversify-lite/bindings/binding_count.js.map +1 -0
- package/cjs/common/inversify-lite/constants/error_msgs.d.ts +32 -0
- package/cjs/common/inversify-lite/constants/error_msgs.js +50 -0
- package/cjs/common/inversify-lite/constants/error_msgs.js.map +1 -0
- package/cjs/common/inversify-lite/constants/literal_types.d.ts +5 -0
- package/cjs/common/inversify-lite/constants/literal_types.js +35 -0
- package/cjs/common/inversify-lite/constants/literal_types.js.map +1 -0
- package/cjs/common/inversify-lite/constants/metadata_keys.d.ts +13 -0
- package/cjs/common/inversify-lite/constants/metadata_keys.js +16 -0
- package/cjs/common/inversify-lite/constants/metadata_keys.js.map +1 -0
- package/cjs/common/inversify-lite/container/container.d.ts +46 -0
- package/cjs/common/inversify-lite/container/container.js +292 -0
- package/cjs/common/inversify-lite/container/container.js.map +1 -0
- package/cjs/common/inversify-lite/container/container_module.d.ts +11 -0
- package/cjs/common/inversify-lite/container/container_module.js +24 -0
- package/cjs/common/inversify-lite/container/container_module.js.map +1 -0
- package/cjs/common/inversify-lite/container/lookup.d.ts +16 -0
- package/cjs/common/inversify-lite/container/lookup.js +97 -0
- package/cjs/common/inversify-lite/container/lookup.js.map +1 -0
- package/cjs/common/inversify-lite/index.d.ts +8 -0
- package/cjs/common/inversify-lite/index.js +84 -0
- package/cjs/common/inversify-lite/index.js.map +1 -0
- package/cjs/common/inversify-lite/interfaces/interfaces.d.ts +239 -0
- package/cjs/common/inversify-lite/interfaces/interfaces.js +6 -0
- package/cjs/common/inversify-lite/interfaces/interfaces.js.map +1 -0
- package/cjs/common/inversify-lite/planning/context.d.ts +11 -0
- package/cjs/common/inversify-lite/planning/context.js +22 -0
- package/cjs/common/inversify-lite/planning/context.js.map +1 -0
- package/cjs/common/inversify-lite/planning/metadata.d.ts +8 -0
- package/cjs/common/inversify-lite/planning/metadata.js +44 -0
- package/cjs/common/inversify-lite/planning/metadata.js.map +1 -0
- package/cjs/common/inversify-lite/planning/metadata_reader.d.ts +6 -0
- package/cjs/common/inversify-lite/planning/metadata_reader.js +51 -0
- package/cjs/common/inversify-lite/planning/metadata_reader.js.map +1 -0
- package/cjs/common/inversify-lite/planning/plan.d.ts +7 -0
- package/cjs/common/inversify-lite/planning/plan.js +14 -0
- package/cjs/common/inversify-lite/planning/plan.js.map +1 -0
- package/cjs/common/inversify-lite/planning/planner.d.ts +5 -0
- package/cjs/common/inversify-lite/planning/planner.js +132 -0
- package/cjs/common/inversify-lite/planning/planner.js.map +1 -0
- package/cjs/common/inversify-lite/planning/queryable_string.d.ts +11 -0
- package/cjs/common/inversify-lite/planning/queryable_string.js +33 -0
- package/cjs/common/inversify-lite/planning/queryable_string.js.map +1 -0
- package/cjs/common/inversify-lite/planning/reflection_utils.d.ts +5 -0
- package/cjs/common/inversify-lite/planning/reflection_utils.js +129 -0
- package/cjs/common/inversify-lite/planning/reflection_utils.js.map +1 -0
- package/cjs/common/inversify-lite/planning/request.d.ts +14 -0
- package/cjs/common/inversify-lite/planning/request.js +22 -0
- package/cjs/common/inversify-lite/planning/request.js.map +1 -0
- package/cjs/common/inversify-lite/planning/target.d.ts +23 -0
- package/cjs/common/inversify-lite/planning/target.js +81 -0
- package/cjs/common/inversify-lite/planning/target.js.map +1 -0
- package/cjs/common/inversify-lite/resolution/instantiation.d.ts +3 -0
- package/cjs/common/inversify-lite/resolution/instantiation.js +143 -0
- package/cjs/common/inversify-lite/resolution/instantiation.js.map +1 -0
- package/cjs/common/inversify-lite/resolution/resolver.d.ts +3 -0
- package/cjs/common/inversify-lite/resolution/resolver.js +74 -0
- package/cjs/common/inversify-lite/resolution/resolver.js.map +1 -0
- package/cjs/common/inversify-lite/scope/scope.d.ts +3 -0
- package/cjs/common/inversify-lite/scope/scope.js +56 -0
- package/cjs/common/inversify-lite/scope/scope.js.map +1 -0
- package/cjs/common/inversify-lite/syntax/binding_in_syntax.d.ts +9 -0
- package/cjs/common/inversify-lite/syntax/binding_in_syntax.js +25 -0
- package/cjs/common/inversify-lite/syntax/binding_in_syntax.js.map +1 -0
- package/cjs/common/inversify-lite/syntax/binding_in_when_on_syntax.d.ts +12 -0
- package/cjs/common/inversify-lite/syntax/binding_in_when_on_syntax.js +29 -0
- package/cjs/common/inversify-lite/syntax/binding_in_when_on_syntax.js.map +1 -0
- package/cjs/common/inversify-lite/syntax/binding_on_syntax.d.ts +6 -0
- package/cjs/common/inversify-lite/syntax/binding_on_syntax.js +14 -0
- package/cjs/common/inversify-lite/syntax/binding_on_syntax.js.map +1 -0
- package/cjs/common/inversify-lite/syntax/binding_to_syntax.d.ts +18 -0
- package/cjs/common/inversify-lite/syntax/binding_to_syntax.js +88 -0
- package/cjs/common/inversify-lite/syntax/binding_to_syntax.js.map +1 -0
- package/cjs/common/inversify-lite/syntax/binding_when_on_syntax.d.ts +8 -0
- package/cjs/common/inversify-lite/syntax/binding_when_on_syntax.js +19 -0
- package/cjs/common/inversify-lite/syntax/binding_when_on_syntax.js.map +1 -0
- package/cjs/common/inversify-lite/syntax/binding_when_syntax.d.ts +7 -0
- package/cjs/common/inversify-lite/syntax/binding_when_syntax.js +20 -0
- package/cjs/common/inversify-lite/syntax/binding_when_syntax.js.map +1 -0
- package/cjs/common/inversify-lite/syntax/constraint_helpers.d.ts +3 -0
- package/cjs/common/inversify-lite/syntax/constraint_helpers.js +38 -0
- package/cjs/common/inversify-lite/syntax/constraint_helpers.js.map +1 -0
- package/cjs/common/inversify-lite/utils/async.d.ts +3 -0
- package/cjs/common/inversify-lite/utils/async.js +15 -0
- package/cjs/common/inversify-lite/utils/async.js.map +1 -0
- package/cjs/common/inversify-lite/utils/binding_utils.d.ts +4 -0
- package/cjs/common/inversify-lite/utils/binding_utils.js +94 -0
- package/cjs/common/inversify-lite/utils/binding_utils.js.map +1 -0
- package/cjs/common/inversify-lite/utils/clonable.d.ts +3 -0
- package/cjs/common/inversify-lite/utils/clonable.js +10 -0
- package/cjs/common/inversify-lite/utils/clonable.js.map +1 -0
- package/cjs/common/inversify-lite/utils/exceptions.d.ts +2 -0
- package/cjs/common/inversify-lite/utils/exceptions.js +43 -0
- package/cjs/common/inversify-lite/utils/exceptions.js.map +1 -0
- package/cjs/common/inversify-lite/utils/factory_type.d.ts +5 -0
- package/cjs/common/inversify-lite/utils/factory_type.js +11 -0
- package/cjs/common/inversify-lite/utils/factory_type.js.map +1 -0
- package/cjs/common/inversify-lite/utils/id.d.ts +2 -0
- package/cjs/common/inversify-lite/utils/id.js +14 -0
- package/cjs/common/inversify-lite/utils/id.js.map +1 -0
- package/cjs/common/inversify-lite/utils/js.d.ts +1 -0
- package/cjs/common/inversify-lite/utils/js.js +14 -0
- package/cjs/common/inversify-lite/utils/js.js.map +1 -0
- package/cjs/common/inversify-lite/utils/serialization.d.ts +10 -0
- package/cjs/common/inversify-lite/utils/serialization.js +99 -0
- package/cjs/common/inversify-lite/utils/serialization.js.map +1 -0
- package/cjs/common/matrix.d.ts +5 -0
- package/cjs/common/matrix.js +54 -0
- package/cjs/common/matrix.js.map +1 -0
- package/cjs/common/morphing-utils.d.ts +17 -0
- package/cjs/common/morphing-utils.js +295 -0
- package/cjs/common/morphing-utils.js.map +1 -0
- package/cjs/common/path-svg.d.ts +12 -0
- package/cjs/common/path-svg.js +64 -0
- package/cjs/common/path-svg.js.map +1 -0
- package/cjs/common/polygon.d.ts +4 -0
- package/cjs/common/polygon.js +46 -0
- package/cjs/common/polygon.js.map +1 -0
- package/cjs/common/render-area.d.ts +11 -0
- package/cjs/common/render-area.js +136 -0
- package/cjs/common/render-area.js.map +1 -0
- package/cjs/common/render-command-list.d.ts +2 -0
- package/cjs/common/render-command-list.js +17 -0
- package/cjs/common/render-command-list.js.map +1 -0
- package/cjs/common/render-curve.d.ts +18 -0
- package/cjs/common/render-curve.js +123 -0
- package/cjs/common/render-curve.js.map +1 -0
- package/cjs/common/seg-context.d.ts +36 -0
- package/cjs/common/seg-context.js +98 -0
- package/cjs/common/seg-context.js.map +1 -0
- package/cjs/common/segment/basis.d.ts +28 -0
- package/cjs/common/segment/basis.js +69 -0
- package/cjs/common/segment/basis.js.map +1 -0
- package/cjs/common/segment/common.d.ts +3 -0
- package/cjs/common/segment/common.js +12 -0
- package/cjs/common/segment/common.js.map +1 -0
- package/cjs/common/segment/curve/arc.d.ts +14 -0
- package/cjs/common/segment/curve/arc.js +29 -0
- package/cjs/common/segment/curve/arc.js.map +1 -0
- package/cjs/common/segment/curve/base.d.ts +13 -0
- package/cjs/common/segment/curve/base.js +15 -0
- package/cjs/common/segment/curve/base.js.map +1 -0
- package/cjs/common/segment/curve/cubic-bezier.d.ts +19 -0
- package/cjs/common/segment/curve/cubic-bezier.js +42 -0
- package/cjs/common/segment/curve/cubic-bezier.js.map +1 -0
- package/cjs/common/segment/curve/curve-context.d.ts +19 -0
- package/cjs/common/segment/curve/curve-context.js +48 -0
- package/cjs/common/segment/curve/curve-context.js.map +1 -0
- package/cjs/common/segment/curve/ellipse.d.ts +18 -0
- package/cjs/common/segment/curve/ellipse.js +30 -0
- package/cjs/common/segment/curve/ellipse.js.map +1 -0
- package/cjs/common/segment/curve/line.d.ts +18 -0
- package/cjs/common/segment/curve/line.js +41 -0
- package/cjs/common/segment/curve/line.js.map +1 -0
- package/cjs/common/segment/curve/move.d.ts +13 -0
- package/cjs/common/segment/curve/move.js +28 -0
- package/cjs/common/segment/curve/move.js.map +1 -0
- package/cjs/common/segment/curve/path.d.ts +11 -0
- package/cjs/common/segment/curve/path.js +31 -0
- package/cjs/common/segment/curve/path.js.map +1 -0
- package/cjs/common/segment/curve/quadratic-bezier.d.ts +16 -0
- package/cjs/common/segment/curve/quadratic-bezier.js +29 -0
- package/cjs/common/segment/curve/quadratic-bezier.js.map +1 -0
- package/cjs/common/segment/index.d.ts +11 -0
- package/cjs/common/segment/index.js +57 -0
- package/cjs/common/segment/index.js.map +1 -0
- package/cjs/common/segment/linear-closed.d.ts +24 -0
- package/cjs/common/segment/linear-closed.js +60 -0
- package/cjs/common/segment/linear-closed.js.map +1 -0
- package/cjs/common/segment/linear.d.ts +24 -0
- package/cjs/common/segment/linear.js +59 -0
- package/cjs/common/segment/linear.js.map +1 -0
- package/cjs/common/segment/monotone.d.ts +36 -0
- package/cjs/common/segment/monotone.js +129 -0
- package/cjs/common/segment/monotone.js.map +1 -0
- package/cjs/common/segment/step.d.ts +26 -0
- package/cjs/common/segment/step.js +65 -0
- package/cjs/common/segment/step.js.map +1 -0
- package/cjs/common/shape/arc.d.ts +5 -0
- package/cjs/common/shape/arc.js +50 -0
- package/cjs/common/shape/arc.js.map +1 -0
- package/cjs/common/shape/rect.d.ts +2 -0
- package/cjs/common/shape/rect.js +54 -0
- package/cjs/common/shape/rect.js.map +1 -0
- package/cjs/common/sort.d.ts +4 -0
- package/cjs/common/sort.js +101 -0
- package/cjs/common/sort.js.map +1 -0
- package/cjs/common/split-path.d.ts +44 -0
- package/cjs/common/split-path.js +272 -0
- package/cjs/common/split-path.js.map +1 -0
- package/cjs/common/store.d.ts +2 -0
- package/cjs/common/store.js +1 -0
- package/cjs/common/store.js.map +1 -0
- package/cjs/common/text.d.ts +6 -0
- package/cjs/common/text.js +27 -0
- package/cjs/common/text.js.map +1 -0
- package/cjs/common/utils.d.ts +40 -0
- package/cjs/common/utils.js +154 -0
- package/cjs/common/utils.js.map +1 -0
- package/cjs/common/xml/OrderedObjParser.d.ts +19 -0
- package/cjs/common/xml/OrderedObjParser.js +130 -0
- package/cjs/common/xml/OrderedObjParser.js.map +1 -0
- package/cjs/common/xml/index.d.ts +1 -0
- package/cjs/common/xml/index.js +21 -0
- package/cjs/common/xml/index.js.map +1 -0
- package/cjs/common/xml/node2json.d.ts +1 -0
- package/cjs/common/xml/node2json.js +47 -0
- package/cjs/common/xml/node2json.js.map +1 -0
- package/cjs/common/xml/parser.d.ts +10 -0
- package/cjs/common/xml/parser.js +33 -0
- package/cjs/common/xml/parser.js.map +1 -0
- package/cjs/common/xml/type.d.ts +1 -0
- package/cjs/common/xml/type.js +6 -0
- package/cjs/common/xml/type.js.map +1 -0
- package/cjs/common/xml/utils.d.ts +1 -0
- package/cjs/common/xml/utils.js +23 -0
- package/cjs/common/xml/utils.js.map +1 -0
- package/cjs/constants.d.ts +2 -0
- package/cjs/constants.js +7 -0
- package/cjs/constants.js.map +1 -0
- package/cjs/container.d.ts +2 -0
- package/cjs/container.js +10 -0
- package/cjs/container.js.map +1 -0
- package/cjs/core/application.d.ts +1 -0
- package/cjs/core/application.js +6 -0
- package/cjs/core/application.js.map +1 -0
- package/cjs/core/camera.d.ts +19 -0
- package/cjs/core/camera.js +68 -0
- package/cjs/core/camera.js.map +1 -0
- package/cjs/core/constants.d.ts +3 -0
- package/cjs/core/constants.js +8 -0
- package/cjs/core/constants.js.map +1 -0
- package/cjs/core/contributions/env/base-contribution.d.ts +58 -0
- package/cjs/core/contributions/env/base-contribution.js +84 -0
- package/cjs/core/contributions/env/base-contribution.js.map +1 -0
- package/cjs/core/contributions/env/modules.d.ts +3 -0
- package/cjs/core/contributions/env/modules.js +12 -0
- package/cjs/core/contributions/env/modules.js.map +1 -0
- package/cjs/core/contributions/index.d.ts +4 -0
- package/cjs/core/contributions/index.js +31 -0
- package/cjs/core/contributions/index.js.map +1 -0
- package/cjs/core/contributions/layerHandler/canvas2d-contribution.d.ts +22 -0
- package/cjs/core/contributions/layerHandler/canvas2d-contribution.js +93 -0
- package/cjs/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -0
- package/cjs/core/contributions/layerHandler/modules.d.ts +3 -0
- package/cjs/core/contributions/layerHandler/modules.js +13 -0
- package/cjs/core/contributions/layerHandler/modules.js.map +1 -0
- package/cjs/core/contributions/layerHandler/offscreen2d-contribution.d.ts +20 -0
- package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js +78 -0
- package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -0
- package/cjs/core/contributions/modules.d.ts +2 -0
- package/cjs/core/contributions/modules.js +20 -0
- package/cjs/core/contributions/modules.js.map +1 -0
- package/cjs/core/contributions/textMeasure/AtextMeasure.d.ts +52 -0
- package/cjs/core/contributions/textMeasure/AtextMeasure.js +183 -0
- package/cjs/core/contributions/textMeasure/AtextMeasure.js.map +1 -0
- package/cjs/core/contributions/textMeasure/layout.d.ts +13 -0
- package/cjs/core/contributions/textMeasure/layout.js +91 -0
- package/cjs/core/contributions/textMeasure/layout.js.map +1 -0
- package/cjs/core/contributions/textMeasure/modules.d.ts +3 -0
- package/cjs/core/contributions/textMeasure/modules.js +14 -0
- package/cjs/core/contributions/textMeasure/modules.js.map +1 -0
- package/cjs/core/contributions/textMeasure/textMeasure-contribution.d.ts +4 -0
- package/cjs/core/contributions/textMeasure/textMeasure-contribution.js +21 -0
- package/cjs/core/contributions/textMeasure/textMeasure-contribution.js.map +1 -0
- package/cjs/core/contributions/window/base-contribution.d.ts +49 -0
- package/cjs/core/contributions/window/base-contribution.js +44 -0
- package/cjs/core/contributions/window/base-contribution.js.map +1 -0
- package/cjs/core/core-modules.d.ts +3 -0
- package/cjs/core/core-modules.js +16 -0
- package/cjs/core/core-modules.js.map +1 -0
- package/cjs/core/global-module.d.ts +1 -0
- package/cjs/core/global-module.js +1 -0
- package/cjs/core/global-module.js.map +1 -0
- package/cjs/core/global.d.ts +70 -0
- package/cjs/core/global.js +161 -0
- package/cjs/core/global.js.map +1 -0
- package/cjs/core/graphic-utils.d.ts +40 -0
- package/cjs/core/graphic-utils.js +139 -0
- package/cjs/core/graphic-utils.js.map +1 -0
- package/cjs/core/index.d.ts +9 -0
- package/cjs/core/index.js +25 -0
- package/cjs/core/index.js.map +1 -0
- package/cjs/core/layer-service.d.ts +16 -0
- package/cjs/core/layer-service.js +58 -0
- package/cjs/core/layer-service.js.map +1 -0
- package/cjs/core/layer.d.ts +55 -0
- package/cjs/core/layer.js +132 -0
- package/cjs/core/layer.js.map +1 -0
- package/cjs/core/light.d.ts +11 -0
- package/cjs/core/light.js +26 -0
- package/cjs/core/light.js.map +1 -0
- package/cjs/core/stage.d.ts +148 -0
- package/cjs/core/stage.js +435 -0
- package/cjs/core/stage.js.map +1 -0
- package/cjs/core/window.d.ts +54 -0
- package/cjs/core/window.js +126 -0
- package/cjs/core/window.js.map +1 -0
- package/cjs/create.d.ts +3 -0
- package/cjs/create.js +14 -0
- package/cjs/create.js.map +1 -0
- package/cjs/event/constant.d.ts +1 -0
- package/cjs/event/constant.js +6 -0
- package/cjs/event/constant.js.map +1 -0
- package/cjs/event/event-manager.d.ts +60 -0
- package/cjs/event/event-manager.js +277 -0
- package/cjs/event/event-manager.js.map +1 -0
- package/cjs/event/event-system.d.ts +38 -0
- package/cjs/event/event-system.js +201 -0
- package/cjs/event/event-system.js.map +1 -0
- package/cjs/event/event-target.d.ts +3 -0
- package/cjs/event/event-target.js +22 -0
- package/cjs/event/event-target.js.map +1 -0
- package/cjs/event/federated-event/base-event.d.ts +53 -0
- package/cjs/event/federated-event/base-event.js +69 -0
- package/cjs/event/federated-event/base-event.js.map +1 -0
- package/cjs/event/federated-event/custom-event.d.ts +4 -0
- package/cjs/event/federated-event/custom-event.js +16 -0
- package/cjs/event/federated-event/custom-event.js.map +1 -0
- package/cjs/event/federated-event/index.d.ts +5 -0
- package/cjs/event/federated-event/index.js +23 -0
- package/cjs/event/federated-event/index.js.map +1 -0
- package/cjs/event/federated-event/mouse-event.d.ts +29 -0
- package/cjs/event/federated-event/mouse-event.js +53 -0
- package/cjs/event/federated-event/mouse-event.js.map +1 -0
- package/cjs/event/federated-event/pointer-event.d.ts +18 -0
- package/cjs/event/federated-event/pointer-event.js +32 -0
- package/cjs/event/federated-event/pointer-event.js.map +1 -0
- package/cjs/event/federated-event/wheel-event.d.ts +14 -0
- package/cjs/event/federated-event/wheel-event.js +27 -0
- package/cjs/event/federated-event/wheel-event.js.map +1 -0
- package/cjs/event/index.d.ts +7 -0
- package/cjs/event/index.js +24 -0
- package/cjs/event/index.js.map +1 -0
- package/cjs/event/util.d.ts +1 -0
- package/cjs/event/util.js +6 -0
- package/cjs/event/util.js.map +1 -0
- package/cjs/export.d.ts +1 -0
- package/cjs/export.js +1 -0
- package/cjs/export.js.map +1 -0
- package/cjs/graphic/arc.d.ts +69 -0
- package/cjs/graphic/arc.js +134 -0
- package/cjs/graphic/arc.js.map +1 -0
- package/cjs/graphic/arc3d.d.ts +40 -0
- package/cjs/graphic/arc3d.js +30 -0
- package/cjs/graphic/arc3d.js.map +1 -0
- package/cjs/graphic/area.d.ts +51 -0
- package/cjs/graphic/area.js +78 -0
- package/cjs/graphic/area.js.map +1 -0
- package/cjs/graphic/bounds.d.ts +6 -0
- package/cjs/graphic/bounds.js +24 -0
- package/cjs/graphic/bounds.js.map +1 -0
- package/cjs/graphic/builtin-symbol/arrow.d.ts +11 -0
- package/cjs/graphic/builtin-symbol/arrow.js +33 -0
- package/cjs/graphic/builtin-symbol/arrow.js.map +1 -0
- package/cjs/graphic/builtin-symbol/arrow2-down.d.ts +11 -0
- package/cjs/graphic/builtin-symbol/arrow2-down.js +30 -0
- package/cjs/graphic/builtin-symbol/arrow2-down.js.map +1 -0
- package/cjs/graphic/builtin-symbol/arrow2-left.d.ts +11 -0
- package/cjs/graphic/builtin-symbol/arrow2-left.js +30 -0
- package/cjs/graphic/builtin-symbol/arrow2-left.js.map +1 -0
- package/cjs/graphic/builtin-symbol/arrow2-right.d.ts +11 -0
- package/cjs/graphic/builtin-symbol/arrow2-right.js +30 -0
- package/cjs/graphic/builtin-symbol/arrow2-right.js.map +1 -0
- package/cjs/graphic/builtin-symbol/arrow2-up.d.ts +11 -0
- package/cjs/graphic/builtin-symbol/arrow2-up.js +30 -0
- package/cjs/graphic/builtin-symbol/arrow2-up.js.map +1 -0
- package/cjs/graphic/builtin-symbol/base.d.ts +4 -0
- package/cjs/graphic/builtin-symbol/base.js +20 -0
- package/cjs/graphic/builtin-symbol/base.js.map +1 -0
- package/cjs/graphic/builtin-symbol/circle.d.ts +12 -0
- package/cjs/graphic/builtin-symbol/circle.js +33 -0
- package/cjs/graphic/builtin-symbol/circle.js.map +1 -0
- package/cjs/graphic/builtin-symbol/close.d.ts +12 -0
- package/cjs/graphic/builtin-symbol/close.js +33 -0
- package/cjs/graphic/builtin-symbol/close.js.map +1 -0
- package/cjs/graphic/builtin-symbol/cross.d.ts +12 -0
- package/cjs/graphic/builtin-symbol/cross.js +42 -0
- package/cjs/graphic/builtin-symbol/cross.js.map +1 -0
- package/cjs/graphic/builtin-symbol/diamond.d.ts +12 -0
- package/cjs/graphic/builtin-symbol/diamond.js +32 -0
- package/cjs/graphic/builtin-symbol/diamond.js.map +1 -0
- package/cjs/graphic/builtin-symbol/index.d.ts +4 -0
- package/cjs/graphic/builtin-symbol/index.js +32 -0
- package/cjs/graphic/builtin-symbol/index.js.map +1 -0
- package/cjs/graphic/builtin-symbol/line-h.d.ts +12 -0
- package/cjs/graphic/builtin-symbol/line-h.js +32 -0
- package/cjs/graphic/builtin-symbol/line-h.js.map +1 -0
- package/cjs/graphic/builtin-symbol/line-v.d.ts +12 -0
- package/cjs/graphic/builtin-symbol/line-v.js +32 -0
- package/cjs/graphic/builtin-symbol/line-v.js.map +1 -0
- package/cjs/graphic/builtin-symbol/rect.d.ts +11 -0
- package/cjs/graphic/builtin-symbol/rect.js +28 -0
- package/cjs/graphic/builtin-symbol/rect.js.map +1 -0
- package/cjs/graphic/builtin-symbol/square.d.ts +11 -0
- package/cjs/graphic/builtin-symbol/square.js +29 -0
- package/cjs/graphic/builtin-symbol/square.js.map +1 -0
- package/cjs/graphic/builtin-symbol/star.d.ts +11 -0
- package/cjs/graphic/builtin-symbol/star.js +34 -0
- package/cjs/graphic/builtin-symbol/star.js.map +1 -0
- package/cjs/graphic/builtin-symbol/stroke.d.ts +11 -0
- package/cjs/graphic/builtin-symbol/stroke.js +28 -0
- package/cjs/graphic/builtin-symbol/stroke.js.map +1 -0
- package/cjs/graphic/builtin-symbol/thin-triangle.d.ts +11 -0
- package/cjs/graphic/builtin-symbol/thin-triangle.js +31 -0
- package/cjs/graphic/builtin-symbol/thin-triangle.js.map +1 -0
- package/cjs/graphic/builtin-symbol/triangle-down.d.ts +12 -0
- package/cjs/graphic/builtin-symbol/triangle-down.js +34 -0
- package/cjs/graphic/builtin-symbol/triangle-down.js.map +1 -0
- package/cjs/graphic/builtin-symbol/triangle-left.d.ts +12 -0
- package/cjs/graphic/builtin-symbol/triangle-left.js +34 -0
- package/cjs/graphic/builtin-symbol/triangle-left.js.map +1 -0
- package/cjs/graphic/builtin-symbol/triangle-right.d.ts +12 -0
- package/cjs/graphic/builtin-symbol/triangle-right.js +34 -0
- package/cjs/graphic/builtin-symbol/triangle-right.js.map +1 -0
- package/cjs/graphic/builtin-symbol/triangle-up.d.ts +12 -0
- package/cjs/graphic/builtin-symbol/triangle-up.js +34 -0
- package/cjs/graphic/builtin-symbol/triangle-up.js.map +1 -0
- package/cjs/graphic/builtin-symbol/triangle.d.ts +8 -0
- package/cjs/graphic/builtin-symbol/triangle.js +18 -0
- package/cjs/graphic/builtin-symbol/triangle.js.map +1 -0
- package/cjs/graphic/builtin-symbol/utils.d.ts +19 -0
- package/cjs/graphic/builtin-symbol/utils.js +42 -0
- package/cjs/graphic/builtin-symbol/utils.js.map +1 -0
- package/cjs/graphic/builtin-symbol/wedge.d.ts +11 -0
- package/cjs/graphic/builtin-symbol/wedge.js +30 -0
- package/cjs/graphic/builtin-symbol/wedge.js.map +1 -0
- package/cjs/graphic/builtin-symbol/wye.d.ts +11 -0
- package/cjs/graphic/builtin-symbol/wye.js +35 -0
- package/cjs/graphic/builtin-symbol/wye.js.map +1 -0
- package/cjs/graphic/circle.d.ts +47 -0
- package/cjs/graphic/circle.js +57 -0
- package/cjs/graphic/circle.js.map +1 -0
- package/cjs/graphic/config.d.ts +26 -0
- package/cjs/graphic/config.js +229 -0
- package/cjs/graphic/config.js.map +1 -0
- package/cjs/graphic/constants.d.ts +40 -0
- package/cjs/graphic/constants.js +39 -0
- package/cjs/graphic/constants.js.map +1 -0
- package/cjs/graphic/glyph.d.ts +69 -0
- package/cjs/graphic/glyph.js +123 -0
- package/cjs/graphic/glyph.js.map +1 -0
- package/cjs/graphic/graphic-creator.d.ts +36 -0
- package/cjs/graphic/graphic-creator.js +104 -0
- package/cjs/graphic/graphic-creator.js.map +1 -0
- package/cjs/graphic/graphic-service/arc-contribution.d.ts +5 -0
- package/cjs/graphic/graphic-service/arc-contribution.js +21 -0
- package/cjs/graphic/graphic-service/arc-contribution.js.map +1 -0
- package/cjs/graphic/graphic-service/area-contribution.d.ts +1 -0
- package/cjs/graphic/graphic-service/area-contribution.js +6 -0
- package/cjs/graphic/graphic-service/area-contribution.js.map +1 -0
- package/cjs/graphic/graphic-service/circle-contribution.d.ts +5 -0
- package/cjs/graphic/graphic-service/circle-contribution.js +21 -0
- package/cjs/graphic/graphic-service/circle-contribution.js.map +1 -0
- package/cjs/graphic/graphic-service/common-contribution.d.ts +5 -0
- package/cjs/graphic/graphic-service/common-contribution.js +28 -0
- package/cjs/graphic/graphic-service/common-contribution.js.map +1 -0
- package/cjs/graphic/graphic-service/default-theme.d.ts +1 -0
- package/cjs/graphic/graphic-service/default-theme.js +3 -0
- package/cjs/graphic/graphic-service/default-theme.js.map +1 -0
- package/cjs/graphic/graphic-service/graphic-module.d.ts +3 -0
- package/cjs/graphic/graphic-service/graphic-module.js +28 -0
- package/cjs/graphic/graphic-service/graphic-module.js.map +1 -0
- package/cjs/graphic/graphic-service/graphic-service.d.ts +78 -0
- package/cjs/graphic/graphic-service/graphic-service.js +526 -0
- package/cjs/graphic/graphic-service/graphic-service.js.map +1 -0
- package/cjs/graphic/graphic-service/path-contribution.d.ts +5 -0
- package/cjs/graphic/graphic-service/path-contribution.js +21 -0
- package/cjs/graphic/graphic-service/path-contribution.js.map +1 -0
- package/cjs/graphic/graphic-service/rect-contribution.d.ts +5 -0
- package/cjs/graphic/graphic-service/rect-contribution.js +21 -0
- package/cjs/graphic/graphic-service/rect-contribution.js.map +1 -0
- package/cjs/graphic/graphic-service/symbol-contribution.d.ts +7 -0
- package/cjs/graphic/graphic-service/symbol-contribution.js +30 -0
- package/cjs/graphic/graphic-service/symbol-contribution.js.map +1 -0
- package/cjs/graphic/graphic.d.ts +175 -0
- package/cjs/graphic/graphic.js +625 -0
- package/cjs/graphic/graphic.js.map +1 -0
- package/cjs/graphic/group.d.ts +79 -0
- package/cjs/graphic/group.js +177 -0
- package/cjs/graphic/group.js.map +1 -0
- package/cjs/graphic/image.d.ts +60 -0
- package/cjs/graphic/image.js +92 -0
- package/cjs/graphic/image.js.map +1 -0
- package/cjs/graphic/index.d.ts +28 -0
- package/cjs/graphic/index.js +34 -0
- package/cjs/graphic/index.js.map +1 -0
- package/cjs/graphic/line.d.ts +50 -0
- package/cjs/graphic/line.js +70 -0
- package/cjs/graphic/line.js.map +1 -0
- package/cjs/graphic/node-tree.d.ts +77 -0
- package/cjs/graphic/node-tree.js +359 -0
- package/cjs/graphic/node-tree.js.map +1 -0
- package/cjs/graphic/path.d.ts +53 -0
- package/cjs/graphic/path.js +71 -0
- package/cjs/graphic/path.js.map +1 -0
- package/cjs/graphic/polygon.d.ts +49 -0
- package/cjs/graphic/polygon.js +59 -0
- package/cjs/graphic/polygon.js.map +1 -0
- package/cjs/graphic/pyramid3d.d.ts +42 -0
- package/cjs/graphic/pyramid3d.js +92 -0
- package/cjs/graphic/pyramid3d.js.map +1 -0
- package/cjs/graphic/rect.d.ts +47 -0
- package/cjs/graphic/rect.js +54 -0
- package/cjs/graphic/rect.js.map +1 -0
- package/cjs/graphic/rect3d.d.ts +38 -0
- package/cjs/graphic/rect3d.js +51 -0
- package/cjs/graphic/rect3d.js.map +1 -0
- package/cjs/graphic/richtext/frame.d.ts +43 -0
- package/cjs/graphic/richtext/frame.js +150 -0
- package/cjs/graphic/richtext/frame.js.map +1 -0
- package/cjs/graphic/richtext/icon.d.ts +24 -0
- package/cjs/graphic/richtext/icon.js +43 -0
- package/cjs/graphic/richtext/icon.js.map +1 -0
- package/cjs/graphic/richtext/line.d.ts +27 -0
- package/cjs/graphic/richtext/line.js +105 -0
- package/cjs/graphic/richtext/line.js.map +1 -0
- package/cjs/graphic/richtext/paragraph.d.ts +28 -0
- package/cjs/graphic/richtext/paragraph.js +83 -0
- package/cjs/graphic/richtext/paragraph.js.map +1 -0
- package/cjs/graphic/richtext/utils.d.ts +42 -0
- package/cjs/graphic/richtext/utils.js +188 -0
- package/cjs/graphic/richtext/utils.js.map +1 -0
- package/cjs/graphic/richtext/wrapper.d.ts +25 -0
- package/cjs/graphic/richtext/wrapper.js +57 -0
- package/cjs/graphic/richtext/wrapper.js.map +1 -0
- package/cjs/graphic/richtext.d.ts +78 -0
- package/cjs/graphic/richtext.js +184 -0
- package/cjs/graphic/richtext.js.map +1 -0
- package/cjs/graphic/shadow-root.d.ts +13 -0
- package/cjs/graphic/shadow-root.js +44 -0
- package/cjs/graphic/shadow-root.js.map +1 -0
- package/cjs/graphic/symbol.d.ts +53 -0
- package/cjs/graphic/symbol.js +93 -0
- package/cjs/graphic/symbol.js.map +1 -0
- package/cjs/graphic/text.d.ts +65 -0
- package/cjs/graphic/text.js +240 -0
- package/cjs/graphic/text.js.map +1 -0
- package/cjs/graphic/theme.d.ts +20 -0
- package/cjs/graphic/theme.js +132 -0
- package/cjs/graphic/theme.js.map +1 -0
- package/cjs/graphic/tools.d.ts +15 -0
- package/cjs/graphic/tools.js +165 -0
- package/cjs/graphic/tools.js.map +1 -0
- package/cjs/graphic/wrap-text.d.ts +10 -0
- package/cjs/graphic/wrap-text.js +111 -0
- package/cjs/graphic/wrap-text.js.map +1 -0
- package/cjs/index.d.ts +46 -0
- package/cjs/index.js +56 -0
- package/cjs/index.js.map +1 -0
- package/cjs/interface/allocator.d.ts +27 -0
- package/cjs/interface/allocator.js +6 -0
- package/cjs/interface/allocator.js.map +1 -0
- package/cjs/interface/animate.d.ts +191 -0
- package/cjs/interface/animate.js +6 -0
- package/cjs/interface/animate.js.map +1 -0
- package/cjs/interface/camera.d.ts +24 -0
- package/cjs/interface/camera.js +6 -0
- package/cjs/interface/camera.js.map +1 -0
- package/cjs/interface/canvas.d.ts +61 -0
- package/cjs/interface/canvas.js +6 -0
- package/cjs/interface/canvas.js.map +1 -0
- package/cjs/interface/color.d.ts +37 -0
- package/cjs/interface/color.js +6 -0
- package/cjs/interface/color.js.map +1 -0
- package/cjs/interface/common.d.ts +27 -0
- package/cjs/interface/common.js +6 -0
- package/cjs/interface/common.js.map +1 -0
- package/cjs/interface/context.d.ts +196 -0
- package/cjs/interface/context.js +6 -0
- package/cjs/interface/context.js.map +1 -0
- package/cjs/interface/contribution.d.ts +86 -0
- package/cjs/interface/contribution.js +6 -0
- package/cjs/interface/contribution.js.map +1 -0
- package/cjs/interface/core.d.ts +36 -0
- package/cjs/interface/core.js +6 -0
- package/cjs/interface/core.js.map +1 -0
- package/cjs/interface/creator.d.ts +4 -0
- package/cjs/interface/creator.js +6 -0
- package/cjs/interface/creator.js.map +1 -0
- package/cjs/interface/curve.d.ts +42 -0
- package/cjs/interface/curve.js +6 -0
- package/cjs/interface/curve.js.map +1 -0
- package/cjs/interface/event.d.ts +193 -0
- package/cjs/interface/event.js +6 -0
- package/cjs/interface/event.js.map +1 -0
- package/cjs/interface/global.d.ts +153 -0
- package/cjs/interface/global.js +6 -0
- package/cjs/interface/global.js.map +1 -0
- package/cjs/interface/graphic/arc.d.ts +37 -0
- package/cjs/interface/graphic/arc.js +6 -0
- package/cjs/interface/graphic/arc.js.map +1 -0
- package/cjs/interface/graphic/arc3d.d.ts +22 -0
- package/cjs/interface/graphic/arc3d.js +6 -0
- package/cjs/interface/graphic/arc3d.js.map +1 -0
- package/cjs/interface/graphic/area.d.ts +24 -0
- package/cjs/interface/graphic/area.js +6 -0
- package/cjs/interface/graphic/area.js.map +1 -0
- package/cjs/interface/graphic/bounds.d.ts +37 -0
- package/cjs/interface/graphic/bounds.js +10 -0
- package/cjs/interface/graphic/bounds.js.map +1 -0
- package/cjs/interface/graphic/circle.d.ts +8 -0
- package/cjs/interface/graphic/circle.js +6 -0
- package/cjs/interface/graphic/circle.js.map +1 -0
- package/cjs/interface/graphic/creator.d.ts +32 -0
- package/cjs/interface/graphic/creator.js +6 -0
- package/cjs/interface/graphic/creator.js.map +1 -0
- package/cjs/interface/graphic/dynamic-path.d.ts +1 -0
- package/cjs/interface/graphic/dynamic-path.js +3 -0
- package/cjs/interface/graphic/dynamic-path.js.map +1 -0
- package/cjs/interface/graphic/ellipse.d.ts +8 -0
- package/cjs/interface/graphic/ellipse.js +6 -0
- package/cjs/interface/graphic/ellipse.js.map +1 -0
- package/cjs/interface/graphic/face3d.d.ts +11 -0
- package/cjs/interface/graphic/face3d.js +6 -0
- package/cjs/interface/graphic/face3d.js.map +1 -0
- package/cjs/interface/graphic/glyph.d.ts +24 -0
- package/cjs/interface/graphic/glyph.js +6 -0
- package/cjs/interface/graphic/glyph.js.map +1 -0
- package/cjs/interface/graphic/group.d.ts +30 -0
- package/cjs/interface/graphic/group.js +6 -0
- package/cjs/interface/graphic/group.js.map +1 -0
- package/cjs/interface/graphic/image.d.ts +15 -0
- package/cjs/interface/graphic/image.js +6 -0
- package/cjs/interface/graphic/image.js.map +1 -0
- package/cjs/interface/graphic/index.d.ts +26 -0
- package/cjs/interface/graphic/index.js +33 -0
- package/cjs/interface/graphic/index.js.map +1 -0
- package/cjs/interface/graphic/isogon.d.ts +7 -0
- package/cjs/interface/graphic/isogon.js +6 -0
- package/cjs/interface/graphic/isogon.js.map +1 -0
- package/cjs/interface/graphic/line.d.ts +23 -0
- package/cjs/interface/graphic/line.js +6 -0
- package/cjs/interface/graphic/line.js.map +1 -0
- package/cjs/interface/graphic/path.d.ts +14 -0
- package/cjs/interface/graphic/path.js +6 -0
- package/cjs/interface/graphic/path.js.map +1 -0
- package/cjs/interface/graphic/polygon.d.ts +9 -0
- package/cjs/interface/graphic/polygon.js +6 -0
- package/cjs/interface/graphic/polygon.js.map +1 -0
- package/cjs/interface/graphic/polyline.d.ts +3 -0
- package/cjs/interface/graphic/polyline.js +6 -0
- package/cjs/interface/graphic/polyline.js.map +1 -0
- package/cjs/interface/graphic/pyramid3d.d.ts +7 -0
- package/cjs/interface/graphic/pyramid3d.js +6 -0
- package/cjs/interface/graphic/pyramid3d.js.map +1 -0
- package/cjs/interface/graphic/rect.d.ts +11 -0
- package/cjs/interface/graphic/rect.js +6 -0
- package/cjs/interface/graphic/rect.js.map +1 -0
- package/cjs/interface/graphic/rect3d.d.ts +10 -0
- package/cjs/interface/graphic/rect3d.js +6 -0
- package/cjs/interface/graphic/rect3d.js.map +1 -0
- package/cjs/interface/graphic/richText.d.ts +181 -0
- package/cjs/interface/graphic/richText.js +6 -0
- package/cjs/interface/graphic/richText.js.map +1 -0
- package/cjs/interface/graphic/shadow-root.d.ts +5 -0
- package/cjs/interface/graphic/shadow-root.js +6 -0
- package/cjs/interface/graphic/shadow-root.js.map +1 -0
- package/cjs/interface/graphic/svg.d.ts +7 -0
- package/cjs/interface/graphic/svg.js +6 -0
- package/cjs/interface/graphic/svg.js.map +1 -0
- package/cjs/interface/graphic/symbol.d.ts +22 -0
- package/cjs/interface/graphic/symbol.js +6 -0
- package/cjs/interface/graphic/symbol.js.map +1 -0
- package/cjs/interface/graphic/text.d.ts +73 -0
- package/cjs/interface/graphic/text.js +6 -0
- package/cjs/interface/graphic/text.js.map +1 -0
- package/cjs/interface/graphic/theme.d.ts +56 -0
- package/cjs/interface/graphic/theme.js +6 -0
- package/cjs/interface/graphic/theme.js.map +1 -0
- package/cjs/interface/graphic/util.d.ts +15 -0
- package/cjs/interface/graphic/util.js +6 -0
- package/cjs/interface/graphic/util.js.map +1 -0
- package/cjs/interface/graphic-service.d.ts +78 -0
- package/cjs/interface/graphic-service.js +6 -0
- package/cjs/interface/graphic-service.js.map +1 -0
- package/cjs/interface/graphic-utils.d.ts +1 -0
- package/cjs/interface/graphic-utils.js +3 -0
- package/cjs/interface/graphic-utils.js.map +1 -0
- package/cjs/interface/graphic.d.ts +253 -0
- package/cjs/interface/graphic.js +6 -0
- package/cjs/interface/graphic.js.map +1 -0
- package/cjs/interface/index.d.ts +29 -0
- package/cjs/interface/index.js +35 -0
- package/cjs/interface/index.js.map +1 -0
- package/cjs/interface/layer.d.ts +99 -0
- package/cjs/interface/layer.js +6 -0
- package/cjs/interface/layer.js.map +1 -0
- package/cjs/interface/light.d.ts +6 -0
- package/cjs/interface/light.js +6 -0
- package/cjs/interface/light.js.map +1 -0
- package/cjs/interface/loader.d.ts +17 -0
- package/cjs/interface/loader.js +6 -0
- package/cjs/interface/loader.js.map +1 -0
- package/cjs/interface/matrix.d.ts +21 -0
- package/cjs/interface/matrix.js +6 -0
- package/cjs/interface/matrix.js.map +1 -0
- package/cjs/interface/node-tree.d.ts +43 -0
- package/cjs/interface/node-tree.js +6 -0
- package/cjs/interface/node-tree.js.map +1 -0
- package/cjs/interface/path.d.ts +100 -0
- package/cjs/interface/path.js +6 -0
- package/cjs/interface/path.js.map +1 -0
- package/cjs/interface/picker.d.ts +56 -0
- package/cjs/interface/picker.js +6 -0
- package/cjs/interface/picker.js.map +1 -0
- package/cjs/interface/plugin.d.ts +17 -0
- package/cjs/interface/plugin.js +6 -0
- package/cjs/interface/plugin.js.map +1 -0
- package/cjs/interface/render.d.ts +90 -0
- package/cjs/interface/render.js +6 -0
- package/cjs/interface/render.js.map +1 -0
- package/cjs/interface/stage.d.ts +146 -0
- package/cjs/interface/stage.js +6 -0
- package/cjs/interface/stage.js.map +1 -0
- package/cjs/interface/sync-hook.d.ts +26 -0
- package/cjs/interface/sync-hook.js +6 -0
- package/cjs/interface/sync-hook.js.map +1 -0
- package/cjs/interface/text.d.ts +49 -0
- package/cjs/interface/text.js +6 -0
- package/cjs/interface/text.js.map +1 -0
- package/cjs/interface/theme-service.d.ts +1 -0
- package/cjs/interface/theme-service.js +3 -0
- package/cjs/interface/theme-service.js.map +1 -0
- package/cjs/interface/util.d.ts +1 -0
- package/cjs/interface/util.js +3 -0
- package/cjs/interface/util.js.map +1 -0
- package/cjs/interface/window.d.ts +84 -0
- package/cjs/interface/window.js +6 -0
- package/cjs/interface/window.js.map +1 -0
- package/cjs/modules.d.ts +8 -0
- package/cjs/modules.js +24 -0
- package/cjs/modules.js.map +1 -0
- package/cjs/picker/constants.d.ts +4 -0
- package/cjs/picker/constants.js +8 -0
- package/cjs/picker/constants.js.map +1 -0
- package/cjs/picker/global-picker-service.d.ts +13 -0
- package/cjs/picker/global-picker-service.js +77 -0
- package/cjs/picker/global-picker-service.js.map +1 -0
- package/cjs/picker/index.d.ts +4 -0
- package/cjs/picker/index.js +22 -0
- package/cjs/picker/index.js.map +1 -0
- package/cjs/picker/pick-interceptor.d.ts +22 -0
- package/cjs/picker/pick-interceptor.js +107 -0
- package/cjs/picker/pick-interceptor.js.map +1 -0
- package/cjs/picker/pick-modules.d.ts +3 -0
- package/cjs/picker/pick-modules.js +18 -0
- package/cjs/picker/pick-modules.js.map +1 -0
- package/cjs/picker/picker-service.d.ts +18 -0
- package/cjs/picker/picker-service.js +120 -0
- package/cjs/picker/picker-service.js.map +1 -0
- package/cjs/plugins/builtin-plugin/3dview-transform-plugin.d.ts +17 -0
- package/cjs/plugins/builtin-plugin/3dview-transform-plugin.js +44 -0
- package/cjs/plugins/builtin-plugin/3dview-transform-plugin.js.map +1 -0
- package/cjs/plugins/builtin-plugin/auto-render-plugin.d.ts +10 -0
- package/cjs/plugins/builtin-plugin/auto-render-plugin.js +28 -0
- package/cjs/plugins/builtin-plugin/auto-render-plugin.js.map +1 -0
- package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.d.ts +10 -0
- package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js +36 -0
- package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -0
- package/cjs/plugins/builtin-plugin/flex-layout-plugin.d.ts +36 -0
- package/cjs/plugins/builtin-plugin/flex-layout-plugin.js +177 -0
- package/cjs/plugins/builtin-plugin/flex-layout-plugin.js.map +1 -0
- package/cjs/plugins/builtin-plugin/html-attribute-plugin.d.ts +13 -0
- package/cjs/plugins/builtin-plugin/html-attribute-plugin.js +79 -0
- package/cjs/plugins/builtin-plugin/html-attribute-plugin.js.map +1 -0
- package/cjs/plugins/builtin-plugin/incremental-auto-render-plugin.d.ts +15 -0
- package/cjs/plugins/builtin-plugin/incremental-auto-render-plugin.js +58 -0
- package/cjs/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -0
- package/cjs/plugins/builtin-plugin/poptip-plugin.d.ts +1 -0
- package/cjs/plugins/builtin-plugin/poptip-plugin.js +3 -0
- package/cjs/plugins/builtin-plugin/poptip-plugin.js.map +1 -0
- package/cjs/plugins/constants.d.ts +2 -0
- package/cjs/plugins/constants.js +7 -0
- package/cjs/plugins/constants.js.map +1 -0
- package/cjs/plugins/plugin-modules.d.ts +3 -0
- package/cjs/plugins/plugin-modules.js +13 -0
- package/cjs/plugins/plugin-modules.js.map +1 -0
- package/cjs/plugins/plugin-service.d.ts +15 -0
- package/cjs/plugins/plugin-service.js +58 -0
- package/cjs/plugins/plugin-service.js.map +1 -0
- package/cjs/render/contributions/modules.d.ts +2 -0
- package/cjs/render/contributions/modules.js +20 -0
- package/cjs/render/contributions/modules.js.map +1 -0
- package/cjs/render/contributions/render/arc-render.d.ts +11 -0
- package/cjs/render/contributions/render/arc-render.js +142 -0
- package/cjs/render/contributions/render/arc-render.js.map +1 -0
- package/cjs/render/contributions/render/arc3d-render.d.ts +9 -0
- package/cjs/render/contributions/render/arc3d-render.js +105 -0
- package/cjs/render/contributions/render/arc3d-render.js.map +1 -0
- package/cjs/render/contributions/render/area-render.d.ts +12 -0
- package/cjs/render/contributions/render/area-render.js +207 -0
- package/cjs/render/contributions/render/area-render.js.map +1 -0
- package/cjs/render/contributions/render/base-render.d.ts +28 -0
- package/cjs/render/contributions/render/base-render.js +106 -0
- package/cjs/render/contributions/render/base-render.js.map +1 -0
- package/cjs/render/contributions/render/circle-render.d.ts +10 -0
- package/cjs/render/contributions/render/circle-render.js +47 -0
- package/cjs/render/contributions/render/circle-render.js.map +1 -0
- package/cjs/render/contributions/render/clear-screen.d.ts +1 -0
- package/cjs/render/contributions/render/clear-screen.js +3 -0
- package/cjs/render/contributions/render/clear-screen.js.map +1 -0
- package/cjs/render/contributions/render/contributions/arc-contribution-render.d.ts +15 -0
- package/cjs/render/contributions/render/contributions/arc-contribution-render.js +85 -0
- package/cjs/render/contributions/render/contributions/arc-contribution-render.js.map +1 -0
- package/cjs/render/contributions/render/contributions/area-contribution-render.d.ts +12 -0
- package/cjs/render/contributions/render/contributions/area-contribution-render.js +77 -0
- package/cjs/render/contributions/render/contributions/area-contribution-render.js.map +1 -0
- package/cjs/render/contributions/render/contributions/base-contribution-render.d.ts +37 -0
- package/cjs/render/contributions/render/contributions/base-contribution-render.js +180 -0
- package/cjs/render/contributions/render/contributions/base-contribution-render.js.map +1 -0
- package/cjs/render/contributions/render/contributions/circle-contribution-render.d.ts +15 -0
- package/cjs/render/contributions/render/contributions/circle-contribution-render.js +69 -0
- package/cjs/render/contributions/render/contributions/circle-contribution-render.js.map +1 -0
- package/cjs/render/contributions/render/contributions/constants.d.ts +11 -0
- package/cjs/render/contributions/render/contributions/constants.js +12 -0
- package/cjs/render/contributions/render/contributions/constants.js.map +1 -0
- package/cjs/render/contributions/render/contributions/group-contribution-render.d.ts +7 -0
- package/cjs/render/contributions/render/contributions/group-contribution-render.js +35 -0
- package/cjs/render/contributions/render/contributions/group-contribution-render.js.map +1 -0
- package/cjs/render/contributions/render/contributions/image-contribution-render.d.ts +7 -0
- package/cjs/render/contributions/render/contributions/image-contribution-render.js +64 -0
- package/cjs/render/contributions/render/contributions/image-contribution-render.js.map +1 -0
- package/cjs/render/contributions/render/contributions/index.d.ts +7 -0
- package/cjs/render/contributions/render/contributions/index.js +24 -0
- package/cjs/render/contributions/render/contributions/index.js.map +1 -0
- package/cjs/render/contributions/render/contributions/path-contribution-render.d.ts +9 -0
- package/cjs/render/contributions/render/contributions/path-contribution-render.js +32 -0
- package/cjs/render/contributions/render/contributions/path-contribution-render.js.map +1 -0
- package/cjs/render/contributions/render/contributions/polygon-contribution-render.d.ts +9 -0
- package/cjs/render/contributions/render/contributions/polygon-contribution-render.js +32 -0
- package/cjs/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -0
- package/cjs/render/contributions/render/contributions/rect-contribution-render.d.ts +30 -0
- package/cjs/render/contributions/render/contributions/rect-contribution-render.js +110 -0
- package/cjs/render/contributions/render/contributions/rect-contribution-render.js.map +1 -0
- package/cjs/render/contributions/render/contributions/symbol-contribution-render.d.ts +15 -0
- package/cjs/render/contributions/render/contributions/symbol-contribution-render.js +69 -0
- package/cjs/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -0
- package/cjs/render/contributions/render/contributions/text-contribution-render.d.ts +1 -0
- package/cjs/render/contributions/render/contributions/text-contribution-render.js +6 -0
- package/cjs/render/contributions/render/contributions/text-contribution-render.js.map +1 -0
- package/cjs/render/contributions/render/draw-contribution.d.ts +30 -0
- package/cjs/render/contributions/render/draw-contribution.js +177 -0
- package/cjs/render/contributions/render/draw-contribution.js.map +1 -0
- package/cjs/render/contributions/render/draw-interceptor.d.ts +13 -0
- package/cjs/render/contributions/render/draw-interceptor.js +124 -0
- package/cjs/render/contributions/render/draw-interceptor.js.map +1 -0
- package/cjs/render/contributions/render/glyph-render.d.ts +8 -0
- package/cjs/render/contributions/render/glyph-render.js +35 -0
- package/cjs/render/contributions/render/glyph-render.js.map +1 -0
- package/cjs/render/contributions/render/graphic-render.d.ts +6 -0
- package/cjs/render/contributions/render/graphic-render.js +19 -0
- package/cjs/render/contributions/render/graphic-render.js.map +1 -0
- package/cjs/render/contributions/render/group-render.d.ts +10 -0
- package/cjs/render/contributions/render/group-render.js +85 -0
- package/cjs/render/contributions/render/group-render.js.map +1 -0
- package/cjs/render/contributions/render/image-render.d.ts +10 -0
- package/cjs/render/contributions/render/image-render.js +64 -0
- package/cjs/render/contributions/render/image-render.js.map +1 -0
- package/cjs/render/contributions/render/incremental-area-render.d.ts +8 -0
- package/cjs/render/contributions/render/incremental-area-render.js +42 -0
- package/cjs/render/contributions/render/incremental-area-render.js.map +1 -0
- package/cjs/render/contributions/render/incremental-draw-contribution.d.ts +39 -0
- package/cjs/render/contributions/render/incremental-draw-contribution.js +169 -0
- package/cjs/render/contributions/render/incremental-draw-contribution.js.map +1 -0
- package/cjs/render/contributions/render/incremental-line-render.d.ts +8 -0
- package/cjs/render/contributions/render/incremental-line-render.js +44 -0
- package/cjs/render/contributions/render/incremental-line-render.js.map +1 -0
- package/cjs/render/contributions/render/index.d.ts +14 -0
- package/cjs/render/contributions/render/index.js +27 -0
- package/cjs/render/contributions/render/index.js.map +1 -0
- package/cjs/render/contributions/render/line-render.d.ts +10 -0
- package/cjs/render/contributions/render/line-render.js +133 -0
- package/cjs/render/contributions/render/line-render.js.map +1 -0
- package/cjs/render/contributions/render/module.d.ts +3 -0
- package/cjs/render/contributions/render/module.js +109 -0
- package/cjs/render/contributions/render/module.js.map +1 -0
- package/cjs/render/contributions/render/path-render.d.ts +10 -0
- package/cjs/render/contributions/render/path-render.js +51 -0
- package/cjs/render/contributions/render/path-render.js.map +1 -0
- package/cjs/render/contributions/render/polygon-render.d.ts +10 -0
- package/cjs/render/contributions/render/polygon-render.js +49 -0
- package/cjs/render/contributions/render/polygon-render.js.map +1 -0
- package/cjs/render/contributions/render/pyramid3d-render.d.ts +11 -0
- package/cjs/render/contributions/render/pyramid3d-render.js +90 -0
- package/cjs/render/contributions/render/pyramid3d-render.js.map +1 -0
- package/cjs/render/contributions/render/rect-render.d.ts +10 -0
- package/cjs/render/contributions/render/rect-render.js +56 -0
- package/cjs/render/contributions/render/rect-render.js.map +1 -0
- package/cjs/render/contributions/render/rect3d-render.d.ts +11 -0
- package/cjs/render/contributions/render/rect3d-render.js +94 -0
- package/cjs/render/contributions/render/rect3d-render.js.map +1 -0
- package/cjs/render/contributions/render/render-slector.d.ts +4 -0
- package/cjs/render/contributions/render/render-slector.js +23 -0
- package/cjs/render/contributions/render/render-slector.js.map +1 -0
- package/cjs/render/contributions/render/richtext-render.d.ts +9 -0
- package/cjs/render/contributions/render/richtext-render.js +48 -0
- package/cjs/render/contributions/render/richtext-render.js.map +1 -0
- package/cjs/render/contributions/render/symbol-render.d.ts +10 -0
- package/cjs/render/contributions/render/symbol-render.js +61 -0
- package/cjs/render/contributions/render/symbol-render.js.map +1 -0
- package/cjs/render/contributions/render/symbol.d.ts +20 -0
- package/cjs/render/contributions/render/symbol.js +17 -0
- package/cjs/render/contributions/render/symbol.js.map +1 -0
- package/cjs/render/contributions/render/text-render.d.ts +13 -0
- package/cjs/render/contributions/render/text-render.js +163 -0
- package/cjs/render/contributions/render/text-render.js.map +1 -0
- package/cjs/render/contributions/render/utils.d.ts +18 -0
- package/cjs/render/contributions/render/utils.js +151 -0
- package/cjs/render/contributions/render/utils.js.map +1 -0
- package/cjs/render/index.d.ts +3 -0
- package/cjs/render/index.js +22 -0
- package/cjs/render/index.js.map +1 -0
- package/cjs/render/render-modules.d.ts +3 -0
- package/cjs/render/render-modules.js +12 -0
- package/cjs/render/render-modules.js.map +1 -0
- package/cjs/render/render-service.d.ts +19 -0
- package/cjs/render/render-service.js +59 -0
- package/cjs/render/render-service.js.map +1 -0
- package/cjs/resource-loader/loader.d.ts +9 -0
- package/cjs/resource-loader/loader.js +61 -0
- package/cjs/resource-loader/loader.js.map +1 -0
- package/cjs/tapable/Hook.d.ts +12 -0
- package/cjs/tapable/Hook.js +60 -0
- package/cjs/tapable/Hook.js.map +1 -0
- package/cjs/tapable/SyncHook.d.ts +5 -0
- package/cjs/tapable/SyncHook.js +16 -0
- package/cjs/tapable/SyncHook.js.map +1 -0
- package/cjs/tapable/index.d.ts +1 -0
- package/cjs/tapable/index.js +21 -0
- package/cjs/tapable/index.js.map +1 -0
- package/dist/index.js +29005 -0
- package/dist/index.min.js +1 -0
- package/es/allocator/allocator-modules.d.ts +1 -0
- package/es/allocator/allocator-modules.js +1 -0
- package/es/allocator/allocator-modules.js.map +1 -0
- package/es/allocator/canvas-allocate.d.ts +14 -0
- package/es/allocator/canvas-allocate.js +42 -0
- package/es/allocator/canvas-allocate.js.map +1 -0
- package/es/allocator/constants.d.ts +9 -0
- package/es/allocator/constants.js +18 -0
- package/es/allocator/constants.js.map +1 -0
- package/es/allocator/graphic-allocate.d.ts +1 -0
- package/es/allocator/graphic-allocate.js +1 -0
- package/es/allocator/graphic-allocate.js.map +1 -0
- package/es/allocator/matrix-allocate.d.ts +25 -0
- package/es/allocator/matrix-allocate.js +71 -0
- package/es/allocator/matrix-allocate.js.map +1 -0
- package/es/allocator/point-allocate.d.ts +1 -0
- package/es/allocator/point-allocate.js +1 -0
- package/es/allocator/point-allocate.js.map +1 -0
- package/es/animate/Ticker/default-ticker.d.ts +87 -0
- package/es/animate/Ticker/default-ticker.js +230 -0
- package/es/animate/Ticker/default-ticker.js.map +1 -0
- package/es/animate/Ticker/index.d.ts +1 -0
- package/es/animate/Ticker/index.js +2 -0
- package/es/animate/Ticker/index.js.map +1 -0
- package/es/animate/animate.d.ts +146 -0
- package/es/animate/animate.js +389 -0
- package/es/animate/animate.js.map +1 -0
- package/es/animate/config.d.ts +3 -0
- package/es/animate/config.js +10 -0
- package/es/animate/config.js.map +1 -0
- package/es/animate/custom-animate.d.ts +229 -0
- package/es/animate/custom-animate.js +613 -0
- package/es/animate/custom-animate.js.map +1 -0
- package/es/animate/default-ticker.d.ts +2 -0
- package/es/animate/default-ticker.js +11 -0
- package/es/animate/default-ticker.js.map +1 -0
- package/es/animate/easing.d.ts +45 -0
- package/es/animate/easing.js +111 -0
- package/es/animate/easing.js.map +1 -0
- package/es/animate/index.d.ts +6 -0
- package/es/animate/index.js +12 -0
- package/es/animate/index.js.map +1 -0
- package/es/animate/morphing.d.ts +52 -0
- package/es/animate/morphing.js +292 -0
- package/es/animate/morphing.js.map +1 -0
- package/es/animate/timeline.d.ts +17 -0
- package/es/animate/timeline.js +42 -0
- package/es/animate/timeline.js.map +1 -0
- package/es/application.d.ts +11 -0
- package/es/application.js +3 -0
- package/es/application.js.map +1 -0
- package/es/canvas/conical-gradient.d.ts +12 -0
- package/es/canvas/conical-gradient.js +121 -0
- package/es/canvas/conical-gradient.js.map +1 -0
- package/es/canvas/constants.d.ts +2 -0
- package/es/canvas/constants.js +4 -0
- package/es/canvas/constants.js.map +1 -0
- package/es/canvas/contributions/base-canvas.d.ts +52 -0
- package/es/canvas/contributions/base-canvas.js +104 -0
- package/es/canvas/contributions/base-canvas.js.map +1 -0
- package/es/canvas/empty-context.d.ts +97 -0
- package/es/canvas/empty-context.js +216 -0
- package/es/canvas/empty-context.js.map +1 -0
- package/es/canvas/index.d.ts +4 -0
- package/es/canvas/index.js +8 -0
- package/es/canvas/index.js.map +1 -0
- package/es/canvas/util.d.ts +24 -0
- package/es/canvas/util.js +385 -0
- package/es/canvas/util.js.map +1 -0
- package/es/color-string/colorName.d.ts +2 -0
- package/es/color-string/colorName.js +11 -0
- package/es/color-string/colorName.js.map +1 -0
- package/es/color-string/index.d.ts +3 -0
- package/es/color-string/index.js +6 -0
- package/es/color-string/index.js.map +1 -0
- package/es/color-string/interpolate.d.ts +7 -0
- package/es/color-string/interpolate.js +91 -0
- package/es/color-string/interpolate.js.map +1 -0
- package/es/color-string/store.d.ts +11 -0
- package/es/color-string/store.js +50 -0
- package/es/color-string/store.js.map +1 -0
- package/es/common/Reflect-metadata.d.ts +2 -0
- package/es/common/Reflect-metadata.js +388 -0
- package/es/common/Reflect-metadata.js.map +1 -0
- package/es/common/bezier-utils.d.ts +5 -0
- package/es/common/bezier-utils.js +26 -0
- package/es/common/bezier-utils.js.map +1 -0
- package/es/common/bounds-context.d.ts +18 -0
- package/es/common/bounds-context.js +52 -0
- package/es/common/bounds-context.js.map +1 -0
- package/es/common/canvas-utils.d.ts +8 -0
- package/es/common/canvas-utils.js +65 -0
- package/es/common/canvas-utils.js.map +1 -0
- package/es/common/contribution-provider.d.ts +4 -0
- package/es/common/contribution-provider.js +20 -0
- package/es/common/contribution-provider.js.map +1 -0
- package/es/common/custom-path2d.d.ts +47 -0
- package/es/common/custom-path2d.js +338 -0
- package/es/common/custom-path2d.js.map +1 -0
- package/es/common/enums.d.ts +70 -0
- package/es/common/enums.js +73 -0
- package/es/common/enums.js.map +1 -0
- package/es/common/generator.d.ts +4 -0
- package/es/common/generator.js +8 -0
- package/es/common/generator.js.map +1 -0
- package/es/common/inversify-lite/annotation/decorator_utils.d.ts +16 -0
- package/es/common/inversify-lite/annotation/decorator_utils.js +67 -0
- package/es/common/inversify-lite/annotation/decorator_utils.js.map +1 -0
- package/es/common/inversify-lite/annotation/inject.d.ts +2 -0
- package/es/common/inversify-lite/annotation/inject.js +8 -0
- package/es/common/inversify-lite/annotation/inject.js.map +1 -0
- package/es/common/inversify-lite/annotation/inject_base.d.ts +3 -0
- package/es/common/inversify-lite/annotation/inject_base.js +16 -0
- package/es/common/inversify-lite/annotation/inject_base.js.map +1 -0
- package/es/common/inversify-lite/annotation/injectable.d.ts +2 -0
- package/es/common/inversify-lite/annotation/injectable.js +16 -0
- package/es/common/inversify-lite/annotation/injectable.js.map +1 -0
- package/es/common/inversify-lite/annotation/lazy_service_identifier.d.ts +7 -0
- package/es/common/inversify-lite/annotation/lazy_service_identifier.js +9 -0
- package/es/common/inversify-lite/annotation/lazy_service_identifier.js.map +1 -0
- package/es/common/inversify-lite/annotation/multi_inject.d.ts +2 -0
- package/es/common/inversify-lite/annotation/multi_inject.js +8 -0
- package/es/common/inversify-lite/annotation/multi_inject.js.map +1 -0
- package/es/common/inversify-lite/annotation/named.d.ts +2 -0
- package/es/common/inversify-lite/annotation/named.js +12 -0
- package/es/common/inversify-lite/annotation/named.js.map +1 -0
- package/es/common/inversify-lite/annotation/post_construct.d.ts +4 -0
- package/es/common/inversify-lite/annotation/post_construct.js +10 -0
- package/es/common/inversify-lite/annotation/post_construct.js.map +1 -0
- package/es/common/inversify-lite/annotation/property_event_decorator.d.ts +4 -0
- package/es/common/inversify-lite/annotation/property_event_decorator.js +14 -0
- package/es/common/inversify-lite/annotation/property_event_decorator.js.map +1 -0
- package/es/common/inversify-lite/bindings/binding.d.ts +20 -0
- package/es/common/inversify-lite/bindings/binding.js +23 -0
- package/es/common/inversify-lite/bindings/binding.js.map +1 -0
- package/es/common/inversify-lite/bindings/binding_count.d.ts +5 -0
- package/es/common/inversify-lite/bindings/binding_count.js +6 -0
- package/es/common/inversify-lite/bindings/binding_count.js.map +1 -0
- package/es/common/inversify-lite/constants/error_msgs.d.ts +32 -0
- package/es/common/inversify-lite/constants/error_msgs.js +64 -0
- package/es/common/inversify-lite/constants/error_msgs.js.map +1 -0
- package/es/common/inversify-lite/constants/literal_types.d.ts +5 -0
- package/es/common/inversify-lite/constants/literal_types.js +21 -0
- package/es/common/inversify-lite/constants/literal_types.js.map +1 -0
- package/es/common/inversify-lite/constants/metadata_keys.d.ts +13 -0
- package/es/common/inversify-lite/constants/metadata_keys.js +30 -0
- package/es/common/inversify-lite/constants/metadata_keys.js.map +1 -0
- package/es/common/inversify-lite/container/container.d.ts +46 -0
- package/es/common/inversify-lite/container/container.js +281 -0
- package/es/common/inversify-lite/container/container.js.map +1 -0
- package/es/common/inversify-lite/container/container_module.d.ts +11 -0
- package/es/common/inversify-lite/container/container_module.js +14 -0
- package/es/common/inversify-lite/container/container_module.js.map +1 -0
- package/es/common/inversify-lite/container/lookup.d.ts +16 -0
- package/es/common/inversify-lite/container/lookup.js +68 -0
- package/es/common/inversify-lite/container/lookup.js.map +1 -0
- package/es/common/inversify-lite/index.d.ts +8 -0
- package/es/common/inversify-lite/index.js +16 -0
- package/es/common/inversify-lite/index.js.map +1 -0
- package/es/common/inversify-lite/interfaces/interfaces.d.ts +239 -0
- package/es/common/inversify-lite/interfaces/interfaces.js +2 -0
- package/es/common/inversify-lite/interfaces/interfaces.js.map +1 -0
- package/es/common/inversify-lite/planning/context.d.ts +11 -0
- package/es/common/inversify-lite/planning/context.js +16 -0
- package/es/common/inversify-lite/planning/context.js.map +1 -0
- package/es/common/inversify-lite/planning/metadata.d.ts +8 -0
- package/es/common/inversify-lite/planning/metadata.js +13 -0
- package/es/common/inversify-lite/planning/metadata.js.map +1 -0
- package/es/common/inversify-lite/planning/metadata_reader.d.ts +6 -0
- package/es/common/inversify-lite/planning/metadata_reader.js +18 -0
- package/es/common/inversify-lite/planning/metadata_reader.js.map +1 -0
- package/es/common/inversify-lite/planning/plan.d.ts +7 -0
- package/es/common/inversify-lite/planning/plan.js +8 -0
- package/es/common/inversify-lite/planning/plan.js.map +1 -0
- package/es/common/inversify-lite/planning/planner.d.ts +5 -0
- package/es/common/inversify-lite/planning/planner.js +120 -0
- package/es/common/inversify-lite/planning/planner.js.map +1 -0
- package/es/common/inversify-lite/planning/queryable_string.d.ts +11 -0
- package/es/common/inversify-lite/planning/queryable_string.js +27 -0
- package/es/common/inversify-lite/planning/queryable_string.js.map +1 -0
- package/es/common/inversify-lite/planning/reflection_utils.d.ts +5 -0
- package/es/common/inversify-lite/planning/reflection_utils.js +99 -0
- package/es/common/inversify-lite/planning/reflection_utils.js.map +1 -0
- package/es/common/inversify-lite/planning/request.d.ts +14 -0
- package/es/common/inversify-lite/planning/request.js +16 -0
- package/es/common/inversify-lite/planning/request.js.map +1 -0
- package/es/common/inversify-lite/planning/target.d.ts +23 -0
- package/es/common/inversify-lite/planning/target.js +58 -0
- package/es/common/inversify-lite/planning/target.js.map +1 -0
- package/es/common/inversify-lite/resolution/instantiation.d.ts +3 -0
- package/es/common/inversify-lite/resolution/instantiation.js +117 -0
- package/es/common/inversify-lite/resolution/instantiation.js.map +1 -0
- package/es/common/inversify-lite/resolution/resolver.d.ts +3 -0
- package/es/common/inversify-lite/resolution/resolver.js +55 -0
- package/es/common/inversify-lite/resolution/resolver.js.map +1 -0
- package/es/common/inversify-lite/scope/scope.d.ts +3 -0
- package/es/common/inversify-lite/scope/scope.js +50 -0
- package/es/common/inversify-lite/scope/scope.js.map +1 -0
- package/es/common/inversify-lite/syntax/binding_in_syntax.d.ts +9 -0
- package/es/common/inversify-lite/syntax/binding_in_syntax.js +21 -0
- package/es/common/inversify-lite/syntax/binding_in_syntax.js.map +1 -0
- package/es/common/inversify-lite/syntax/binding_in_when_on_syntax.d.ts +12 -0
- package/es/common/inversify-lite/syntax/binding_in_when_on_syntax.js +25 -0
- package/es/common/inversify-lite/syntax/binding_in_when_on_syntax.js.map +1 -0
- package/es/common/inversify-lite/syntax/binding_on_syntax.d.ts +6 -0
- package/es/common/inversify-lite/syntax/binding_on_syntax.js +8 -0
- package/es/common/inversify-lite/syntax/binding_on_syntax.js.map +1 -0
- package/es/common/inversify-lite/syntax/binding_to_syntax.d.ts +18 -0
- package/es/common/inversify-lite/syntax/binding_to_syntax.js +63 -0
- package/es/common/inversify-lite/syntax/binding_to_syntax.js.map +1 -0
- package/es/common/inversify-lite/syntax/binding_when_on_syntax.d.ts +8 -0
- package/es/common/inversify-lite/syntax/binding_when_on_syntax.js +13 -0
- package/es/common/inversify-lite/syntax/binding_when_on_syntax.js.map +1 -0
- package/es/common/inversify-lite/syntax/binding_when_syntax.d.ts +7 -0
- package/es/common/inversify-lite/syntax/binding_when_syntax.js +15 -0
- package/es/common/inversify-lite/syntax/binding_when_syntax.js.map +1 -0
- package/es/common/inversify-lite/syntax/constraint_helpers.d.ts +3 -0
- package/es/common/inversify-lite/syntax/constraint_helpers.js +11 -0
- package/es/common/inversify-lite/syntax/constraint_helpers.js.map +1 -0
- package/es/common/inversify-lite/utils/async.d.ts +3 -0
- package/es/common/inversify-lite/utils/async.js +10 -0
- package/es/common/inversify-lite/utils/async.js.map +1 -0
- package/es/common/inversify-lite/utils/binding_utils.d.ts +4 -0
- package/es/common/inversify-lite/utils/binding_utils.js +65 -0
- package/es/common/inversify-lite/utils/binding_utils.js.map +1 -0
- package/es/common/inversify-lite/utils/clonable.d.ts +3 -0
- package/es/common/inversify-lite/utils/clonable.js +6 -0
- package/es/common/inversify-lite/utils/clonable.js.map +1 -0
- package/es/common/inversify-lite/utils/exceptions.d.ts +2 -0
- package/es/common/inversify-lite/utils/exceptions.js +8 -0
- package/es/common/inversify-lite/utils/exceptions.js.map +1 -0
- package/es/common/inversify-lite/utils/factory_type.d.ts +5 -0
- package/es/common/inversify-lite/utils/factory_type.js +7 -0
- package/es/common/inversify-lite/utils/factory_type.js.map +1 -0
- package/es/common/inversify-lite/utils/id.d.ts +2 -0
- package/es/common/inversify-lite/utils/id.js +8 -0
- package/es/common/inversify-lite/utils/id.js.map +1 -0
- package/es/common/inversify-lite/utils/js.d.ts +1 -0
- package/es/common/inversify-lite/utils/js.js +8 -0
- package/es/common/inversify-lite/utils/js.js.map +1 -0
- package/es/common/inversify-lite/utils/serialization.d.ts +10 -0
- package/es/common/inversify-lite/utils/serialization.js +66 -0
- package/es/common/inversify-lite/utils/serialization.js.map +1 -0
- package/es/common/matrix.d.ts +5 -0
- package/es/common/matrix.js +48 -0
- package/es/common/matrix.js.map +1 -0
- package/es/common/morphing-utils.d.ts +17 -0
- package/es/common/morphing-utils.js +287 -0
- package/es/common/morphing-utils.js.map +1 -0
- package/es/common/path-svg.d.ts +12 -0
- package/es/common/path-svg.js +58 -0
- package/es/common/path-svg.js.map +1 -0
- package/es/common/polygon.d.ts +4 -0
- package/es/common/polygon.js +39 -0
- package/es/common/polygon.js.map +1 -0
- package/es/common/render-area.d.ts +11 -0
- package/es/common/render-area.js +133 -0
- package/es/common/render-area.js.map +1 -0
- package/es/common/render-command-list.d.ts +2 -0
- package/es/common/render-command-list.js +9 -0
- package/es/common/render-command-list.js.map +1 -0
- package/es/common/render-curve.d.ts +18 -0
- package/es/common/render-curve.js +118 -0
- package/es/common/render-curve.js.map +1 -0
- package/es/common/seg-context.d.ts +36 -0
- package/es/common/seg-context.js +94 -0
- package/es/common/seg-context.js.map +1 -0
- package/es/common/segment/basis.d.ts +28 -0
- package/es/common/segment/basis.js +66 -0
- package/es/common/segment/basis.js.map +1 -0
- package/es/common/segment/common.d.ts +3 -0
- package/es/common/segment/common.js +6 -0
- package/es/common/segment/common.js.map +1 -0
- package/es/common/segment/curve/arc.d.ts +14 -0
- package/es/common/segment/curve/arc.js +22 -0
- package/es/common/segment/curve/arc.js.map +1 -0
- package/es/common/segment/curve/base.d.ts +13 -0
- package/es/common/segment/curve/base.js +7 -0
- package/es/common/segment/curve/base.js.map +1 -0
- package/es/common/segment/curve/cubic-bezier.d.ts +19 -0
- package/es/common/segment/curve/cubic-bezier.js +37 -0
- package/es/common/segment/curve/cubic-bezier.js.map +1 -0
- package/es/common/segment/curve/curve-context.d.ts +19 -0
- package/es/common/segment/curve/curve-context.js +44 -0
- package/es/common/segment/curve/curve-context.js.map +1 -0
- package/es/common/segment/curve/ellipse.d.ts +18 -0
- package/es/common/segment/curve/ellipse.js +24 -0
- package/es/common/segment/curve/ellipse.js.map +1 -0
- package/es/common/segment/curve/line.d.ts +18 -0
- package/es/common/segment/curve/line.js +34 -0
- package/es/common/segment/curve/line.js.map +1 -0
- package/es/common/segment/curve/move.d.ts +13 -0
- package/es/common/segment/curve/move.js +22 -0
- package/es/common/segment/curve/move.js.map +1 -0
- package/es/common/segment/curve/path.d.ts +11 -0
- package/es/common/segment/curve/path.js +23 -0
- package/es/common/segment/curve/path.js.map +1 -0
- package/es/common/segment/curve/quadratic-bezier.d.ts +16 -0
- package/es/common/segment/curve/quadratic-bezier.js +23 -0
- package/es/common/segment/curve/quadratic-bezier.js.map +1 -0
- package/es/common/segment/index.d.ts +11 -0
- package/es/common/segment/index.js +51 -0
- package/es/common/segment/index.js.map +1 -0
- package/es/common/segment/linear-closed.d.ts +24 -0
- package/es/common/segment/linear-closed.js +56 -0
- package/es/common/segment/linear-closed.js.map +1 -0
- package/es/common/segment/linear.d.ts +24 -0
- package/es/common/segment/linear.js +56 -0
- package/es/common/segment/linear.js.map +1 -0
- package/es/common/segment/monotone.d.ts +36 -0
- package/es/common/segment/monotone.js +123 -0
- package/es/common/segment/monotone.js.map +1 -0
- package/es/common/segment/step.d.ts +26 -0
- package/es/common/segment/step.js +62 -0
- package/es/common/segment/step.js.map +1 -0
- package/es/common/shape/arc.d.ts +5 -0
- package/es/common/shape/arc.js +40 -0
- package/es/common/shape/arc.js.map +1 -0
- package/es/common/shape/rect.d.ts +2 -0
- package/es/common/shape/rect.js +48 -0
- package/es/common/shape/rect.js.map +1 -0
- package/es/common/sort.d.ts +4 -0
- package/es/common/sort.js +94 -0
- package/es/common/sort.js.map +1 -0
- package/es/common/split-path.d.ts +44 -0
- package/es/common/split-path.js +249 -0
- package/es/common/split-path.js.map +1 -0
- package/es/common/store.d.ts +2 -0
- package/es/common/store.js +1 -0
- package/es/common/store.js.map +1 -0
- package/es/common/text.d.ts +6 -0
- package/es/common/text.js +19 -0
- package/es/common/text.js.map +1 -0
- package/es/common/utils.d.ts +40 -0
- package/es/common/utils.js +143 -0
- package/es/common/utils.js.map +1 -0
- package/es/common/xml/OrderedObjParser.d.ts +19 -0
- package/es/common/xml/OrderedObjParser.js +122 -0
- package/es/common/xml/OrderedObjParser.js.map +1 -0
- package/es/common/xml/index.d.ts +1 -0
- package/es/common/xml/index.js +2 -0
- package/es/common/xml/index.js.map +1 -0
- package/es/common/xml/node2json.d.ts +1 -0
- package/es/common/xml/node2json.js +41 -0
- package/es/common/xml/node2json.js.map +1 -0
- package/es/common/xml/parser.d.ts +10 -0
- package/es/common/xml/parser.js +28 -0
- package/es/common/xml/parser.js.map +1 -0
- package/es/common/xml/type.d.ts +1 -0
- package/es/common/xml/type.js +2 -0
- package/es/common/xml/type.js.map +1 -0
- package/es/common/xml/utils.d.ts +1 -0
- package/es/common/xml/utils.js +15 -0
- package/es/common/xml/utils.js.map +1 -0
- package/es/constants.d.ts +2 -0
- package/es/constants.js +4 -0
- package/es/constants.js.map +1 -0
- package/es/container.d.ts +2 -0
- package/es/container.js +4 -0
- package/es/container.js.map +1 -0
- package/es/core/application.d.ts +1 -0
- package/es/core/application.js +2 -0
- package/es/core/application.js.map +1 -0
- package/es/core/camera.d.ts +19 -0
- package/es/core/camera.js +61 -0
- package/es/core/camera.js.map +1 -0
- package/es/core/constants.d.ts +3 -0
- package/es/core/constants.js +6 -0
- package/es/core/constants.js.map +1 -0
- package/es/core/contributions/env/base-contribution.d.ts +58 -0
- package/es/core/contributions/env/base-contribution.js +81 -0
- package/es/core/contributions/env/base-contribution.js.map +1 -0
- package/es/core/contributions/env/modules.d.ts +3 -0
- package/es/core/contributions/env/modules.js +10 -0
- package/es/core/contributions/env/modules.js.map +1 -0
- package/es/core/contributions/index.d.ts +4 -0
- package/es/core/contributions/index.js +8 -0
- package/es/core/contributions/index.js.map +1 -0
- package/es/core/contributions/layerHandler/canvas2d-contribution.d.ts +22 -0
- package/es/core/contributions/layerHandler/canvas2d-contribution.js +90 -0
- package/es/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -0
- package/es/core/contributions/layerHandler/modules.d.ts +3 -0
- package/es/core/contributions/layerHandler/modules.js +13 -0
- package/es/core/contributions/layerHandler/modules.js.map +1 -0
- package/es/core/contributions/layerHandler/offscreen2d-contribution.d.ts +20 -0
- package/es/core/contributions/layerHandler/offscreen2d-contribution.js +76 -0
- package/es/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -0
- package/es/core/contributions/modules.d.ts +2 -0
- package/es/core/contributions/modules.js +10 -0
- package/es/core/contributions/modules.js.map +1 -0
- package/es/core/contributions/textMeasure/AtextMeasure.d.ts +52 -0
- package/es/core/contributions/textMeasure/AtextMeasure.js +182 -0
- package/es/core/contributions/textMeasure/AtextMeasure.js.map +1 -0
- package/es/core/contributions/textMeasure/layout.d.ts +13 -0
- package/es/core/contributions/textMeasure/layout.js +83 -0
- package/es/core/contributions/textMeasure/layout.js.map +1 -0
- package/es/core/contributions/textMeasure/modules.d.ts +3 -0
- package/es/core/contributions/textMeasure/modules.js +11 -0
- package/es/core/contributions/textMeasure/modules.js.map +1 -0
- package/es/core/contributions/textMeasure/textMeasure-contribution.d.ts +4 -0
- package/es/core/contributions/textMeasure/textMeasure-contribution.js +18 -0
- package/es/core/contributions/textMeasure/textMeasure-contribution.js.map +1 -0
- package/es/core/contributions/window/base-contribution.d.ts +49 -0
- package/es/core/contributions/window/base-contribution.js +41 -0
- package/es/core/contributions/window/base-contribution.js.map +1 -0
- package/es/core/core-modules.d.ts +3 -0
- package/es/core/core-modules.js +22 -0
- package/es/core/core-modules.js.map +1 -0
- package/es/core/global-module.d.ts +1 -0
- package/es/core/global-module.js +1 -0
- package/es/core/global-module.js.map +1 -0
- package/es/core/global.d.ts +70 -0
- package/es/core/global.js +162 -0
- package/es/core/global.js.map +1 -0
- package/es/core/graphic-utils.d.ts +40 -0
- package/es/core/graphic-utils.js +146 -0
- package/es/core/graphic-utils.js.map +1 -0
- package/es/core/index.d.ts +9 -0
- package/es/core/index.js +18 -0
- package/es/core/index.js.map +1 -0
- package/es/core/layer-service.d.ts +16 -0
- package/es/core/layer-service.js +56 -0
- package/es/core/layer-service.js.map +1 -0
- package/es/core/layer.d.ts +55 -0
- package/es/core/layer.js +129 -0
- package/es/core/layer.js.map +1 -0
- package/es/core/light.d.ts +11 -0
- package/es/core/light.js +20 -0
- package/es/core/light.js.map +1 -0
- package/es/core/stage.d.ts +148 -0
- package/es/core/stage.js +469 -0
- package/es/core/stage.js.map +1 -0
- package/es/core/window.d.ts +54 -0
- package/es/core/window.js +130 -0
- package/es/core/window.js.map +1 -0
- package/es/create.d.ts +3 -0
- package/es/create.js +6 -0
- package/es/create.js.map +1 -0
- package/es/event/constant.d.ts +1 -0
- package/es/event/constant.js +2 -0
- package/es/event/constant.js.map +1 -0
- package/es/event/event-manager.d.ts +60 -0
- package/es/event/event-manager.js +276 -0
- package/es/event/event-manager.js.map +1 -0
- package/es/event/event-system.d.ts +38 -0
- package/es/event/event-system.js +194 -0
- package/es/event/event-system.js.map +1 -0
- package/es/event/event-target.d.ts +3 -0
- package/es/event/event-target.js +16 -0
- package/es/event/event-target.js.map +1 -0
- package/es/event/federated-event/base-event.d.ts +53 -0
- package/es/event/federated-event/base-event.js +61 -0
- package/es/event/federated-event/base-event.js.map +1 -0
- package/es/event/federated-event/custom-event.d.ts +4 -0
- package/es/event/federated-event/custom-event.js +8 -0
- package/es/event/federated-event/custom-event.js.map +1 -0
- package/es/event/federated-event/index.d.ts +5 -0
- package/es/event/federated-event/index.js +10 -0
- package/es/event/federated-event/index.js.map +1 -0
- package/es/event/federated-event/mouse-event.d.ts +29 -0
- package/es/event/federated-event/mouse-event.js +47 -0
- package/es/event/federated-event/mouse-event.js.map +1 -0
- package/es/event/federated-event/pointer-event.d.ts +18 -0
- package/es/event/federated-event/pointer-event.js +24 -0
- package/es/event/federated-event/pointer-event.js.map +1 -0
- package/es/event/federated-event/wheel-event.d.ts +14 -0
- package/es/event/federated-event/wheel-event.js +21 -0
- package/es/event/federated-event/wheel-event.js.map +1 -0
- package/es/event/index.d.ts +7 -0
- package/es/event/index.js +14 -0
- package/es/event/index.js.map +1 -0
- package/es/event/util.d.ts +1 -0
- package/es/event/util.js +2 -0
- package/es/event/util.js.map +1 -0
- package/es/export.d.ts +1 -0
- package/es/export.js +1 -0
- package/es/export.js.map +1 -0
- package/es/graphic/arc.d.ts +69 -0
- package/es/graphic/arc.js +133 -0
- package/es/graphic/arc.js.map +1 -0
- package/es/graphic/arc3d.d.ts +40 -0
- package/es/graphic/arc3d.js +32 -0
- package/es/graphic/arc3d.js.map +1 -0
- package/es/graphic/area.d.ts +51 -0
- package/es/graphic/area.js +82 -0
- package/es/graphic/area.js.map +1 -0
- package/es/graphic/bounds.d.ts +6 -0
- package/es/graphic/bounds.js +16 -0
- package/es/graphic/bounds.js.map +1 -0
- package/es/graphic/builtin-symbol/arrow.d.ts +11 -0
- package/es/graphic/builtin-symbol/arrow.js +28 -0
- package/es/graphic/builtin-symbol/arrow.js.map +1 -0
- package/es/graphic/builtin-symbol/arrow2-down.d.ts +11 -0
- package/es/graphic/builtin-symbol/arrow2-down.js +22 -0
- package/es/graphic/builtin-symbol/arrow2-down.js.map +1 -0
- package/es/graphic/builtin-symbol/arrow2-left.d.ts +11 -0
- package/es/graphic/builtin-symbol/arrow2-left.js +22 -0
- package/es/graphic/builtin-symbol/arrow2-left.js.map +1 -0
- package/es/graphic/builtin-symbol/arrow2-right.d.ts +11 -0
- package/es/graphic/builtin-symbol/arrow2-right.js +22 -0
- package/es/graphic/builtin-symbol/arrow2-right.js.map +1 -0
- package/es/graphic/builtin-symbol/arrow2-up.d.ts +11 -0
- package/es/graphic/builtin-symbol/arrow2-up.js +22 -0
- package/es/graphic/builtin-symbol/arrow2-up.js.map +1 -0
- package/es/graphic/builtin-symbol/base.d.ts +4 -0
- package/es/graphic/builtin-symbol/base.js +12 -0
- package/es/graphic/builtin-symbol/base.js.map +1 -0
- package/es/graphic/builtin-symbol/circle.d.ts +12 -0
- package/es/graphic/builtin-symbol/circle.js +26 -0
- package/es/graphic/builtin-symbol/circle.js.map +1 -0
- package/es/graphic/builtin-symbol/close.d.ts +12 -0
- package/es/graphic/builtin-symbol/close.js +25 -0
- package/es/graphic/builtin-symbol/close.js.map +1 -0
- package/es/graphic/builtin-symbol/cross.d.ts +12 -0
- package/es/graphic/builtin-symbol/cross.js +34 -0
- package/es/graphic/builtin-symbol/cross.js.map +1 -0
- package/es/graphic/builtin-symbol/diamond.d.ts +12 -0
- package/es/graphic/builtin-symbol/diamond.js +24 -0
- package/es/graphic/builtin-symbol/diamond.js.map +1 -0
- package/es/graphic/builtin-symbol/index.d.ts +4 -0
- package/es/graphic/builtin-symbol/index.js +56 -0
- package/es/graphic/builtin-symbol/index.js.map +1 -0
- package/es/graphic/builtin-symbol/line-h.d.ts +12 -0
- package/es/graphic/builtin-symbol/line-h.js +24 -0
- package/es/graphic/builtin-symbol/line-h.js.map +1 -0
- package/es/graphic/builtin-symbol/line-v.d.ts +12 -0
- package/es/graphic/builtin-symbol/line-v.js +24 -0
- package/es/graphic/builtin-symbol/line-v.js.map +1 -0
- package/es/graphic/builtin-symbol/rect.d.ts +11 -0
- package/es/graphic/builtin-symbol/rect.js +22 -0
- package/es/graphic/builtin-symbol/rect.js.map +1 -0
- package/es/graphic/builtin-symbol/square.d.ts +11 -0
- package/es/graphic/builtin-symbol/square.js +21 -0
- package/es/graphic/builtin-symbol/square.js.map +1 -0
- package/es/graphic/builtin-symbol/star.d.ts +11 -0
- package/es/graphic/builtin-symbol/star.js +30 -0
- package/es/graphic/builtin-symbol/star.js.map +1 -0
- package/es/graphic/builtin-symbol/stroke.d.ts +11 -0
- package/es/graphic/builtin-symbol/stroke.js +20 -0
- package/es/graphic/builtin-symbol/stroke.js.map +1 -0
- package/es/graphic/builtin-symbol/thin-triangle.d.ts +11 -0
- package/es/graphic/builtin-symbol/thin-triangle.js +26 -0
- package/es/graphic/builtin-symbol/thin-triangle.js.map +1 -0
- package/es/graphic/builtin-symbol/triangle-down.d.ts +12 -0
- package/es/graphic/builtin-symbol/triangle-down.js +26 -0
- package/es/graphic/builtin-symbol/triangle-down.js.map +1 -0
- package/es/graphic/builtin-symbol/triangle-left.d.ts +12 -0
- package/es/graphic/builtin-symbol/triangle-left.js +26 -0
- package/es/graphic/builtin-symbol/triangle-left.js.map +1 -0
- package/es/graphic/builtin-symbol/triangle-right.d.ts +12 -0
- package/es/graphic/builtin-symbol/triangle-right.js +26 -0
- package/es/graphic/builtin-symbol/triangle-right.js.map +1 -0
- package/es/graphic/builtin-symbol/triangle-up.d.ts +12 -0
- package/es/graphic/builtin-symbol/triangle-up.js +26 -0
- package/es/graphic/builtin-symbol/triangle-up.js.map +1 -0
- package/es/graphic/builtin-symbol/triangle.d.ts +8 -0
- package/es/graphic/builtin-symbol/triangle.js +12 -0
- package/es/graphic/builtin-symbol/triangle.js.map +1 -0
- package/es/graphic/builtin-symbol/utils.d.ts +19 -0
- package/es/graphic/builtin-symbol/utils.js +37 -0
- package/es/graphic/builtin-symbol/utils.js.map +1 -0
- package/es/graphic/builtin-symbol/wedge.d.ts +11 -0
- package/es/graphic/builtin-symbol/wedge.js +22 -0
- package/es/graphic/builtin-symbol/wedge.js.map +1 -0
- package/es/graphic/builtin-symbol/wye.d.ts +11 -0
- package/es/graphic/builtin-symbol/wye.js +30 -0
- package/es/graphic/builtin-symbol/wye.js.map +1 -0
- package/es/graphic/circle.d.ts +47 -0
- package/es/graphic/circle.js +61 -0
- package/es/graphic/circle.js.map +1 -0
- package/es/graphic/config.d.ts +26 -0
- package/es/graphic/config.js +265 -0
- package/es/graphic/config.js.map +1 -0
- package/es/graphic/constants.d.ts +40 -0
- package/es/graphic/constants.js +64 -0
- package/es/graphic/constants.js.map +1 -0
- package/es/graphic/glyph.d.ts +69 -0
- package/es/graphic/glyph.js +122 -0
- package/es/graphic/glyph.js.map +1 -0
- package/es/graphic/graphic-creator.d.ts +36 -0
- package/es/graphic/graphic-creator.js +126 -0
- package/es/graphic/graphic-creator.js.map +1 -0
- package/es/graphic/graphic-service/arc-contribution.d.ts +5 -0
- package/es/graphic/graphic-service/arc-contribution.js +18 -0
- package/es/graphic/graphic-service/arc-contribution.js.map +1 -0
- package/es/graphic/graphic-service/area-contribution.d.ts +1 -0
- package/es/graphic/graphic-service/area-contribution.js +2 -0
- package/es/graphic/graphic-service/area-contribution.js.map +1 -0
- package/es/graphic/graphic-service/circle-contribution.d.ts +5 -0
- package/es/graphic/graphic-service/circle-contribution.js +18 -0
- package/es/graphic/graphic-service/circle-contribution.js.map +1 -0
- package/es/graphic/graphic-service/common-contribution.d.ts +5 -0
- package/es/graphic/graphic-service/common-contribution.js +23 -0
- package/es/graphic/graphic-service/common-contribution.js.map +1 -0
- package/es/graphic/graphic-service/default-theme.d.ts +1 -0
- package/es/graphic/graphic-service/default-theme.js +3 -0
- package/es/graphic/graphic-service/default-theme.js.map +1 -0
- package/es/graphic/graphic-service/graphic-module.d.ts +3 -0
- package/es/graphic/graphic-service/graphic-module.js +34 -0
- package/es/graphic/graphic-service/graphic-module.js.map +1 -0
- package/es/graphic/graphic-service/graphic-service.d.ts +78 -0
- package/es/graphic/graphic-service/graphic-service.js +534 -0
- package/es/graphic/graphic-service/graphic-service.js.map +1 -0
- package/es/graphic/graphic-service/path-contribution.d.ts +5 -0
- package/es/graphic/graphic-service/path-contribution.js +18 -0
- package/es/graphic/graphic-service/path-contribution.js.map +1 -0
- package/es/graphic/graphic-service/rect-contribution.d.ts +5 -0
- package/es/graphic/graphic-service/rect-contribution.js +18 -0
- package/es/graphic/graphic-service/rect-contribution.js.map +1 -0
- package/es/graphic/graphic-service/symbol-contribution.d.ts +7 -0
- package/es/graphic/graphic-service/symbol-contribution.js +29 -0
- package/es/graphic/graphic-service/symbol-contribution.js.map +1 -0
- package/es/graphic/graphic.d.ts +175 -0
- package/es/graphic/graphic.js +639 -0
- package/es/graphic/graphic.js.map +1 -0
- package/es/graphic/group.d.ts +79 -0
- package/es/graphic/group.js +181 -0
- package/es/graphic/group.js.map +1 -0
- package/es/graphic/image.d.ts +60 -0
- package/es/graphic/image.js +95 -0
- package/es/graphic/image.js.map +1 -0
- package/es/graphic/index.d.ts +28 -0
- package/es/graphic/index.js +56 -0
- package/es/graphic/index.js.map +1 -0
- package/es/graphic/line.d.ts +50 -0
- package/es/graphic/line.js +74 -0
- package/es/graphic/line.js.map +1 -0
- package/es/graphic/node-tree.d.ts +77 -0
- package/es/graphic/node-tree.js +351 -0
- package/es/graphic/node-tree.js.map +1 -0
- package/es/graphic/path.d.ts +53 -0
- package/es/graphic/path.js +77 -0
- package/es/graphic/path.js.map +1 -0
- package/es/graphic/polygon.d.ts +49 -0
- package/es/graphic/polygon.js +63 -0
- package/es/graphic/polygon.js.map +1 -0
- package/es/graphic/pyramid3d.d.ts +42 -0
- package/es/graphic/pyramid3d.js +96 -0
- package/es/graphic/pyramid3d.js.map +1 -0
- package/es/graphic/rect.d.ts +47 -0
- package/es/graphic/rect.js +58 -0
- package/es/graphic/rect.js.map +1 -0
- package/es/graphic/rect3d.d.ts +38 -0
- package/es/graphic/rect3d.js +54 -0
- package/es/graphic/rect3d.js.map +1 -0
- package/es/graphic/richtext/frame.d.ts +43 -0
- package/es/graphic/richtext/frame.js +142 -0
- package/es/graphic/richtext/frame.js.map +1 -0
- package/es/graphic/richtext/icon.d.ts +24 -0
- package/es/graphic/richtext/icon.js +41 -0
- package/es/graphic/richtext/icon.js.map +1 -0
- package/es/graphic/richtext/line.d.ts +27 -0
- package/es/graphic/richtext/line.js +95 -0
- package/es/graphic/richtext/line.js.map +1 -0
- package/es/graphic/richtext/paragraph.d.ts +28 -0
- package/es/graphic/richtext/paragraph.js +75 -0
- package/es/graphic/richtext/paragraph.js.map +1 -0
- package/es/graphic/richtext/utils.d.ts +42 -0
- package/es/graphic/richtext/utils.js +178 -0
- package/es/graphic/richtext/utils.js.map +1 -0
- package/es/graphic/richtext/wrapper.d.ts +25 -0
- package/es/graphic/richtext/wrapper.js +48 -0
- package/es/graphic/richtext/wrapper.js.map +1 -0
- package/es/graphic/richtext.d.ts +78 -0
- package/es/graphic/richtext.js +190 -0
- package/es/graphic/richtext.js.map +1 -0
- package/es/graphic/shadow-root.d.ts +13 -0
- package/es/graphic/shadow-root.js +36 -0
- package/es/graphic/shadow-root.js.map +1 -0
- package/es/graphic/symbol.d.ts +53 -0
- package/es/graphic/symbol.js +105 -0
- package/es/graphic/symbol.js.map +1 -0
- package/es/graphic/text.d.ts +65 -0
- package/es/graphic/text.js +247 -0
- package/es/graphic/text.js.map +1 -0
- package/es/graphic/theme.d.ts +20 -0
- package/es/graphic/theme.js +127 -0
- package/es/graphic/theme.js.map +1 -0
- package/es/graphic/tools.d.ts +15 -0
- package/es/graphic/tools.js +162 -0
- package/es/graphic/tools.js.map +1 -0
- package/es/graphic/wrap-text.d.ts +10 -0
- package/es/graphic/wrap-text.js +113 -0
- package/es/graphic/wrap-text.js.map +1 -0
- package/es/index.d.ts +46 -0
- package/es/index.js +92 -0
- package/es/index.js.map +1 -0
- package/es/interface/allocator.d.ts +27 -0
- package/es/interface/allocator.js +2 -0
- package/es/interface/allocator.js.map +1 -0
- package/es/interface/animate.d.ts +191 -0
- package/es/interface/animate.js +2 -0
- package/es/interface/animate.js.map +1 -0
- package/es/interface/camera.d.ts +24 -0
- package/es/interface/camera.js +2 -0
- package/es/interface/camera.js.map +1 -0
- package/es/interface/canvas.d.ts +61 -0
- package/es/interface/canvas.js +2 -0
- package/es/interface/canvas.js.map +1 -0
- package/es/interface/color.d.ts +37 -0
- package/es/interface/color.js +2 -0
- package/es/interface/color.js.map +1 -0
- package/es/interface/common.d.ts +27 -0
- package/es/interface/common.js +2 -0
- package/es/interface/common.js.map +1 -0
- package/es/interface/context.d.ts +196 -0
- package/es/interface/context.js +2 -0
- package/es/interface/context.js.map +1 -0
- package/es/interface/contribution.d.ts +86 -0
- package/es/interface/contribution.js +2 -0
- package/es/interface/contribution.js.map +1 -0
- package/es/interface/core.d.ts +36 -0
- package/es/interface/core.js +2 -0
- package/es/interface/core.js.map +1 -0
- package/es/interface/creator.d.ts +4 -0
- package/es/interface/creator.js +2 -0
- package/es/interface/creator.js.map +1 -0
- package/es/interface/curve.d.ts +42 -0
- package/es/interface/curve.js +2 -0
- package/es/interface/curve.js.map +1 -0
- package/es/interface/event.d.ts +193 -0
- package/es/interface/event.js +2 -0
- package/es/interface/event.js.map +1 -0
- package/es/interface/global.d.ts +153 -0
- package/es/interface/global.js +2 -0
- package/es/interface/global.js.map +1 -0
- package/es/interface/graphic/arc.d.ts +37 -0
- package/es/interface/graphic/arc.js +2 -0
- package/es/interface/graphic/arc.js.map +1 -0
- package/es/interface/graphic/arc3d.d.ts +22 -0
- package/es/interface/graphic/arc3d.js +2 -0
- package/es/interface/graphic/arc3d.js.map +1 -0
- package/es/interface/graphic/area.d.ts +24 -0
- package/es/interface/graphic/area.js +2 -0
- package/es/interface/graphic/area.js.map +1 -0
- package/es/interface/graphic/bounds.d.ts +37 -0
- package/es/interface/graphic/bounds.js +8 -0
- package/es/interface/graphic/bounds.js.map +1 -0
- package/es/interface/graphic/circle.d.ts +8 -0
- package/es/interface/graphic/circle.js +2 -0
- package/es/interface/graphic/circle.js.map +1 -0
- package/es/interface/graphic/creator.d.ts +32 -0
- package/es/interface/graphic/creator.js +2 -0
- package/es/interface/graphic/creator.js.map +1 -0
- package/es/interface/graphic/dynamic-path.d.ts +1 -0
- package/es/interface/graphic/dynamic-path.js +3 -0
- package/es/interface/graphic/dynamic-path.js.map +1 -0
- package/es/interface/graphic/ellipse.d.ts +8 -0
- package/es/interface/graphic/ellipse.js +2 -0
- package/es/interface/graphic/ellipse.js.map +1 -0
- package/es/interface/graphic/face3d.d.ts +11 -0
- package/es/interface/graphic/face3d.js +2 -0
- package/es/interface/graphic/face3d.js.map +1 -0
- package/es/interface/graphic/glyph.d.ts +24 -0
- package/es/interface/graphic/glyph.js +2 -0
- package/es/interface/graphic/glyph.js.map +1 -0
- package/es/interface/graphic/group.d.ts +30 -0
- package/es/interface/graphic/group.js +2 -0
- package/es/interface/graphic/group.js.map +1 -0
- package/es/interface/graphic/image.d.ts +15 -0
- package/es/interface/graphic/image.js +2 -0
- package/es/interface/graphic/image.js.map +1 -0
- package/es/interface/graphic/index.d.ts +26 -0
- package/es/interface/graphic/index.js +52 -0
- package/es/interface/graphic/index.js.map +1 -0
- package/es/interface/graphic/isogon.d.ts +7 -0
- package/es/interface/graphic/isogon.js +2 -0
- package/es/interface/graphic/isogon.js.map +1 -0
- package/es/interface/graphic/line.d.ts +23 -0
- package/es/interface/graphic/line.js +2 -0
- package/es/interface/graphic/line.js.map +1 -0
- package/es/interface/graphic/path.d.ts +14 -0
- package/es/interface/graphic/path.js +2 -0
- package/es/interface/graphic/path.js.map +1 -0
- package/es/interface/graphic/polygon.d.ts +9 -0
- package/es/interface/graphic/polygon.js +2 -0
- package/es/interface/graphic/polygon.js.map +1 -0
- package/es/interface/graphic/polyline.d.ts +3 -0
- package/es/interface/graphic/polyline.js +2 -0
- package/es/interface/graphic/polyline.js.map +1 -0
- package/es/interface/graphic/pyramid3d.d.ts +7 -0
- package/es/interface/graphic/pyramid3d.js +2 -0
- package/es/interface/graphic/pyramid3d.js.map +1 -0
- package/es/interface/graphic/rect.d.ts +11 -0
- package/es/interface/graphic/rect.js +2 -0
- package/es/interface/graphic/rect.js.map +1 -0
- package/es/interface/graphic/rect3d.d.ts +10 -0
- package/es/interface/graphic/rect3d.js +2 -0
- package/es/interface/graphic/rect3d.js.map +1 -0
- package/es/interface/graphic/richText.d.ts +181 -0
- package/es/interface/graphic/richText.js +2 -0
- package/es/interface/graphic/richText.js.map +1 -0
- package/es/interface/graphic/shadow-root.d.ts +5 -0
- package/es/interface/graphic/shadow-root.js +2 -0
- package/es/interface/graphic/shadow-root.js.map +1 -0
- package/es/interface/graphic/svg.d.ts +7 -0
- package/es/interface/graphic/svg.js +2 -0
- package/es/interface/graphic/svg.js.map +1 -0
- package/es/interface/graphic/symbol.d.ts +22 -0
- package/es/interface/graphic/symbol.js +2 -0
- package/es/interface/graphic/symbol.js.map +1 -0
- package/es/interface/graphic/text.d.ts +73 -0
- package/es/interface/graphic/text.js +2 -0
- package/es/interface/graphic/text.js.map +1 -0
- package/es/interface/graphic/theme.d.ts +56 -0
- package/es/interface/graphic/theme.js +2 -0
- package/es/interface/graphic/theme.js.map +1 -0
- package/es/interface/graphic/util.d.ts +15 -0
- package/es/interface/graphic/util.js +2 -0
- package/es/interface/graphic/util.js.map +1 -0
- package/es/interface/graphic-service.d.ts +78 -0
- package/es/interface/graphic-service.js +2 -0
- package/es/interface/graphic-service.js.map +1 -0
- package/es/interface/graphic-utils.d.ts +1 -0
- package/es/interface/graphic-utils.js +3 -0
- package/es/interface/graphic-utils.js.map +1 -0
- package/es/interface/graphic.d.ts +253 -0
- package/es/interface/graphic.js +2 -0
- package/es/interface/graphic.js.map +1 -0
- package/es/interface/index.d.ts +29 -0
- package/es/interface/index.js +58 -0
- package/es/interface/index.js.map +1 -0
- package/es/interface/layer.d.ts +99 -0
- package/es/interface/layer.js +2 -0
- package/es/interface/layer.js.map +1 -0
- package/es/interface/light.d.ts +6 -0
- package/es/interface/light.js +2 -0
- package/es/interface/light.js.map +1 -0
- package/es/interface/loader.d.ts +17 -0
- package/es/interface/loader.js +2 -0
- package/es/interface/loader.js.map +1 -0
- package/es/interface/matrix.d.ts +21 -0
- package/es/interface/matrix.js +2 -0
- package/es/interface/matrix.js.map +1 -0
- package/es/interface/node-tree.d.ts +43 -0
- package/es/interface/node-tree.js +2 -0
- package/es/interface/node-tree.js.map +1 -0
- package/es/interface/path.d.ts +100 -0
- package/es/interface/path.js +2 -0
- package/es/interface/path.js.map +1 -0
- package/es/interface/picker.d.ts +56 -0
- package/es/interface/picker.js +2 -0
- package/es/interface/picker.js.map +1 -0
- package/es/interface/plugin.d.ts +17 -0
- package/es/interface/plugin.js +2 -0
- package/es/interface/plugin.js.map +1 -0
- package/es/interface/render.d.ts +90 -0
- package/es/interface/render.js +2 -0
- package/es/interface/render.js.map +1 -0
- package/es/interface/stage.d.ts +146 -0
- package/es/interface/stage.js +2 -0
- package/es/interface/stage.js.map +1 -0
- package/es/interface/sync-hook.d.ts +26 -0
- package/es/interface/sync-hook.js +2 -0
- package/es/interface/sync-hook.js.map +1 -0
- package/es/interface/text.d.ts +49 -0
- package/es/interface/text.js +2 -0
- package/es/interface/text.js.map +1 -0
- package/es/interface/theme-service.d.ts +1 -0
- package/es/interface/theme-service.js +3 -0
- package/es/interface/theme-service.js.map +1 -0
- package/es/interface/util.d.ts +1 -0
- package/es/interface/util.js +3 -0
- package/es/interface/util.js.map +1 -0
- package/es/interface/window.d.ts +84 -0
- package/es/interface/window.js +2 -0
- package/es/interface/window.js.map +1 -0
- package/es/modules.d.ts +8 -0
- package/es/modules.js +54 -0
- package/es/modules.js.map +1 -0
- package/es/picker/constants.d.ts +4 -0
- package/es/picker/constants.js +8 -0
- package/es/picker/constants.js.map +1 -0
- package/es/picker/global-picker-service.d.ts +13 -0
- package/es/picker/global-picker-service.js +75 -0
- package/es/picker/global-picker-service.js.map +1 -0
- package/es/picker/index.d.ts +4 -0
- package/es/picker/index.js +8 -0
- package/es/picker/index.js.map +1 -0
- package/es/picker/pick-interceptor.d.ts +22 -0
- package/es/picker/pick-interceptor.js +109 -0
- package/es/picker/pick-interceptor.js.map +1 -0
- package/es/picker/pick-modules.d.ts +3 -0
- package/es/picker/pick-modules.js +18 -0
- package/es/picker/pick-modules.js.map +1 -0
- package/es/picker/picker-service.d.ts +18 -0
- package/es/picker/picker-service.js +127 -0
- package/es/picker/picker-service.js.map +1 -0
- package/es/plugins/builtin-plugin/3dview-transform-plugin.d.ts +17 -0
- package/es/plugins/builtin-plugin/3dview-transform-plugin.js +36 -0
- package/es/plugins/builtin-plugin/3dview-transform-plugin.js.map +1 -0
- package/es/plugins/builtin-plugin/auto-render-plugin.d.ts +10 -0
- package/es/plugins/builtin-plugin/auto-render-plugin.js +22 -0
- package/es/plugins/builtin-plugin/auto-render-plugin.js.map +1 -0
- package/es/plugins/builtin-plugin/dirty-bounds-plugin.d.ts +10 -0
- package/es/plugins/builtin-plugin/dirty-bounds-plugin.js +34 -0
- package/es/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -0
- package/es/plugins/builtin-plugin/flex-layout-plugin.d.ts +36 -0
- package/es/plugins/builtin-plugin/flex-layout-plugin.js +179 -0
- package/es/plugins/builtin-plugin/flex-layout-plugin.js.map +1 -0
- package/es/plugins/builtin-plugin/html-attribute-plugin.d.ts +13 -0
- package/es/plugins/builtin-plugin/html-attribute-plugin.js +75 -0
- package/es/plugins/builtin-plugin/html-attribute-plugin.js.map +1 -0
- package/es/plugins/builtin-plugin/incremental-auto-render-plugin.d.ts +15 -0
- package/es/plugins/builtin-plugin/incremental-auto-render-plugin.js +52 -0
- package/es/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -0
- package/es/plugins/builtin-plugin/poptip-plugin.d.ts +1 -0
- package/es/plugins/builtin-plugin/poptip-plugin.js +3 -0
- package/es/plugins/builtin-plugin/poptip-plugin.js.map +1 -0
- package/es/plugins/constants.d.ts +2 -0
- package/es/plugins/constants.js +4 -0
- package/es/plugins/constants.js.map +1 -0
- package/es/plugins/plugin-modules.d.ts +3 -0
- package/es/plugins/plugin-modules.js +15 -0
- package/es/plugins/plugin-modules.js.map +1 -0
- package/es/plugins/plugin-service.d.ts +15 -0
- package/es/plugins/plugin-service.js +57 -0
- package/es/plugins/plugin-service.js.map +1 -0
- package/es/render/contributions/modules.d.ts +2 -0
- package/es/render/contributions/modules.js +6 -0
- package/es/render/contributions/modules.js.map +1 -0
- package/es/render/contributions/render/arc-render.d.ts +11 -0
- package/es/render/contributions/render/arc-render.js +139 -0
- package/es/render/contributions/render/arc-render.js.map +1 -0
- package/es/render/contributions/render/arc3d-render.d.ts +9 -0
- package/es/render/contributions/render/arc3d-render.js +102 -0
- package/es/render/contributions/render/arc3d-render.js.map +1 -0
- package/es/render/contributions/render/area-render.d.ts +12 -0
- package/es/render/contributions/render/area-render.js +219 -0
- package/es/render/contributions/render/area-render.js.map +1 -0
- package/es/render/contributions/render/base-render.d.ts +28 -0
- package/es/render/contributions/render/base-render.js +106 -0
- package/es/render/contributions/render/base-render.js.map +1 -0
- package/es/render/contributions/render/circle-render.d.ts +10 -0
- package/es/render/contributions/render/circle-render.js +50 -0
- package/es/render/contributions/render/circle-render.js.map +1 -0
- package/es/render/contributions/render/clear-screen.d.ts +1 -0
- package/es/render/contributions/render/clear-screen.js +3 -0
- package/es/render/contributions/render/clear-screen.js.map +1 -0
- package/es/render/contributions/render/contributions/arc-contribution-render.d.ts +15 -0
- package/es/render/contributions/render/contributions/arc-contribution-render.js +87 -0
- package/es/render/contributions/render/contributions/arc-contribution-render.js.map +1 -0
- package/es/render/contributions/render/contributions/area-contribution-render.d.ts +12 -0
- package/es/render/contributions/render/contributions/area-contribution-render.js +75 -0
- package/es/render/contributions/render/contributions/area-contribution-render.js.map +1 -0
- package/es/render/contributions/render/contributions/base-contribution-render.d.ts +37 -0
- package/es/render/contributions/render/contributions/base-contribution-render.js +185 -0
- package/es/render/contributions/render/contributions/base-contribution-render.js.map +1 -0
- package/es/render/contributions/render/contributions/circle-contribution-render.d.ts +15 -0
- package/es/render/contributions/render/contributions/circle-contribution-render.js +69 -0
- package/es/render/contributions/render/contributions/circle-contribution-render.js.map +1 -0
- package/es/render/contributions/render/contributions/constants.d.ts +11 -0
- package/es/render/contributions/render/contributions/constants.js +22 -0
- package/es/render/contributions/render/contributions/constants.js.map +1 -0
- package/es/render/contributions/render/contributions/group-contribution-render.d.ts +7 -0
- package/es/render/contributions/render/contributions/group-contribution-render.js +34 -0
- package/es/render/contributions/render/contributions/group-contribution-render.js.map +1 -0
- package/es/render/contributions/render/contributions/image-contribution-render.d.ts +7 -0
- package/es/render/contributions/render/contributions/image-contribution-render.js +70 -0
- package/es/render/contributions/render/contributions/image-contribution-render.js.map +1 -0
- package/es/render/contributions/render/contributions/index.d.ts +7 -0
- package/es/render/contributions/render/contributions/index.js +14 -0
- package/es/render/contributions/render/contributions/index.js.map +1 -0
- package/es/render/contributions/render/contributions/path-contribution-render.d.ts +9 -0
- package/es/render/contributions/render/contributions/path-contribution-render.js +32 -0
- package/es/render/contributions/render/contributions/path-contribution-render.js.map +1 -0
- package/es/render/contributions/render/contributions/polygon-contribution-render.d.ts +9 -0
- package/es/render/contributions/render/contributions/polygon-contribution-render.js +32 -0
- package/es/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -0
- package/es/render/contributions/render/contributions/rect-contribution-render.d.ts +30 -0
- package/es/render/contributions/render/contributions/rect-contribution-render.js +112 -0
- package/es/render/contributions/render/contributions/rect-contribution-render.js.map +1 -0
- package/es/render/contributions/render/contributions/symbol-contribution-render.d.ts +15 -0
- package/es/render/contributions/render/contributions/symbol-contribution-render.js +63 -0
- package/es/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -0
- package/es/render/contributions/render/contributions/text-contribution-render.d.ts +1 -0
- package/es/render/contributions/render/contributions/text-contribution-render.js +2 -0
- package/es/render/contributions/render/contributions/text-contribution-render.js.map +1 -0
- package/es/render/contributions/render/draw-contribution.d.ts +30 -0
- package/es/render/contributions/render/draw-contribution.js +189 -0
- package/es/render/contributions/render/draw-contribution.js.map +1 -0
- package/es/render/contributions/render/draw-interceptor.d.ts +13 -0
- package/es/render/contributions/render/draw-interceptor.js +128 -0
- package/es/render/contributions/render/draw-interceptor.js.map +1 -0
- package/es/render/contributions/render/glyph-render.d.ts +8 -0
- package/es/render/contributions/render/glyph-render.js +36 -0
- package/es/render/contributions/render/glyph-render.js.map +1 -0
- package/es/render/contributions/render/graphic-render.d.ts +6 -0
- package/es/render/contributions/render/graphic-render.js +14 -0
- package/es/render/contributions/render/graphic-render.js.map +1 -0
- package/es/render/contributions/render/group-render.d.ts +10 -0
- package/es/render/contributions/render/group-render.js +91 -0
- package/es/render/contributions/render/group-render.js.map +1 -0
- package/es/render/contributions/render/image-render.d.ts +10 -0
- package/es/render/contributions/render/image-render.js +73 -0
- package/es/render/contributions/render/image-render.js.map +1 -0
- package/es/render/contributions/render/incremental-area-render.d.ts +8 -0
- package/es/render/contributions/render/incremental-area-render.js +46 -0
- package/es/render/contributions/render/incremental-area-render.js.map +1 -0
- package/es/render/contributions/render/incremental-draw-contribution.d.ts +39 -0
- package/es/render/contributions/render/incremental-draw-contribution.js +179 -0
- package/es/render/contributions/render/incremental-draw-contribution.js.map +1 -0
- package/es/render/contributions/render/incremental-line-render.d.ts +8 -0
- package/es/render/contributions/render/incremental-line-render.js +47 -0
- package/es/render/contributions/render/incremental-line-render.js.map +1 -0
- package/es/render/contributions/render/index.d.ts +14 -0
- package/es/render/contributions/render/index.js +28 -0
- package/es/render/contributions/render/index.js.map +1 -0
- package/es/render/contributions/render/line-render.d.ts +10 -0
- package/es/render/contributions/render/line-render.js +139 -0
- package/es/render/contributions/render/line-render.js.map +1 -0
- package/es/render/contributions/render/module.d.ts +3 -0
- package/es/render/contributions/render/module.js +147 -0
- package/es/render/contributions/render/module.js.map +1 -0
- package/es/render/contributions/render/path-render.d.ts +10 -0
- package/es/render/contributions/render/path-render.js +56 -0
- package/es/render/contributions/render/path-render.js.map +1 -0
- package/es/render/contributions/render/polygon-render.d.ts +10 -0
- package/es/render/contributions/render/polygon-render.js +54 -0
- package/es/render/contributions/render/polygon-render.js.map +1 -0
- package/es/render/contributions/render/pyramid3d-render.d.ts +11 -0
- package/es/render/contributions/render/pyramid3d-render.js +93 -0
- package/es/render/contributions/render/pyramid3d-render.js.map +1 -0
- package/es/render/contributions/render/rect-render.d.ts +10 -0
- package/es/render/contributions/render/rect-render.js +62 -0
- package/es/render/contributions/render/rect-render.js.map +1 -0
- package/es/render/contributions/render/rect3d-render.d.ts +11 -0
- package/es/render/contributions/render/rect3d-render.js +96 -0
- package/es/render/contributions/render/rect3d-render.js.map +1 -0
- package/es/render/contributions/render/render-slector.d.ts +4 -0
- package/es/render/contributions/render/render-slector.js +18 -0
- package/es/render/contributions/render/render-slector.js.map +1 -0
- package/es/render/contributions/render/richtext-render.d.ts +9 -0
- package/es/render/contributions/render/richtext-render.js +53 -0
- package/es/render/contributions/render/richtext-render.js.map +1 -0
- package/es/render/contributions/render/symbol-render.d.ts +10 -0
- package/es/render/contributions/render/symbol-render.js +64 -0
- package/es/render/contributions/render/symbol-render.js.map +1 -0
- package/es/render/contributions/render/symbol.d.ts +20 -0
- package/es/render/contributions/render/symbol.js +40 -0
- package/es/render/contributions/render/symbol.js.map +1 -0
- package/es/render/contributions/render/text-render.d.ts +13 -0
- package/es/render/contributions/render/text-render.js +170 -0
- package/es/render/contributions/render/text-render.js.map +1 -0
- package/es/render/contributions/render/utils.d.ts +18 -0
- package/es/render/contributions/render/utils.js +116 -0
- package/es/render/contributions/render/utils.js.map +1 -0
- package/es/render/index.d.ts +3 -0
- package/es/render/index.js +6 -0
- package/es/render/index.js.map +1 -0
- package/es/render/render-modules.d.ts +3 -0
- package/es/render/render-modules.js +8 -0
- package/es/render/render-modules.js.map +1 -0
- package/es/render/render-service.d.ts +19 -0
- package/es/render/render-service.js +57 -0
- package/es/render/render-service.js.map +1 -0
- package/es/resource-loader/loader.d.ts +9 -0
- package/es/resource-loader/loader.js +55 -0
- package/es/resource-loader/loader.js.map +1 -0
- package/es/tapable/Hook.d.ts +12 -0
- package/es/tapable/Hook.js +52 -0
- package/es/tapable/Hook.js.map +1 -0
- package/es/tapable/SyncHook.d.ts +5 -0
- package/es/tapable/SyncHook.js +8 -0
- package/es/tapable/SyncHook.js.map +1 -0
- package/es/tapable/index.d.ts +1 -0
- package/es/tapable/index.js +2 -0
- package/es/tapable/index.js.map +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
2
|
+
import { BaseSymbol } from './base';
|
|
3
|
+
export declare function lineH(ctx: IContext2d, r: number, x: number, y: number, z?: number): boolean;
|
|
4
|
+
export declare class LineHSymbol extends BaseSymbol implements ISymbolClass {
|
|
5
|
+
type: SymbolType;
|
|
6
|
+
pathStr: string;
|
|
7
|
+
draw(ctx: IContext2d, size: number, x: number, y: number, z?: number): boolean;
|
|
8
|
+
drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number, z?: number): boolean;
|
|
9
|
+
drawToSvgPath(size: number, x: number, y: number, z?: number): string;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: LineHSymbol;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseSymbol } from "./base";
|
|
2
|
+
|
|
3
|
+
export function lineH(ctx, r, x, y, z) {
|
|
4
|
+
return ctx.moveTo(x - r, y), ctx.lineTo(x + r, y), !0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export class LineHSymbol extends BaseSymbol {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments), this.type = "lineH", this.pathStr = "M-0.5,0L0.5,0";
|
|
10
|
+
}
|
|
11
|
+
draw(ctx, size, x, y, z) {
|
|
12
|
+
return lineH(ctx, size / 2, x, y, z);
|
|
13
|
+
}
|
|
14
|
+
drawOffset(ctx, size, x, y, offset, z) {
|
|
15
|
+
return lineH(ctx, size / 2 + offset, x, y, z);
|
|
16
|
+
}
|
|
17
|
+
drawToSvgPath(size, x, y, z) {
|
|
18
|
+
const r = size / 2;
|
|
19
|
+
return `M ${x - r}, ${y} L ${x + r},${y}`;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default new LineHSymbol;
|
|
24
|
+
//# sourceMappingURL=line-h.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/builtin-symbol/line-h.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,MAAM,UAAU,KAAK,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;IAChF,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACrB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACrB,OAAO,IAAI,CAAC;AACd,CAAC;AAGD,MAAM,OAAO,WAAY,SAAQ,UAAU;IAA3C;;QACE,SAAI,GAAe,OAAO,CAAC;QAC3B,YAAO,GAAW,eAAe,CAAC;IAgBpC,CAAC;IAdC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;QAClE,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc,EAAE,CAAU;QACxF,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC;QAC5B,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,aAAa,CAAC,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;QAC1D,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;IAC5C,CAAC;CACF;AAED,eAAe,IAAI,WAAW,EAAE,CAAC","file":"line-h.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport { tau } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass, IPath2D } from '../../interface';\nimport { BaseSymbol } from './base';\n\nexport function lineH(ctx: IContext2d, r: number, x: number, y: number, z?: number) {\n ctx.moveTo(x - r, y);\n ctx.lineTo(x + r, y);\n return true;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class LineHSymbol extends BaseSymbol implements ISymbolClass {\n type: SymbolType = 'lineH';\n pathStr: string = 'M-0.5,0L0.5,0';\n\n draw(ctx: IContext2d, size: number, x: number, y: number, z?: number) {\n const r = size / 2;\n return lineH(ctx, r, x, y, z);\n }\n\n drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number, z?: number) {\n const r = size / 2 + offset;\n return lineH(ctx, r, x, y, z);\n }\n\n drawToSvgPath(size: number, x: number, y: number, z?: number): string {\n const r = size / 2;\n return `M ${x - r}, ${y} L ${x + r},${y}`;\n }\n}\n\nexport default new LineHSymbol();\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
2
|
+
import { BaseSymbol } from './base';
|
|
3
|
+
export declare function lineV(ctx: IContext2d, r: number, x: number, y: number, z?: number): boolean;
|
|
4
|
+
export declare class LineVSymbol extends BaseSymbol implements ISymbolClass {
|
|
5
|
+
type: SymbolType;
|
|
6
|
+
pathStr: string;
|
|
7
|
+
draw(ctx: IContext2d, size: number, x: number, y: number, z?: number): boolean;
|
|
8
|
+
drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number, z?: number): boolean;
|
|
9
|
+
drawToSvgPath(size: number, x: number, y: number, z?: number): string;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: LineVSymbol;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseSymbol } from "./base";
|
|
2
|
+
|
|
3
|
+
export function lineV(ctx, r, x, y, z) {
|
|
4
|
+
return ctx.moveTo(x, y - r), ctx.lineTo(x, y + r), !0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export class LineVSymbol extends BaseSymbol {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments), this.type = "lineV", this.pathStr = "M0,-0.5L0,0.5";
|
|
10
|
+
}
|
|
11
|
+
draw(ctx, size, x, y, z) {
|
|
12
|
+
return lineV(ctx, size / 2, x, y, z);
|
|
13
|
+
}
|
|
14
|
+
drawOffset(ctx, size, x, y, offset, z) {
|
|
15
|
+
return lineV(ctx, size / 2 + offset, x, y, z);
|
|
16
|
+
}
|
|
17
|
+
drawToSvgPath(size, x, y, z) {
|
|
18
|
+
const r = size / 2;
|
|
19
|
+
return `M ${x}, ${y - r} L ${x},${y + r}`;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default new LineVSymbol;
|
|
24
|
+
//# sourceMappingURL=line-v.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/builtin-symbol/line-v.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,MAAM,UAAU,KAAK,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;IAChF,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,OAAO,IAAI,CAAC;AACd,CAAC;AAGD,MAAM,OAAO,WAAY,SAAQ,UAAU;IAA3C;;QACE,SAAI,GAAe,OAAO,CAAC;QAC3B,YAAO,GAAW,eAAe,CAAC;IAgBpC,CAAC;IAdC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;QAClE,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc,EAAE,CAAU;QACxF,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC;QAC5B,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,aAAa,CAAC,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;QAC1D,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IAC5C,CAAC;CACF;AAED,eAAe,IAAI,WAAW,EAAE,CAAC","file":"line-v.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport { tau } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass, IPath2D } from '../../interface';\nimport { BaseSymbol } from './base';\n\nexport function lineV(ctx: IContext2d, r: number, x: number, y: number, z?: number) {\n ctx.moveTo(x, y - r);\n ctx.lineTo(x, y + r);\n return true;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class LineVSymbol extends BaseSymbol implements ISymbolClass {\n type: SymbolType = 'lineV';\n pathStr: string = 'M0,-0.5L0,0.5';\n\n draw(ctx: IContext2d, size: number, x: number, y: number, z?: number) {\n const r = size / 2;\n return lineV(ctx, r, x, y, z);\n }\n\n drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number, z?: number) {\n const r = size / 2 + offset;\n return lineV(ctx, r, x, y, z);\n }\n\n drawToSvgPath(size: number, x: number, y: number, z?: number): string {\n const r = size / 2;\n return `M ${x}, ${y - r} L ${x},${y + r}`;\n }\n}\n\nexport default new LineVSymbol();\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
2
|
+
import { BaseSymbol } from './base';
|
|
3
|
+
export declare function rect(ctx: IContext2d, size: [number, number], x: number, y: number): boolean;
|
|
4
|
+
export declare class RectSymbol extends BaseSymbol implements ISymbolClass {
|
|
5
|
+
type: SymbolType;
|
|
6
|
+
pathStr: string;
|
|
7
|
+
draw(ctx: IContext2d, size: number | [number, number], x: number, y: number): boolean;
|
|
8
|
+
drawOffset(ctx: IContext2d, size: number | [number, number], x: number, y: number, offset: number): boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: RectSymbol;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { isNumber } from "@visactor/vutils";
|
|
2
|
+
|
|
3
|
+
import { BaseSymbol } from "./base";
|
|
4
|
+
|
|
5
|
+
export function rect(ctx, size, x, y) {
|
|
6
|
+
return ctx.rect(x - size[0] / 2, y - size[1] / 2, size[0], size[1]), !1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export class RectSymbol extends BaseSymbol {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this.type = "rect", this.pathStr = "M-0.5,-0.5h1v1h-1Z";
|
|
12
|
+
}
|
|
13
|
+
draw(ctx, size, x, y) {
|
|
14
|
+
return rect(ctx, isNumber(size) ? [ size, size ] : size, x, y);
|
|
15
|
+
}
|
|
16
|
+
drawOffset(ctx, size, x, y, offset) {
|
|
17
|
+
return rect(ctx, isNumber(size) ? [ size + 2 * offset, size + 2 * offset ] : [ size[0] + 2 * offset, size[1] + 2 * offset ], x, y);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default new RectSymbol;
|
|
22
|
+
//# sourceMappingURL=rect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/builtin-symbol/rect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAiCpC,MAAM,UAAU,IAAI,CAAC,GAAe,EAAE,IAAsB,EAAE,CAAS,EAAE,CAAS;IAChF,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7D,OAAO,KAAK,CAAC;AACf,CAAC;AAGD,MAAM,OAAO,UAAW,SAAQ,UAAU;IAA1C;;QACE,SAAI,GAAe,MAAM,CAAC;QAC1B,YAAO,GAAW,oBAAoB,CAAC;IAazC,CAAC;IAXC,IAAI,CAAC,GAAe,EAAE,IAA+B,EAAE,CAAS,EAAE,CAAS;QACzE,MAAM,QAAQ,GAAqB,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACxE,OAAO,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAA+B,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc;QAC/F,MAAM,QAAQ,GAAqB,QAAQ,CAAC,IAAI,CAAC;YAC/C,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,GAAG,MAAM,EAAE,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC;YACxC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC;CACF;AAED,eAAe,IAAI,UAAU,EAAE,CAAC","file":"rect.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport { isNumber } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass } from '../../interface';\nimport { BaseSymbol } from './base';\n\n/**\n * 部分源码参考 https://github.com/vega/vega/blob/main/packages/vega-scenegraph/src/path/symbols.js\n * Copyright (c) 2015-2023, University of Washington Interactive Data Lab\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n 1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n 3. Neither the name of the copyright holder nor the names of its contributors\n may be used to endorse or promote products derived from this software\n without specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE\n FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nexport function rect(ctx: IContext2d, size: [number, number], x: number, y: number) {\n ctx.rect(x - size[0] / 2, y - size[1] / 2, size[0], size[1]);\n return false;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class RectSymbol extends BaseSymbol implements ISymbolClass {\n type: SymbolType = 'rect';\n pathStr: string = 'M-0.5,-0.5h1v1h-1Z';\n\n draw(ctx: IContext2d, size: number | [number, number], x: number, y: number) {\n const rectSize: [number, number] = isNumber(size) ? [size, size] : size;\n return rect(ctx, rectSize, x, y);\n }\n\n drawOffset(ctx: IContext2d, size: number | [number, number], x: number, y: number, offset: number) {\n const rectSize: [number, number] = isNumber(size)\n ? [size + 2 * offset, size + 2 * offset]\n : [size[0] + 2 * offset, size[1] + 2 * offset];\n return rect(ctx, rectSize, x, y);\n }\n}\n\nexport default new RectSymbol();\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
2
|
+
import { BaseSymbol } from './base';
|
|
3
|
+
export declare function square(ctx: IContext2d, r: number, x: number, y: number): boolean;
|
|
4
|
+
export declare class SquareSymbol extends BaseSymbol implements ISymbolClass {
|
|
5
|
+
type: SymbolType;
|
|
6
|
+
pathStr: string;
|
|
7
|
+
draw(ctx: IContext2d, size: number, x: number, y: number): boolean;
|
|
8
|
+
drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number): boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: SquareSymbol;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseSymbol } from "./base";
|
|
2
|
+
|
|
3
|
+
export function square(ctx, r, x, y) {
|
|
4
|
+
const wh = 2 * r;
|
|
5
|
+
return ctx.rect(x - r, y - r, wh, wh), !1;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export class SquareSymbol extends BaseSymbol {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments), this.type = "square", this.pathStr = "M-0.5,-0.5h1v1h-1Z";
|
|
11
|
+
}
|
|
12
|
+
draw(ctx, size, x, y) {
|
|
13
|
+
return square(ctx, size / 2, x, y);
|
|
14
|
+
}
|
|
15
|
+
drawOffset(ctx, size, x, y, offset) {
|
|
16
|
+
return square(ctx, size / 2 + offset, x, y);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default new SquareSymbol;
|
|
21
|
+
//# sourceMappingURL=square.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/builtin-symbol/square.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAoBpC,MAAM,UAAU,MAAM,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;IACrE,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/B,OAAO,KAAK,CAAC;AACf,CAAC;AAGD,MAAM,OAAO,YAAa,SAAQ,UAAU;IAA5C;;QACE,SAAI,GAAe,QAAQ,CAAC;QAC5B,YAAO,GAAW,oBAAoB,CAAC;IAWzC,CAAC;IATC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS;QACtD,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc;QAC5E,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC;QAC5B,OAAO,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;CACF;AAED,eAAe,IAAI,YAAY,EAAE,CAAC","file":"square.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass } from '../../interface';\nimport { BaseSymbol } from './base';\n\n/**\n * \n *Copyright 2010-2021 Mike Bostock\n\n Permission to use, copy, modify, and/or distribute this software for any purpose\n with or without fee is hereby granted, provided that the above copyright notice\n and this permission notice appear in all copies.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\n FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\n OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\n TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\n THIS SOFTWARE.\n */\n// 借鉴自d3\n// https://github.com/d3/d3-shape/blob/main/src/symbol/square.js\nexport function square(ctx: IContext2d, r: number, x: number, y: number) {\n const wh = r * 2;\n ctx.rect(x - r, y - r, wh, wh);\n return false;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class SquareSymbol extends BaseSymbol implements ISymbolClass {\n type: SymbolType = 'square';\n pathStr: string = 'M-0.5,-0.5h1v1h-1Z';\n\n draw(ctx: IContext2d, size: number, x: number, y: number) {\n const r = size / 2;\n return square(ctx, r, x, y);\n }\n\n drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number) {\n const r = size / 2 + offset;\n return square(ctx, r, x, y);\n }\n}\n\nexport default new SquareSymbol();\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
2
|
+
import { BaseSymbol } from './base';
|
|
3
|
+
export declare function star(ctx: IContext2d, r: number, transX: number, transY: number): boolean;
|
|
4
|
+
export declare class StarSymbol extends BaseSymbol implements ISymbolClass {
|
|
5
|
+
type: SymbolType;
|
|
6
|
+
pathStr: string;
|
|
7
|
+
draw(ctx: IContext2d, size: number, transX: number, transY: number): boolean;
|
|
8
|
+
drawOffset(ctx: IContext2d, size: number, transX: number, transY: number, offset: number): boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: StarSymbol;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { tau } from "@visactor/vutils";
|
|
2
|
+
|
|
3
|
+
import { BaseSymbol } from "./base";
|
|
4
|
+
|
|
5
|
+
const kr = Math.sin(Math.PI / 10) / Math.sin(7 * Math.PI / 10), kx = Math.sin(tau / 10) * kr, ky = -Math.cos(tau / 10) * kr;
|
|
6
|
+
|
|
7
|
+
export function star(ctx, r, transX, transY) {
|
|
8
|
+
const x = kx * r, y = ky * r;
|
|
9
|
+
ctx.moveTo(transX, -r + transY), ctx.lineTo(x + transX, y + transY);
|
|
10
|
+
for (let i = 1; i < 5; ++i) {
|
|
11
|
+
const a = tau * i / 5, c = Math.cos(a), s = Math.sin(a);
|
|
12
|
+
ctx.lineTo(s * r + transX, -c * r + transY), ctx.lineTo(c * x - s * y + transX, s * x + c * y + transY);
|
|
13
|
+
}
|
|
14
|
+
return ctx.closePath(), !0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class StarSymbol extends BaseSymbol {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments), this.type = "star", this.pathStr = "M4.51351666838205,0A4.51351666838205,4.51351666838205,0,1,1,-4.51351666838205,0A4.51351666838205,4.51351666838205,0,1,1,4.51351666838205,0";
|
|
20
|
+
}
|
|
21
|
+
draw(ctx, size, transX, transY) {
|
|
22
|
+
return star(ctx, size / 2, transX, transY);
|
|
23
|
+
}
|
|
24
|
+
drawOffset(ctx, size, transX, transY, offset) {
|
|
25
|
+
return star(ctx, size / 2 + offset, transX, transY);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default new StarSymbol;
|
|
30
|
+
//# sourceMappingURL=star.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/builtin-symbol/star.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAqBpC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC;AACjE,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;AACnC,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;AACpC,MAAM,UAAU,IAAI,CAAC,GAAe,EAAE,CAAS,EAAE,MAAc,EAAE,MAAc;IAE7E,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACjB,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACjB,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;IAChC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC;IACnC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE;QAC1B,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;QACxB,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACtB,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACtB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;QAC5C,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;KAC5D;IACD,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,OAAO,IAAI,CAAC;AACd,CAAC;AAGD,MAAM,OAAO,UAAW,SAAQ,UAAU;IAA1C;;QACE,SAAI,GAAe,MAAM,CAAC;QAE1B,YAAO,GAEL,4IAA4I,CAAC;IAWjJ,CAAC;IATC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,MAAc,EAAE,MAAc;QAChE,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,IAAI,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,MAAc,EAAE,MAAc,EAAE,MAAc;QACtF,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;CACF;AAED,eAAe,IAAI,UAAU,EAAE,CAAC","file":"star.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport { tau } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass } from '../../interface';\nimport { BaseSymbol } from './base';\n\n/**\n * \n *Copyright 2010-2021 Mike Bostock\n\n Permission to use, copy, modify, and/or distribute this software for any purpose\n with or without fee is hereby granted, provided that the above copyright notice\n and this permission notice appear in all copies.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\n FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\n OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\n TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\n THIS SOFTWARE.\n */\n// 借鉴自d3\n// https://github.com/d3/d3-shape/blob/main/src/symbol/star.js\n// const ka = 0.8908130915292852281;\nconst kr = Math.sin(Math.PI / 10) / Math.sin((7 * Math.PI) / 10);\nconst kx = Math.sin(tau / 10) * kr;\nconst ky = -Math.cos(tau / 10) * kr;\nexport function star(ctx: IContext2d, r: number, transX: number, transY: number) {\n // const r = sqrt(size * ka);\n const x = kx * r;\n const y = ky * r;\n ctx.moveTo(transX, -r + transY);\n ctx.lineTo(x + transX, y + transY);\n for (let i = 1; i < 5; ++i) {\n const a = (tau * i) / 5;\n const c = Math.cos(a);\n const s = Math.sin(a);\n ctx.lineTo(s * r + transX, -c * r + transY);\n ctx.lineTo(c * x - s * y + transX, s * x + c * y + transY);\n }\n ctx.closePath();\n return true;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class StarSymbol extends BaseSymbol implements ISymbolClass {\n type: SymbolType = 'star';\n /* eslint-disable max-len */\n pathStr: string =\n /* eslint-disable max-len */\n 'M4.51351666838205,0A4.51351666838205,4.51351666838205,0,1,1,-4.51351666838205,0A4.51351666838205,4.51351666838205,0,1,1,4.51351666838205,0';\n\n draw(ctx: IContext2d, size: number, transX: number, transY: number) {\n const r = size / 2;\n return star(ctx, r, transX, transY);\n }\n\n drawOffset(ctx: IContext2d, size: number, transX: number, transY: number, offset: number) {\n const r = size / 2 + offset;\n return star(ctx, r, transX, transY);\n }\n}\n\nexport default new StarSymbol();\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
2
|
+
import { BaseSymbol } from './base';
|
|
3
|
+
export declare function stroke(ctx: IContext2d, r: number, transX: number, transY: number): boolean;
|
|
4
|
+
export declare class StrokeSymbol extends BaseSymbol implements ISymbolClass {
|
|
5
|
+
type: SymbolType;
|
|
6
|
+
pathStr: '';
|
|
7
|
+
draw(ctx: IContext2d, size: number, transX: number, transY: number): boolean;
|
|
8
|
+
drawOffset(ctx: IContext2d, size: number, transX: number, transY: number, offset: number): boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: StrokeSymbol;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseSymbol } from "./base";
|
|
2
|
+
|
|
3
|
+
export function stroke(ctx, r, transX, transY) {
|
|
4
|
+
return ctx.moveTo(-r + transX, transY), ctx.lineTo(transX, r + transY), !1;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export class StrokeSymbol extends BaseSymbol {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments), this.type = "stroke", this.pathStr = "";
|
|
10
|
+
}
|
|
11
|
+
draw(ctx, size, transX, transY) {
|
|
12
|
+
return stroke(ctx, size / 2, transX, transY);
|
|
13
|
+
}
|
|
14
|
+
drawOffset(ctx, size, transX, transY, offset) {
|
|
15
|
+
return stroke(ctx, size / 2 + offset, transX, transY);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default new StrokeSymbol;
|
|
20
|
+
//# sourceMappingURL=stroke.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/builtin-symbol/stroke.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAiCpC,MAAM,UAAU,MAAM,CAAC,GAAe,EAAE,CAAS,EAAE,MAAc,EAAE,MAAc;IAC/E,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC;IAC/B,OAAO,KAAK,CAAC;AACf,CAAC;AAGD,MAAM,OAAO,YAAa,SAAQ,UAAU;IAA5C;;QACE,SAAI,GAAe,QAAQ,CAAC;QAC5B,YAAO,GAAO,EAAE,CAAC;IAWnB,CAAC;IATC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,MAAc,EAAE,MAAc;QAChE,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,MAAc,EAAE,MAAc,EAAE,MAAc;QACtF,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC;QAC5B,OAAO,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,CAAC;CACF;AAED,eAAe,IAAI,YAAY,EAAE,CAAC","file":"stroke.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass } from '../../interface';\nimport { BaseSymbol } from './base';\n\n/**\n * 部分源码参考 https://github.com/vega/vega/blob/main/packages/vega-scenegraph/src/path/symbols.js\n * Copyright (c) 2015-2023, University of Washington Interactive Data Lab\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n 1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n 3. Neither the name of the copyright holder nor the names of its contributors\n may be used to endorse or promote products derived from this software\n without specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE\n FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nexport function stroke(ctx: IContext2d, r: number, transX: number, transY: number) {\n ctx.moveTo(-r + transX, transY);\n ctx.lineTo(transX, r + transY);\n return false;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class StrokeSymbol extends BaseSymbol implements ISymbolClass {\n type: SymbolType = 'stroke';\n pathStr: '' = '';\n\n draw(ctx: IContext2d, size: number, transX: number, transY: number) {\n const r = size / 2;\n return stroke(ctx, r, transX, transY);\n }\n\n drawOffset(ctx: IContext2d, size: number, transX: number, transY: number, offset: number) {\n const r = size / 2 + offset;\n return stroke(ctx, r, transX, transY);\n }\n}\n\nexport default new StrokeSymbol();\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
2
|
+
import { TriangleUpSymbol } from './triangle-up';
|
|
3
|
+
export declare function thinTriangle(ctx: IContext2d, r: number, x: number, y: number): boolean;
|
|
4
|
+
export declare class ThinTriangleSymbol extends TriangleUpSymbol implements ISymbolClass {
|
|
5
|
+
type: SymbolType;
|
|
6
|
+
pathStr: string;
|
|
7
|
+
draw(ctx: IContext2d, size: number, x: number, y: number): boolean;
|
|
8
|
+
drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number): boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: ThinTriangleSymbol;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { sqrt } from "@visactor/vutils";
|
|
2
|
+
|
|
3
|
+
import { TriangleUpSymbol } from "./triangle-up";
|
|
4
|
+
|
|
5
|
+
const sqrt3 = sqrt(3);
|
|
6
|
+
|
|
7
|
+
export function thinTriangle(ctx, r, x, y) {
|
|
8
|
+
const h = r * sqrt3;
|
|
9
|
+
return ctx.moveTo(x, y + -h / 3 * 2), ctx.lineTo(r + x, y + h), ctx.lineTo(x - r, y + h),
|
|
10
|
+
ctx.closePath(), !0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class ThinTriangleSymbol extends TriangleUpSymbol {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.type = "thinTriangle", this.pathStr = "M0,-0.5773502691896257L-0.5,0.28867513459481287L0.5,0.28867513459481287Z";
|
|
16
|
+
}
|
|
17
|
+
draw(ctx, size, x, y) {
|
|
18
|
+
return thinTriangle(ctx, size / 2 / sqrt3, x, y);
|
|
19
|
+
}
|
|
20
|
+
drawOffset(ctx, size, x, y, offset) {
|
|
21
|
+
return thinTriangle(ctx, size / 2 / sqrt3 + offset, x, y);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default new ThinTriangleSymbol;
|
|
26
|
+
//# sourceMappingURL=thin-triangle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/builtin-symbol/thin-triangle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAa,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAqB5D,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;AAEtB,MAAM,UAAU,YAAY,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;IAC3E,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACpB,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,OAAO,kBAAmB,SAAQ,gBAAgB;IAAxD;;QACE,SAAI,GAAe,cAAc,CAAC;QAClC,YAAO,GAAW,0EAA0E,CAAC;IAW/F,CAAC;IATC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS;QACtD,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC;QAC3B,OAAO,YAAY,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACpC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc;QAC5E,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,KAAK,GAAG,MAAM,CAAC;QACpC,OAAO,YAAY,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACpC,CAAC;CACF;AAED,eAAe,IAAI,kBAAkB,EAAE,CAAC","file":"thin-triangle.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport { sqrt } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass } from '../../interface';\nimport { trianglUp, TriangleUpSymbol } from './triangle-up';\n\n/**\n * \n *Copyright 2010-2021 Mike Bostock\n\n Permission to use, copy, modify, and/or distribute this software for any purpose\n with or without fee is hereby granted, provided that the above copyright notice\n and this permission notice appear in all copies.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\n FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\n OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\n TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\n THIS SOFTWARE.\n */\n// 借鉴自d3\n// https://github.com/d3/d3-shape/blob/main/src/symbol/triangle.js\n\nconst sqrt3 = sqrt(3);\n\nexport function thinTriangle(ctx: IContext2d, r: number, x: number, y: number) {\n const h = r * sqrt3;\n ctx.moveTo(x, y + (-h / 3) * 2);\n ctx.lineTo(r + x, y + h);\n ctx.lineTo(x - r, y + h);\n ctx.closePath();\n return true;\n}\n\nexport class ThinTriangleSymbol extends TriangleUpSymbol implements ISymbolClass {\n type: SymbolType = 'thinTriangle';\n pathStr: string = 'M0,-0.5773502691896257L-0.5,0.28867513459481287L0.5,0.28867513459481287Z';\n\n draw(ctx: IContext2d, size: number, x: number, y: number) {\n const r = size / 2 / sqrt3;\n return thinTriangle(ctx, r, x, y);\n }\n\n drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number) {\n const r = size / 2 / sqrt3 + offset;\n return thinTriangle(ctx, r, x, y);\n }\n}\n\nexport default new ThinTriangleSymbol();\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
2
|
+
import { BaseSymbol } from './base';
|
|
3
|
+
export declare function trianglDown(ctx: IContext2d, r: number, x: number, y: number): boolean;
|
|
4
|
+
export declare function trianglDownOffset(ctx: IContext2d, r: number, x: number, y: number, offset: number): boolean;
|
|
5
|
+
export declare class TriangleDownSymbol extends BaseSymbol implements ISymbolClass {
|
|
6
|
+
type: SymbolType;
|
|
7
|
+
pathStr: string;
|
|
8
|
+
draw(ctx: IContext2d, size: number, x: number, y: number): boolean;
|
|
9
|
+
drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number): boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: TriangleDownSymbol;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseSymbol } from "./base";
|
|
2
|
+
|
|
3
|
+
export function trianglDown(ctx, r, x, y) {
|
|
4
|
+
return ctx.moveTo(x - r, y - r), ctx.lineTo(x + r, y - r), ctx.lineTo(x, y + r),
|
|
5
|
+
ctx.closePath(), !0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function trianglDownOffset(ctx, r, x, y, offset) {
|
|
9
|
+
return ctx.moveTo(x - r - 2 * offset, y - r - offset), ctx.lineTo(x + r + 2 * offset, y - r - offset),
|
|
10
|
+
ctx.lineTo(x, y + r + 2 * offset), ctx.closePath(), !0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class TriangleDownSymbol extends BaseSymbol {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.type = "triangleDown", this.pathStr = "M-0.5,-0.5 L0.5,-0.5 L0,0.5 Z";
|
|
16
|
+
}
|
|
17
|
+
draw(ctx, size, x, y) {
|
|
18
|
+
return trianglDown(ctx, size / 2, x, y);
|
|
19
|
+
}
|
|
20
|
+
drawOffset(ctx, size, x, y, offset) {
|
|
21
|
+
return trianglDownOffset(ctx, size / 2, x, y, offset);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default new TriangleDownSymbol;
|
|
26
|
+
//# sourceMappingURL=triangle-down.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/builtin-symbol/triangle-down.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAqBpC,MAAM,UAAU,WAAW,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;IAC1E,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc;IAChG,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;IAC/C,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;IAC/C,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC;IAClC,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,OAAO,IAAI,CAAC;AACd,CAAC;AAGD,MAAM,OAAO,kBAAmB,SAAQ,UAAU;IAAlD;;QACE,SAAI,GAAe,cAAc,CAAC;QAClC,YAAO,GAAW,+BAA+B,CAAC;IAWpD,CAAC;IATC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS;QACtD,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc;QAC5E,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,iBAAiB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;CACF;AAED,eAAe,IAAI,kBAAkB,EAAE,CAAC","file":"triangle-down.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass } from '../../interface';\nimport { BaseSymbol } from './base';\n\n/**\n * \n *Copyright 2010-2021 Mike Bostock\n\n Permission to use, copy, modify, and/or distribute this software for any purpose\n with or without fee is hereby granted, provided that the above copyright notice\n and this permission notice appear in all copies.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\n FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\n OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\n TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\n THIS SOFTWARE.\n */\n// 借鉴自d3\n// https://github.com/d3/d3-shape/blob/main/src/symbol/triangle.js\n\nexport function trianglDown(ctx: IContext2d, r: number, x: number, y: number) {\n ctx.moveTo(x - r, y - r);\n ctx.lineTo(x + r, y - r);\n ctx.lineTo(x, y + r);\n ctx.closePath();\n return true;\n}\n\nexport function trianglDownOffset(ctx: IContext2d, r: number, x: number, y: number, offset: number) {\n ctx.moveTo(x - r - offset * 2, y - r - offset);\n ctx.lineTo(x + r + offset * 2, y - r - offset);\n ctx.lineTo(x, y + r + offset * 2);\n ctx.closePath();\n return true;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class TriangleDownSymbol extends BaseSymbol implements ISymbolClass {\n type: SymbolType = 'triangleDown';\n pathStr: string = 'M-0.5,-0.5 L0.5,-0.5 L0,0.5 Z';\n\n draw(ctx: IContext2d, size: number, x: number, y: number) {\n const r = size / 2;\n return trianglDown(ctx, r, x, y);\n }\n\n drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number) {\n const r = size / 2;\n return trianglDownOffset(ctx, r, x, y, offset);\n }\n}\n\nexport default new TriangleDownSymbol();\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
2
|
+
import { BaseSymbol } from './base';
|
|
3
|
+
export declare function trianglLeft(ctx: IContext2d, r: number, x: number, y: number): boolean;
|
|
4
|
+
export declare function trianglLeftOffset(ctx: IContext2d, r: number, x: number, y: number, offset: number): boolean;
|
|
5
|
+
export declare class TriangleLeftSymbol extends BaseSymbol implements ISymbolClass {
|
|
6
|
+
type: SymbolType;
|
|
7
|
+
pathStr: string;
|
|
8
|
+
draw(ctx: IContext2d, size: number, x: number, y: number): boolean;
|
|
9
|
+
drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number): boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: TriangleLeftSymbol;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseSymbol } from "./base";
|
|
2
|
+
|
|
3
|
+
export function trianglLeft(ctx, r, x, y) {
|
|
4
|
+
return ctx.moveTo(-r + x, y), ctx.lineTo(r + x, r + y), ctx.lineTo(r + x, y - r),
|
|
5
|
+
ctx.closePath(), !0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function trianglLeftOffset(ctx, r, x, y, offset) {
|
|
9
|
+
return ctx.moveTo(-r + x - 2 * offset, y), ctx.lineTo(r + x + offset, r + y + 2 * offset),
|
|
10
|
+
ctx.lineTo(r + x + offset, y - r - 2 * offset), ctx.closePath(), !0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class TriangleLeftSymbol extends BaseSymbol {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.type = "triangleLeft", this.pathStr = "M-0.5,0 L0.5,0.5 L0.5,-0.5 Z";
|
|
16
|
+
}
|
|
17
|
+
draw(ctx, size, x, y) {
|
|
18
|
+
return trianglLeft(ctx, size / 2, x, y);
|
|
19
|
+
}
|
|
20
|
+
drawOffset(ctx, size, x, y, offset) {
|
|
21
|
+
return trianglLeftOffset(ctx, size / 2, x, y, offset);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default new TriangleLeftSymbol;
|
|
26
|
+
//# sourceMappingURL=triangle-left.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/builtin-symbol/triangle-left.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAqBpC,MAAM,UAAU,WAAW,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;IAC1E,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACtB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc;IAChG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC;IACnC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;IAC/C,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;IAC/C,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,OAAO,IAAI,CAAC;AACd,CAAC;AAGD,MAAM,OAAO,kBAAmB,SAAQ,UAAU;IAAlD;;QACE,SAAI,GAAe,cAAc,CAAC;QAClC,YAAO,GAAW,8BAA8B,CAAC;IAWnD,CAAC;IATC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS;QACtD,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc;QAC5E,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,iBAAiB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;CACF;AAED,eAAe,IAAI,kBAAkB,EAAE,CAAC","file":"triangle-left.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass } from '../../interface';\nimport { BaseSymbol } from './base';\n\n/**\n * \n *Copyright 2010-2021 Mike Bostock\n\n Permission to use, copy, modify, and/or distribute this software for any purpose\n with or without fee is hereby granted, provided that the above copyright notice\n and this permission notice appear in all copies.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\n FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\n OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\n TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\n THIS SOFTWARE.\n */\n// 借鉴自d3\n// https://github.com/d3/d3-shape/blob/main/src/symbol/triangle.js\n\nexport function trianglLeft(ctx: IContext2d, r: number, x: number, y: number) {\n ctx.moveTo(-r + x, y);\n ctx.lineTo(r + x, r + y);\n ctx.lineTo(r + x, y - r);\n ctx.closePath();\n return true;\n}\n\nexport function trianglLeftOffset(ctx: IContext2d, r: number, x: number, y: number, offset: number) {\n ctx.moveTo(-r + x - 2 * offset, y);\n ctx.lineTo(r + x + offset, r + y + 2 * offset);\n ctx.lineTo(r + x + offset, y - r - 2 * offset);\n ctx.closePath();\n return true;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class TriangleLeftSymbol extends BaseSymbol implements ISymbolClass {\n type: SymbolType = 'triangleLeft';\n pathStr: string = 'M-0.5,0 L0.5,0.5 L0.5,-0.5 Z';\n\n draw(ctx: IContext2d, size: number, x: number, y: number) {\n const r = size / 2;\n return trianglLeft(ctx, r, x, y);\n }\n\n drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number) {\n const r = size / 2;\n return trianglLeftOffset(ctx, r, x, y, offset);\n }\n}\n\nexport default new TriangleLeftSymbol();\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
2
|
+
import { BaseSymbol } from './base';
|
|
3
|
+
export declare function trianglRight(ctx: IContext2d, r: number, x: number, y: number): boolean;
|
|
4
|
+
export declare function trianglRightOffset(ctx: IContext2d, r: number, x: number, y: number, offset: number): boolean;
|
|
5
|
+
export declare class TriangleRightSymbol extends BaseSymbol implements ISymbolClass {
|
|
6
|
+
type: SymbolType;
|
|
7
|
+
pathStr: string;
|
|
8
|
+
draw(ctx: IContext2d, size: number, x: number, y: number): boolean;
|
|
9
|
+
drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number): boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: TriangleRightSymbol;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseSymbol } from "./base";
|
|
2
|
+
|
|
3
|
+
export function trianglRight(ctx, r, x, y) {
|
|
4
|
+
return ctx.moveTo(x - r, r + y), ctx.lineTo(r + x, y), ctx.lineTo(x - r, y - r),
|
|
5
|
+
ctx.closePath(), !0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function trianglRightOffset(ctx, r, x, y, offset) {
|
|
9
|
+
return ctx.moveTo(x - r - offset, r + y + 2 * offset), ctx.lineTo(r + x + 2 * offset, y),
|
|
10
|
+
ctx.lineTo(x - r - offset, y - r - 2 * offset), ctx.closePath(), !0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class TriangleRightSymbol extends BaseSymbol {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.type = "triangleRight", this.pathStr = "M-0.5,0.5 L0.5,0 L-0.5,-0.5 Z";
|
|
16
|
+
}
|
|
17
|
+
draw(ctx, size, x, y) {
|
|
18
|
+
return trianglRight(ctx, size / 2, x, y);
|
|
19
|
+
}
|
|
20
|
+
drawOffset(ctx, size, x, y, offset) {
|
|
21
|
+
return trianglRightOffset(ctx, size / 2, x, y, offset);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default new TriangleRightSymbol;
|
|
26
|
+
//# sourceMappingURL=triangle-right.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/builtin-symbol/triangle-right.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAqBpC,MAAM,UAAU,YAAY,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;IAC3E,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACrB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc;IACjG,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;IAC/C,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC;IAClC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;IAC/C,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,OAAO,IAAI,CAAC;AACd,CAAC;AAGD,MAAM,OAAO,mBAAoB,SAAQ,UAAU;IAAnD;;QACE,SAAI,GAAe,eAAe,CAAC;QACnC,YAAO,GAAW,+BAA+B,CAAC;IAWpD,CAAC;IATC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS;QACtD,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,YAAY,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACpC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc;QAC5E,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,kBAAkB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;CACF;AAED,eAAe,IAAI,mBAAmB,EAAE,CAAC","file":"triangle-right.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass } from '../../interface';\nimport { BaseSymbol } from './base';\n\n/**\n * \n *Copyright 2010-2021 Mike Bostock\n\n Permission to use, copy, modify, and/or distribute this software for any purpose\n with or without fee is hereby granted, provided that the above copyright notice\n and this permission notice appear in all copies.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\n FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\n OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\n TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\n THIS SOFTWARE.\n */\n// 借鉴自d3\n// https://github.com/d3/d3-shape/blob/main/src/symbol/triangle.js\n\nexport function trianglRight(ctx: IContext2d, r: number, x: number, y: number) {\n ctx.moveTo(x - r, r + y);\n ctx.lineTo(r + x, y);\n ctx.lineTo(x - r, y - r);\n ctx.closePath();\n return true;\n}\n\nexport function trianglRightOffset(ctx: IContext2d, r: number, x: number, y: number, offset: number) {\n ctx.moveTo(x - r - offset, r + y + 2 * offset);\n ctx.lineTo(r + x + 2 * offset, y);\n ctx.lineTo(x - r - offset, y - r - 2 * offset);\n ctx.closePath();\n return true;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class TriangleRightSymbol extends BaseSymbol implements ISymbolClass {\n type: SymbolType = 'triangleRight';\n pathStr: string = 'M-0.5,0.5 L0.5,0 L-0.5,-0.5 Z';\n\n draw(ctx: IContext2d, size: number, x: number, y: number) {\n const r = size / 2;\n return trianglRight(ctx, r, x, y);\n }\n\n drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number) {\n const r = size / 2;\n return trianglRightOffset(ctx, r, x, y, offset);\n }\n}\n\nexport default new TriangleRightSymbol();\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
2
|
+
import { BaseSymbol } from './base';
|
|
3
|
+
export declare function trianglUp(ctx: IContext2d, r: number, x: number, y: number): boolean;
|
|
4
|
+
export declare function trianglUpOffset(ctx: IContext2d, r: number, x: number, y: number, offset: number): boolean;
|
|
5
|
+
export declare class TriangleUpSymbol extends BaseSymbol implements ISymbolClass {
|
|
6
|
+
type: SymbolType;
|
|
7
|
+
pathStr: string;
|
|
8
|
+
draw(ctx: IContext2d, size: number, x: number, y: number): boolean;
|
|
9
|
+
drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number): boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: TriangleUpSymbol;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseSymbol } from "./base";
|
|
2
|
+
|
|
3
|
+
export function trianglUp(ctx, r, x, y) {
|
|
4
|
+
return ctx.moveTo(x + r, r + y), ctx.lineTo(x - r, r + y), ctx.lineTo(x, y - r),
|
|
5
|
+
ctx.closePath(), !0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function trianglUpOffset(ctx, r, x, y, offset) {
|
|
9
|
+
return ctx.moveTo(x + r + 2 * offset, r + y + offset), ctx.lineTo(x - r - 2 * offset, r + y + offset),
|
|
10
|
+
ctx.lineTo(x, y - r - 2 * offset), ctx.closePath(), !0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class TriangleUpSymbol extends BaseSymbol {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.type = "triangleUp", this.pathStr = "M0.5,0.5 L-0.5,0.5 L0,-0.5 Z";
|
|
16
|
+
}
|
|
17
|
+
draw(ctx, size, x, y) {
|
|
18
|
+
return trianglUp(ctx, size / 2, x, y);
|
|
19
|
+
}
|
|
20
|
+
drawOffset(ctx, size, x, y, offset) {
|
|
21
|
+
return trianglUpOffset(ctx, size / 2, x, y, offset);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default new TriangleUpSymbol;
|
|
26
|
+
//# sourceMappingURL=triangle-up.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/builtin-symbol/triangle-up.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAqBpC,MAAM,UAAU,SAAS,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;IACxE,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc;IAC9F,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;IAC/C,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;IAC/C,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC;IAClC,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,OAAO,IAAI,CAAC;AACd,CAAC;AAGD,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAAhD;;QACE,SAAI,GAAe,YAAY,CAAC;QAChC,YAAO,GAAW,8BAA8B,CAAC;IAWnD,CAAC;IATC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS;QACtD,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,SAAS,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACjC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc;QAC5E,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,eAAe,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;IAC/C,CAAC;CACF;AAED,eAAe,IAAI,gBAAgB,EAAE,CAAC","file":"triangle-up.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass } from '../../interface';\nimport { BaseSymbol } from './base';\n\n/**\n * \n *Copyright 2010-2021 Mike Bostock\n\n Permission to use, copy, modify, and/or distribute this software for any purpose\n with or without fee is hereby granted, provided that the above copyright notice\n and this permission notice appear in all copies.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\n FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\n OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\n TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\n THIS SOFTWARE.\n */\n// 借鉴自d3\n// https://github.com/d3/d3-shape/blob/main/src/symbol/triangle.js\n\nexport function trianglUp(ctx: IContext2d, r: number, x: number, y: number) {\n ctx.moveTo(x + r, r + y);\n ctx.lineTo(x - r, r + y);\n ctx.lineTo(x, y - r);\n ctx.closePath();\n return true;\n}\n\nexport function trianglUpOffset(ctx: IContext2d, r: number, x: number, y: number, offset: number) {\n ctx.moveTo(x + r + offset * 2, r + y + offset);\n ctx.lineTo(x - r - offset * 2, r + y + offset);\n ctx.lineTo(x, y - r - offset * 2);\n ctx.closePath();\n return true;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class TriangleUpSymbol extends BaseSymbol implements ISymbolClass {\n type: SymbolType = 'triangleUp';\n pathStr: string = 'M0.5,0.5 L-0.5,0.5 L0,-0.5 Z';\n\n draw(ctx: IContext2d, size: number, x: number, y: number) {\n const r = size / 2;\n return trianglUp(ctx, r, x, y);\n }\n\n drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number) {\n const r = size / 2;\n return trianglUpOffset(ctx, r, x, y, offset);\n }\n}\n\nexport default new TriangleUpSymbol();\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SymbolType, ISymbolClass } from '../../interface';
|
|
2
|
+
import { trianglUp, TriangleUpSymbol } from './triangle-up';
|
|
3
|
+
export declare const triangle: typeof trianglUp;
|
|
4
|
+
export declare class TriangleSymbol extends TriangleUpSymbol implements ISymbolClass {
|
|
5
|
+
type: SymbolType;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: TriangleSymbol;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { trianglUp, TriangleUpSymbol } from "./triangle-up";
|
|
2
|
+
|
|
3
|
+
export const triangle = trianglUp;
|
|
4
|
+
|
|
5
|
+
export class TriangleSymbol extends TriangleUpSymbol {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments), this.type = "triangle";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default new TriangleSymbol;
|
|
12
|
+
//# sourceMappingURL=triangle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/builtin-symbol/triangle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAgC5D,MAAM,CAAC,MAAM,QAAQ,GAAG,SAAS,CAAC;AAGlC,MAAM,OAAO,cAAe,SAAQ,gBAAgB;IAApD;;QACE,SAAI,GAAe,UAAU,CAAC;IAChC,CAAC;CAAA;AAoBD,eAAe,IAAI,cAAc,EAAE,CAAC","file":"triangle.js","sourcesContent":["// import { IBounds, sqrt } from '@visactor/vutils';\nimport type { SymbolType, ISymbolClass } from '../../interface';\nimport { trianglUp, TriangleUpSymbol } from './triangle-up';\n\n/**\n * \n *Copyright 2010-2021 Mike Bostock\n\n Permission to use, copy, modify, and/or distribute this software for any purpose\n with or without fee is hereby granted, provided that the above copyright notice\n and this permission notice appear in all copies.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\n FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\n OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\n TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\n THIS SOFTWARE.\n */\n// 借鉴自d3\n// https://github.com/d3/d3-shape/blob/main/src/symbol/triangle.js\n\n// const sqrt3 = sqrt(3);\n\n// export function triangle(ctx: IContext2d, r: number, x: number, y: number) {\n// const h = r * sqrt3;\n// ctx.moveTo(x, y + (-h / 3) * 2);\n// ctx.lineTo(r + x, y + h);\n// ctx.lineTo(x - r, y + h);\n// ctx.closePath();\n// return true;\n// }\n\nexport const triangle = trianglUp;\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class TriangleSymbol extends TriangleUpSymbol implements ISymbolClass {\n type: SymbolType = 'triangle';\n}\n\n// export class TriangleSymbol extends TriangleUpSymbol implements ISymbolClass {\n// type: SymbolType = 'triangle';\n// pathStr: string = 'M0,-0.5773502691896257L-0.5,0.28867513459481287L0.5,0.28867513459481287Z';\n\n// draw(ctx: IContext2d, size: number, x: number, y: number) {\n// const r = size / 2 / sqrt3;\n// return triangle(ctx, r, x, y);\n// }\n\n// bounds(size: number, bounds: IBounds) {\n// const r = size / 2;\n// bounds.x1 = -r;\n// bounds.x2 = r;\n// bounds.y1 = -r;\n// bounds.y2 = r;\n// }\n// }\n\nexport default new TriangleSymbol();\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type IBounds } from '@visactor/vutils';
|
|
2
|
+
import type { IContext2d, ICustomPath2D, IGraphicAttribute, ISymbolClass } from '../../interface';
|
|
3
|
+
export declare class CustomSymbolClass implements ISymbolClass {
|
|
4
|
+
type: string;
|
|
5
|
+
path: ICustomPath2D;
|
|
6
|
+
pathStr: string;
|
|
7
|
+
isSvg: boolean;
|
|
8
|
+
svgCache?: {
|
|
9
|
+
path: ICustomPath2D;
|
|
10
|
+
attribute: Partial<IGraphicAttribute>;
|
|
11
|
+
}[];
|
|
12
|
+
constructor(type: string, path: ICustomPath2D | {
|
|
13
|
+
path: ICustomPath2D;
|
|
14
|
+
attribute: Partial<IGraphicAttribute>;
|
|
15
|
+
}[], isSvg?: boolean);
|
|
16
|
+
drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number, z?: number, cb?: (path: ICustomPath2D, attribute?: Record<string, any>) => void): boolean;
|
|
17
|
+
draw(ctx: IContext2d, size: number, x: number, y: number, z?: number, cb?: (path: ICustomPath2D, attribute?: Record<string, any>) => void): boolean;
|
|
18
|
+
bounds(size: number, bounds: IBounds): void;
|
|
19
|
+
}
|