@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 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/render/contributions/render/area-render.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAoB3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,eAA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AAC,sBAAsB,CAAC,CAAA;;GANrB,uBAAuB,CAmfnC;SAnfY,uBAAuB","file":"area-render.js","sourcesContent":["import type { IPointLike } from '@visactor/vutils';\nimport { abs, isArray, min } from '@visactor/vutils';\nimport { inject, injectable, named } from '../../../common/inversify-lite';\nimport type {\n IArea,\n IAreaCacheItem,\n IAreaGraphicAttribute,\n IGraphicAttribute,\n IContext2d,\n ICurveType,\n IMarkAttribute,\n IThemeAttribute,\n ISegPath2D,\n IDirection,\n IAreaRenderContribution,\n IDrawContext,\n IRenderService,\n IGraphicRender,\n IGraphicRenderDrawParams,\n IContributionProvider\n} from '../../../interface';\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\nimport { ContributionProvider } from '../../../common/contribution-provider';\nimport {\n genLinearSegments,\n genBasisSegments,\n genMonotoneXSegments,\n genMonotoneYSegments,\n genStepSegments,\n genLinearClosedSegments\n} from '../../../common/segment';\n\nimport { getTheme } from '../../../graphic/theme';\nimport { drawPathProxy, fillVisible, runFill, runStroke, strokeVisible } from './utils';\nimport { AreaRenderContribution } from './contributions/constants';\nimport { BaseRenderContributionTime, Direction } from '../../../common/enums';\nimport { drawAreaSegments } from '../../../common/render-area';\nimport { AREA_NUMBER_TYPE } from '../../../graphic/constants';\nimport { drawSegments } from '../../../common/render-curve';\nimport { BaseRender } from './base-render';\n\nfunction calcLineCache(\n points: IPointLike[],\n curveType: ICurveType,\n params?: { direction?: IDirection; startPoint?: IPointLike }\n): ISegPath2D | null {\n switch (curveType) {\n case 'linear':\n return genLinearSegments(points, params);\n case 'basis':\n return genBasisSegments(points, params);\n case 'monotoneX':\n return genMonotoneXSegments(points, params);\n case 'monotoneY':\n return genMonotoneYSegments(points, params);\n case 'step':\n return genStepSegments(points, 0.5, params);\n case 'stepBefore':\n return genStepSegments(points, 0, params);\n case 'stepAfter':\n return genStepSegments(points, 1, params);\n case 'linearClosed':\n return genLinearClosedSegments(points, params);\n default:\n return genLinearSegments(points, params);\n }\n}\n\n@injectable()\nexport class DefaultCanvasAreaRender extends BaseRender<IArea> implements IGraphicRender {\n type: 'area';\n numberType: number = AREA_NUMBER_TYPE;\n\n constructor(\n @inject(ContributionProvider)\n @named(AreaRenderContribution)\n protected readonly areaRenderContribitions: IContributionProvider<IAreaRenderContribution>\n ) {\n super();\n this.init(areaRenderContribitions);\n }\n\n drawShape(\n area: IArea,\n context: IContext2d,\n x: number,\n y: number,\n drawContext: IDrawContext,\n params?: IGraphicRenderDrawParams,\n fillCb?: (\n ctx: IContext2d,\n lineAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean\n ) {\n const areaAttribute = getTheme(area, params?.theme).area;\n const {\n fillOpacity = areaAttribute.fillOpacity,\n z = areaAttribute.z,\n strokeOpacity = areaAttribute.strokeOpacity\n } = area.attribute;\n\n const data = this.valid(area, areaAttribute, fillCb, strokeCb);\n if (!data) {\n return;\n }\n const { doFill, doStroke } = data;\n\n const { clipRange = areaAttribute.clipRange } = area.attribute;\n\n // 更新cache\n if (area.shouldUpdateShape()) {\n const { points, segments, closePath } = area.attribute;\n let { curveType = areaAttribute.curveType } = area.attribute;\n if (closePath && curveType === 'linear') {\n curveType = 'linearClosed';\n }\n if (segments && segments.length) {\n let startPoint: IPointLike;\n let lastTopSeg: { endX: number; endY: number };\n const topCaches = segments\n .map((seg, index) => {\n if (seg.points.length <= 1) {\n // 第一个点的话,直接设置lastTopSeg\n if (index === 0) {\n seg.points[0] && (lastTopSeg = { endX: seg.points[0].x, endY: seg.points[0].y });\n return null;\n }\n }\n // 添加上一个segment结束的点作为这个segment的起始点\n if (index === 1) {\n startPoint = { x: lastTopSeg.endX, y: lastTopSeg.endY };\n } else if (index > 1) {\n startPoint.x = lastTopSeg.endX;\n startPoint.y = lastTopSeg.endY;\n }\n const data = calcLineCache(seg.points, curveType, {\n startPoint\n });\n lastTopSeg = data;\n return data;\n })\n .filter(item => !!item);\n let lastBottomSeg: ISegPath2D;\n const bottomCaches = [];\n for (let i = segments.length - 1; i >= 0; i--) {\n const points = segments[i].points;\n const bottomPoints: IPointLike[] = [];\n for (let i = points.length - 1; i >= 0; i--) {\n bottomPoints.push({\n x: points[i].x1 ?? points[i].x,\n y: points[i].y1 ?? points[i].y\n });\n }\n // 处理一下bottom的segments,bottom的segments需要手动添加endPoints\n if (i !== 0) {\n const lastSegmentPoints = segments[i - 1].points;\n const endPoint = lastSegmentPoints[lastSegmentPoints.length - 1];\n endPoint &&\n bottomPoints.push({\n x: endPoint.x1 ?? endPoint.x,\n y: endPoint.y1 ?? endPoint.y\n });\n }\n lastBottomSeg = calcLineCache(\n bottomPoints,\n curveType === 'stepBefore' ? 'stepAfter' : curveType === 'stepAfter' ? 'stepBefore' : curveType\n );\n bottomCaches.unshift(lastBottomSeg);\n }\n area.cacheArea = bottomCaches.map((item, index) => ({\n top: topCaches[index],\n bottom: item\n }));\n } else if (points && points.length) {\n // 转换points\n const topPoints = points;\n const bottomPoints: IPointLike[] = [];\n for (let i = points.length - 1; i >= 0; i--) {\n bottomPoints.push({\n x: points[i].x1 ?? points[i].x,\n y: points[i].y1 ?? points[i].y\n });\n }\n const topCache = calcLineCache(topPoints, curveType);\n const bottomCache = calcLineCache(\n bottomPoints,\n curveType === 'stepBefore' ? 'stepAfter' : curveType === 'stepAfter' ? 'stepBefore' : curveType\n );\n\n area.cacheArea = { top: topCache, bottom: bottomCache };\n } else {\n area.cacheArea = null;\n area.clearUpdateShapeTag();\n return;\n }\n area.clearUpdateShapeTag();\n }\n\n if (Array.isArray(area.cacheArea)) {\n const segments = area.attribute.segments.filter(item => item.points.length);\n // 如果第一个seg只有一个点,那么shift出去\n if (segments[0].points.length === 1) {\n segments.shift();\n }\n if (clipRange === 1) {\n let skip = false;\n // 性能优化,不需要clip的线段不需要计算长度\n area.cacheArea.forEach((cache, index) => {\n if (skip) {\n return;\n }\n skip = this.drawSegmentItem(\n context,\n cache,\n doFill,\n fillOpacity,\n doStroke,\n strokeOpacity,\n segments[index],\n [areaAttribute, area.attribute],\n clipRange,\n x,\n y,\n z,\n area,\n drawContext,\n fillCb,\n strokeCb\n );\n });\n } else {\n // 如果是segments的话,每个clipRange需要重新计算\n // 整个线段的总长度\n const totalLength = area.cacheArea.reduce((l, c) => l + c.top.getLength(), 0);\n // 总需要绘制的长度\n const totalDrawLength = clipRange * totalLength;\n // 直到上次绘制的长度\n let drawedLengthUntilLast = 0;\n let skip = false;\n area.cacheArea.forEach((cache, index) => {\n if (skip) {\n return;\n }\n const curSegLength = cache.top.getLength();\n const _cr = (totalDrawLength - drawedLengthUntilLast) / curSegLength;\n drawedLengthUntilLast += curSegLength;\n if (_cr > 0) {\n skip = this.drawSegmentItem(\n context,\n cache,\n doFill,\n fillOpacity,\n doStroke,\n strokeOpacity,\n segments[index],\n [areaAttribute, area.attribute],\n min(_cr, 1),\n x,\n y,\n z,\n area,\n drawContext,\n fillCb,\n strokeCb\n );\n }\n });\n }\n } else {\n this.drawSegmentItem(\n context,\n area.cacheArea as IAreaCacheItem,\n doFill,\n fillOpacity,\n doStroke,\n strokeOpacity,\n area.attribute,\n areaAttribute,\n clipRange,\n x,\n y,\n z,\n area,\n drawContext,\n fillCb,\n strokeCb\n );\n }\n }\n\n draw(area: IArea, renderService: IRenderService, drawContext: IDrawContext, params?: IGraphicRenderDrawParams) {\n const areaAttribute = getTheme(area, params?.theme).area;\n this._draw(area, areaAttribute, false, drawContext, params);\n }\n\n /**\n * 绘制segment\n * @param context\n * @param cache\n * @param fill\n * @param stroke\n * @param attribute\n * @param defaultAttribute\n * @param clipRange\n * @param offsetX\n * @param offsetY\n * @param fillCb\n * @param strokeCb\n * @returns 返回true代表跳过后续绘制\n */\n protected drawSegmentItem(\n context: IContext2d,\n cache: IAreaCacheItem,\n fill: boolean,\n fillOpacity: number,\n stroke: boolean,\n strokeOpacity: number,\n attribute: Partial<IAreaGraphicAttribute>,\n defaultAttribute: Required<IAreaGraphicAttribute> | Partial<IAreaGraphicAttribute>[],\n clipRange: number,\n offsetX: number,\n offsetY: number,\n offsetZ: number,\n area: IArea,\n drawContext: IDrawContext,\n fillCb?: (\n ctx: IContext2d,\n lineAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute | IThemeAttribute[]\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n lineAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute | IThemeAttribute[]\n ) => boolean\n ): boolean {\n let ret = false;\n ret =\n ret ||\n this._drawSegmentItem(\n context,\n cache,\n fill,\n fillOpacity,\n stroke,\n strokeOpacity,\n attribute,\n defaultAttribute,\n clipRange,\n offsetX,\n offsetY,\n offsetZ,\n area,\n drawContext,\n false,\n fillCb,\n strokeCb\n );\n ret =\n ret ||\n this._drawSegmentItem(\n context,\n cache,\n fill,\n fillOpacity,\n stroke,\n strokeOpacity,\n attribute,\n defaultAttribute,\n clipRange,\n offsetX,\n offsetY,\n offsetZ,\n area,\n drawContext,\n true,\n fillCb,\n strokeCb\n );\n return ret;\n }\n\n protected _drawSegmentItem(\n context: IContext2d,\n cache: IAreaCacheItem,\n fill: boolean,\n fillOpacity: number,\n stroke: boolean,\n strokeOpacity: number,\n attribute: Partial<IAreaGraphicAttribute>,\n defaultAttribute: Required<IAreaGraphicAttribute> | Partial<IAreaGraphicAttribute>[],\n clipRange: number,\n offsetX: number,\n offsetY: number,\n offsetZ: number,\n area: IArea,\n drawContext: IDrawContext,\n connect: boolean,\n fillCb?: (\n ctx: IContext2d,\n lineAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute | IThemeAttribute[]\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n lineAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute | IThemeAttribute[]\n ) => boolean\n ) {\n // 绘制connect区域\n let { connectedType, connectedX, connectedY, connectedStyle } = attribute;\n const da = [];\n if (connect) {\n if (isArray(defaultAttribute)) {\n connectedType = connectedType ?? defaultAttribute[0].connectedType ?? defaultAttribute[1].connectedType;\n connectedX = connectedX ?? defaultAttribute[0].connectedX ?? defaultAttribute[1].connectedX;\n connectedY = connectedY ?? defaultAttribute[0].connectedY ?? defaultAttribute[1].connectedY;\n connectedStyle = connectedStyle ?? defaultAttribute[0].connectedStyle ?? defaultAttribute[1].connectedStyle;\n } else {\n connectedType = connectedType ?? defaultAttribute.connectedType;\n connectedX = connectedX ?? defaultAttribute.connectedX;\n connectedY = connectedY ?? defaultAttribute.connectedY;\n connectedStyle = connectedStyle ?? defaultAttribute.connectedStyle;\n }\n\n // 如果有非法值就是none\n if (connectedType !== 'connect' && connectedType !== 'zero') {\n connectedType = 'none';\n }\n\n if (isArray(defaultAttribute)) {\n defaultAttribute.forEach(i => da.push(i));\n } else {\n da.push(defaultAttribute);\n }\n da.push(attribute);\n }\n\n if (connect && connectedType === 'none') {\n return false;\n }\n\n if (!cache) {\n return;\n }\n context.beginPath();\n\n const ret: boolean = false;\n const { points, segments } = area.attribute;\n let direction = Direction.ROW;\n let endP: IPointLike;\n let startP: IPointLike;\n if (segments) {\n const endSeg = segments[segments.length - 1];\n const startSeg = segments[0];\n startP = startSeg.points[0];\n endP = endSeg.points[endSeg.points.length - 1];\n } else {\n startP = points[0];\n endP = points[points.length - 1];\n }\n const xTotalLength = abs(endP.x - startP.x);\n const yTotalLength = abs(endP.y - startP.y);\n direction = xTotalLength > yTotalLength ? Direction.ROW : Direction.COLUMN;\n drawAreaSegments(context.camera ? context : context.nativeContext, cache, clipRange, {\n offsetX,\n offsetY,\n offsetZ,\n direction,\n drawConnect: connect,\n mode: connectedType,\n zeroX: connectedX,\n zeroY: connectedY\n });\n\n this.beforeRenderStep(\n area,\n context,\n offsetX,\n offsetY,\n !!fillOpacity,\n false,\n fill,\n false,\n defaultAttribute as any,\n drawContext,\n fillCb,\n null,\n { attribute }\n );\n\n // shadow\n context.setShadowStyle && context.setShadowStyle(area, attribute, defaultAttribute);\n\n const { x: originX = 0, x: originY = 0 } = attribute;\n if (fill !== false) {\n if (fillCb) {\n fillCb(context, attribute, defaultAttribute);\n } else if (fillOpacity) {\n context.setCommonStyle(\n area,\n connect ? connectedStyle : attribute,\n originX - offsetX,\n originY - offsetY,\n connect ? da : defaultAttribute\n );\n context.fill();\n }\n }\n\n this.afterRenderStep(\n area,\n context,\n offsetX,\n offsetY,\n !!fillOpacity,\n false,\n fill,\n false,\n defaultAttribute as any,\n drawContext,\n fillCb,\n null,\n { attribute }\n );\n\n if (stroke !== false) {\n if (strokeCb) {\n strokeCb(context, attribute, defaultAttribute);\n } else {\n const { stroke = defaultAttribute && defaultAttribute[1] && defaultAttribute[1].stroke } = attribute;\n if (isArray(stroke) && (stroke[0] || stroke[2]) && stroke[1] === false) {\n context.beginPath();\n drawSegments(\n context.camera ? context : context.nativeContext,\n stroke[0] ? cache.top : cache.bottom,\n clipRange,\n direction === Direction.ROW ? 'x' : 'y',\n {\n offsetX,\n offsetY,\n offsetZ,\n drawConnect: connect,\n mode: connectedType,\n zeroX: connectedX,\n zeroY: connectedY\n }\n );\n }\n context.setStrokeStyle(\n area,\n connect ? connectedStyle : attribute,\n originX - offsetX,\n originY - offsetY,\n connect ? da : defaultAttribute\n );\n context.stroke();\n }\n }\n\n return ret;\n }\n}\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { IPointLike } from '@visactor/vutils';
|
|
2
|
+
import type { IGraphicAttribute, ICamera, IContext2d, IGraphic, mat4, IDrawContext, IGraphicRenderDrawParams, IMarkAttribute, IThemeAttribute, IContributionProvider, IBaseRenderContribution } from '../../../interface';
|
|
3
|
+
export declare abstract class BaseRender<T extends IGraphic> {
|
|
4
|
+
camera: ICamera;
|
|
5
|
+
z: number;
|
|
6
|
+
renderContribitions: IContributionProvider<IBaseRenderContribution<T, T['attribute']>> | null;
|
|
7
|
+
protected _beforeRenderContribitions: IBaseRenderContribution<T, T['attribute']>[];
|
|
8
|
+
protected _afterRenderContribitions: IBaseRenderContribution<T, T['attribute']>[];
|
|
9
|
+
protected _renderContribitions: IBaseRenderContribution<T, T['attribute']>[];
|
|
10
|
+
init(contributions?: IContributionProvider<IBaseRenderContribution<T, T['attribute']>>): void;
|
|
11
|
+
beforeRenderStep(graphic: T, context: IContext2d, x: number, y: number, doFill: boolean, doStroke: boolean, fVisible: boolean, sVisible: boolean, graphicAttribute: Required<T['attribute']>, drawContext: IDrawContext, fillCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, strokeCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, params?: any): void;
|
|
12
|
+
afterRenderStep(graphic: T, context: IContext2d, x: number, y: number, doFill: boolean, doStroke: boolean, fVisible: boolean, sVisible: boolean, graphicAttribute: Required<T['attribute']>, drawContext: IDrawContext, fillCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, strokeCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, params?: any): void;
|
|
13
|
+
valid(graphic: IGraphic, defaultAttribute: IGraphicAttribute, fillCb?: any, strokeCb?: any): false | {
|
|
14
|
+
fVisible: boolean;
|
|
15
|
+
sVisible: boolean;
|
|
16
|
+
doFill: boolean;
|
|
17
|
+
doStroke: boolean;
|
|
18
|
+
};
|
|
19
|
+
transform(graphic: IGraphic, graphicAttribute: IGraphicAttribute, context: IContext2d, use3dMatrixIn3dMode?: boolean): IPointLike & {
|
|
20
|
+
z: number;
|
|
21
|
+
lastModelMatrix: mat4;
|
|
22
|
+
};
|
|
23
|
+
transformUseContext2d(graphic: IGraphic, graphicAttribute: IGraphicAttribute, z: number, context: IContext2d): void;
|
|
24
|
+
restoreTransformUseContext2d(graphic: IGraphic, graphicAttribute: IGraphicAttribute, z: number, context: IContext2d): void;
|
|
25
|
+
protected transformWithoutTranslate(context: IContext2d, x: number, y: number, z: number, scaleX: number, scaleY: number, angle: number): void;
|
|
26
|
+
_draw(graphic: T, defaultAttr: IGraphicAttribute, computed3dMatrix: boolean, drawContext: IDrawContext, params?: IGraphicRenderDrawParams): void;
|
|
27
|
+
drawShape?(path: T, context: IContext2d, x: number, y: number, drawContext: IDrawContext, params?: IGraphicRenderDrawParams, fillCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, strokeCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
|
|
2
|
+
var d, c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
3
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
4
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
import { injectable } from "../../../common/inversify-lite";
|
|
8
|
+
|
|
9
|
+
import { getModelMatrix, multiplyMat4Mat4, shouldUseMat4 } from "../../../graphic";
|
|
10
|
+
|
|
11
|
+
import { mat4Allocate } from "../../../allocator/matrix-allocate";
|
|
12
|
+
|
|
13
|
+
import { drawPathProxy, fillVisible, runFill, runStroke, strokeVisible } from "./utils";
|
|
14
|
+
|
|
15
|
+
import { BaseRenderContributionTime } from "../../../common/enums";
|
|
16
|
+
|
|
17
|
+
let BaseRender = class {
|
|
18
|
+
init(contributions) {
|
|
19
|
+
contributions && (this.renderContribitions = contributions, this._renderContribitions = contributions.getContributions(),
|
|
20
|
+
this._renderContribitions.length && (this._renderContribitions.sort(((a, b) => b.order - a.order)),
|
|
21
|
+
this._beforeRenderContribitions = this._renderContribitions.filter((c => c.time === BaseRenderContributionTime.beforeFillStroke)),
|
|
22
|
+
this._afterRenderContribitions = this._renderContribitions.filter((c => c.time === BaseRenderContributionTime.afterFillStroke))));
|
|
23
|
+
}
|
|
24
|
+
beforeRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, params) {
|
|
25
|
+
this._beforeRenderContribitions && this._beforeRenderContribitions.forEach((c => {
|
|
26
|
+
c.drawShape(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, params);
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
afterRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, params) {
|
|
30
|
+
this._afterRenderContribitions && this._afterRenderContribitions.forEach((c => {
|
|
31
|
+
c.drawShape(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, params);
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
valid(graphic, defaultAttribute, fillCb, strokeCb) {
|
|
35
|
+
const {fill: fill = defaultAttribute.fill, background: background, stroke: stroke = defaultAttribute.stroke, opacity: opacity = defaultAttribute.opacity, fillOpacity: fillOpacity = defaultAttribute.fillOpacity, lineWidth: lineWidth = defaultAttribute.lineWidth, strokeOpacity: strokeOpacity = defaultAttribute.strokeOpacity, visible: visible = defaultAttribute.visible} = graphic.attribute, fVisible = fillVisible(opacity, fillOpacity, fill), sVisible = strokeVisible(opacity, strokeOpacity), doFill = runFill(fill, background), doStroke = runStroke(stroke, lineWidth);
|
|
36
|
+
return !(!graphic.valid || !visible) && (!(!doFill && !doStroke) && (!!(fVisible || sVisible || fillCb || strokeCb || background) && {
|
|
37
|
+
fVisible: fVisible,
|
|
38
|
+
sVisible: sVisible,
|
|
39
|
+
doFill: doFill,
|
|
40
|
+
doStroke: doStroke
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
transform(graphic, graphicAttribute, context, use3dMatrixIn3dMode = !1) {
|
|
44
|
+
const transMatrix = graphic.transMatrix, {x: x = graphicAttribute.x, y: y = graphicAttribute.y, z: z = graphicAttribute.z, scaleX: scaleX = graphicAttribute.scaleX, scaleY: scaleY = graphicAttribute.scaleY, angle: angle = graphicAttribute.angle, postMatrix: postMatrix} = graphic.attribute, onlyTranslate = transMatrix.onlyTranslate() && !postMatrix, lastModelMatrix = context.modelMatrix, camera = context.camera, result = {
|
|
45
|
+
x: x,
|
|
46
|
+
y: y,
|
|
47
|
+
z: z,
|
|
48
|
+
lastModelMatrix: lastModelMatrix
|
|
49
|
+
}, shouldTransform3d = camera && (use3dMatrixIn3dMode || shouldUseMat4(graphic));
|
|
50
|
+
if (shouldTransform3d) {
|
|
51
|
+
const nextModelMatrix = mat4Allocate.allocate(), modelMatrix = mat4Allocate.allocate();
|
|
52
|
+
getModelMatrix(modelMatrix, graphic, graphicAttribute), multiplyMat4Mat4(nextModelMatrix, lastModelMatrix || nextModelMatrix, modelMatrix),
|
|
53
|
+
result.x = 0, result.y = 0, result.z = 0, context.modelMatrix = nextModelMatrix,
|
|
54
|
+
context.setTransform(1, 0, 0, 1, 0, 0, !0), mat4Allocate.free(modelMatrix);
|
|
55
|
+
}
|
|
56
|
+
if (onlyTranslate && !lastModelMatrix) {
|
|
57
|
+
const point = graphic.getOffsetXY(graphicAttribute);
|
|
58
|
+
result.x += point.x, result.y += point.y, result.z = z, context.setTransformForCurrent();
|
|
59
|
+
} else if (shouldTransform3d) result.x = 0, result.y = 0, result.z = 0, context.setTransform(1, 0, 0, 1, 0, 0, !0); else if (camera && context.project) {
|
|
60
|
+
const point = graphic.getOffsetXY(graphicAttribute);
|
|
61
|
+
result.x += point.x, result.y += point.y, this.transformWithoutTranslate(context, result.x, result.y, result.z, scaleX, scaleY, angle);
|
|
62
|
+
} else context.transformFromMatrix(graphic.transMatrix, !0), result.x = 0, result.y = 0,
|
|
63
|
+
result.z = 0;
|
|
64
|
+
return result;
|
|
65
|
+
}
|
|
66
|
+
transformUseContext2d(graphic, graphicAttribute, z, context) {
|
|
67
|
+
const camera = context.camera;
|
|
68
|
+
if (this.camera = camera, camera) {
|
|
69
|
+
const bounds = graphic.AABBBounds, width = bounds.x2 - bounds.x1, height = bounds.y2 - bounds.y1, p1 = context.project(0, 0, z), p2 = context.project(width, 0, z), p3 = context.project(width, height, z), _p1 = {
|
|
70
|
+
x: 0,
|
|
71
|
+
y: 0
|
|
72
|
+
}, _p2 = {
|
|
73
|
+
x: width,
|
|
74
|
+
y: 0
|
|
75
|
+
}, _p3 = {
|
|
76
|
+
x: width,
|
|
77
|
+
y: height
|
|
78
|
+
};
|
|
79
|
+
context.camera = null;
|
|
80
|
+
const denom = 1 / (_p1.x * (_p3.y - _p2.y) - _p2.x * _p3.y + _p3.x * _p2.y + (_p2.x - _p3.x) * _p1.y), m11 = -(_p1.y * (p3.x - p2.x) - _p2.y * p3.x + _p3.y * p2.x + (_p2.y - _p3.y) * p1.x) * denom, m12 = (_p2.y * p3.y + _p1.y * (p2.y - p3.y) - _p3.y * p2.y + (_p3.y - _p2.y) * p1.y) * denom, m21 = (_p1.x * (p3.x - p2.x) - _p2.x * p3.x + _p3.x * p2.x + (_p2.x - _p3.x) * p1.x) * denom, m22 = -(_p2.x * p3.y + _p1.x * (p2.y - p3.y) - _p3.x * p2.y + (_p3.x - _p2.x) * p1.y) * denom, dx = (_p1.x * (_p3.y * p2.x - _p2.y * p3.x) + _p1.y * (_p2.x * p3.x - _p3.x * p2.x) + (_p3.x * _p2.y - _p2.x * _p3.y) * p1.x) * denom, dy = (_p1.x * (_p3.y * p2.y - _p2.y * p3.y) + _p1.y * (_p2.x * p3.y - _p3.x * p2.y) + (_p3.x * _p2.y - _p2.x * _p3.y) * p1.y) * denom;
|
|
81
|
+
context.setTransform(m11, m12, m21, m22, dx, dy, !0);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
restoreTransformUseContext2d(graphic, graphicAttribute, z, context) {
|
|
85
|
+
this.camera && (context.camera = this.camera);
|
|
86
|
+
}
|
|
87
|
+
transformWithoutTranslate(context, x, y, z, scaleX, scaleY, angle) {
|
|
88
|
+
const p = context.project(x, y, z);
|
|
89
|
+
context.translate(p.x, p.y, !1), context.scale(scaleX, scaleY, !1), context.rotate(angle, !1),
|
|
90
|
+
context.translate(-p.x, -p.y, !1), context.setTransformForCurrent();
|
|
91
|
+
}
|
|
92
|
+
_draw(graphic, defaultAttr, computed3dMatrix, drawContext, params) {
|
|
93
|
+
const {context: context} = drawContext;
|
|
94
|
+
if (!context) return;
|
|
95
|
+
context.highPerformanceSave();
|
|
96
|
+
const data = this.transform(graphic, defaultAttr, context, computed3dMatrix), {x: x, y: y, z: z, lastModelMatrix: lastModelMatrix} = data;
|
|
97
|
+
this.z = z, drawPathProxy(graphic, context, x, y, drawContext, params) || (this.drawShape(graphic, context, x, y, drawContext, params),
|
|
98
|
+
this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix),
|
|
99
|
+
context.modelMatrix = lastModelMatrix), context.highPerformanceRestore();
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
BaseRender = __decorate([ injectable() ], BaseRender);
|
|
104
|
+
|
|
105
|
+
export { BaseRender };
|
|
106
|
+
//# sourceMappingURL=base-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/render/contributions/render/base-render.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAgB5D,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,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injectable } from '../../../common/inversify-lite';\nimport type {\n IGraphicAttribute,\n ICamera,\n IContext2d,\n IGraphic,\n mat4,\n IRenderService,\n IDrawContext,\n IGraphicRenderDrawParams,\n IMarkAttribute,\n IThemeAttribute,\n IContributionProvider,\n ICircleRenderContribution,\n IBaseRenderContribution\n} from '../../../interface';\nimport { getModelMatrix, multiplyMat4Mat4, shouldUseMat4 } from '../../../graphic';\nimport { mat4Allocate } from '../../../allocator/matrix-allocate';\nimport { drawPathProxy, fillVisible, runFill, runStroke, strokeVisible } from './utils';\nimport { BaseRenderContributionTime } from '../../../common/enums';\n\n@injectable()\nexport abstract class BaseRender<T extends IGraphic> {\n camera: ICamera;\n declare z: number;\n\n declare renderContribitions: IContributionProvider<IBaseRenderContribution<T, T['attribute']>> | null;\n\n protected _beforeRenderContribitions: IBaseRenderContribution<T, T['attribute']>[];\n protected _afterRenderContribitions: IBaseRenderContribution<T, T['attribute']>[];\n protected _renderContribitions: IBaseRenderContribution<T, T['attribute']>[];\n\n init(contributions?: IContributionProvider<IBaseRenderContribution<T, T['attribute']>>) {\n if (contributions) {\n this.renderContribitions = contributions;\n this._renderContribitions = contributions.getContributions();\n if (this._renderContribitions.length) {\n this._renderContribitions.sort((a, b) => b.order - a.order);\n this._beforeRenderContribitions = this._renderContribitions.filter(\n c => c.time === BaseRenderContributionTime.beforeFillStroke\n );\n this._afterRenderContribitions = this._renderContribitions.filter(\n c => c.time === BaseRenderContributionTime.afterFillStroke\n );\n }\n }\n }\n\n beforeRenderStep(\n graphic: T,\n context: IContext2d,\n x: number,\n y: number,\n doFill: boolean,\n doStroke: boolean,\n fVisible: boolean,\n sVisible: boolean,\n graphicAttribute: Required<T['attribute']>,\n drawContext: IDrawContext,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n params?: any\n ) {\n this._beforeRenderContribitions &&\n this._beforeRenderContribitions.forEach(c => {\n c.drawShape(\n graphic,\n context,\n x,\n y,\n doFill,\n doStroke,\n fVisible,\n sVisible,\n graphicAttribute,\n drawContext,\n fillCb,\n strokeCb,\n params\n );\n });\n }\n\n afterRenderStep(\n graphic: T,\n context: IContext2d,\n x: number,\n y: number,\n doFill: boolean,\n doStroke: boolean,\n fVisible: boolean,\n sVisible: boolean,\n graphicAttribute: Required<T['attribute']>,\n drawContext: IDrawContext,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n params?: any\n ) {\n this._afterRenderContribitions &&\n this._afterRenderContribitions.forEach(c => {\n c.drawShape(\n graphic,\n context,\n x,\n y,\n doFill,\n doStroke,\n fVisible,\n sVisible,\n graphicAttribute,\n drawContext,\n fillCb,\n strokeCb,\n params\n );\n });\n }\n\n valid(graphic: IGraphic, defaultAttribute: IGraphicAttribute, fillCb?: any, strokeCb?: any) {\n const {\n fill = defaultAttribute.fill,\n background,\n stroke = defaultAttribute.stroke,\n opacity = defaultAttribute.opacity,\n fillOpacity = defaultAttribute.fillOpacity,\n lineWidth = defaultAttribute.lineWidth,\n strokeOpacity = defaultAttribute.strokeOpacity,\n visible = defaultAttribute.visible\n } = graphic.attribute;\n const fVisible = fillVisible(opacity, fillOpacity, fill);\n const sVisible = strokeVisible(opacity, strokeOpacity);\n const doFill = runFill(fill, background);\n const doStroke = runStroke(stroke, lineWidth);\n\n if (!(graphic.valid && visible)) {\n return false;\n }\n\n if (!(doFill || doStroke)) {\n return false;\n }\n\n // 如果存在fillCb和strokeCb,以及background那就不直接跳过\n if (!(fVisible || sVisible || fillCb || strokeCb || background)) {\n return false;\n }\n return {\n fVisible,\n sVisible,\n doFill,\n doStroke\n };\n }\n\n /**\n * 进行2d或3d变换\n * @param graphic\n * @param graphicAttribute\n * @param context\n * @param use3dMatrixIn3dMode 是否在3d模式使用3d矩阵\n * @returns\n */\n transform(\n graphic: IGraphic,\n graphicAttribute: IGraphicAttribute,\n context: IContext2d,\n use3dMatrixIn3dMode: boolean = false\n ): IPointLike & { z: number; lastModelMatrix: mat4 } {\n const transMatrix = graphic.transMatrix;\n const {\n x = graphicAttribute.x,\n y = graphicAttribute.y,\n z = graphicAttribute.z,\n scaleX = graphicAttribute.scaleX,\n scaleY = graphicAttribute.scaleY,\n angle = graphicAttribute.angle,\n postMatrix\n } = graphic.attribute;\n const onlyTranslate = transMatrix.onlyTranslate() && !postMatrix;\n\n // 存在3d变换的时候,需要计算3d矩阵\n const lastModelMatrix = context.modelMatrix;\n const camera = context.camera;\n const result: IPointLike & { z: number; lastModelMatrix: mat4 } = { x, y, z, lastModelMatrix };\n // 是否应该进行3d变换\n const shouldTransform3d = camera && (use3dMatrixIn3dMode || shouldUseMat4(graphic));\n if (shouldTransform3d) {\n const nextModelMatrix = mat4Allocate.allocate();\n // 计算模型矩阵\n const modelMatrix = mat4Allocate.allocate();\n getModelMatrix(modelMatrix, graphic, graphicAttribute);\n // 合并模型矩阵\n if (lastModelMatrix) {\n multiplyMat4Mat4(nextModelMatrix, lastModelMatrix, modelMatrix);\n } else {\n multiplyMat4Mat4(nextModelMatrix, nextModelMatrix, modelMatrix);\n }\n result.x = 0;\n result.y = 0;\n result.z = 0;\n context.modelMatrix = nextModelMatrix;\n context.setTransform(1, 0, 0, 1, 0, 0, true);\n mat4Allocate.free(modelMatrix);\n // 有旋转的情况下需要手动计算模型矩阵\n // TODO: 这里暂时都使用模型矩阵,因为视角旋转的时候如果当不固定角度那也需要用到模型矩阵\n }\n\n // 如果只有位移,且没计算3d变换矩阵,那么不设置context的2d矩阵\n if (onlyTranslate && !lastModelMatrix) {\n const point = graphic.getOffsetXY(graphicAttribute);\n result.x += point.x;\n result.y += point.y;\n result.z = z;\n // 当前context有rotate/scale,重置matrix\n context.setTransformForCurrent();\n } else if (shouldTransform3d) {\n // 如果计算了3d矩阵,那么就不需要2d矩阵计算了\n result.x = 0;\n result.y = 0;\n result.z = 0;\n context.setTransform(1, 0, 0, 1, 0, 0, true);\n } else {\n if (camera && context.project) {\n const point = graphic.getOffsetXY(graphicAttribute);\n result.x += point.x;\n result.y += point.y;\n // result.x = 0;\n // result.y = 0;\n // 位置直接通过project设置,而2d变换通过变换矩阵完成\n this.transformWithoutTranslate(context, result.x, result.y, result.z, scaleX, scaleY, angle);\n } else {\n // 如果是纯2d的情况,那么直接设置context的2d矩阵\n // 性能较差\n context.transformFromMatrix(graphic.transMatrix, true);\n result.x = 0;\n result.y = 0;\n result.z = 0;\n }\n }\n\n return result;\n }\n\n /**\n * 将3d的transform转成context2d的transform\n * @param graphic\n * @param graphicAttribute\n * @param z\n * @param context\n */\n transformUseContext2d(graphic: IGraphic, graphicAttribute: IGraphicAttribute, z: number, context: IContext2d) {\n const camera = context.camera;\n this.camera = camera;\n if (camera) {\n const bounds = graphic.AABBBounds;\n const width = bounds.x2 - bounds.x1;\n const height = bounds.y2 - bounds.y1;\n const p1 = context.project(0, 0, z);\n const p2 = context.project(width, 0, z);\n const p3 = context.project(width, height, z);\n const _p1 = { x: 0, y: 0 };\n const _p2 = { x: width, y: 0 };\n const _p3 = { x: width, y: height };\n\n context.camera = null;\n\n // 生成3维矩阵\n /* Adapted from phoria.js by ecomfe\n * https://github.com/kevinroast/phoria.js\n * Licensed under the BSD-3-Clause\n\n * url: https://github.com/kevinroast/phoria.js/blob/736c6b854a679df180f8a6e689aeb218efa6dc01/scripts/phoria-renderer.js\n * License: https://github.com/kevinroast/phoria.js/blob/master/LICENSE\n * @license\n */\n const denom = 1.0 / (_p1.x * (_p3.y - _p2.y) - _p2.x * _p3.y + _p3.x * _p2.y + (_p2.x - _p3.x) * _p1.y);\n // calculate context transformation matrix\n const m11 = -(_p1.y * (p3.x - p2.x) - _p2.y * p3.x + _p3.y * p2.x + (_p2.y - _p3.y) * p1.x) * denom;\n const m12 = (_p2.y * p3.y + _p1.y * (p2.y - p3.y) - _p3.y * p2.y + (_p3.y - _p2.y) * p1.y) * denom;\n const m21 = (_p1.x * (p3.x - p2.x) - _p2.x * p3.x + _p3.x * p2.x + (_p2.x - _p3.x) * p1.x) * denom;\n const m22 = -(_p2.x * p3.y + _p1.x * (p2.y - p3.y) - _p3.x * p2.y + (_p3.x - _p2.x) * p1.y) * denom;\n const dx =\n (_p1.x * (_p3.y * p2.x - _p2.y * p3.x) +\n _p1.y * (_p2.x * p3.x - _p3.x * p2.x) +\n (_p3.x * _p2.y - _p2.x * _p3.y) * p1.x) *\n denom;\n const dy =\n (_p1.x * (_p3.y * p2.y - _p2.y * p3.y) +\n _p1.y * (_p2.x * p3.y - _p3.x * p2.y) +\n (_p3.x * _p2.y - _p2.x * _p3.y) * p1.y) *\n denom;\n\n context.setTransform(m11, m12, m21, m22, dx, dy, true);\n }\n }\n\n /**\n * transformUseContext2d的后处理\n * @param graphic\n * @param graphicAttribute\n * @param z\n * @param context\n */\n restoreTransformUseContext2d(graphic: IGraphic, graphicAttribute: IGraphicAttribute, z: number, context: IContext2d) {\n if (this.camera) {\n context.camera = this.camera;\n }\n }\n\n protected transformWithoutTranslate(\n context: IContext2d,\n x: number,\n y: number,\n z: number,\n scaleX: number,\n scaleY: number,\n angle: number\n ) {\n const p = context.project(x, y, z);\n context.translate(p.x, p.y, false);\n context.scale(scaleX, scaleY, false);\n context.rotate(angle, false);\n context.translate(-p.x, -p.y, false);\n context.setTransformForCurrent();\n }\n\n _draw(\n graphic: T,\n defaultAttr: IGraphicAttribute,\n computed3dMatrix: boolean,\n drawContext: IDrawContext,\n params?: IGraphicRenderDrawParams\n ) {\n const { context } = drawContext;\n if (!context) {\n return;\n }\n\n context.highPerformanceSave();\n\n const data = this.transform(graphic, defaultAttr, context, computed3dMatrix);\n const { x, y, z, lastModelMatrix } = data;\n\n this.z = z;\n if (drawPathProxy(graphic, context, x, y, drawContext, params)) {\n context.highPerformanceRestore();\n return;\n }\n\n this.drawShape(graphic, context, x, y, drawContext, params);\n this.z = 0;\n\n if (context.modelMatrix !== lastModelMatrix) {\n mat4Allocate.free(context.modelMatrix);\n }\n context.modelMatrix = lastModelMatrix;\n\n context.highPerformanceRestore();\n }\n\n drawShape?(\n path: T,\n context: IContext2d,\n x: number,\n y: number,\n drawContext: IDrawContext,\n params?: IGraphicRenderDrawParams,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean\n ): void;\n\n // abstract drawShape(\n // graphic: T,\n // context: IContext2d,\n // x: number,\n // y: number,\n // drawContext: IDrawContext,\n // params?: IGraphicRenderDrawParams,\n // fillCb?: (\n // ctx: IContext2d,\n // markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n // themeAttribute: IThemeAttribute\n // ) => boolean,\n // strokeCb?: (\n // ctx: IContext2d,\n // markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n // themeAttribute: IThemeAttribute\n // ) => boolean\n // ): void;\n\n // drawPathProxy(\n // graphic: T,\n // context: IContext2d,\n // x: number,\n // y: number,\n // drawContext: IDrawContext,\n // params?: IGraphicRenderDrawParams,\n // fillCb?: (\n // ctx: IContext2d,\n // markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n // themeAttribute: IThemeAttribute\n // ) => boolean,\n // strokeCb?: (\n // ctx: IContext2d,\n // markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n // themeAttribute: IThemeAttribute\n // ) => boolean\n // ) {\n // if (!graphic.pathProxy) {\n // return false;\n // }\n\n // const themeAttributes = getTheme(graphic)[graphic.type];\n\n // const {\n // fill = themeAttributes.fill == null ? !!graphic.attribute.fillColor : themeAttributes.fill,\n // stroke = themeAttributes.stroke == null ? !!graphic.attribute.strokeColor : themeAttributes.stroke,\n // opacity = themeAttributes.opacity,\n // fillOpacity = themeAttributes.fillOpacity,\n // lineWidth = themeAttributes.lineWidth,\n // strokeOpacity = themeAttributes.strokeOpacity,\n // visible = themeAttributes.visible\n // } = graphic.attribute;\n // // 不绘制或者透明\n // const fVisible = fillVisible(opacity, fillOpacity);\n // const sVisible = strokeVisible(opacity, strokeOpacity);\n // const doFill = runFill(fill);\n // const doStroke = runStroke(stroke, lineWidth);\n\n // if (!visible) {\n // return true;\n // }\n\n // if (!(doFill || doStroke)) {\n // return true;\n // }\n\n // // 如果存在fillCb和strokeCb,那就不直接跳过\n // if (!(fVisible || sVisible || fillCb || strokeCb)) {\n // return true;\n // }\n\n // context.beginPath();\n\n // const path = typeof graphic.pathProxy === 'function' ? graphic.pathProxy(graphic.attribute) : graphic.pathProxy;\n // renderCommandList(path.commandList, context, x, y);\n\n // // shadow\n // context.setShadowStyle && context.setShadowStyle(graphic, graphic.attribute, themeAttributes);\n\n // if (doStroke) {\n // if (strokeCb) {\n // strokeCb(context, graphic.attribute, themeAttributes);\n // } else if (sVisible) {\n // context.setStrokeStyle(graphic, graphic.attribute, 0, 0, themeAttributes);\n // context.stroke();\n // }\n // }\n // if (doFill) {\n // if (fillCb) {\n // fillCb(context, graphic.attribute, themeAttributes);\n // } else if (fVisible) {\n // context.setCommonStyle(graphic, graphic.attribute, 0, 0, themeAttributes);\n // context.fill();\n // }\n // }\n // return true;\n // }\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IGraphicAttribute, ICircle, IContext2d, IMarkAttribute, IThemeAttribute, ICircleRenderContribution, IDrawContext, IRenderService, IGraphicRender, IGraphicRenderDrawParams, IContributionProvider } from '../../../interface';
|
|
2
|
+
import { BaseRender } from './base-render';
|
|
3
|
+
export declare class DefaultCanvasCircleRender extends BaseRender<ICircle> implements IGraphicRender {
|
|
4
|
+
protected readonly circleRenderContribitions: IContributionProvider<ICircleRenderContribution>;
|
|
5
|
+
type: 'circle';
|
|
6
|
+
numberType: number;
|
|
7
|
+
constructor(circleRenderContribitions: IContributionProvider<ICircleRenderContribution>);
|
|
8
|
+
drawShape(circle: ICircle, context: IContext2d, x: number, y: number, drawContext: IDrawContext, params?: IGraphicRenderDrawParams, fillCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, strokeCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean): void;
|
|
9
|
+
draw(circle: ICircle, renderService: IRenderService, drawContext: IDrawContext, params?: IGraphicRenderDrawParams): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
|
|
2
|
+
var d, c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
3
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
4
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5
|
+
}, __metadata = this && this.__metadata || function(k, v) {
|
|
6
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
7
|
+
}, __param = this && this.__param || function(paramIndex, decorator) {
|
|
8
|
+
return function(target, key) {
|
|
9
|
+
decorator(target, key, paramIndex);
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
import { inject, injectable, named } from "../../../common/inversify-lite";
|
|
14
|
+
|
|
15
|
+
import { getTheme } from "../../../graphic/theme";
|
|
16
|
+
|
|
17
|
+
import { CIRCLE_NUMBER_TYPE } from "../../../graphic/constants";
|
|
18
|
+
|
|
19
|
+
import { CircleRenderContribution } from "./contributions/constants";
|
|
20
|
+
|
|
21
|
+
import { ContributionProvider } from "../../../common/contribution-provider";
|
|
22
|
+
|
|
23
|
+
import { BaseRender } from "./base-render";
|
|
24
|
+
|
|
25
|
+
let DefaultCanvasCircleRender = class extends BaseRender {
|
|
26
|
+
constructor(circleRenderContribitions) {
|
|
27
|
+
super(), this.circleRenderContribitions = circleRenderContribitions, this.numberType = CIRCLE_NUMBER_TYPE,
|
|
28
|
+
this.init(circleRenderContribitions);
|
|
29
|
+
}
|
|
30
|
+
drawShape(circle, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
31
|
+
const circleAttribute = getTheme(circle, null == params ? void 0 : params.theme).circle, {radius: radius = circleAttribute.radius, startAngle: startAngle = circleAttribute.startAngle, endAngle: endAngle = circleAttribute.endAngle, x: originX = circleAttribute.x, y: originY = circleAttribute.y} = circle.attribute, data = this.valid(circle, circleAttribute, fillCb, strokeCb);
|
|
32
|
+
if (!data) return;
|
|
33
|
+
const {fVisible: fVisible, sVisible: sVisible, doFill: doFill, doStroke: doStroke} = data;
|
|
34
|
+
context.beginPath(), context.arc(x, y, radius, startAngle, endAngle), context.closePath(),
|
|
35
|
+
this.beforeRenderStep(circle, context, x, y, doFill, doStroke, fVisible, sVisible, circleAttribute, drawContext, fillCb, strokeCb),
|
|
36
|
+
context.setShadowStyle && context.setShadowStyle(circle, circle.attribute, circleAttribute),
|
|
37
|
+
doFill && (fillCb ? fillCb(context, circle.attribute, circleAttribute) : fVisible && (context.setCommonStyle(circle, circle.attribute, originX - x, originY - y, circleAttribute),
|
|
38
|
+
context.fill())), doStroke && (strokeCb ? strokeCb(context, circle.attribute, circleAttribute) : sVisible && (context.setStrokeStyle(circle, circle.attribute, originX - x, originY - y, circleAttribute),
|
|
39
|
+
context.stroke())), this.afterRenderStep(circle, context, x, y, doFill, doStroke, fVisible, sVisible, circleAttribute, drawContext, fillCb, strokeCb);
|
|
40
|
+
}
|
|
41
|
+
draw(circle, renderService, drawContext, params) {
|
|
42
|
+
const circleAttribute = getTheme(circle, null == params ? void 0 : params.theme).circle;
|
|
43
|
+
this._draw(circle, circleAttribute, !1, drawContext, params);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
DefaultCanvasCircleRender = __decorate([ injectable(), __param(0, inject(ContributionProvider)), __param(0, named(CircleRenderContribution)), __metadata("design:paramtypes", [ Object ]) ], DefaultCanvasCircleRender);
|
|
48
|
+
|
|
49
|
+
export { DefaultCanvasCircleRender };
|
|
50
|
+
//# sourceMappingURL=circle-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/render/contributions/render/circle-render.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAc3E,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGpC,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,UAAmB;IAIhE,YAGqB,yBAA2E;QAE9F,KAAK,EAAE,CAAC;QAFW,8BAAyB,GAAzB,yBAAyB,CAAkD;QALhG,eAAU,GAAW,kBAAkB,CAAC;QAQtC,IAAI,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IACvC,CAAC;IAED,SAAS,CACP,MAAe,EACf,OAAmB,EACnB,CAAS,EACT,CAAS,EACT,WAAyB,EACzB,MAAiC,EACjC,MAIY,EACZ,QAIY;QAGZ,MAAM,eAAe,GAAG,QAA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E,MAAM,CAAC,SAAS,EAAE,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,CAAC,EAAE,eAAe,CAAC,CAAC;gBAC5F,OAAO,CAAC,IAAI,EAAE,CAAC;aAChB;SACF;QAED,IAAI,QAAQ,EAAE;YACZ,IAAI,QAAQ,EAAE;gBACZ,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;aACtD;iBAAM,IAAI,QAAQ,EAAE;gBACnB,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,CAAC,EAAE,eAAe,CAAC,CAAC;gBAC5F,OAAO,CAAC,MAAM,EAAE,CAAC;aAClB;SACF;QAED,IAAI,CAAC,eAAe,CAClB,MAAM,EACN,OAAO,EACP,CAAC,EACD,CAAC,EACD,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,WAAW,EACX,MAAM,EACN,QAAQ,CACT,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,MAAe,EAAE,aAA6B,EAAE,WAAyB,EAAE,MAAiC;QAC/G,MAAM,eAAe,GAAG,QAAQ,CAAC,MAAM,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAC,CAAC,MAAM,CAAC;QAC/D,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;IAClE,CAAC;CACF,CAAA;AA3GY,yBAAyB;IADrC,UAAU,EAAE;IAMR,WAAA,MAAM,CAAC,oBAAoB,CAAC,CAAA;IAC5B,WAAA,KAAK,CAAC,wBAAwB,CAAC,CAAA;;GANvB,yBAAyB,CA2GrC;SA3GY,yBAAyB","file":"circle-render.js","sourcesContent":["import { inject, injectable, named } from '../../../common/inversify-lite';\nimport type {\n IGraphicAttribute,\n ICircle,\n IContext2d,\n IMarkAttribute,\n IThemeAttribute,\n ICircleRenderContribution,\n IDrawContext,\n IRenderService,\n IGraphicRender,\n IGraphicRenderDrawParams,\n IContributionProvider\n} from '../../../interface';\nimport { getTheme } from '../../../graphic/theme';\nimport { CIRCLE_NUMBER_TYPE } from '../../../graphic/constants';\nimport { CircleRenderContribution } from './contributions/constants';\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\nimport { ContributionProvider } from '../../../common/contribution-provider';\nimport { drawPathProxy, fillVisible, runFill, runStroke, strokeVisible } from './utils';\nimport { BaseRenderContributionTime } from '../../../common/enums';\nimport { BaseRender } from './base-render';\n\n@injectable()\nexport class DefaultCanvasCircleRender extends BaseRender<ICircle> implements IGraphicRender {\n type: 'circle';\n numberType: number = CIRCLE_NUMBER_TYPE;\n\n constructor(\n @inject(ContributionProvider)\n @named(CircleRenderContribution)\n protected readonly circleRenderContribitions: IContributionProvider<ICircleRenderContribution>\n ) {\n super();\n this.init(circleRenderContribitions);\n }\n\n drawShape(\n circle: ICircle,\n context: IContext2d,\n x: number,\n y: number,\n drawContext: IDrawContext,\n params?: IGraphicRenderDrawParams,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean\n ) {\n // const circleAttribute = graphicService.themeService.getCurrentTheme().circleAttribute;\n const circleAttribute = getTheme(circle, params?.theme).circle;\n const {\n radius = circleAttribute.radius,\n startAngle = circleAttribute.startAngle,\n endAngle = circleAttribute.endAngle,\n x: originX = circleAttribute.x,\n y: originY = circleAttribute.y\n } = circle.attribute;\n\n const data = this.valid(circle, circleAttribute, fillCb, strokeCb);\n if (!data) {\n return;\n }\n const { fVisible, sVisible, doFill, doStroke } = data;\n\n context.beginPath();\n context.arc(x, y, radius, startAngle, endAngle);\n context.closePath();\n\n this.beforeRenderStep(\n circle,\n context,\n x,\n y,\n doFill,\n doStroke,\n fVisible,\n sVisible,\n circleAttribute,\n drawContext,\n fillCb,\n strokeCb\n );\n\n // shadow\n context.setShadowStyle && context.setShadowStyle(circle, circle.attribute, circleAttribute);\n\n if (doFill) {\n if (fillCb) {\n fillCb(context, circle.attribute, circleAttribute);\n } else if (fVisible) {\n context.setCommonStyle(circle, circle.attribute, originX - x, originY - y, circleAttribute);\n context.fill();\n }\n }\n\n if (doStroke) {\n if (strokeCb) {\n strokeCb(context, circle.attribute, circleAttribute);\n } else if (sVisible) {\n context.setStrokeStyle(circle, circle.attribute, originX - x, originY - y, circleAttribute);\n context.stroke();\n }\n }\n\n this.afterRenderStep(\n circle,\n context,\n x,\n y,\n doFill,\n doStroke,\n fVisible,\n sVisible,\n circleAttribute,\n drawContext,\n fillCb,\n strokeCb\n );\n }\n\n draw(circle: ICircle, renderService: IRenderService, drawContext: IDrawContext, params?: IGraphicRenderDrawParams) {\n const circleAttribute = getTheme(circle, params?.theme).circle;\n this._draw(circle, circleAttribute, false, drawContext, params);\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/render/contributions/render/clear-screen.ts"],"names":[],"mappings":"","file":"clear-screen.js","sourcesContent":["// export class ClearScreenContribution extends Be\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IGraphicAttribute, IContext2d, IMarkAttribute, IArc, IArcGraphicAttribute, IThemeAttribute, IArcRenderContribution, IDrawContext } from '../../../../interface';
|
|
2
|
+
import { DefaultBaseBackgroundRenderContribution, DefaultBaseTextureRenderContribution } from './base-contribution-render';
|
|
3
|
+
import { BaseRenderContributionTime } from '../../../../common/enums';
|
|
4
|
+
export declare class DefaultArcRenderContribution implements IArcRenderContribution {
|
|
5
|
+
time: BaseRenderContributionTime;
|
|
6
|
+
useStyle: boolean;
|
|
7
|
+
order: number;
|
|
8
|
+
drawShape(arc: IArc, context: IContext2d, x: number, y: number, doFill: boolean, doStroke: boolean, fVisible: boolean, sVisible: boolean, arcAttribute: Required<IArcGraphicAttribute>, drawContext: IDrawContext, fillCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, strokeCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean): void;
|
|
9
|
+
}
|
|
10
|
+
export declare class DefaultArcBackgroundRenderContribution extends DefaultBaseBackgroundRenderContribution implements IArcRenderContribution {
|
|
11
|
+
time: BaseRenderContributionTime;
|
|
12
|
+
}
|
|
13
|
+
export declare class DefaultArcTextureRenderContribution extends DefaultBaseTextureRenderContribution implements IArcRenderContribution {
|
|
14
|
+
time: BaseRenderContributionTime;
|
|
15
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
|
|
2
|
+
var d, c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
3
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
4
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
import { injectable } from "../../../../common/inversify-lite";
|
|
8
|
+
|
|
9
|
+
import { getScaledStroke } from "../../../../common/canvas-utils";
|
|
10
|
+
|
|
11
|
+
import { DefaultBaseBackgroundRenderContribution, DefaultBaseTextureRenderContribution } from "./base-contribution-render";
|
|
12
|
+
|
|
13
|
+
import { drawArcPath } from "../utils";
|
|
14
|
+
|
|
15
|
+
import { BaseRenderContributionTime } from "../../../../common/enums";
|
|
16
|
+
|
|
17
|
+
let DefaultArcRenderContribution = class {
|
|
18
|
+
constructor() {
|
|
19
|
+
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
20
|
+
}
|
|
21
|
+
drawShape(arc, context, x, y, doFill, doStroke, fVisible, sVisible, arcAttribute, drawContext, fillCb, strokeCb) {
|
|
22
|
+
const {outerBorder: outerBorder, innerBorder: innerBorder} = arc.attribute, doOuterBorder = outerBorder && !1 !== outerBorder.visible, doInnerBorder = innerBorder && !1 !== innerBorder.visible;
|
|
23
|
+
if (!doOuterBorder && !doInnerBorder) return;
|
|
24
|
+
const {innerRadius: innerRadius = arcAttribute.innerRadius, outerRadius: outerRadius = arcAttribute.outerRadius, startAngle: startAngle = arcAttribute.startAngle, endAngle: endAngle = arcAttribute.endAngle, opacity: opacity = arcAttribute.opacity, x: originX = arcAttribute.x, y: originY = arcAttribute.y, scaleX: scaleX = arcAttribute.scaleX, scaleY: scaleY = arcAttribute.scaleY} = arc.attribute, doStrokeOuter = !(!outerBorder || !outerBorder.stroke), doStrokeInner = !(!innerBorder || !innerBorder.stroke);
|
|
25
|
+
if (doOuterBorder) {
|
|
26
|
+
const {distance: distance = arcAttribute.outerBorder.distance} = outerBorder, d = getScaledStroke(context, distance, context.dpr), deltaAngle = distance / outerRadius;
|
|
27
|
+
if (arc.setAttributes({
|
|
28
|
+
outerRadius: outerRadius + d,
|
|
29
|
+
innerRadius: innerRadius - d,
|
|
30
|
+
startAngle: startAngle - deltaAngle,
|
|
31
|
+
endAngle: endAngle + deltaAngle
|
|
32
|
+
}), context.beginPath(), drawArcPath(arc, context, x, y, outerRadius + d, innerRadius - d),
|
|
33
|
+
context.setShadowStyle && context.setShadowStyle(arc, arc.attribute, arcAttribute),
|
|
34
|
+
strokeCb) strokeCb(context, outerBorder, arcAttribute.outerBorder); else if (doStrokeOuter) {
|
|
35
|
+
const lastOpacity = arcAttribute.outerBorder.opacity;
|
|
36
|
+
arcAttribute.outerBorder.opacity = opacity, context.setStrokeStyle(arc, outerBorder, (originX - x) / scaleX, (originY - y) / scaleY, arcAttribute.outerBorder),
|
|
37
|
+
arcAttribute.outerBorder.opacity = lastOpacity, context.stroke();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (doInnerBorder) {
|
|
41
|
+
const {distance: distance = arcAttribute.innerBorder.distance} = innerBorder, d = getScaledStroke(context, distance, context.dpr), deltaAngle = distance / outerRadius;
|
|
42
|
+
if (arc.setAttributes({
|
|
43
|
+
outerRadius: outerRadius - d,
|
|
44
|
+
innerRadius: innerRadius + d,
|
|
45
|
+
startAngle: startAngle + deltaAngle,
|
|
46
|
+
endAngle: endAngle - deltaAngle
|
|
47
|
+
}), context.beginPath(), drawArcPath(arc, context, x, y, outerRadius - d, innerRadius + d),
|
|
48
|
+
context.setShadowStyle && context.setShadowStyle(arc, arc.attribute, arcAttribute),
|
|
49
|
+
strokeCb) strokeCb(context, innerBorder, arcAttribute.innerBorder); else if (doStrokeInner) {
|
|
50
|
+
const lastOpacity = arcAttribute.innerBorder.opacity;
|
|
51
|
+
arcAttribute.innerBorder.opacity = opacity, context.setStrokeStyle(arc, innerBorder, (originX - x) / scaleX, (originY - y) / scaleY, arcAttribute.innerBorder),
|
|
52
|
+
arcAttribute.innerBorder.opacity = lastOpacity, context.stroke();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
arc.setAttributes({
|
|
56
|
+
outerRadius: outerRadius,
|
|
57
|
+
innerRadius: innerRadius,
|
|
58
|
+
startAngle: startAngle,
|
|
59
|
+
endAngle: endAngle
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
DefaultArcRenderContribution = __decorate([ injectable() ], DefaultArcRenderContribution);
|
|
65
|
+
|
|
66
|
+
export { DefaultArcRenderContribution };
|
|
67
|
+
|
|
68
|
+
let DefaultArcBackgroundRenderContribution = class extends DefaultBaseBackgroundRenderContribution {
|
|
69
|
+
constructor() {
|
|
70
|
+
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
DefaultArcBackgroundRenderContribution = __decorate([ injectable() ], DefaultArcBackgroundRenderContribution);
|
|
75
|
+
|
|
76
|
+
export { DefaultArcBackgroundRenderContribution };
|
|
77
|
+
|
|
78
|
+
let DefaultArcTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
|
|
79
|
+
constructor() {
|
|
80
|
+
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
DefaultArcTextureRenderContribution = __decorate([ injectable() ], DefaultArcTextureRenderContribution);
|
|
85
|
+
|
|
86
|
+
export { DefaultArcTextureRenderContribution };
|
|
87
|
+
//# sourceMappingURL=arc-contribution-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/render/contributions/render/contributions/arc-contribution-render.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAW/D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EACL,uCAAuC,EACvC,oCAAoC,EACrC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAG/D,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAAlC;QACL,SAAI,GAA+B,0BAA0B,CAAC,eAAe,CAAC;QAC9E,aAAQ,GAAY,IAAI,CAAC;QACzB,UAAK,GAAW,CAAC,CAAC;IAiHpB,CAAC;IAhHC,SAAS,CACP,GAAS,EACT,OAAmB,EACnB,CAAS,EACT,CAAS,EACT,MAAe,EACf,QAAiB,EACjB,QAAiB,EACjB,QAAiB,EACjB,YAA4C,EAC5C,WAAyB,EACzB,MAIY,EACZ,QAIY;QAE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IACjF,CAAC;CAAA,CAAA;AALY,sCAAsC;IADlD,UAAU,EAAE;GACA,sCAAsC,CAKlD;SALY,sCAAsC;AAQ5C,IAAM,mCAAmC,GAAzC,MAAM,mCACX,SAAQ,oCAAoC;IADvC;;QAIL,SAAI,GAA+B,0BAA0B,CAAC,eAAe,CAAC;IAChF,CAAC;CAAA,CAAA;AALY,mCAAmC;IAD/C,UAAU,EAAE;GACA,mCAAmC,CAK/C;SALY,mCAAmC","file":"arc-contribution-render.js","sourcesContent":["import { injectable } from '../../../../common/inversify-lite';\nimport type {\n IGraphicAttribute,\n IContext2d,\n IMarkAttribute,\n IArc,\n IArcGraphicAttribute,\n IThemeAttribute,\n IArcRenderContribution,\n IDrawContext\n} from '../../../../interface';\nimport { getScaledStroke } from '../../../../common/canvas-utils';\nimport {\n DefaultBaseBackgroundRenderContribution,\n DefaultBaseTextureRenderContribution\n} from './base-contribution-render';\nimport { drawArcPath } from '../utils';\nimport { BaseRenderContributionTime } from '../../../../common/enums';\n\n@injectable()\nexport class DefaultArcRenderContribution implements IArcRenderContribution {\n time: BaseRenderContributionTime = BaseRenderContributionTime.afterFillStroke;\n useStyle: boolean = true;\n order: number = 0;\n drawShape(\n arc: IArc,\n context: IContext2d,\n x: number,\n y: number,\n doFill: boolean,\n doStroke: boolean,\n fVisible: boolean,\n sVisible: boolean,\n arcAttribute: Required<IArcGraphicAttribute>,\n drawContext: IDrawContext,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean\n ) {\n const { outerBorder, innerBorder } = arc.attribute;\n const doOuterBorder = outerBorder && outerBorder.visible !== false;\n const doInnerBorder = innerBorder && innerBorder.visible !== false;\n if (!(doOuterBorder || doInnerBorder)) {\n return;\n }\n const {\n innerRadius = arcAttribute.innerRadius,\n outerRadius = arcAttribute.outerRadius,\n startAngle = arcAttribute.startAngle,\n endAngle = arcAttribute.endAngle,\n opacity = arcAttribute.opacity,\n x: originX = arcAttribute.x,\n y: originY = arcAttribute.y,\n scaleX = arcAttribute.scaleX,\n scaleY = arcAttribute.scaleY\n } = arc.attribute;\n const doStrokeOuter = !!(outerBorder && outerBorder.stroke);\n const doStrokeInner = !!(innerBorder && innerBorder.stroke);\n\n if (doOuterBorder) {\n const { distance = arcAttribute.outerBorder.distance } = outerBorder;\n const d = getScaledStroke(context, distance as number, context.dpr);\n const deltaAngle = (distance as number) / outerRadius;\n arc.setAttributes({\n outerRadius: outerRadius + d,\n innerRadius: innerRadius - d,\n startAngle: startAngle - deltaAngle,\n endAngle: endAngle + deltaAngle\n } as any);\n context.beginPath();\n drawArcPath(arc, context, x, y, outerRadius + d, innerRadius - d);\n // shadow\n context.setShadowStyle && context.setShadowStyle(arc, arc.attribute, arcAttribute);\n\n if (strokeCb) {\n strokeCb(context, outerBorder, arcAttribute.outerBorder);\n } else if (doStrokeOuter) {\n // 存在stroke\n const lastOpacity = (arcAttribute.outerBorder as any).opacity;\n (arcAttribute.outerBorder as any).opacity = opacity;\n context.setStrokeStyle(\n arc,\n outerBorder,\n (originX - x) / scaleX,\n (originY - y) / scaleY,\n arcAttribute.outerBorder as any\n );\n (arcAttribute.outerBorder as any).opacity = lastOpacity;\n context.stroke();\n }\n }\n\n if (doInnerBorder) {\n const { distance = arcAttribute.innerBorder.distance } = innerBorder;\n const d = getScaledStroke(context, distance as number, context.dpr);\n const deltaAngle = (distance as number) / outerRadius;\n arc.setAttributes({\n outerRadius: outerRadius - d,\n innerRadius: innerRadius + d,\n startAngle: startAngle + deltaAngle,\n endAngle: endAngle - deltaAngle\n } as any);\n context.beginPath();\n drawArcPath(arc, context, x, y, outerRadius - d, innerRadius + d);\n // arc.setAttributes({ outerRadius: outerRadius, innerRadius: innerRadius });\n\n // shadow\n context.setShadowStyle && context.setShadowStyle(arc, arc.attribute, arcAttribute);\n\n if (strokeCb) {\n strokeCb(context, innerBorder, arcAttribute.innerBorder);\n } else if (doStrokeInner) {\n // 存在stroke\n const lastOpacity = (arcAttribute.innerBorder as any).opacity;\n (arcAttribute.innerBorder as any).opacity = opacity;\n context.setStrokeStyle(\n arc,\n innerBorder,\n (originX - x) / scaleX,\n (originY - y) / scaleY,\n arcAttribute.innerBorder as any\n );\n (arcAttribute.innerBorder as any).opacity = lastOpacity;\n context.stroke();\n }\n }\n\n arc.setAttributes({ outerRadius: outerRadius, innerRadius: innerRadius, startAngle, endAngle } as any);\n }\n}\n\n@injectable()\nexport class DefaultArcBackgroundRenderContribution\n extends DefaultBaseBackgroundRenderContribution\n implements IArcRenderContribution\n{\n time: BaseRenderContributionTime = BaseRenderContributionTime.beforeFillStroke;\n}\n\n@injectable()\nexport class DefaultArcTextureRenderContribution\n extends DefaultBaseTextureRenderContribution\n implements IArcRenderContribution\n{\n time: BaseRenderContributionTime = BaseRenderContributionTime.afterFillStroke;\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IGraphicAttribute, IContext2d, IThemeAttribute, IArea, IAreaGraphicAttribute, IAreaRenderContribution, IDrawContext } from '../../../../interface';
|
|
2
|
+
import { DefaultBaseBackgroundRenderContribution, DefaultBaseTextureRenderContribution } from './base-contribution-render';
|
|
3
|
+
import { BaseRenderContributionTime } from '../../../../common/enums';
|
|
4
|
+
export declare class DefaultAreaBackgroundRenderContribution extends DefaultBaseBackgroundRenderContribution implements IAreaRenderContribution {
|
|
5
|
+
time: BaseRenderContributionTime;
|
|
6
|
+
}
|
|
7
|
+
export declare class DefaultAreaTextureRenderContribution extends DefaultBaseTextureRenderContribution implements IAreaRenderContribution {
|
|
8
|
+
time: BaseRenderContributionTime;
|
|
9
|
+
drawShape(graphic: IArea, context: IContext2d, x: number, y: number, doFill: boolean, doStroke: boolean, fVisible: boolean, sVisible: boolean, graphicAttribute: Required<IGraphicAttribute>, drawContext: IDrawContext, fillCb?: (ctx: IContext2d, markAttribute: Partial<IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, strokeCb?: (ctx: IContext2d, markAttribute: Partial<IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, options?: {
|
|
10
|
+
attribute?: Partial<IAreaGraphicAttribute>;
|
|
11
|
+
}): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
|
|
2
|
+
var d, c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
3
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
4
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
import { injectable } from "../../../../common/inversify-lite";
|
|
8
|
+
|
|
9
|
+
import { DefaultBaseBackgroundRenderContribution, DefaultBaseTextureRenderContribution } from "./base-contribution-render";
|
|
10
|
+
|
|
11
|
+
import { getAttributeFromDefaultAttrList } from "../../../../common/utils";
|
|
12
|
+
|
|
13
|
+
import { BaseRenderContributionTime } from "../../../../common/enums";
|
|
14
|
+
|
|
15
|
+
let DefaultAreaBackgroundRenderContribution = class extends DefaultBaseBackgroundRenderContribution {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
DefaultAreaBackgroundRenderContribution = __decorate([ injectable() ], DefaultAreaBackgroundRenderContribution);
|
|
22
|
+
|
|
23
|
+
export { DefaultAreaBackgroundRenderContribution };
|
|
24
|
+
|
|
25
|
+
let DefaultAreaTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
|
|
28
|
+
}
|
|
29
|
+
drawShape(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, options) {
|
|
30
|
+
var _a, _b, _c, _d;
|
|
31
|
+
this.textureMap || this.initTextureMap(context, graphic.stage);
|
|
32
|
+
const {attribute: attribute = graphic.attribute} = options || {}, {texture: texture = (null !== (_a = graphic.attribute.texture) && void 0 !== _a ? _a : getAttributeFromDefaultAttrList(graphicAttribute, "texture")), textureColor: textureColor = (null !== (_b = graphic.attribute.textureColor) && void 0 !== _b ? _b : getAttributeFromDefaultAttrList(graphicAttribute, "textureColor")), textureSize: textureSize = (null !== (_c = graphic.attribute.textureSize) && void 0 !== _c ? _c : getAttributeFromDefaultAttrList(graphicAttribute, "textureSize")), texturePadding: texturePadding = (null !== (_d = graphic.attribute.texturePadding) && void 0 !== _d ? _d : getAttributeFromDefaultAttrList(graphicAttribute, "texturePadding"))} = attribute;
|
|
33
|
+
if (!texture) return;
|
|
34
|
+
let pattern = this.textureMap.get(texture);
|
|
35
|
+
if (!pattern) switch (texture) {
|
|
36
|
+
case "circle":
|
|
37
|
+
pattern = this.createCirclePattern(textureSize, texturePadding, textureColor, context);
|
|
38
|
+
break;
|
|
39
|
+
|
|
40
|
+
case "diamond":
|
|
41
|
+
pattern = this.createDiamondPattern(textureSize, texturePadding, textureColor, context);
|
|
42
|
+
break;
|
|
43
|
+
|
|
44
|
+
case "rect":
|
|
45
|
+
pattern = this.createRectPattern(textureSize, texturePadding, textureColor, context);
|
|
46
|
+
break;
|
|
47
|
+
|
|
48
|
+
case "vertical-line":
|
|
49
|
+
pattern = this.createVerticalLinePattern(textureSize, texturePadding, textureColor, context);
|
|
50
|
+
break;
|
|
51
|
+
|
|
52
|
+
case "horizontal-line":
|
|
53
|
+
pattern = this.createHorizontalLinePattern(textureSize, texturePadding, textureColor, context);
|
|
54
|
+
break;
|
|
55
|
+
|
|
56
|
+
case "bias-lr":
|
|
57
|
+
pattern = this.createBiasLRLinePattern(textureSize, texturePadding, textureColor, context);
|
|
58
|
+
break;
|
|
59
|
+
|
|
60
|
+
case "bias-rl":
|
|
61
|
+
pattern = this.createBiasRLLinePattern(textureSize, texturePadding, textureColor, context);
|
|
62
|
+
break;
|
|
63
|
+
|
|
64
|
+
case "grid":
|
|
65
|
+
pattern = this.createGridPattern(textureSize, texturePadding, textureColor, context);
|
|
66
|
+
}
|
|
67
|
+
pattern && (context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute),
|
|
68
|
+
context.fillStyle = pattern, context.fill(), context.highPerformanceRestore());
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
DefaultAreaTextureRenderContribution = __decorate([ injectable() ], DefaultAreaTextureRenderContribution);
|
|
73
|
+
|
|
74
|
+
export { DefaultAreaTextureRenderContribution };
|
|
75
|
+
//# sourceMappingURL=area-contribution-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/render/contributions/render/contributions/area-contribution-render.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAW/D,OAAO,EACL,uCAAuC,EACvC,oCAAoC,EACrC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAG/D,IAAM,uCAAuC,GAA7C,MAAM,uCACX,SAAQ,uCAAuC;IAD1C;;QAIL,SAAI,GAA+B,0BAA0B,CAAC,gBAAgB,CAAC;IACjF,CAAC;CAAA,CAAA;AALY,uCAAuC;IADnD,UAAU,EAAE;GACA,uCAAuC,CAKnD;SALY,uCAAuC;AAQ7C,IAAM,oCAAoC,GAA1C,MAAM,oCACX,SAAQ,oCAA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AA9EY,oCAAoC;IADhD,UAAU,EAAE;GACA,oCAAoC,CA8EhD;SA9EY,oCAAoC","file":"area-contribution-render.js","sourcesContent":["import { injectable } from '../../../../common/inversify-lite';\nimport type {\n IGraphicAttribute,\n IContext2d,\n IMarkAttribute,\n IThemeAttribute,\n IArea,\n IAreaGraphicAttribute,\n IAreaRenderContribution,\n IDrawContext\n} from '../../../../interface';\nimport {\n DefaultBaseBackgroundRenderContribution,\n DefaultBaseTextureRenderContribution\n} from './base-contribution-render';\nimport { getAttributeFromDefaultAttrList } from '../../../../common/utils';\nimport { BaseRenderContributionTime } from '../../../../common/enums';\n\n@injectable()\nexport class DefaultAreaBackgroundRenderContribution\n extends DefaultBaseBackgroundRenderContribution\n implements IAreaRenderContribution\n{\n time: BaseRenderContributionTime = BaseRenderContributionTime.beforeFillStroke;\n}\n\n@injectable()\nexport class DefaultAreaTextureRenderContribution\n extends DefaultBaseTextureRenderContribution\n implements IAreaRenderContribution\n{\n time: BaseRenderContributionTime = BaseRenderContributionTime.afterFillStroke;\n\n drawShape(\n graphic: IArea,\n context: IContext2d,\n x: number,\n y: number,\n doFill: boolean,\n doStroke: boolean,\n fVisible: boolean,\n sVisible: boolean,\n graphicAttribute: Required<IGraphicAttribute>,\n drawContext: IDrawContext,\n fillCb?: (ctx: IContext2d, markAttribute: Partial<IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean,\n strokeCb?: (ctx: IContext2d, markAttribute: Partial<IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean,\n options?: {\n attribute?: Partial<IAreaGraphicAttribute>;\n }\n ) {\n if (!this.textureMap) {\n this.initTextureMap(context, graphic.stage);\n }\n\n const { attribute = graphic.attribute } = options || {};\n\n const {\n texture = graphic.attribute.texture ?? getAttributeFromDefaultAttrList(graphicAttribute, 'texture'),\n textureColor = graphic.attribute.textureColor ??\n getAttributeFromDefaultAttrList(graphicAttribute, 'textureColor'),\n textureSize = graphic.attribute.textureSize ?? getAttributeFromDefaultAttrList(graphicAttribute, 'textureSize'),\n texturePadding = graphic.attribute.texturePadding ??\n getAttributeFromDefaultAttrList(graphicAttribute, 'texturePadding')\n } = attribute;\n if (!texture) {\n return;\n }\n let pattern: CanvasPattern = this.textureMap.get(texture);\n if (!pattern) {\n switch (texture) {\n case 'circle':\n pattern = this.createCirclePattern(textureSize, texturePadding, textureColor, context);\n break;\n case 'diamond':\n pattern = this.createDiamondPattern(textureSize, texturePadding, textureColor, context);\n break;\n case 'rect':\n pattern = this.createRectPattern(textureSize, texturePadding, textureColor, context);\n break;\n case 'vertical-line':\n pattern = this.createVerticalLinePattern(textureSize, texturePadding, textureColor, context);\n break;\n case 'horizontal-line':\n pattern = this.createHorizontalLinePattern(textureSize, texturePadding, textureColor, context);\n break;\n case 'bias-lr':\n pattern = this.createBiasLRLinePattern(textureSize, texturePadding, textureColor, context);\n break;\n case 'bias-rl':\n pattern = this.createBiasRLLinePattern(textureSize, texturePadding, textureColor, context);\n break;\n case 'grid':\n pattern = this.createGridPattern(textureSize, texturePadding, textureColor, context);\n break;\n }\n }\n\n if (pattern) {\n context.highPerformanceSave();\n context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute);\n context.fillStyle = pattern;\n context.fill();\n context.highPerformanceRestore();\n }\n }\n}\n"]}
|