@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,13 @@
|
|
|
1
|
+
import type { AABBBounds, Matrix } from '@visactor/vutils';
|
|
2
|
+
import type { GraphicType, IGraphic } from '../interface';
|
|
3
|
+
import { Group } from './group';
|
|
4
|
+
export declare class ShadowRoot extends Group {
|
|
5
|
+
type: GraphicType;
|
|
6
|
+
shadowHost: IGraphic;
|
|
7
|
+
constructor(graphic?: IGraphic);
|
|
8
|
+
addUpdateBoundTag(): void;
|
|
9
|
+
addUpdateShapeAndBoundsTag(): void;
|
|
10
|
+
protected tryUpdateGlobalTransMatrix(clearTag?: boolean): Matrix;
|
|
11
|
+
protected doUpdateGlobalMatrix(): void;
|
|
12
|
+
protected tryUpdateGlobalAABBBounds(): AABBBounds;
|
|
13
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Group } from "./group";
|
|
2
|
+
|
|
3
|
+
export class ShadowRoot extends Group {
|
|
4
|
+
constructor(graphic) {
|
|
5
|
+
super({
|
|
6
|
+
x: 0,
|
|
7
|
+
y: 0
|
|
8
|
+
}), this.type = "shadowroot", this.shadowHost = graphic;
|
|
9
|
+
}
|
|
10
|
+
addUpdateBoundTag() {
|
|
11
|
+
super.addUpdateBoundTag(), this.shadowHost && this.shadowHost.addUpdateBoundTag();
|
|
12
|
+
}
|
|
13
|
+
addUpdateShapeAndBoundsTag() {
|
|
14
|
+
super.addUpdateShapeAndBoundsTag(), this.shadowHost && this.shadowHost.addUpdateBoundTag();
|
|
15
|
+
}
|
|
16
|
+
tryUpdateGlobalTransMatrix(clearTag = !0) {
|
|
17
|
+
if (this.shouldUpdateGlobalMatrix()) {
|
|
18
|
+
const m = this.transMatrix;
|
|
19
|
+
this._globalTransMatrix ? this._globalTransMatrix.setValue(m.a, m.b, m.c, m.d, m.e, m.f) : this._globalTransMatrix = m.clone(),
|
|
20
|
+
this.doUpdateGlobalMatrix(), clearTag && this.clearUpdateGlobalPositionTag();
|
|
21
|
+
}
|
|
22
|
+
return this._globalTransMatrix;
|
|
23
|
+
}
|
|
24
|
+
doUpdateGlobalMatrix() {
|
|
25
|
+
if (this.shadowHost) {
|
|
26
|
+
const parentMatrix = this.shadowHost.globalTransMatrix;
|
|
27
|
+
this._globalTransMatrix.multiply(parentMatrix.a, parentMatrix.b, parentMatrix.c, parentMatrix.d, parentMatrix.e, parentMatrix.f);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
tryUpdateGlobalAABBBounds() {
|
|
31
|
+
return this._globalAABBBounds ? this._globalAABBBounds.setValue(this._AABBBounds.x1, this._AABBBounds.y1, this._AABBBounds.x2, this._AABBBounds.y2) : this._globalAABBBounds = this._AABBBounds.clone(),
|
|
32
|
+
this.shadowHost && this._globalAABBBounds.transformWithMatrix(this.shadowHost.globalTransMatrix),
|
|
33
|
+
this._globalAABBBounds;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=shadow-root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/shadow-root.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,OAAO,UAAW,SAAQ,KAAK;IAInC,YAAY,OAAkB;QAC5B,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAJxB,SAAI,GAAgB,YAAY,CAAC;QAK/B,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC;IAC5B,CAAC;IAEQ,iBAAiB;QACxB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,IAAI,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAC;SACrC;IACH,CAAC;IAEQ,0BAA0B;QACjC,KAAK,CAAC,0BAA0B,EAAE,CAAC;QACnC,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,IAAI,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAC;SACrC;IACH,CAAC;IAIS,0BAA0B,CAAC,WAAoB,IAAI;QAC3D,IAAI,IAAI,CAAC,wBAAwB,EAAE,EAAE;YACnC,MAAM,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;YAC3B,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE;gBAC5B,IAAI,CAAC,kBAAkB,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC;aACrC;iBAAM;gBACL,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;aAChE;YACD,IAAI,CAAC,oBAAoB,EAAE,CAAC;YAC5B,QAAQ,IAAI,IAAI,CAAC,4BAA4B,EAAE,CAAC;SACjD;QACD,OAAO,IAAI,CAAC,kBAAkB,CAAC;IACjC,CAAC;IACS,oBAAoB;QAC5B,IAAI,IAAI,CAAC,UAAU,EAAE;YAEnB,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACvD,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAC9B,YAAY,CAAC,CAAC,EACd,YAAY,CAAC,CAAC,EACd,YAAY,CAAC,CAAC,EACd,YAAY,CAAC,CAAC,EACd,YAAY,CAAC,CAAC,EACd,YAAY,CAAC,CAAC,CACf,CAAC;SACH;IACH,CAAC;IAGS,yBAAyB;QACjC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC3B,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;SACnD;aAAM;YACL,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAC7B,IAAI,CAAC,WAAW,CAAC,EAAE,EACnB,IAAI,CAAC,WAAW,CAAC,EAAE,EACnB,IAAI,CAAC,WAAW,CAAC,EAAE,EACnB,IAAI,CAAC,WAAW,CAAC,EAAE,CACpB,CAAC;SACH;QAGD,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;SAC/E;QACD,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;CACF","file":"shadow-root.js","sourcesContent":["import type { AABBBounds, Matrix } from '@visactor/vutils';\nimport type { GraphicType, IGraphic } from '../interface';\nimport { Group } from './group';\n\nexport class ShadowRoot extends Group {\n type: GraphicType = 'shadowroot';\n declare shadowHost: IGraphic;\n\n constructor(graphic?: IGraphic) {\n super({ x: 0, y: 0 });\n this.shadowHost = graphic;\n }\n\n override addUpdateBoundTag() {\n super.addUpdateBoundTag();\n if (this.shadowHost) {\n this.shadowHost.addUpdateBoundTag();\n }\n }\n\n override addUpdateShapeAndBoundsTag() {\n super.addUpdateShapeAndBoundsTag();\n if (this.shadowHost) {\n this.shadowHost.addUpdateBoundTag();\n }\n }\n\n // 计算localMatrix不受影响\n // 计算globalMatrix需要用到shadowHost的globalMatrix\n protected tryUpdateGlobalTransMatrix(clearTag: boolean = true): Matrix {\n if (this.shouldUpdateGlobalMatrix()) {\n const m = this.transMatrix;\n if (!this._globalTransMatrix) {\n this._globalTransMatrix = m.clone();\n } else {\n this._globalTransMatrix.setValue(m.a, m.b, m.c, m.d, m.e, m.f);\n }\n this.doUpdateGlobalMatrix();\n clearTag && this.clearUpdateGlobalPositionTag();\n }\n return this._globalTransMatrix;\n }\n protected doUpdateGlobalMatrix() {\n if (this.shadowHost) {\n // 基于shadowHost的matrix修改\n const parentMatrix = this.shadowHost.globalTransMatrix;\n this._globalTransMatrix.multiply(\n parentMatrix.a,\n parentMatrix.b,\n parentMatrix.c,\n parentMatrix.d,\n parentMatrix.e,\n parentMatrix.f\n );\n }\n }\n // 计算AABBBounds不受影响\n // 计算globalAABBBounds\n protected tryUpdateGlobalAABBBounds(): AABBBounds {\n if (!this._globalAABBBounds) {\n this._globalAABBBounds = this._AABBBounds.clone();\n } else {\n this._globalAABBBounds.setValue(\n this._AABBBounds.x1,\n this._AABBBounds.y1,\n this._AABBBounds.x2,\n this._AABBBounds.y2\n );\n }\n // 使用shadowHost的grloalAABBBounds\n // todo: 考虑是否需要性能优化\n if (this.shadowHost) {\n this._globalAABBBounds.transformWithMatrix(this.shadowHost.globalTransMatrix);\n }\n return this._globalAABBBounds;\n }\n}\n"]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { OBBBounds } from '@visactor/vutils';
|
|
2
|
+
import { AABBBounds } from '@visactor/vutils';
|
|
3
|
+
import type { ISymbol, ISymbolClass, ISymbolGraphicAttribute } from '../interface';
|
|
4
|
+
import { Graphic } from './graphic';
|
|
5
|
+
import { CustomPath2D } from '../common/custom-path2d';
|
|
6
|
+
export declare class Symbol extends Graphic<ISymbolGraphicAttribute> implements ISymbol {
|
|
7
|
+
type: 'symbol';
|
|
8
|
+
static userSymbolMap: Record<string, ISymbolClass>;
|
|
9
|
+
static NOWORK_ANIMATE_ATTR: {
|
|
10
|
+
strokeSeg: number;
|
|
11
|
+
boundsPadding: number;
|
|
12
|
+
pickMode: number;
|
|
13
|
+
boundsMode: number;
|
|
14
|
+
customPickShape: number;
|
|
15
|
+
pickable: number;
|
|
16
|
+
childrenPickable: number;
|
|
17
|
+
visible: number;
|
|
18
|
+
zIndex: number;
|
|
19
|
+
layout: number;
|
|
20
|
+
keepDirIn3d: number;
|
|
21
|
+
outerBorder: number;
|
|
22
|
+
innerBorder: number;
|
|
23
|
+
lineDash: number;
|
|
24
|
+
lineCap: number;
|
|
25
|
+
lineJoin: number;
|
|
26
|
+
miterLimit: number;
|
|
27
|
+
strokeBoundsBuffer: number;
|
|
28
|
+
scaleCenter: number;
|
|
29
|
+
anchor: number;
|
|
30
|
+
anchor3d: number;
|
|
31
|
+
postMatrix: number;
|
|
32
|
+
backgroundMode: number;
|
|
33
|
+
background: number;
|
|
34
|
+
texture: number;
|
|
35
|
+
cursor: number;
|
|
36
|
+
html: number;
|
|
37
|
+
symbolType: number;
|
|
38
|
+
};
|
|
39
|
+
constructor(params?: ISymbolGraphicAttribute);
|
|
40
|
+
protected _parsedPath?: ISymbolClass;
|
|
41
|
+
getParsedPath(): ISymbolClass;
|
|
42
|
+
isValid(): boolean;
|
|
43
|
+
private _isValid;
|
|
44
|
+
protected doUpdateParsedPath(): ISymbolClass;
|
|
45
|
+
protected doUpdateAABBBounds(full?: boolean): AABBBounds;
|
|
46
|
+
protected tryUpdateOBBBounds(): OBBBounds;
|
|
47
|
+
getDefaultAttribute(name: string): any;
|
|
48
|
+
protected needUpdateTags(keys: string[]): boolean;
|
|
49
|
+
protected needUpdateTag(key: string): boolean;
|
|
50
|
+
toCustomPath(): CustomPath2D;
|
|
51
|
+
clone(): Symbol;
|
|
52
|
+
getNoWorkAnimateAttr(): Record<string, number>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { AABBBounds } from "@visactor/vutils";
|
|
2
|
+
|
|
3
|
+
import { isArray, max } from "@visactor/vutils";
|
|
4
|
+
|
|
5
|
+
import { builtinSymbolsMap, CustomSymbolClass } from "./builtin-symbol";
|
|
6
|
+
|
|
7
|
+
import { Graphic, GRAPHIC_UPDATE_TAG_KEY, NOWORK_ANIMATE_ATTR } from "./graphic";
|
|
8
|
+
|
|
9
|
+
import { parsePadding } from "../common/utils";
|
|
10
|
+
|
|
11
|
+
import { getTheme } from "./theme";
|
|
12
|
+
|
|
13
|
+
import { application } from "../application";
|
|
14
|
+
|
|
15
|
+
import { CustomPath2D } from "../common/custom-path2d";
|
|
16
|
+
|
|
17
|
+
import { SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE } from "./constants";
|
|
18
|
+
|
|
19
|
+
import { XMLParser } from "../common/xml";
|
|
20
|
+
|
|
21
|
+
import { isSvg } from "../common/xml/parser";
|
|
22
|
+
|
|
23
|
+
const SYMBOL_UPDATE_TAG_KEY = [ "symbolType", "size", ...GRAPHIC_UPDATE_TAG_KEY ];
|
|
24
|
+
|
|
25
|
+
export class Symbol extends Graphic {
|
|
26
|
+
constructor(params = {
|
|
27
|
+
symbolType: "circle"
|
|
28
|
+
}) {
|
|
29
|
+
super(params), this.type = "symbol", this.numberType = SYMBOL_NUMBER_TYPE;
|
|
30
|
+
}
|
|
31
|
+
getParsedPath() {
|
|
32
|
+
return this.shouldUpdateShape() && (this.doUpdateParsedPath(), this.clearUpdateShapeTag()),
|
|
33
|
+
this._parsedPath;
|
|
34
|
+
}
|
|
35
|
+
isValid() {
|
|
36
|
+
return super.isValid() && this._isValid();
|
|
37
|
+
}
|
|
38
|
+
_isValid() {
|
|
39
|
+
const {size: size} = this.attribute;
|
|
40
|
+
return isArray(size) ? 2 === size.length && size.every(this._validNumber) : this._validNumber(size);
|
|
41
|
+
}
|
|
42
|
+
doUpdateParsedPath() {
|
|
43
|
+
const symbolTheme = getTheme(this).symbol, {symbolType: symbolType = symbolTheme.symbolType} = this.attribute;
|
|
44
|
+
let path = builtinSymbolsMap[symbolType];
|
|
45
|
+
if (path) return this._parsedPath = path, path;
|
|
46
|
+
if (path = Symbol.userSymbolMap[symbolType], path) return this._parsedPath = path,
|
|
47
|
+
path;
|
|
48
|
+
if (!0 === isSvg(symbolType)) {
|
|
49
|
+
const parser = new XMLParser, {svg: svg} = parser.parse(symbolType);
|
|
50
|
+
if (!svg) return null;
|
|
51
|
+
const path = isArray(svg.path) ? svg.path : [ svg.path ], b = new AABBBounds, cacheList = [];
|
|
52
|
+
path.forEach((item => {
|
|
53
|
+
const cache = (new CustomPath2D).fromString(item.d), attribute = {
|
|
54
|
+
fill: "black"
|
|
55
|
+
};
|
|
56
|
+
SVG_PARSE_ATTRIBUTE_MAP_KEYS.forEach((k => {
|
|
57
|
+
item[k] && (attribute[SVG_PARSE_ATTRIBUTE_MAP[k]] = item[k]);
|
|
58
|
+
})), cacheList.push({
|
|
59
|
+
path: cache,
|
|
60
|
+
attribute: attribute
|
|
61
|
+
}), b.union(cache.bounds);
|
|
62
|
+
}));
|
|
63
|
+
const width = b.width(), height = b.height(), scale = 1 / max(width, height);
|
|
64
|
+
return cacheList.forEach((cache => cache.path.transform(0, 0, scale, scale))), this._parsedPath = new CustomSymbolClass(symbolType, cacheList, !0),
|
|
65
|
+
Symbol.userSymbolMap[symbolType] = this._parsedPath, this._parsedPath;
|
|
66
|
+
}
|
|
67
|
+
const cache = (new CustomPath2D).fromString(symbolType), width = cache.bounds.width(), height = cache.bounds.height(), scale = 1 / max(width, height);
|
|
68
|
+
return cache.transform(0, 0, scale, scale), this._parsedPath = new CustomSymbolClass(symbolType, cache),
|
|
69
|
+
Symbol.userSymbolMap[symbolType] = this._parsedPath, this._parsedPath;
|
|
70
|
+
}
|
|
71
|
+
doUpdateAABBBounds(full) {
|
|
72
|
+
const symbolTheme = getTheme(this).symbol;
|
|
73
|
+
this._AABBBounds.setValue(1 / 0, 1 / 0, -1 / 0, -1 / 0);
|
|
74
|
+
const attribute = this.attribute, bounds = application.graphicService.updateSymbolAABBBounds(attribute, getTheme(this).symbol, this._AABBBounds, full, this), {boundsPadding: boundsPadding = symbolTheme.boundsPadding} = attribute, paddingArray = parsePadding(boundsPadding);
|
|
75
|
+
return paddingArray && bounds.expand(paddingArray), this.clearUpdateBoundTag(),
|
|
76
|
+
bounds;
|
|
77
|
+
}
|
|
78
|
+
tryUpdateOBBBounds() {
|
|
79
|
+
throw new Error("暂不支持");
|
|
80
|
+
}
|
|
81
|
+
getDefaultAttribute(name) {
|
|
82
|
+
return getTheme(this).symbol[name];
|
|
83
|
+
}
|
|
84
|
+
needUpdateTags(keys) {
|
|
85
|
+
return super.needUpdateTags(keys, SYMBOL_UPDATE_TAG_KEY);
|
|
86
|
+
}
|
|
87
|
+
needUpdateTag(key) {
|
|
88
|
+
return super.needUpdateTag(key, SYMBOL_UPDATE_TAG_KEY);
|
|
89
|
+
}
|
|
90
|
+
toCustomPath() {
|
|
91
|
+
const symbolInstance = this.getParsedPath(), size = this.attribute.size, formattedSize = isArray(size) ? size : [ size, size ];
|
|
92
|
+
return symbolInstance.path ? (new CustomPath2D).fromCustomPath2D(symbolInstance.path, 0, 0, formattedSize[0], formattedSize[1]) : (new CustomPath2D).fromString(symbolInstance.pathStr, 0, 0, formattedSize[0], formattedSize[1]);
|
|
93
|
+
}
|
|
94
|
+
clone() {
|
|
95
|
+
return new Symbol(Object.assign({}, this.attribute));
|
|
96
|
+
}
|
|
97
|
+
getNoWorkAnimateAttr() {
|
|
98
|
+
return Symbol.NOWORK_ANIMATE_ATTR;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
Symbol.userSymbolMap = {}, Symbol.NOWORK_ANIMATE_ATTR = Object.assign({
|
|
103
|
+
symbolType: 1
|
|
104
|
+
}, NOWORK_ANIMATE_ATTR);
|
|
105
|
+
//# sourceMappingURL=symbol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/symbol.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACxG,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,MAAM,qBAAqB,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,sBAAsB,CAAC,CAAC;AAKhF,MAAM,OAAO,MAAO,SAAQ,OAAgC;IAU1D,YAAY,SAAkC,EAAE,UAAU,EAAE,QAAQ,EAAE;QACpE,KAAK,CAAC,MAAM,CAAC,CAAC;QAVhB,SAAI,GAAa,QAAQ,CAAC;QAWxB,IAAI,CAAC,U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AAc,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;YACpG,CAAC,CAAC,IAAI,YAAY,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;IACtG,CAAC;IAED,KAAK;QACH,OAAO,IAAI,MAAM,mBAAM,IAAI,CAAC,SAAS,EAAG,CAAC;IAC3C,CAAC;IAED,oBAAoB;QAClB,OAAO,MAAM,CAAC,mBAAmB,CAAC;IACpC,CAAC;;AAzJM,oBAAa,GAAiC,EAAE,CAAC;AAEjD,0BAAmB,mBACxB,UAAU,EAAE,CAAC,IACV,mBAAmB,EACtB","file":"symbol.js","sourcesContent":["import type { OBBBounds } from '@visactor/vutils';\nimport { AABBBounds } from '@visactor/vutils';\nimport { isArray, max } from '@visactor/vutils';\nimport type { ISymbol, ISymbolClass, ISymbolGraphicAttribute } from '../interface';\nimport { builtinSymbolsMap, CustomSymbolClass } from './builtin-symbol';\nimport { Graphic, GRAPHIC_UPDATE_TAG_KEY, NOWORK_ANIMATE_ATTR } from './graphic';\nimport { parsePadding } from '../common/utils';\nimport { getTheme } from './theme';\nimport { application } from '../application';\nimport { CustomPath2D } from '../common/custom-path2d';\nimport { SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE } from './constants';\nimport { XMLParser } from '../common/xml';\nimport { isSvg } from '../common/xml/parser';\n\nconst SYMBOL_UPDATE_TAG_KEY = ['symbolType', 'size', ...GRAPHIC_UPDATE_TAG_KEY];\n\n/**\n * symbol\n */\nexport class Symbol extends Graphic<ISymbolGraphicAttribute> implements ISymbol {\n type: 'symbol' = 'symbol';\n\n static userSymbolMap: Record<string, ISymbolClass> = {};\n\n static NOWORK_ANIMATE_ATTR = {\n symbolType: 1,\n ...NOWORK_ANIMATE_ATTR\n };\n\n constructor(params: ISymbolGraphicAttribute = { symbolType: 'circle' }) {\n super(params);\n this.numberType = SYMBOL_NUMBER_TYPE;\n }\n\n protected _parsedPath?: ISymbolClass;\n\n getParsedPath(): ISymbolClass {\n if (this.shouldUpdateShape()) {\n this.doUpdateParsedPath();\n this.clearUpdateShapeTag();\n }\n return this._parsedPath as ISymbolClass;\n }\n\n isValid(): boolean {\n return super.isValid() && this._isValid();\n }\n private _isValid(): boolean {\n const { size } = this.attribute;\n return isArray(size) ? size.length === 2 && size.every(this._validNumber) : this._validNumber(size);\n }\n\n protected doUpdateParsedPath(): ISymbolClass {\n const symbolTheme = getTheme(this).symbol;\n // 查找内置symbol\n const { symbolType = symbolTheme.symbolType } = this.attribute;\n let path = builtinSymbolsMap[symbolType];\n if (path) {\n this._parsedPath = path;\n return path;\n }\n path = Symbol.userSymbolMap[symbolType];\n if (path) {\n this._parsedPath = path;\n return path;\n }\n\n // 判断是否是svg\n const valid = isSvg(symbolType);\n if (valid === true) {\n const parser = new XMLParser();\n const { svg } = parser.parse(symbolType);\n if (!svg) {\n return null;\n }\n const path = isArray(svg.path) ? svg.path : [svg.path];\n const b = new AABBBounds();\n const cacheList: { path: CustomPath2D; attribute: Record<string, any> }[] = [];\n path.forEach((item: any) => {\n const cache = new CustomPath2D().fromString(item.d);\n const attribute = {\n fill: 'black'\n };\n SVG_PARSE_ATTRIBUTE_MAP_KEYS.forEach(k => {\n if (item[k]) {\n attribute[SVG_PARSE_ATTRIBUTE_MAP[k]] = item[k];\n }\n });\n // 查找\n cacheList.push({\n path: cache,\n attribute\n });\n b.union(cache.bounds);\n });\n const width = b.width();\n const height = b.height();\n // 规范化到1\n const maxWH = max(width, height);\n const scale = 1 / maxWH;\n cacheList.forEach(cache => cache.path.transform(0, 0, scale, scale));\n\n this._parsedPath = new CustomSymbolClass(symbolType, cacheList, true);\n Symbol.userSymbolMap[symbolType] = this._parsedPath;\n return this._parsedPath;\n }\n\n const cache = new CustomPath2D().fromString(symbolType);\n const width = cache.bounds.width();\n const height = cache.bounds.height();\n // 规范化到1\n const maxWH = max(width, height);\n const scale = 1 / maxWH;\n cache.transform(0, 0, scale, scale);\n this._parsedPath = new CustomSymbolClass(symbolType, cache);\n Symbol.userSymbolMap[symbolType] = this._parsedPath;\n return this._parsedPath;\n }\n\n protected doUpdateAABBBounds(full?: boolean): AABBBounds {\n const symbolTheme = getTheme(this).symbol;\n this._AABBBounds.setValue(Infinity, Infinity, -Infinity, -Infinity);\n const attribute = this.attribute;\n const bounds = application.graphicService.updateSymbolAABBBounds(\n attribute,\n getTheme(this).symbol,\n this._AABBBounds,\n full,\n this\n );\n\n const { boundsPadding = symbolTheme.boundsPadding } = attribute;\n const paddingArray = parsePadding(boundsPadding);\n if (paddingArray) {\n (bounds as AABBBounds).expand(paddingArray);\n }\n\n this.clearUpdateBoundTag();\n return bounds as AABBBounds;\n }\n\n protected tryUpdateOBBBounds(): OBBBounds {\n throw new Error('暂不支持');\n }\n\n getDefaultAttribute(name: string) {\n const symbolTheme = getTheme(this).symbol;\n return symbolTheme[name];\n }\n\n protected needUpdateTags(keys: string[]): boolean {\n return super.needUpdateTags(keys, SYMBOL_UPDATE_TAG_KEY);\n }\n protected needUpdateTag(key: string): boolean {\n return super.needUpdateTag(key, SYMBOL_UPDATE_TAG_KEY);\n }\n\n toCustomPath() {\n const symbolInstance = this.getParsedPath();\n const size = this.attribute.size;\n const x = 0;\n const y = 0;\n const formattedSize = isArray(size) ? size : [size, size];\n\n return symbolInstance.path\n ? new CustomPath2D().fromCustomPath2D(symbolInstance.path, x, y, formattedSize[0], formattedSize[1])\n : new CustomPath2D().fromString(symbolInstance.pathStr, x, y, formattedSize[0], formattedSize[1]);\n }\n\n clone() {\n return new Symbol({ ...this.attribute });\n }\n\n getNoWorkAnimateAttr(): Record<string, number> {\n return Symbol.NOWORK_ANIMATE_ATTR;\n }\n}\n\n// addAttributeToPrototype(DefaultSymbolStyle, Symbol, PURE_STYLE_KEY);\n"]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { type AABBBounds, type OBBBounds } from '@visactor/vutils';
|
|
2
|
+
import type { IText, ITextCache, ITextGraphicAttribute, LayoutType } from '../interface';
|
|
3
|
+
import { Graphic } from './graphic';
|
|
4
|
+
export declare class Text extends Graphic<ITextGraphicAttribute> implements IText {
|
|
5
|
+
type: 'text';
|
|
6
|
+
static NOWORK_ANIMATE_ATTR: {
|
|
7
|
+
strokeSeg: number;
|
|
8
|
+
boundsPadding: number;
|
|
9
|
+
pickMode: number;
|
|
10
|
+
boundsMode: number;
|
|
11
|
+
customPickShape: number;
|
|
12
|
+
pickable: number;
|
|
13
|
+
childrenPickable: number;
|
|
14
|
+
visible: number;
|
|
15
|
+
zIndex: number;
|
|
16
|
+
layout: number;
|
|
17
|
+
keepDirIn3d: number;
|
|
18
|
+
outerBorder: number;
|
|
19
|
+
innerBorder: number;
|
|
20
|
+
lineDash: number;
|
|
21
|
+
lineCap: number;
|
|
22
|
+
lineJoin: number;
|
|
23
|
+
miterLimit: number;
|
|
24
|
+
strokeBoundsBuffer: number;
|
|
25
|
+
scaleCenter: number;
|
|
26
|
+
anchor: number;
|
|
27
|
+
anchor3d: number;
|
|
28
|
+
postMatrix: number;
|
|
29
|
+
backgroundMode: number;
|
|
30
|
+
background: number;
|
|
31
|
+
texture: number;
|
|
32
|
+
cursor: number;
|
|
33
|
+
html: number;
|
|
34
|
+
ellipsis: number;
|
|
35
|
+
wordBreak: number;
|
|
36
|
+
direction: number;
|
|
37
|
+
textAlign: number;
|
|
38
|
+
textBaseline: number;
|
|
39
|
+
fontFamily: number;
|
|
40
|
+
fontWeight: number;
|
|
41
|
+
};
|
|
42
|
+
cache: ITextCache;
|
|
43
|
+
_font: string;
|
|
44
|
+
get font(): string;
|
|
45
|
+
get clipedText(): string | undefined;
|
|
46
|
+
get clipedWidth(): number | undefined;
|
|
47
|
+
get cliped(): boolean | undefined;
|
|
48
|
+
get multilineLayout(): LayoutType | undefined;
|
|
49
|
+
constructor(params?: ITextGraphicAttribute);
|
|
50
|
+
isValid(): boolean;
|
|
51
|
+
protected _isValid(): boolean;
|
|
52
|
+
protected doUpdateAABBBounds(): AABBBounds;
|
|
53
|
+
updateSingallineAABBBounds(text: number | string): AABBBounds;
|
|
54
|
+
updateMultilineAABBBounds(text: (number | string)[]): AABBBounds;
|
|
55
|
+
updateHorizontalSinglelineAABBBounds(text: number | string): AABBBounds;
|
|
56
|
+
updateVerticalSinglelineAABBBounds(text: number | string): AABBBounds;
|
|
57
|
+
updateHorizontalMultilineAABBBounds(text: (number | string)[]): AABBBounds;
|
|
58
|
+
updateVerticalMultilineAABBBounds(text: (number | string)[]): AABBBounds;
|
|
59
|
+
protected tryUpdateOBBBounds(): OBBBounds;
|
|
60
|
+
getDefaultAttribute(name: string): any;
|
|
61
|
+
protected needUpdateTags(keys: string[], k?: string[]): boolean;
|
|
62
|
+
protected needUpdateTag(key: string, k?: string[]): boolean;
|
|
63
|
+
clone(): Text;
|
|
64
|
+
getNoWorkAnimateAttr(): Record<string, number>;
|
|
65
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { max } from "@visactor/vutils";
|
|
2
|
+
|
|
3
|
+
import { getContextFont, textDrawOffsetX, textLayoutOffsetY } from "../common/text";
|
|
4
|
+
|
|
5
|
+
import { CanvasTextLayout } from "../core/contributions/textMeasure/layout";
|
|
6
|
+
|
|
7
|
+
import { application } from "../application";
|
|
8
|
+
|
|
9
|
+
import { Graphic, GRAPHIC_UPDATE_TAG_KEY, NOWORK_ANIMATE_ATTR } from "./graphic";
|
|
10
|
+
|
|
11
|
+
import { getTheme } from "./theme";
|
|
12
|
+
|
|
13
|
+
import { parsePadding } from "../common/utils";
|
|
14
|
+
|
|
15
|
+
import { TEXT_NUMBER_TYPE } from "./constants";
|
|
16
|
+
|
|
17
|
+
import { TextDirection, verticalLayout } from "./tools";
|
|
18
|
+
|
|
19
|
+
const TEXT_UPDATE_TAG_KEY = [ "text", "maxLineWidth", "fontSize", "fontFamily", "fontWeight", "ellipsis", "lineHeight", "direction", "wordBreak", ...GRAPHIC_UPDATE_TAG_KEY ];
|
|
20
|
+
|
|
21
|
+
export class Text extends Graphic {
|
|
22
|
+
get font() {
|
|
23
|
+
const textTheme = getTheme(this).text;
|
|
24
|
+
return this._font || (this._font = getContextFont(this.attribute, textTheme)), this._font;
|
|
25
|
+
}
|
|
26
|
+
get clipedText() {
|
|
27
|
+
var _a;
|
|
28
|
+
const attribute = this.attribute, textTheme = getTheme(this).text;
|
|
29
|
+
if (Array.isArray(attribute.text)) return;
|
|
30
|
+
const {maxLineWidth: maxLineWidth = textTheme.maxLineWidth} = attribute;
|
|
31
|
+
return Number.isFinite(maxLineWidth) ? (this.tryUpdateAABBBounds(), this.cache.clipedText) : (null !== (_a = attribute.text) && void 0 !== _a ? _a : textTheme.text).toString();
|
|
32
|
+
}
|
|
33
|
+
get clipedWidth() {
|
|
34
|
+
if (!Array.isArray(this.attribute.text)) return this.tryUpdateAABBBounds(), this.cache.clipedWidth;
|
|
35
|
+
}
|
|
36
|
+
get cliped() {
|
|
37
|
+
const textTheme = getTheme(this).text, attribute = this.attribute;
|
|
38
|
+
if (Array.isArray(attribute.text)) return;
|
|
39
|
+
const {maxLineWidth: maxLineWidth = textTheme.maxLineWidth} = attribute;
|
|
40
|
+
return !!Number.isFinite(maxLineWidth) && (this.tryUpdateAABBBounds(), this.clipedText !== attribute.text.toString());
|
|
41
|
+
}
|
|
42
|
+
get multilineLayout() {
|
|
43
|
+
if (Array.isArray(this.attribute.text)) return this.tryUpdateAABBBounds(), this.cache.layoutData;
|
|
44
|
+
}
|
|
45
|
+
constructor(params = {
|
|
46
|
+
text: "",
|
|
47
|
+
fontSize: 16
|
|
48
|
+
}) {
|
|
49
|
+
super(params), this.type = "text", this.numberType = TEXT_NUMBER_TYPE, this.cache = {};
|
|
50
|
+
}
|
|
51
|
+
isValid() {
|
|
52
|
+
return super.isValid() && this._isValid();
|
|
53
|
+
}
|
|
54
|
+
_isValid() {
|
|
55
|
+
const {text: text} = this.attribute;
|
|
56
|
+
return null != text && "" !== text;
|
|
57
|
+
}
|
|
58
|
+
doUpdateAABBBounds() {
|
|
59
|
+
const textTheme = getTheme(this).text;
|
|
60
|
+
this._AABBBounds.setValue(1 / 0, 1 / 0, -1 / 0, -1 / 0);
|
|
61
|
+
const attribute = this.attribute, bounds = application.graphicService.updateTextAABBBounds(attribute, textTheme, this._AABBBounds, this), {boundsPadding: boundsPadding = textTheme.boundsPadding} = this.attribute, paddingArray = parsePadding(boundsPadding);
|
|
62
|
+
return paddingArray && bounds.expand(paddingArray), this.clearUpdateBoundTag(),
|
|
63
|
+
bounds;
|
|
64
|
+
}
|
|
65
|
+
updateSingallineAABBBounds(text) {
|
|
66
|
+
const textTheme = getTheme(this).text, {direction: direction = textTheme.direction} = this.attribute;
|
|
67
|
+
return "horizontal" === direction ? this.updateHorizontalSinglelineAABBBounds(text) : this.updateVerticalSinglelineAABBBounds(text);
|
|
68
|
+
}
|
|
69
|
+
updateMultilineAABBBounds(text) {
|
|
70
|
+
const textTheme = getTheme(this).text, {direction: direction = textTheme.direction} = this.attribute;
|
|
71
|
+
return "horizontal" === direction ? this.updateHorizontalMultilineAABBBounds(text) : this.updateVerticalMultilineAABBBounds(text);
|
|
72
|
+
}
|
|
73
|
+
updateHorizontalSinglelineAABBBounds(text) {
|
|
74
|
+
var _a, _b;
|
|
75
|
+
const textTheme = getTheme(this).text, textMeasure = application.graphicUtil.textMeasure;
|
|
76
|
+
let width, str;
|
|
77
|
+
const attribute = this.attribute, {maxLineWidth: maxLineWidth = textTheme.maxLineWidth, ellipsis: ellipsis = textTheme.ellipsis, textAlign: textAlign = textTheme.textAlign, textBaseline: textBaseline = textTheme.textBaseline, fontFamily: fontFamily = textTheme.fontFamily, fontSize: fontSize = textTheme.fontSize, fontWeight: fontWeight = textTheme.fontWeight, stroke: stroke = textTheme.stroke, lineWidth: lineWidth = textTheme.lineWidth, wordBreak: wordBreak = textTheme.wordBreak, ignoreBuf: ignoreBuf = textTheme.ignoreBuf} = attribute, buf = ignoreBuf ? 0 : Math.max(2, .075 * fontSize), {lineHeight: lineHeight = (null !== (_a = attribute.lineHeight) && void 0 !== _a ? _a : (attribute.fontSize || textTheme.fontSize) + buf)} = attribute;
|
|
78
|
+
if (!this.shouldUpdateShape() && this.cache) {
|
|
79
|
+
width = null !== (_b = this.cache.clipedWidth) && void 0 !== _b ? _b : 0;
|
|
80
|
+
const dx = textDrawOffsetX(textAlign, width), dy = textLayoutOffsetY(textBaseline, lineHeight, fontSize);
|
|
81
|
+
return this._AABBBounds.set(dx, dy, dx + width, dy + lineHeight), stroke && this._AABBBounds.expand(lineWidth / 2),
|
|
82
|
+
this._AABBBounds;
|
|
83
|
+
}
|
|
84
|
+
if (Number.isFinite(maxLineWidth)) {
|
|
85
|
+
if (ellipsis) {
|
|
86
|
+
const strEllipsis = !0 === ellipsis ? textTheme.ellipsis : ellipsis, data = textMeasure.clipTextWithSuffix(text.toString(), {
|
|
87
|
+
fontSize: fontSize,
|
|
88
|
+
fontWeight: fontWeight,
|
|
89
|
+
fontFamily: fontFamily
|
|
90
|
+
}, maxLineWidth, strEllipsis, !1);
|
|
91
|
+
str = data.str, width = data.width;
|
|
92
|
+
} else {
|
|
93
|
+
const data = textMeasure.clipText(text.toString(), {
|
|
94
|
+
fontSize: fontSize,
|
|
95
|
+
fontWeight: fontWeight,
|
|
96
|
+
fontFamily: fontFamily
|
|
97
|
+
}, maxLineWidth, !1);
|
|
98
|
+
str = data.str, width = data.width;
|
|
99
|
+
}
|
|
100
|
+
this.cache.clipedText = str, this.cache.clipedWidth = width;
|
|
101
|
+
} else width = textMeasure.measureTextWidth(text.toString(), {
|
|
102
|
+
fontSize: fontSize,
|
|
103
|
+
fontWeight: fontWeight,
|
|
104
|
+
fontFamily: fontFamily
|
|
105
|
+
}), this.cache.clipedText = text.toString(), this.cache.clipedWidth = width;
|
|
106
|
+
this.clearUpdateShapeTag();
|
|
107
|
+
const dx = textDrawOffsetX(textAlign, width);
|
|
108
|
+
let lh = lineHeight;
|
|
109
|
+
application.global && application.global.isSafari() && (lh += .2 * fontSize);
|
|
110
|
+
const dy = textLayoutOffsetY(textBaseline, lh, fontSize, buf);
|
|
111
|
+
return this._AABBBounds.set(dx, dy, dx + width, dy + lh), stroke && this._AABBBounds.expand(lineWidth / 2),
|
|
112
|
+
this._AABBBounds;
|
|
113
|
+
}
|
|
114
|
+
updateVerticalSinglelineAABBBounds(text) {
|
|
115
|
+
var _a;
|
|
116
|
+
const textTheme = getTheme(this).text, textMeasure = application.graphicUtil.textMeasure;
|
|
117
|
+
let width;
|
|
118
|
+
const attribute = this.attribute, {ignoreBuf: ignoreBuf = textTheme.ignoreBuf} = attribute, buf = ignoreBuf ? 0 : 2, {maxLineWidth: maxLineWidth = textTheme.maxLineWidth, ellipsis: ellipsis = textTheme.ellipsis, textAlign: textAlign = textTheme.textAlign, textBaseline: textBaseline = textTheme.textBaseline, fontSize: fontSize = textTheme.fontSize, fontWeight: fontWeight = textTheme.fontWeight, fontFamily: fontFamily = textTheme.fontFamily, stroke: stroke = textTheme.stroke, lineHeight: lineHeight = (null !== (_a = attribute.lineHeight) && void 0 !== _a ? _a : (attribute.fontSize || textTheme.fontSize) + buf), lineWidth: lineWidth = textTheme.lineWidth, wordBreak: wordBreak = textTheme.wordBreak} = attribute;
|
|
119
|
+
if (!this.shouldUpdateShape() && this.cache) {
|
|
120
|
+
width = this.cache.clipedWidth;
|
|
121
|
+
const dx = textDrawOffsetX(textAlign, width), dy = textLayoutOffsetY(textBaseline, lineHeight, fontSize);
|
|
122
|
+
return this._AABBBounds.set(dy, dx, dy + lineHeight, dx + width), stroke && this._AABBBounds.expand(lineWidth / 2),
|
|
123
|
+
this._AABBBounds;
|
|
124
|
+
}
|
|
125
|
+
let verticalList = [ verticalLayout(text.toString()) ];
|
|
126
|
+
if (Number.isFinite(maxLineWidth)) {
|
|
127
|
+
if (ellipsis) {
|
|
128
|
+
const strEllipsis = !0 === ellipsis ? textTheme.ellipsis : ellipsis, data = textMeasure.clipTextWithSuffixVertical(verticalList[0], {
|
|
129
|
+
fontSize: fontSize,
|
|
130
|
+
fontWeight: fontWeight,
|
|
131
|
+
fontFamily: fontFamily
|
|
132
|
+
}, maxLineWidth, strEllipsis, !1);
|
|
133
|
+
verticalList = [ data.verticalList ], width = data.width;
|
|
134
|
+
} else {
|
|
135
|
+
const data = textMeasure.clipTextVertical(verticalList[0], {
|
|
136
|
+
fontSize: fontSize,
|
|
137
|
+
fontWeight: fontWeight,
|
|
138
|
+
fontFamily: fontFamily
|
|
139
|
+
}, maxLineWidth, !1);
|
|
140
|
+
verticalList = [ data.verticalList ], width = data.width;
|
|
141
|
+
}
|
|
142
|
+
this.cache.verticalList = verticalList, this.cache.clipedWidth = width;
|
|
143
|
+
} else width = 0, verticalList[0].forEach((t => {
|
|
144
|
+
const w = t.direction === TextDirection.HORIZONTAL ? fontSize : textMeasure.measureTextWidth(t.text, {
|
|
145
|
+
fontSize: fontSize,
|
|
146
|
+
fontWeight: fontWeight,
|
|
147
|
+
fontFamily: fontFamily
|
|
148
|
+
});
|
|
149
|
+
width += w, t.width = w;
|
|
150
|
+
})), this.cache.verticalList = verticalList, this.cache.clipedWidth = width;
|
|
151
|
+
this.clearUpdateShapeTag();
|
|
152
|
+
const dx = textDrawOffsetX(textAlign, width), dy = textLayoutOffsetY(textBaseline, lineHeight, fontSize);
|
|
153
|
+
return this._AABBBounds.set(dy, dx, dy + lineHeight, dx + width), stroke && this._AABBBounds.expand(lineWidth / 2),
|
|
154
|
+
this._AABBBounds;
|
|
155
|
+
}
|
|
156
|
+
updateHorizontalMultilineAABBBounds(text) {
|
|
157
|
+
var _a;
|
|
158
|
+
const textTheme = getTheme(this).text, attribute = this.attribute, {fontFamily: fontFamily = textTheme.fontFamily, textAlign: textAlign = textTheme.textAlign, textBaseline: textBaseline = textTheme.textBaseline, fontSize: fontSize = textTheme.fontSize, fontWeight: fontWeight = textTheme.fontWeight, lineHeight: lineHeight = attribute.lineHeight || attribute.fontSize || textTheme.fontSize, ellipsis: ellipsis = textTheme.ellipsis, maxLineWidth: maxLineWidth, stroke: stroke = textTheme.stroke, lineWidth: lineWidth = textTheme.lineWidth, wordBreak: wordBreak = textTheme.wordBreak} = attribute;
|
|
159
|
+
if (!this.shouldUpdateShape() && (null === (_a = this.cache) || void 0 === _a ? void 0 : _a.layoutData)) {
|
|
160
|
+
const bbox = this.cache.layoutData.bbox;
|
|
161
|
+
return this._AABBBounds.set(bbox.xOffset, bbox.yOffset, bbox.xOffset + bbox.width, bbox.yOffset + bbox.height),
|
|
162
|
+
stroke && this._AABBBounds.expand(lineWidth / 2), this._AABBBounds;
|
|
163
|
+
}
|
|
164
|
+
const textMeasure = application.graphicUtil.textMeasure, layoutData = new CanvasTextLayout(fontFamily, {
|
|
165
|
+
fontSize: fontSize,
|
|
166
|
+
fontWeight: fontWeight,
|
|
167
|
+
fontFamily: fontFamily
|
|
168
|
+
}, textMeasure).GetLayoutByLines(text, textAlign, textBaseline, lineHeight, !0 === ellipsis ? textTheme.ellipsis : ellipsis || void 0, !1, maxLineWidth), {bbox: bbox} = layoutData;
|
|
169
|
+
return this.cache.layoutData = layoutData, this.clearUpdateShapeTag(), this._AABBBounds.set(bbox.xOffset, bbox.yOffset, bbox.xOffset + bbox.width, bbox.yOffset + bbox.height),
|
|
170
|
+
stroke && this._AABBBounds.expand(lineWidth / 2), this._AABBBounds;
|
|
171
|
+
}
|
|
172
|
+
updateVerticalMultilineAABBBounds(text) {
|
|
173
|
+
var _a;
|
|
174
|
+
const textTheme = getTheme(this).text, textMeasure = application.graphicUtil.textMeasure;
|
|
175
|
+
let width;
|
|
176
|
+
const attribute = this.attribute, {ignoreBuf: ignoreBuf = textTheme.ignoreBuf} = attribute, buf = ignoreBuf ? 0 : 2, {maxLineWidth: maxLineWidth = textTheme.maxLineWidth, ellipsis: ellipsis = textTheme.ellipsis, textAlign: textAlign = textTheme.textAlign, textBaseline: textBaseline = textTheme.textBaseline, fontFamily: fontFamily = textTheme.fontFamily, fontSize: fontSize = textTheme.fontSize, fontWeight: fontWeight = textTheme.fontWeight, stroke: stroke = textTheme.stroke, lineHeight: lineHeight = (null !== (_a = attribute.lineHeight) && void 0 !== _a ? _a : (attribute.fontSize || textTheme.fontSize) + buf), lineWidth: lineWidth = textTheme.lineWidth, wordBreak: wordBreak = textTheme.wordBreak} = attribute;
|
|
177
|
+
if (width = 0, !this.shouldUpdateShape() && this.cache) {
|
|
178
|
+
this.cache.verticalList.forEach((item => {
|
|
179
|
+
const w = item.reduce(((a, b) => a + b.width), 0);
|
|
180
|
+
width = max(w, width);
|
|
181
|
+
}));
|
|
182
|
+
const dx = textDrawOffsetX(textAlign, width), height = this.cache.verticalList.length * lineHeight, dy = textLayoutOffsetY(textBaseline, height, fontSize);
|
|
183
|
+
return this._AABBBounds.set(dy, dx, dy + height, dx + width), stroke && this._AABBBounds.expand(lineWidth / 2),
|
|
184
|
+
this._AABBBounds;
|
|
185
|
+
}
|
|
186
|
+
const verticalLists = text.map((str => verticalLayout(str.toString())));
|
|
187
|
+
verticalLists.forEach(((verticalData, i) => {
|
|
188
|
+
if (Number.isFinite(maxLineWidth)) if (ellipsis) {
|
|
189
|
+
const strEllipsis = !0 === ellipsis ? textTheme.ellipsis : ellipsis, data = textMeasure.clipTextWithSuffixVertical(verticalData, {
|
|
190
|
+
fontSize: fontSize,
|
|
191
|
+
fontWeight: fontWeight,
|
|
192
|
+
fontFamily: fontFamily
|
|
193
|
+
}, maxLineWidth, strEllipsis, !1);
|
|
194
|
+
verticalLists[i] = data.verticalList, width = data.width;
|
|
195
|
+
} else {
|
|
196
|
+
const data = textMeasure.clipTextVertical(verticalData, {
|
|
197
|
+
fontSize: fontSize,
|
|
198
|
+
fontWeight: fontWeight,
|
|
199
|
+
fontFamily: fontFamily
|
|
200
|
+
}, maxLineWidth, !1);
|
|
201
|
+
verticalLists[i] = data.verticalList, width = data.width;
|
|
202
|
+
} else width = 0, verticalData.forEach((t => {
|
|
203
|
+
const w = t.direction === TextDirection.HORIZONTAL ? fontSize : textMeasure.measureTextWidth(t.text, {
|
|
204
|
+
fontSize: fontSize,
|
|
205
|
+
fontWeight: fontWeight,
|
|
206
|
+
fontFamily: fontFamily
|
|
207
|
+
});
|
|
208
|
+
width += w, t.width = w;
|
|
209
|
+
}));
|
|
210
|
+
})), this.cache.verticalList = verticalLists, this.clearUpdateShapeTag(), this.cache.verticalList.forEach((item => {
|
|
211
|
+
const w = item.reduce(((a, b) => a + b.width), 0);
|
|
212
|
+
width = max(w, width);
|
|
213
|
+
}));
|
|
214
|
+
const dx = textDrawOffsetX(textAlign, width), height = this.cache.verticalList.length * lineHeight, dy = textLayoutOffsetY(textBaseline, height, fontSize);
|
|
215
|
+
return this._AABBBounds.set(dy, dx, dy + height, dx + width), stroke && this._AABBBounds.expand(lineWidth / 2),
|
|
216
|
+
this._AABBBounds;
|
|
217
|
+
}
|
|
218
|
+
tryUpdateOBBBounds() {
|
|
219
|
+
throw new Error("暂不支持");
|
|
220
|
+
}
|
|
221
|
+
getDefaultAttribute(name) {
|
|
222
|
+
return getTheme(this).text[name];
|
|
223
|
+
}
|
|
224
|
+
needUpdateTags(keys, k = TEXT_UPDATE_TAG_KEY) {
|
|
225
|
+
return super.needUpdateTags(keys, k);
|
|
226
|
+
}
|
|
227
|
+
needUpdateTag(key, k = TEXT_UPDATE_TAG_KEY) {
|
|
228
|
+
return super.needUpdateTag(key, k);
|
|
229
|
+
}
|
|
230
|
+
clone() {
|
|
231
|
+
return new Text(Object.assign({}, this.attribute));
|
|
232
|
+
}
|
|
233
|
+
getNoWorkAnimateAttr() {
|
|
234
|
+
return Text.NOWORK_ANIMATE_ATTR;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
Text.NOWORK_ANIMATE_ATTR = Object.assign({
|
|
239
|
+
ellipsis: 1,
|
|
240
|
+
wordBreak: 1,
|
|
241
|
+
direction: 1,
|
|
242
|
+
textAlign: 1,
|
|
243
|
+
textBaseline: 1,
|
|
244
|
+
fontFamily: 1,
|
|
245
|
+
fontWeight: 1
|
|
246
|
+
}, NOWORK_ANIMATE_ATTR);
|
|
247
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graphic/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAmC,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAExD,MAAM,mBAAmB,GAAG;IAC1B,MAAM;IACN,cAAc;IAGd,UAAU;IACV,YAAY;IACZ,YAAY;IACZ,UAAU;IACV,YAAY;IACZ,WAAW;IACX,WAAW;IACX,GAAG,sBAAsB;CAC1B,CAAC;AAEF,MAAM,OAAO,IAAK,SAAQ,OAA8B;IAiBtD,IAAI,IAAI;QACN,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,IAAI,CAAC,KAAK,GAAG,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;SACxD;QACD,OAAO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E,EAAE,EAAE,EAAE,EAAE,GAAG,MAAM,EAAE,EAAE,GAAG,KAAK,CAAC,CAAC;QAEtD,IAAI,MAAM,EAAE;YACV,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;SACxC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAES,kBAAkB;QAC1B,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,CAAC;IAED,mBAAmB,CAAC,IAAY;QAC9B,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QACtC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAES,cAAc,CAAC,IAAc,EAAE,CAAC,GAAG,mBAAmB;QAC9D,OAAO,KAAK,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACvC,CAAC;IACS,aAAa,CAAC,GAAW,EAAE,CAAC,GAAG,mBAAmB;QAC1D,OAAO,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IACrC,CAAC;IAED,KAAK;QACH,OAAO,IAAI,IAAI,mBAAM,IAAI,CAAC,SAAS,EAAG,CAAC;IACzC,CAAC;IAED,oBAAoB;QAClB,OAAO,IAAI,CAAC,mBAAmB,CAAC;IAClC,CAAC;;AAtdM,wBAAmB,mBACxB,QAAQ,EAAE,CAAC,EACX,SAAS,EAAE,CAAC,EACZ,SAAS,EAAE,CAAC,EACZ,SAAS,EAAE,CAAC,EACZ,YAAY,EAAE,CAAC,EACf,UAAU,EAAE,CAAC,EACb,UAAU,EAAE,CAAC,IACV,mBAAmB,EACtB","file":"text.js","sourcesContent":["import { max, type AABBBounds, type OBBBounds } from '@visactor/vutils';\nimport { getContextFont, textDrawOffsetX, textLayoutOffsetY } from '../common/text';\nimport { CanvasTextLayout } from '../core/contributions/textMeasure/layout';\nimport { application } from '../application';\nimport type { IText, ITextCache, ITextGraphicAttribute, LayoutType } from '../interface';\nimport { Graphic, GRAPHIC_UPDATE_TAG_KEY, NOWORK_ANIMATE_ATTR } from './graphic';\nimport { getTheme } from './theme';\nimport { parsePadding } from '../common/utils';\nimport { TEXT_NUMBER_TYPE } from './constants';\nimport { TextDirection, verticalLayout } from './tools';\n\nconst TEXT_UPDATE_TAG_KEY = [\n 'text',\n 'maxLineWidth',\n // 'textAlign',\n // 'textBaseline',\n 'fontSize',\n 'fontFamily',\n 'fontWeight',\n 'ellipsis',\n 'lineHeight',\n 'direction',\n 'wordBreak',\n ...GRAPHIC_UPDATE_TAG_KEY\n];\n\nexport class Text extends Graphic<ITextGraphicAttribute> implements IText {\n type: 'text' = 'text';\n\n static NOWORK_ANIMATE_ATTR = {\n ellipsis: 1,\n wordBreak: 1,\n direction: 1,\n textAlign: 1,\n textBaseline: 1,\n fontFamily: 1,\n fontWeight: 1,\n ...NOWORK_ANIMATE_ATTR\n };\n\n cache: ITextCache;\n _font: string;\n\n get font(): string {\n const textTheme = getTheme(this).text;\n if (!this._font) {\n this._font = getContextFont(this.attribute, textTheme);\n }\n return this._font as string;\n }\n\n get clipedText(): string | undefined {\n const attribute = this.attribute;\n const textTheme = getTheme(this).text;\n if (Array.isArray(attribute.text)) {\n return undefined;\n }\n const { maxLineWidth = textTheme.maxLineWidth } = attribute;\n if (!Number.isFinite(maxLineWidth)) {\n return (attribute.text ?? textTheme.text).toString();\n }\n this.tryUpdateAABBBounds();\n return this.cache.clipedText;\n }\n get clipedWidth(): number | undefined {\n if (Array.isArray(this.attribute.text)) {\n return undefined;\n }\n this.tryUpdateAABBBounds();\n return this.cache.clipedWidth;\n }\n get cliped(): boolean | undefined {\n const textTheme = getTheme(this).text;\n const attribute = this.attribute;\n if (Array.isArray(attribute.text)) {\n return undefined;\n }\n const { maxLineWidth = textTheme.maxLineWidth } = attribute;\n if (!Number.isFinite(maxLineWidth)) {\n return false;\n }\n this.tryUpdateAABBBounds();\n return this.clipedText !== attribute.text.toString();\n }\n get multilineLayout(): LayoutType | undefined {\n if (!Array.isArray(this.attribute.text)) {\n return undefined;\n }\n this.tryUpdateAABBBounds();\n return this.cache.layoutData;\n }\n\n constructor(params: ITextGraphicAttribute = { text: '', fontSize: 16 }) {\n super(params);\n this.numberType = TEXT_NUMBER_TYPE;\n this.cache = {};\n }\n\n isValid(): boolean {\n return super.isValid() && this._isValid();\n }\n protected _isValid(): boolean {\n const { text } = this.attribute;\n return text != null && text !== '';\n }\n\n protected doUpdateAABBBounds(): AABBBounds {\n const textTheme = getTheme(this).text;\n this._AABBBounds.setValue(Infinity, Infinity, -Infinity, -Infinity);\n const attribute = this.attribute;\n const bounds = application.graphicService.updateTextAABBBounds(\n attribute,\n textTheme,\n this._AABBBounds,\n this\n ) as AABBBounds;\n\n const { boundsPadding = textTheme.boundsPadding } = this.attribute;\n const paddingArray = parsePadding(boundsPadding);\n if (paddingArray) {\n bounds.expand(paddingArray);\n }\n\n this.clearUpdateBoundTag();\n return bounds;\n }\n\n /**\n * 计算单行文字的bounds,可以缓存长度以及截取的文字\n * @param text\n */\n updateSingallineAABBBounds(text: number | string): AABBBounds {\n const textTheme = getTheme(this).text;\n const { direction = textTheme.direction } = this.attribute;\n\n return direction === 'horizontal'\n ? this.updateHorizontalSinglelineAABBBounds(text)\n : this.updateVerticalSinglelineAABBBounds(text);\n }\n\n /**\n * 计算单行文字的bounds,可以缓存长度以及截取的文字\n * @param text\n */\n updateMultilineAABBBounds(text: (number | string)[]): AABBBounds {\n const textTheme = getTheme(this).text;\n const { direction = textTheme.direction } = this.attribute;\n\n return direction === 'horizontal'\n ? this.updateHorizontalMultilineAABBBounds(text)\n : this.updateVerticalMultilineAABBBounds(text);\n }\n\n /**\n * 计算单行文字的bounds,可以缓存长度以及截取的文字\n * @param text\n */\n updateHorizontalSinglelineAABBBounds(text: number | string): AABBBounds {\n const textTheme = getTheme(this).text;\n const textMeasure = application.graphicUtil.textMeasure;\n let width: number;\n let str: string;\n const attribute = this.attribute;\n const {\n maxLineWidth = textTheme.maxLineWidth,\n ellipsis = textTheme.ellipsis,\n textAlign = textTheme.textAlign,\n textBaseline = textTheme.textBaseline,\n fontFamily = textTheme.fontFamily,\n fontSize = textTheme.fontSize,\n fontWeight = textTheme.fontWeight,\n stroke = textTheme.stroke,\n lineWidth = textTheme.lineWidth,\n wordBreak = textTheme.wordBreak,\n ignoreBuf = textTheme.ignoreBuf\n } = attribute;\n const buf = ignoreBuf ? 0 : Math.max(2, fontSize * 0.075);\n const { lineHeight = attribute.lineHeight ?? (attribute.fontSize || textTheme.fontSize) + buf } = attribute;\n if (!this.shouldUpdateShape() && this.cache) {\n width = this.cache.clipedWidth ?? 0;\n const dx = textDrawOffsetX(textAlign, width);\n const dy = textLayoutOffsetY(textBaseline, lineHeight, fontSize);\n this._AABBBounds.set(dx, dy, dx + width, dy + lineHeight);\n if (stroke) {\n this._AABBBounds.expand(lineWidth / 2);\n }\n return this._AABBBounds;\n }\n\n if (Number.isFinite(maxLineWidth)) {\n if (ellipsis) {\n const strEllipsis = (ellipsis === true ? textTheme.ellipsis : ellipsis) as string;\n const data = textMeasure.clipTextWithSuffix(\n text.toString(),\n { fontSize, fontWeight, fontFamily },\n maxLineWidth,\n strEllipsis,\n false\n );\n str = data.str;\n width = data.width;\n } else {\n const data = textMeasure.clipText(text.toString(), { fontSize, fontWeight, fontFamily }, maxLineWidth, false);\n str = data.str;\n width = data.width;\n }\n this.cache.clipedText = str;\n this.cache.clipedWidth = width;\n // todo 计算原本的宽度\n } else {\n width = textMeasure.measureTextWidth(text.toString(), { fontSize, fontWeight, fontFamily });\n this.cache.clipedText = text.toString();\n this.cache.clipedWidth = width;\n }\n this.clearUpdateShapeTag();\n\n const dx = textDrawOffsetX(textAlign, width);\n let lh = lineHeight;\n if (application.global && application.global.isSafari()) {\n // 如果是safari,那么需要额外增加高度\n lh += fontSize * 0.2;\n }\n const dy = textLayoutOffsetY(textBaseline, lh, fontSize, buf);\n this._AABBBounds.set(dx, dy, dx + width, dy + lh);\n\n if (stroke) {\n this._AABBBounds.expand(lineWidth / 2);\n }\n\n return this._AABBBounds;\n }\n\n /**\n * 计算垂直布局的单行文字的bounds,可以缓存长度以及截取的文字\n * @param text\n */\n updateVerticalSinglelineAABBBounds(text: number | string): AABBBounds {\n const textTheme = getTheme(this).text;\n const textMeasure = application.graphicUtil.textMeasure;\n let width: number;\n let str: string;\n const attribute = this.attribute;\n const { ignoreBuf = textTheme.ignoreBuf } = attribute;\n const buf = ignoreBuf ? 0 : 2;\n const {\n maxLineWidth = textTheme.maxLineWidth,\n ellipsis = textTheme.ellipsis,\n textAlign = textTheme.textAlign,\n textBaseline = textTheme.textBaseline,\n fontSize = textTheme.fontSize,\n fontWeight = textTheme.fontWeight,\n fontFamily = textTheme.fontFamily,\n stroke = textTheme.stroke,\n lineHeight = attribute.lineHeight ?? (attribute.fontSize || textTheme.fontSize) + buf,\n lineWidth = textTheme.lineWidth,\n wordBreak = textTheme.wordBreak\n } = attribute;\n if (!this.shouldUpdateShape() && this.cache) {\n width = this.cache.clipedWidth;\n const dx = textDrawOffsetX(textAlign, width);\n const dy = textLayoutOffsetY(textBaseline, lineHeight, fontSize);\n this._AABBBounds.set(dy, dx, dy + lineHeight, dx + width);\n if (stroke) {\n this._AABBBounds.expand(lineWidth / 2);\n }\n return this._AABBBounds;\n }\n\n let verticalList: { text: string; width?: number; direction: TextDirection }[][] = [\n verticalLayout(text.toString())\n ];\n if (Number.isFinite(maxLineWidth)) {\n if (ellipsis) {\n const strEllipsis = (ellipsis === true ? textTheme.ellipsis : ellipsis) as string;\n const data = textMeasure.clipTextWithSuffixVertical(\n verticalList[0],\n { fontSize, fontWeight, fontFamily },\n maxLineWidth,\n strEllipsis,\n false\n );\n verticalList = [data.verticalList];\n width = data.width;\n } else {\n const data = textMeasure.clipTextVertical(\n verticalList[0],\n { fontSize, fontWeight, fontFamily },\n maxLineWidth,\n false\n );\n verticalList = [data.verticalList];\n width = data.width;\n }\n this.cache.verticalList = verticalList;\n this.cache.clipedWidth = width;\n // todo 计算原本的宽度\n } else {\n width = 0;\n verticalList[0].forEach(t => {\n const w =\n t.direction === TextDirection.HORIZONTAL\n ? fontSize\n : textMeasure.measureTextWidth(t.text, { fontSize, fontWeight, fontFamily });\n\n width += w;\n t.width = w;\n });\n this.cache.verticalList = verticalList;\n this.cache.clipedWidth = width;\n }\n this.clearUpdateShapeTag();\n\n const dx = textDrawOffsetX(textAlign, width);\n const dy = textLayoutOffsetY(textBaseline, lineHeight, fontSize);\n this._AABBBounds.set(dy, dx, dy + lineHeight, dx + width);\n\n if (stroke) {\n this._AABBBounds.expand(lineWidth / 2);\n }\n\n return this._AABBBounds;\n }\n\n /**\n * 计算多行文字的bounds,缓存每行文字的布局位置\n * @param text\n */\n updateHorizontalMultilineAABBBounds(text: (number | string)[]): AABBBounds {\n const textTheme = getTheme(this).text;\n const attribute = this.attribute;\n const {\n fontFamily = textTheme.fontFamily,\n textAlign = textTheme.textAlign,\n textBaseline = textTheme.textBaseline,\n fontSize = textTheme.fontSize,\n fontWeight = textTheme.fontWeight,\n lineHeight = attribute.lineHeight || attribute.fontSize || textTheme.fontSize,\n ellipsis = textTheme.ellipsis,\n maxLineWidth,\n stroke = textTheme.stroke,\n lineWidth = textTheme.lineWidth,\n wordBreak = textTheme.wordBreak\n } = attribute;\n\n if (!this.shouldUpdateShape() && this.cache?.layoutData) {\n const bbox = this.cache.layoutData.bbox;\n this._AABBBounds.set(bbox.xOffset, bbox.yOffset, bbox.xOffset + bbox.width, bbox.yOffset + bbox.height);\n if (stroke) {\n this._AABBBounds.expand(lineWidth / 2);\n }\n return this._AABBBounds;\n }\n const textMeasure = application.graphicUtil.textMeasure;\n const layoutObj = new CanvasTextLayout(fontFamily, { fontSize, fontWeight, fontFamily }, textMeasure);\n const layoutData = layoutObj.GetLayoutByLines(\n text,\n textAlign,\n textBaseline as any,\n lineHeight,\n ellipsis === true ? (textTheme.ellipsis as string) : ellipsis || undefined,\n false,\n maxLineWidth\n );\n const { bbox } = layoutData;\n this.cache.layoutData = layoutData;\n this.clearUpdateShapeTag();\n\n this._AABBBounds.set(bbox.xOffset, bbox.yOffset, bbox.xOffset + bbox.width, bbox.yOffset + bbox.height);\n\n if (stroke) {\n this._AABBBounds.expand(lineWidth / 2);\n }\n\n return this._AABBBounds;\n }\n\n /**\n * 计算垂直布局的多行文字的bounds,可以缓存长度以及截取的文字\n * @param text\n */\n updateVerticalMultilineAABBBounds(text: (number | string)[]): AABBBounds {\n const textTheme = getTheme(this).text;\n const textMeasure = application.graphicUtil.textMeasure;\n let width: number;\n const attribute = this.attribute;\n const { ignoreBuf = textTheme.ignoreBuf } = attribute;\n const buf = ignoreBuf ? 0 : 2;\n const {\n maxLineWidth = textTheme.maxLineWidth,\n ellipsis = textTheme.ellipsis,\n textAlign = textTheme.textAlign,\n textBaseline = textTheme.textBaseline,\n fontFamily = textTheme.fontFamily,\n fontSize = textTheme.fontSize,\n fontWeight = textTheme.fontWeight,\n stroke = textTheme.stroke,\n lineHeight = attribute.lineHeight ?? (attribute.fontSize || textTheme.fontSize) + buf,\n lineWidth = textTheme.lineWidth,\n wordBreak = textTheme.wordBreak\n } = attribute;\n width = 0;\n if (!this.shouldUpdateShape() && this.cache) {\n this.cache.verticalList.forEach(item => {\n const w = item.reduce((a, b) => a + b.width, 0);\n width = max(w, width);\n });\n const dx = textDrawOffsetX(textAlign, width);\n const height = this.cache.verticalList.length * lineHeight;\n const dy = textLayoutOffsetY(textBaseline, height, fontSize);\n this._AABBBounds.set(dy, dx, dy + height, dx + width);\n if (stroke) {\n this._AABBBounds.expand(lineWidth / 2);\n }\n return this._AABBBounds;\n }\n\n const verticalLists: { text: string; width?: number; direction: TextDirection }[][] = text.map(str => {\n return verticalLayout(str.toString());\n });\n verticalLists.forEach((verticalData, i) => {\n if (Number.isFinite(maxLineWidth)) {\n if (ellipsis) {\n const strEllipsis = (ellipsis === true ? textTheme.ellipsis : ellipsis) as string;\n const data = textMeasure.clipTextWithSuffixVertical(\n verticalData,\n { fontSize, fontWeight, fontFamily },\n maxLineWidth,\n strEllipsis,\n false\n );\n verticalLists[i] = data.verticalList;\n width = data.width;\n } else {\n const data = textMeasure.clipTextVertical(\n verticalData,\n { fontSize, fontWeight, fontFamily },\n maxLineWidth,\n false\n );\n verticalLists[i] = data.verticalList;\n width = data.width;\n }\n // this.cache.clipedWidth = width;\n // todo 计算原本的宽度\n } else {\n width = 0;\n verticalData.forEach(t => {\n const w =\n t.direction === TextDirection.HORIZONTAL\n ? fontSize\n : textMeasure.measureTextWidth(t.text, { fontSize, fontWeight, fontFamily });\n\n width += w;\n t.width = w;\n });\n }\n });\n this.cache.verticalList = verticalLists;\n this.clearUpdateShapeTag();\n\n this.cache.verticalList.forEach(item => {\n const w = item.reduce((a, b) => a + b.width, 0);\n width = max(w, width);\n });\n\n const dx = textDrawOffsetX(textAlign, width);\n const height = this.cache.verticalList.length * lineHeight;\n const dy = textLayoutOffsetY(textBaseline, height, fontSize);\n this._AABBBounds.set(dy, dx, dy + height, dx + width);\n\n if (stroke) {\n this._AABBBounds.expand(lineWidth / 2);\n }\n\n return this._AABBBounds;\n }\n\n protected tryUpdateOBBBounds(): OBBBounds {\n throw new Error('暂不支持');\n }\n\n getDefaultAttribute(name: string) {\n const textTheme = getTheme(this).text;\n return textTheme[name];\n }\n\n protected needUpdateTags(keys: string[], k = TEXT_UPDATE_TAG_KEY): boolean {\n return super.needUpdateTags(keys, k);\n }\n protected needUpdateTag(key: string, k = TEXT_UPDATE_TAG_KEY): boolean {\n return super.needUpdateTag(key, k);\n }\n\n clone(): Text {\n return new Text({ ...this.attribute });\n }\n\n getNoWorkAnimateAttr(): Record<string, number> {\n return Text.NOWORK_ANIMATE_ATTR;\n }\n}\n\n// addAttributeToPrototype(DefaultLineStyle, Text, PURE_STYLE_KEY);\n"]}
|