@visactor/vrender 0.15.0-alpha.1 → 0.15.0-alpha.11
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/cjs/allocator/allocator-modules.js.map +1 -1
- package/cjs/allocator/canvas-allocate.js.map +1 -1
- package/cjs/allocator/constants.js.map +1 -1
- package/cjs/allocator/graphic-allocate.js.map +1 -1
- package/cjs/allocator/matrix-allocate.js.map +1 -1
- package/cjs/allocator/point-allocate.js.map +1 -1
- package/cjs/animate/Ticker/default-ticker.js.map +1 -1
- package/cjs/animate/Ticker/index.js.map +1 -1
- package/cjs/animate/animate.d.ts +1 -0
- package/cjs/animate/animate.js +3 -0
- package/cjs/animate/animate.js.map +1 -1
- package/cjs/animate/config.js.map +1 -1
- package/cjs/animate/custom-animate.js.map +1 -1
- package/cjs/animate/default-ticker.js +1 -1
- package/cjs/animate/default-ticker.js.map +1 -1
- package/cjs/animate/easing.js.map +1 -1
- package/cjs/animate/index.js.map +1 -1
- package/cjs/animate/morphing.js.map +1 -1
- package/cjs/animate/timeline.d.ts +1 -1
- package/cjs/animate/timeline.js +2 -2
- package/cjs/animate/timeline.js.map +1 -1
- package/cjs/application.js.map +1 -1
- package/cjs/canvas/constants.js.map +1 -1
- package/cjs/canvas/contributions/browser/canvas.js +1 -1
- package/cjs/canvas/contributions/browser/canvas.js.map +1 -1
- package/cjs/canvas/contributions/browser/conical-gradient.js.map +1 -1
- package/cjs/canvas/contributions/browser/context.d.ts +1 -0
- package/cjs/canvas/contributions/browser/context.js.map +1 -1
- package/cjs/canvas/contributions/browser/index.js.map +1 -1
- package/cjs/canvas/contributions/browser/modules.js.map +1 -1
- package/cjs/canvas/contributions/feishu/canvas.js.map +1 -1
- package/cjs/canvas/contributions/feishu/context.js.map +1 -1
- package/cjs/canvas/contributions/feishu/index.js.map +1 -1
- package/cjs/canvas/contributions/feishu/modules.js.map +1 -1
- package/cjs/canvas/contributions/lynx/canvas.js.map +1 -1
- package/cjs/canvas/contributions/lynx/context.js.map +1 -1
- package/cjs/canvas/contributions/lynx/index.js.map +1 -1
- package/cjs/canvas/contributions/lynx/modules.js.map +1 -1
- package/cjs/canvas/contributions/modules.js.map +1 -1
- package/cjs/canvas/contributions/node/canvas.js.map +1 -1
- package/cjs/canvas/contributions/node/context.js.map +1 -1
- package/cjs/canvas/contributions/node/index.js.map +1 -1
- package/cjs/canvas/contributions/node/modules.js.map +1 -1
- package/cjs/canvas/contributions/taro/canvas.js.map +1 -1
- package/cjs/canvas/contributions/taro/context.js.map +1 -1
- package/cjs/canvas/contributions/taro/index.js.map +1 -1
- package/cjs/canvas/contributions/taro/modules.js.map +1 -1
- package/cjs/canvas/contributions/tt/canvas.js.map +1 -1
- package/cjs/canvas/contributions/tt/context.js.map +1 -1
- package/cjs/canvas/contributions/tt/index.js.map +1 -1
- package/cjs/canvas/contributions/tt/modules.js.map +1 -1
- package/cjs/canvas/contributions/wx/canvas.js.map +1 -1
- package/cjs/canvas/contributions/wx/context.js.map +1 -1
- package/cjs/canvas/contributions/wx/index.js.map +1 -1
- package/cjs/canvas/contributions/wx/modules.js.map +1 -1
- package/cjs/canvas/empty-context.js.map +1 -1
- package/cjs/canvas/index.js.map +1 -1
- package/cjs/canvas/util.js.map +1 -1
- package/cjs/color-string/colorName.js.map +1 -1
- package/cjs/color-string/index.js.map +1 -1
- package/cjs/color-string/interpolate.js.map +1 -1
- package/cjs/common/bezier-utils.js.map +1 -1
- package/cjs/common/bounds-context.js.map +1 -1
- package/cjs/common/canvas-utils.js.map +1 -1
- package/cjs/common/contribution-provider.d.ts +1 -0
- package/cjs/common/contribution-provider.js +7 -2
- package/cjs/common/contribution-provider.js.map +1 -1
- package/cjs/common/custom-path2d.js.map +1 -1
- package/cjs/common/enums.d.ts +4 -2
- package/cjs/common/enums.js +3 -2
- package/cjs/common/enums.js.map +1 -1
- package/cjs/common/generator.js.map +1 -1
- package/cjs/common/matrix.js.map +1 -1
- package/cjs/common/morphing-utils.js.map +1 -1
- package/cjs/common/path-svg.js.map +1 -1
- package/cjs/common/polygon.js.map +1 -1
- package/cjs/common/render-area.js.map +1 -1
- package/cjs/common/render-command-list.js.map +1 -1
- package/cjs/common/render-curve.js.map +1 -1
- package/cjs/common/seg-context.js.map +1 -1
- package/cjs/common/segment/basis.js.map +1 -1
- package/cjs/common/segment/common.js.map +1 -1
- package/cjs/common/segment/curve/arc.js.map +1 -1
- package/cjs/common/segment/curve/base.js.map +1 -1
- package/cjs/common/segment/curve/cubic-bezier.js.map +1 -1
- package/cjs/common/segment/curve/curve-context.js.map +1 -1
- package/cjs/common/segment/curve/ellipse.js.map +1 -1
- package/cjs/common/segment/curve/line.js.map +1 -1
- package/cjs/common/segment/curve/move.js.map +1 -1
- package/cjs/common/segment/curve/path.js.map +1 -1
- package/cjs/common/segment/curve/quadratic-bezier.js.map +1 -1
- package/cjs/common/segment/index.js.map +1 -1
- package/cjs/common/segment/linear-closed.js.map +1 -1
- package/cjs/common/segment/linear.js.map +1 -1
- package/cjs/common/segment/monotone.js.map +1 -1
- package/cjs/common/segment/step.js.map +1 -1
- package/cjs/common/shape/arc.js.map +1 -1
- package/cjs/common/shape/rect.js.map +1 -1
- package/cjs/common/sort.js.map +1 -1
- package/cjs/common/split-path.js.map +1 -1
- package/cjs/common/store.js.map +1 -1
- package/cjs/common/text.js.map +1 -1
- package/cjs/common/utils.js.map +1 -1
- package/cjs/constants.js.map +1 -1
- package/cjs/container.js.map +1 -1
- package/cjs/core/application.js.map +1 -1
- package/cjs/core/camera.js.map +1 -1
- package/cjs/core/constants.js.map +1 -1
- package/cjs/core/contributions/env/base-contribution.js.map +1 -1
- package/cjs/core/contributions/env/browser-contribution.js.map +1 -1
- package/cjs/core/contributions/env/feishu-contribution.js.map +1 -1
- package/cjs/core/contributions/env/lynx-contribution.js.map +1 -1
- package/cjs/core/contributions/env/modules.js.map +1 -1
- package/cjs/core/contributions/env/node-contribution.js.map +1 -1
- package/cjs/core/contributions/env/taro-contribution.js.map +1 -1
- package/cjs/core/contributions/env/wx-contribution.d.ts +1 -0
- package/cjs/core/contributions/env/wx-contribution.js +5 -3
- package/cjs/core/contributions/env/wx-contribution.js.map +1 -1
- package/cjs/core/contributions/index.js.map +1 -1
- package/cjs/core/contributions/layerHandler/canvas2d-contribution.d.ts +1 -0
- package/cjs/core/contributions/layerHandler/canvas2d-contribution.js +3 -0
- package/cjs/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
- package/cjs/core/contributions/layerHandler/modules.js.map +1 -1
- package/cjs/core/contributions/layerHandler/offscreen2d-contribution.d.ts +1 -0
- package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js +3 -0
- package/cjs/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
- package/cjs/core/contributions/modules.js.map +1 -1
- package/cjs/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
- package/cjs/core/contributions/textMeasure/layout.js +1 -1
- package/cjs/core/contributions/textMeasure/layout.js.map +1 -1
- package/cjs/core/contributions/textMeasure/modules.js.map +1 -1
- package/cjs/core/contributions/textMeasure/textMeasure-contribution.js.map +1 -1
- package/cjs/core/contributions/window/base-contribution.d.ts +2 -0
- package/cjs/core/contributions/window/base-contribution.js +4 -0
- package/cjs/core/contributions/window/base-contribution.js.map +1 -1
- package/cjs/core/contributions/window/browser-contribution.d.ts +7 -0
- package/cjs/core/contributions/window/browser-contribution.js +30 -2
- package/cjs/core/contributions/window/browser-contribution.js.map +1 -1
- package/cjs/core/contributions/window/feishu-contribution.js.map +1 -1
- package/cjs/core/contributions/window/lynx-contribution.js.map +1 -1
- package/cjs/core/contributions/window/modules.js.map +1 -1
- package/cjs/core/contributions/window/native-contribution.js.map +1 -1
- package/cjs/core/contributions/window/node-contribution.js.map +1 -1
- package/cjs/core/contributions/window/taro-contribution.js.map +1 -1
- package/cjs/core/contributions/window/wx-contribution.js.map +1 -1
- package/cjs/core/core-modules.js.map +1 -1
- package/cjs/core/global-module.js.map +1 -1
- package/cjs/core/global.js.map +1 -1
- package/cjs/core/graphic-utils.js.map +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/layer-service.js.map +1 -1
- package/cjs/core/layer.js +1 -1
- package/cjs/core/layer.js.map +1 -1
- package/cjs/core/light.js.map +1 -1
- package/cjs/core/stage.d.ts +7 -2
- package/cjs/core/stage.js +26 -11
- package/cjs/core/stage.js.map +1 -1
- package/cjs/core/window.d.ts +2 -0
- package/cjs/core/window.js +6 -0
- package/cjs/core/window.js.map +1 -1
- package/cjs/create.js.map +1 -1
- package/cjs/event/constant.js.map +1 -1
- package/cjs/event/event-manager.js +6 -4
- package/cjs/event/event-manager.js.map +1 -1
- package/cjs/event/event-system.js.map +1 -1
- package/cjs/event/event-target.js.map +1 -1
- package/cjs/event/extension/drag.js.map +1 -1
- package/cjs/event/extension/gesture.js.map +1 -1
- package/cjs/event/extension/index.js.map +1 -1
- package/cjs/event/federated-event/base-event.js.map +1 -1
- package/cjs/event/federated-event/custom-event.js.map +1 -1
- package/cjs/event/federated-event/index.js.map +1 -1
- package/cjs/event/federated-event/mouse-event.js.map +1 -1
- package/cjs/event/federated-event/pointer-event.js.map +1 -1
- package/cjs/event/federated-event/wheel-event.js.map +1 -1
- package/cjs/event/index.js.map +1 -1
- package/cjs/event/util.js.map +1 -1
- package/cjs/export.js.map +1 -1
- package/cjs/graphic/arc.d.ts +7 -0
- package/cjs/graphic/arc.js +3 -1
- package/cjs/graphic/arc.js.map +1 -1
- package/cjs/graphic/arc3d.js.map +1 -1
- package/cjs/graphic/area.js.map +1 -1
- package/cjs/graphic/bounds.js.map +1 -1
- package/cjs/graphic/builtin-symbol/arrow.js.map +1 -1
- package/cjs/graphic/builtin-symbol/arrow2-down.js.map +1 -1
- package/cjs/graphic/builtin-symbol/arrow2-left.js.map +1 -1
- package/cjs/graphic/builtin-symbol/arrow2-right.js.map +1 -1
- package/cjs/graphic/builtin-symbol/arrow2-up.js.map +1 -1
- package/cjs/graphic/builtin-symbol/circle.js.map +1 -1
- package/cjs/graphic/builtin-symbol/close.js.map +1 -1
- package/cjs/graphic/builtin-symbol/cross.js.map +1 -1
- package/cjs/graphic/builtin-symbol/diamond.js.map +1 -1
- package/cjs/graphic/builtin-symbol/index.js.map +1 -1
- package/cjs/graphic/builtin-symbol/line-h.js.map +1 -1
- package/cjs/graphic/builtin-symbol/line-v.js.map +1 -1
- package/cjs/graphic/builtin-symbol/rect.js.map +1 -1
- package/cjs/graphic/builtin-symbol/square.js.map +1 -1
- package/cjs/graphic/builtin-symbol/star.js.map +1 -1
- package/cjs/graphic/builtin-symbol/stroke.js.map +1 -1
- package/cjs/graphic/builtin-symbol/thin-triangle.js.map +1 -1
- package/cjs/graphic/builtin-symbol/triangle-down.js.map +1 -1
- package/cjs/graphic/builtin-symbol/triangle-left.js.map +1 -1
- package/cjs/graphic/builtin-symbol/triangle-right.js.map +1 -1
- package/cjs/graphic/builtin-symbol/triangle-up.js.map +1 -1
- package/cjs/graphic/builtin-symbol/triangle.js.map +1 -1
- package/cjs/graphic/builtin-symbol/utils.js.map +1 -1
- package/cjs/graphic/builtin-symbol/wedge.js.map +1 -1
- package/cjs/graphic/builtin-symbol/wye.js.map +1 -1
- package/cjs/graphic/circle.js.map +1 -1
- package/cjs/graphic/config.js +4 -2
- package/cjs/graphic/config.js.map +1 -1
- package/cjs/graphic/constants.js.map +1 -1
- package/cjs/graphic/glyph.js.map +1 -1
- package/cjs/graphic/graphic-creator.js.map +1 -1
- package/cjs/graphic/graphic-service/arc-contribution.js.map +1 -1
- package/cjs/graphic/graphic-service/area-contribution.js.map +1 -1
- package/cjs/graphic/graphic-service/circle-contribution.js.map +1 -1
- package/cjs/graphic/graphic-service/common-contribution.js.map +1 -1
- package/cjs/graphic/graphic-service/default-theme.js.map +1 -1
- package/cjs/graphic/graphic-service/graphic-module.js.map +1 -1
- package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
- package/cjs/graphic/graphic-service/path-contribution.js.map +1 -1
- package/cjs/graphic/graphic-service/rect-contribution.js.map +1 -1
- package/cjs/graphic/graphic-service/symbol-contribution.js.map +1 -1
- package/cjs/graphic/graphic.d.ts +3 -0
- package/cjs/graphic/graphic.js +38 -17
- package/cjs/graphic/graphic.js.map +1 -1
- package/cjs/graphic/group.js +1 -1
- package/cjs/graphic/group.js.map +1 -1
- package/cjs/graphic/image.js.map +1 -1
- package/cjs/graphic/index.js.map +1 -1
- package/cjs/graphic/line.js.map +1 -1
- package/cjs/graphic/node-tree.js.map +1 -1
- package/cjs/graphic/path.js.map +1 -1
- package/cjs/graphic/polygon.js.map +1 -1
- package/cjs/graphic/pyramid3d.js.map +1 -1
- package/cjs/graphic/rect.js.map +1 -1
- package/cjs/graphic/rect3d.js.map +1 -1
- package/cjs/graphic/richtext/frame.js.map +1 -1
- package/cjs/graphic/richtext/icon.js.map +1 -1
- package/cjs/graphic/richtext/line.js.map +1 -1
- package/cjs/graphic/richtext/paragraph.js.map +1 -1
- package/cjs/graphic/richtext/utils.d.ts +1 -1
- package/cjs/graphic/richtext/utils.js +1 -1
- package/cjs/graphic/richtext/utils.js.map +1 -1
- package/cjs/graphic/richtext/wrapper.js.map +1 -1
- package/cjs/graphic/richtext.js.map +1 -1
- package/cjs/graphic/shadow-root.js.map +1 -1
- package/cjs/graphic/symbol.js.map +1 -1
- package/cjs/graphic/text.js +34 -24
- package/cjs/graphic/text.js.map +1 -1
- package/cjs/graphic/theme.js.map +1 -1
- package/cjs/graphic/tools.js.map +1 -1
- package/cjs/graphic/wrap-text.js +16 -10
- package/cjs/graphic/wrap-text.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/interface/allocator.js.map +1 -1
- package/cjs/interface/animate.d.ts +3 -1
- package/cjs/interface/animate.js.map +1 -1
- package/cjs/interface/camera.js.map +1 -1
- package/cjs/interface/canvas.js.map +1 -1
- package/cjs/interface/color.js.map +1 -1
- package/cjs/interface/common.js.map +1 -1
- package/cjs/interface/context.js.map +1 -1
- package/cjs/interface/contribution.js.map +1 -1
- package/cjs/interface/core.js.map +1 -1
- package/cjs/interface/creator.js.map +1 -1
- package/cjs/interface/curve.js.map +1 -1
- package/cjs/interface/event.js.map +1 -1
- package/cjs/interface/global.js.map +1 -1
- package/cjs/interface/graphic/arc.d.ts +2 -0
- package/cjs/interface/graphic/arc.js.map +1 -1
- package/cjs/interface/graphic/arc3d.js.map +1 -1
- package/cjs/interface/graphic/area.js.map +1 -1
- package/cjs/interface/graphic/bounds.js.map +1 -1
- package/cjs/interface/graphic/circle.js.map +1 -1
- package/cjs/interface/graphic/creator.js.map +1 -1
- package/cjs/interface/graphic/dynamic-path.js.map +1 -1
- package/cjs/interface/graphic/ellipse.js.map +1 -1
- package/cjs/interface/graphic/face3d.js.map +1 -1
- package/cjs/interface/graphic/glyph.js.map +1 -1
- package/cjs/interface/graphic/group.js.map +1 -1
- package/cjs/interface/graphic/image.d.ts +1 -0
- package/cjs/interface/graphic/image.js.map +1 -1
- package/cjs/interface/graphic/index.js.map +1 -1
- package/cjs/interface/graphic/isogon.js.map +1 -1
- package/cjs/interface/graphic/line.js.map +1 -1
- package/cjs/interface/graphic/path.js.map +1 -1
- package/cjs/interface/graphic/polygon.js.map +1 -1
- package/cjs/interface/graphic/polyline.js.map +1 -1
- package/cjs/interface/graphic/pyramid3d.js.map +1 -1
- package/cjs/interface/graphic/rect.js.map +1 -1
- package/cjs/interface/graphic/rect3d.js.map +1 -1
- package/cjs/interface/graphic/richText.js.map +1 -1
- package/cjs/interface/graphic/shadow-root.js.map +1 -1
- package/cjs/interface/graphic/svg.js.map +1 -1
- package/cjs/interface/graphic/symbol.js.map +1 -1
- package/cjs/interface/graphic/text.d.ts +1 -0
- package/cjs/interface/graphic/text.js.map +1 -1
- package/cjs/interface/graphic/theme.js.map +1 -1
- package/cjs/interface/graphic/util.js.map +1 -1
- package/cjs/interface/graphic-service.js.map +1 -1
- package/cjs/interface/graphic-utils.js.map +1 -1
- package/cjs/interface/graphic.d.ts +12 -2
- package/cjs/interface/graphic.js.map +1 -1
- package/cjs/interface/index.js.map +1 -1
- package/cjs/interface/layer.d.ts +1 -0
- package/cjs/interface/layer.js.map +1 -1
- package/cjs/interface/light.js.map +1 -1
- package/cjs/interface/loader.js.map +1 -1
- package/cjs/interface/matrix.js.map +1 -1
- package/cjs/interface/node-tree.js.map +1 -1
- package/cjs/interface/path.js.map +1 -1
- package/cjs/interface/picker.js.map +1 -1
- package/cjs/interface/plugin.js.map +1 -1
- package/cjs/interface/render.js.map +1 -1
- package/cjs/interface/stage.d.ts +7 -2
- package/cjs/interface/stage.js.map +1 -1
- package/cjs/interface/sync-hook.js.map +1 -1
- package/cjs/interface/text.js.map +1 -1
- package/cjs/interface/theme-service.js.map +1 -1
- package/cjs/interface/util.js.map +1 -1
- package/cjs/interface/window.d.ts +4 -0
- package/cjs/interface/window.js.map +1 -1
- package/cjs/jsx/graphicType.d.ts +96 -60
- package/cjs/jsx/graphicType.js.map +1 -1
- package/cjs/jsx/index.js.map +1 -1
- package/cjs/jsx/jsx-classic.d.ts +2 -4
- package/cjs/jsx/jsx-classic.js +7 -18
- package/cjs/jsx/jsx-classic.js.map +1 -1
- package/cjs/kits/env.js.map +1 -1
- package/cjs/kits/index.js.map +1 -1
- package/cjs/modules.js.map +1 -1
- package/cjs/picker/canvas-picker-service.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/arc-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/arc3d-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/area-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/base-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/circle-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/glyph-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/image-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/line-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/module.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/path-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/polygon-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/pyramid3d-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/rect-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/rect3d-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/richtext-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/symbol-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/text-picker.js.map +1 -1
- package/cjs/picker/contributions/constants.js.map +1 -1
- package/cjs/picker/contributions/math-picker/arc-picker.js.map +1 -1
- package/cjs/picker/contributions/math-picker/area-picker.js.map +1 -1
- package/cjs/picker/contributions/math-picker/circle-picker.js.map +1 -1
- package/cjs/picker/contributions/math-picker/glyph-picker.js.map +1 -1
- package/cjs/picker/contributions/math-picker/line-picker.js.map +1 -1
- package/cjs/picker/contributions/math-picker/module.js.map +1 -1
- package/cjs/picker/contributions/math-picker/path-picker.js.map +1 -1
- package/cjs/picker/contributions/math-picker/polygon-picker.js.map +1 -1
- package/cjs/picker/contributions/math-picker/rect-picker.js.map +1 -1
- package/cjs/picker/contributions/math-picker/symbol-picker.js.map +1 -1
- package/cjs/picker/contributions/math-picker/text-picker.js.map +1 -1
- package/cjs/picker/contributions/modules.js.map +1 -1
- package/cjs/picker/contributions/old/circle-picker.js.map +1 -1
- package/cjs/picker/contributions/old/rect-picker.js.map +1 -1
- package/cjs/picker/global-picker-service.js.map +1 -1
- package/cjs/picker/index.js.map +1 -1
- package/cjs/picker/math-picker-service.js.map +1 -1
- package/cjs/picker/pick-interceptor.js.map +1 -1
- package/cjs/picker/pick-modules.js.map +1 -1
- package/cjs/picker/picker-service.js.map +1 -1
- package/cjs/plugins/builtin-plugin/3dview-transform-plugin.js.map +1 -1
- package/cjs/plugins/builtin-plugin/auto-render-plugin.js.map +1 -1
- package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
- package/cjs/plugins/builtin-plugin/flex-layout-plugin.d.ts +2 -0
- package/cjs/plugins/builtin-plugin/flex-layout-plugin.js +42 -21
- package/cjs/plugins/builtin-plugin/flex-layout-plugin.js.map +1 -1
- package/cjs/plugins/builtin-plugin/html-attribute-plugin.js.map +1 -1
- package/cjs/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -1
- package/cjs/plugins/builtin-plugin/poptip-plugin.js.map +1 -1
- package/cjs/plugins/constants.js.map +1 -1
- package/cjs/plugins/plugin-modules.js +1 -1
- package/cjs/plugins/plugin-modules.js.map +1 -1
- package/cjs/plugins/plugin-service.js.map +1 -1
- package/cjs/render/contributions/modules.js.map +1 -1
- package/cjs/render/contributions/render/arc-render.js +9 -2
- package/cjs/render/contributions/render/arc-render.js.map +1 -1
- package/cjs/render/contributions/render/arc3d-render.js.map +1 -1
- package/cjs/render/contributions/render/area-render.js +1 -1
- package/cjs/render/contributions/render/area-render.js.map +1 -1
- package/cjs/render/contributions/render/base-render.js.map +1 -1
- package/cjs/render/contributions/render/circle-render.js.map +1 -1
- package/cjs/render/contributions/render/clear-screen.js.map +1 -1
- package/cjs/render/contributions/render/contributions/arc-contribution-render.js +9 -7
- package/cjs/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
- package/cjs/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
- package/cjs/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
- package/cjs/render/contributions/render/contributions/circle-contribution-render.js +9 -7
- package/cjs/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
- package/cjs/render/contributions/render/contributions/constants.js.map +1 -1
- package/cjs/render/contributions/render/contributions/group-contribution-render.js.map +1 -1
- package/cjs/render/contributions/render/contributions/image-contribution-render.js +23 -1
- package/cjs/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
- package/cjs/render/contributions/render/contributions/index.js.map +1 -1
- package/cjs/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
- package/cjs/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
- package/cjs/render/contributions/render/contributions/rect-contribution-render.js +9 -7
- package/cjs/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
- package/cjs/render/contributions/render/contributions/symbol-contribution-render.js +24 -22
- package/cjs/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
- package/cjs/render/contributions/render/contributions/text-contribution-render.js.map +1 -1
- package/cjs/render/contributions/render/draw-contribution.js.map +1 -1
- package/cjs/render/contributions/render/draw-interceptor.js.map +1 -1
- package/cjs/render/contributions/render/glyph-render.js.map +1 -1
- package/cjs/render/contributions/render/graphic-render.js.map +1 -1
- package/cjs/render/contributions/render/group-render.js.map +1 -1
- package/cjs/render/contributions/render/image-render.js +7 -3
- package/cjs/render/contributions/render/image-render.js.map +1 -1
- package/cjs/render/contributions/render/incremental-area-render.js.map +1 -1
- package/cjs/render/contributions/render/incremental-draw-contribution.js.map +1 -1
- package/cjs/render/contributions/render/incremental-line-render.js.map +1 -1
- package/cjs/render/contributions/render/index.js.map +1 -1
- package/cjs/render/contributions/render/line-render.js.map +1 -1
- package/cjs/render/contributions/render/module.js.map +1 -1
- package/cjs/render/contributions/render/path-render.js.map +1 -1
- package/cjs/render/contributions/render/polygon-render.js.map +1 -1
- package/cjs/render/contributions/render/pyramid3d-render.js.map +1 -1
- package/cjs/render/contributions/render/rect-render.js.map +1 -1
- package/cjs/render/contributions/render/rect3d-render.js.map +1 -1
- package/cjs/render/contributions/render/render-slector.js.map +1 -1
- package/cjs/render/contributions/render/richtext-render.js.map +1 -1
- package/cjs/render/contributions/render/symbol-render.js.map +1 -1
- package/cjs/render/contributions/render/symbol.js.map +1 -1
- package/cjs/render/contributions/render/text-render.js.map +1 -1
- package/cjs/render/contributions/render/utils.d.ts +2 -2
- package/cjs/render/contributions/render/utils.js.map +1 -1
- package/cjs/render/index.js.map +1 -1
- package/cjs/render/render-modules.js.map +1 -1
- package/cjs/render/render-service.js.map +1 -1
- package/cjs/resource-loader/loader.js.map +1 -1
- package/cjs/tapable/Hook.js.map +1 -1
- package/cjs/tapable/SyncHook.js.map +1 -1
- package/cjs/tapable/index.js.map +1 -1
- package/dist/index.js +845 -723
- package/dist/index.min.js +1 -1
- package/es/allocator/allocator-modules.js.map +1 -1
- package/es/allocator/canvas-allocate.js.map +1 -1
- package/es/allocator/constants.js.map +1 -1
- package/es/allocator/graphic-allocate.js.map +1 -1
- package/es/allocator/matrix-allocate.js.map +1 -1
- package/es/allocator/point-allocate.js.map +1 -1
- package/es/animate/Ticker/default-ticker.js.map +1 -1
- package/es/animate/Ticker/index.js.map +1 -1
- package/es/animate/animate.d.ts +1 -0
- package/es/animate/animate.js +3 -0
- package/es/animate/animate.js.map +1 -1
- package/es/animate/config.js.map +1 -1
- package/es/animate/custom-animate.js.map +1 -1
- package/es/animate/default-ticker.js +1 -1
- package/es/animate/default-ticker.js.map +1 -1
- package/es/animate/easing.js.map +1 -1
- package/es/animate/index.js.map +1 -1
- package/es/animate/morphing.js.map +1 -1
- package/es/animate/timeline.d.ts +1 -1
- package/es/animate/timeline.js +2 -2
- package/es/animate/timeline.js.map +1 -1
- package/es/application.js.map +1 -1
- package/es/canvas/constants.js.map +1 -1
- package/es/canvas/contributions/browser/canvas.js +1 -1
- package/es/canvas/contributions/browser/canvas.js.map +1 -1
- package/es/canvas/contributions/browser/conical-gradient.js.map +1 -1
- package/es/canvas/contributions/browser/context.d.ts +1 -0
- package/es/canvas/contributions/browser/context.js.map +1 -1
- package/es/canvas/contributions/browser/index.js.map +1 -1
- package/es/canvas/contributions/browser/modules.js.map +1 -1
- package/es/canvas/contributions/feishu/canvas.js.map +1 -1
- package/es/canvas/contributions/feishu/context.js.map +1 -1
- package/es/canvas/contributions/feishu/index.js.map +1 -1
- package/es/canvas/contributions/feishu/modules.js.map +1 -1
- package/es/canvas/contributions/lynx/canvas.js.map +1 -1
- package/es/canvas/contributions/lynx/context.js.map +1 -1
- package/es/canvas/contributions/lynx/index.js.map +1 -1
- package/es/canvas/contributions/lynx/modules.js.map +1 -1
- package/es/canvas/contributions/modules.js.map +1 -1
- package/es/canvas/contributions/node/canvas.js.map +1 -1
- package/es/canvas/contributions/node/context.js.map +1 -1
- package/es/canvas/contributions/node/index.js.map +1 -1
- package/es/canvas/contributions/node/modules.js.map +1 -1
- package/es/canvas/contributions/taro/canvas.js.map +1 -1
- package/es/canvas/contributions/taro/context.js.map +1 -1
- package/es/canvas/contributions/taro/index.js.map +1 -1
- package/es/canvas/contributions/taro/modules.js.map +1 -1
- package/es/canvas/contributions/tt/canvas.js.map +1 -1
- package/es/canvas/contributions/tt/context.js.map +1 -1
- package/es/canvas/contributions/tt/index.js.map +1 -1
- package/es/canvas/contributions/tt/modules.js.map +1 -1
- package/es/canvas/contributions/wx/canvas.js.map +1 -1
- package/es/canvas/contributions/wx/context.js.map +1 -1
- package/es/canvas/contributions/wx/index.js.map +1 -1
- package/es/canvas/contributions/wx/modules.js.map +1 -1
- package/es/canvas/empty-context.js.map +1 -1
- package/es/canvas/index.js.map +1 -1
- package/es/canvas/util.js.map +1 -1
- package/es/color-string/colorName.js.map +1 -1
- package/es/color-string/index.js.map +1 -1
- package/es/color-string/interpolate.js.map +1 -1
- package/es/common/bezier-utils.js.map +1 -1
- package/es/common/bounds-context.js.map +1 -1
- package/es/common/canvas-utils.js.map +1 -1
- package/es/common/contribution-provider.d.ts +1 -0
- package/es/common/contribution-provider.js +4 -0
- package/es/common/contribution-provider.js.map +1 -1
- package/es/common/custom-path2d.js.map +1 -1
- package/es/common/enums.d.ts +4 -2
- package/es/common/enums.js +3 -2
- package/es/common/enums.js.map +1 -1
- package/es/common/generator.js.map +1 -1
- package/es/common/matrix.js.map +1 -1
- package/es/common/morphing-utils.js.map +1 -1
- package/es/common/path-svg.js.map +1 -1
- package/es/common/polygon.js.map +1 -1
- package/es/common/render-area.js.map +1 -1
- package/es/common/render-command-list.js.map +1 -1
- package/es/common/render-curve.js.map +1 -1
- package/es/common/seg-context.js.map +1 -1
- package/es/common/segment/basis.js.map +1 -1
- package/es/common/segment/common.js.map +1 -1
- package/es/common/segment/curve/arc.js.map +1 -1
- package/es/common/segment/curve/base.js.map +1 -1
- package/es/common/segment/curve/cubic-bezier.js.map +1 -1
- package/es/common/segment/curve/curve-context.js.map +1 -1
- package/es/common/segment/curve/ellipse.js.map +1 -1
- package/es/common/segment/curve/line.js.map +1 -1
- package/es/common/segment/curve/move.js.map +1 -1
- package/es/common/segment/curve/path.js.map +1 -1
- package/es/common/segment/curve/quadratic-bezier.js.map +1 -1
- package/es/common/segment/index.js.map +1 -1
- package/es/common/segment/linear-closed.js.map +1 -1
- package/es/common/segment/linear.js.map +1 -1
- package/es/common/segment/monotone.js.map +1 -1
- package/es/common/segment/step.js.map +1 -1
- package/es/common/shape/arc.js.map +1 -1
- package/es/common/shape/rect.js.map +1 -1
- package/es/common/sort.js.map +1 -1
- package/es/common/split-path.js.map +1 -1
- package/es/common/store.js.map +1 -1
- package/es/common/text.js.map +1 -1
- package/es/common/utils.js.map +1 -1
- package/es/constants.js.map +1 -1
- package/es/container.js.map +1 -1
- package/es/core/application.js.map +1 -1
- package/es/core/camera.js.map +1 -1
- package/es/core/constants.js.map +1 -1
- package/es/core/contributions/env/base-contribution.js.map +1 -1
- package/es/core/contributions/env/browser-contribution.js.map +1 -1
- package/es/core/contributions/env/feishu-contribution.js.map +1 -1
- package/es/core/contributions/env/lynx-contribution.js.map +1 -1
- package/es/core/contributions/env/modules.js.map +1 -1
- package/es/core/contributions/env/node-contribution.js.map +1 -1
- package/es/core/contributions/env/taro-contribution.js.map +1 -1
- package/es/core/contributions/env/wx-contribution.d.ts +1 -0
- package/es/core/contributions/env/wx-contribution.js +5 -3
- package/es/core/contributions/env/wx-contribution.js.map +1 -1
- package/es/core/contributions/index.js.map +1 -1
- package/es/core/contributions/layerHandler/canvas2d-contribution.d.ts +1 -0
- package/es/core/contributions/layerHandler/canvas2d-contribution.js +3 -0
- package/es/core/contributions/layerHandler/canvas2d-contribution.js.map +1 -1
- package/es/core/contributions/layerHandler/modules.js.map +1 -1
- package/es/core/contributions/layerHandler/offscreen2d-contribution.d.ts +1 -0
- package/es/core/contributions/layerHandler/offscreen2d-contribution.js +3 -0
- package/es/core/contributions/layerHandler/offscreen2d-contribution.js.map +1 -1
- package/es/core/contributions/modules.js.map +1 -1
- package/es/core/contributions/textMeasure/AtextMeasure.js.map +1 -1
- package/es/core/contributions/textMeasure/layout.js +1 -1
- package/es/core/contributions/textMeasure/layout.js.map +1 -1
- package/es/core/contributions/textMeasure/modules.js.map +1 -1
- package/es/core/contributions/textMeasure/textMeasure-contribution.js.map +1 -1
- package/es/core/contributions/window/base-contribution.d.ts +2 -0
- package/es/core/contributions/window/base-contribution.js +4 -0
- package/es/core/contributions/window/base-contribution.js.map +1 -1
- package/es/core/contributions/window/browser-contribution.d.ts +7 -0
- package/es/core/contributions/window/browser-contribution.js +30 -2
- package/es/core/contributions/window/browser-contribution.js.map +1 -1
- package/es/core/contributions/window/feishu-contribution.js.map +1 -1
- package/es/core/contributions/window/lynx-contribution.js.map +1 -1
- package/es/core/contributions/window/modules.js.map +1 -1
- package/es/core/contributions/window/native-contribution.js.map +1 -1
- package/es/core/contributions/window/node-contribution.js.map +1 -1
- package/es/core/contributions/window/taro-contribution.js.map +1 -1
- package/es/core/contributions/window/wx-contribution.js.map +1 -1
- package/es/core/core-modules.js.map +1 -1
- package/es/core/global-module.js.map +1 -1
- package/es/core/global.js.map +1 -1
- package/es/core/graphic-utils.js.map +1 -1
- package/es/core/index.js.map +1 -1
- package/es/core/layer-service.js.map +1 -1
- package/es/core/layer.js +1 -1
- package/es/core/layer.js.map +1 -1
- package/es/core/light.js.map +1 -1
- package/es/core/stage.d.ts +7 -2
- package/es/core/stage.js +27 -10
- package/es/core/stage.js.map +1 -1
- package/es/core/window.d.ts +2 -0
- package/es/core/window.js +6 -0
- package/es/core/window.js.map +1 -1
- package/es/create.js.map +1 -1
- package/es/event/constant.js.map +1 -1
- package/es/event/event-manager.js +6 -4
- package/es/event/event-manager.js.map +1 -1
- package/es/event/event-system.js.map +1 -1
- package/es/event/event-target.js.map +1 -1
- package/es/event/extension/drag.js.map +1 -1
- package/es/event/extension/gesture.js.map +1 -1
- package/es/event/extension/index.js.map +1 -1
- package/es/event/federated-event/base-event.js.map +1 -1
- package/es/event/federated-event/custom-event.js.map +1 -1
- package/es/event/federated-event/index.js.map +1 -1
- package/es/event/federated-event/mouse-event.js.map +1 -1
- package/es/event/federated-event/pointer-event.js.map +1 -1
- package/es/event/federated-event/wheel-event.js.map +1 -1
- package/es/event/index.js.map +1 -1
- package/es/event/util.js.map +1 -1
- package/es/export.js.map +1 -1
- package/es/graphic/arc.d.ts +7 -0
- package/es/graphic/arc.js +3 -1
- package/es/graphic/arc.js.map +1 -1
- package/es/graphic/arc3d.js.map +1 -1
- package/es/graphic/area.js.map +1 -1
- package/es/graphic/bounds.js.map +1 -1
- package/es/graphic/builtin-symbol/arrow.js.map +1 -1
- package/es/graphic/builtin-symbol/arrow2-down.js.map +1 -1
- package/es/graphic/builtin-symbol/arrow2-left.js.map +1 -1
- package/es/graphic/builtin-symbol/arrow2-right.js.map +1 -1
- package/es/graphic/builtin-symbol/arrow2-up.js.map +1 -1
- package/es/graphic/builtin-symbol/circle.js.map +1 -1
- package/es/graphic/builtin-symbol/close.js.map +1 -1
- package/es/graphic/builtin-symbol/cross.js.map +1 -1
- package/es/graphic/builtin-symbol/diamond.js.map +1 -1
- package/es/graphic/builtin-symbol/index.js.map +1 -1
- package/es/graphic/builtin-symbol/line-h.js.map +1 -1
- package/es/graphic/builtin-symbol/line-v.js.map +1 -1
- package/es/graphic/builtin-symbol/rect.js.map +1 -1
- package/es/graphic/builtin-symbol/square.js.map +1 -1
- package/es/graphic/builtin-symbol/star.js.map +1 -1
- package/es/graphic/builtin-symbol/stroke.js.map +1 -1
- package/es/graphic/builtin-symbol/thin-triangle.js.map +1 -1
- package/es/graphic/builtin-symbol/triangle-down.js.map +1 -1
- package/es/graphic/builtin-symbol/triangle-left.js.map +1 -1
- package/es/graphic/builtin-symbol/triangle-right.js.map +1 -1
- package/es/graphic/builtin-symbol/triangle-up.js.map +1 -1
- package/es/graphic/builtin-symbol/triangle.js.map +1 -1
- package/es/graphic/builtin-symbol/utils.js.map +1 -1
- package/es/graphic/builtin-symbol/wedge.js.map +1 -1
- package/es/graphic/builtin-symbol/wye.js.map +1 -1
- package/es/graphic/circle.js.map +1 -1
- package/es/graphic/config.js +4 -2
- package/es/graphic/config.js.map +1 -1
- package/es/graphic/constants.js.map +1 -1
- package/es/graphic/glyph.js.map +1 -1
- package/es/graphic/graphic-creator.js.map +1 -1
- package/es/graphic/graphic-service/arc-contribution.js.map +1 -1
- package/es/graphic/graphic-service/area-contribution.js.map +1 -1
- package/es/graphic/graphic-service/circle-contribution.js.map +1 -1
- package/es/graphic/graphic-service/common-contribution.js.map +1 -1
- package/es/graphic/graphic-service/default-theme.js.map +1 -1
- package/es/graphic/graphic-service/graphic-module.js.map +1 -1
- package/es/graphic/graphic-service/graphic-service.js.map +1 -1
- package/es/graphic/graphic-service/path-contribution.js.map +1 -1
- package/es/graphic/graphic-service/rect-contribution.js.map +1 -1
- package/es/graphic/graphic-service/symbol-contribution.js.map +1 -1
- package/es/graphic/graphic.d.ts +3 -0
- package/es/graphic/graphic.js +38 -17
- package/es/graphic/graphic.js.map +1 -1
- package/es/graphic/group.js +1 -1
- package/es/graphic/group.js.map +1 -1
- package/es/graphic/image.js.map +1 -1
- package/es/graphic/index.js.map +1 -1
- package/es/graphic/line.js.map +1 -1
- package/es/graphic/node-tree.js.map +1 -1
- package/es/graphic/path.js.map +1 -1
- package/es/graphic/polygon.js.map +1 -1
- package/es/graphic/pyramid3d.js.map +1 -1
- package/es/graphic/rect.js.map +1 -1
- package/es/graphic/rect3d.js.map +1 -1
- package/es/graphic/richtext/frame.js.map +1 -1
- package/es/graphic/richtext/icon.js.map +1 -1
- package/es/graphic/richtext/line.js.map +1 -1
- package/es/graphic/richtext/paragraph.js.map +1 -1
- package/es/graphic/richtext/utils.d.ts +1 -1
- package/es/graphic/richtext/utils.js +1 -1
- package/es/graphic/richtext/utils.js.map +1 -1
- package/es/graphic/richtext/wrapper.js.map +1 -1
- package/es/graphic/richtext.js.map +1 -1
- package/es/graphic/shadow-root.js.map +1 -1
- package/es/graphic/symbol.js.map +1 -1
- package/es/graphic/text.js +33 -25
- package/es/graphic/text.js.map +1 -1
- package/es/graphic/theme.js.map +1 -1
- package/es/graphic/tools.js.map +1 -1
- package/es/graphic/wrap-text.js +16 -10
- package/es/graphic/wrap-text.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/interface/allocator.js.map +1 -1
- package/es/interface/animate.d.ts +3 -1
- package/es/interface/animate.js.map +1 -1
- package/es/interface/camera.js.map +1 -1
- package/es/interface/canvas.js.map +1 -1
- package/es/interface/color.js.map +1 -1
- package/es/interface/common.js.map +1 -1
- package/es/interface/context.js.map +1 -1
- package/es/interface/contribution.js.map +1 -1
- package/es/interface/core.js.map +1 -1
- package/es/interface/creator.js.map +1 -1
- package/es/interface/curve.js.map +1 -1
- package/es/interface/event.js.map +1 -1
- package/es/interface/global.js.map +1 -1
- package/es/interface/graphic/arc.d.ts +2 -0
- package/es/interface/graphic/arc.js.map +1 -1
- package/es/interface/graphic/arc3d.js.map +1 -1
- package/es/interface/graphic/area.js.map +1 -1
- package/es/interface/graphic/bounds.js.map +1 -1
- package/es/interface/graphic/circle.js.map +1 -1
- package/es/interface/graphic/creator.js.map +1 -1
- package/es/interface/graphic/dynamic-path.js.map +1 -1
- package/es/interface/graphic/ellipse.js.map +1 -1
- package/es/interface/graphic/face3d.js.map +1 -1
- package/es/interface/graphic/glyph.js.map +1 -1
- package/es/interface/graphic/group.js.map +1 -1
- package/es/interface/graphic/image.d.ts +1 -0
- package/es/interface/graphic/image.js.map +1 -1
- package/es/interface/graphic/index.js.map +1 -1
- package/es/interface/graphic/isogon.js.map +1 -1
- package/es/interface/graphic/line.js.map +1 -1
- package/es/interface/graphic/path.js.map +1 -1
- package/es/interface/graphic/polygon.js.map +1 -1
- package/es/interface/graphic/polyline.js.map +1 -1
- package/es/interface/graphic/pyramid3d.js.map +1 -1
- package/es/interface/graphic/rect.js.map +1 -1
- package/es/interface/graphic/rect3d.js.map +1 -1
- package/es/interface/graphic/richText.js.map +1 -1
- package/es/interface/graphic/shadow-root.js.map +1 -1
- package/es/interface/graphic/svg.js.map +1 -1
- package/es/interface/graphic/symbol.js.map +1 -1
- package/es/interface/graphic/text.d.ts +1 -0
- package/es/interface/graphic/text.js.map +1 -1
- package/es/interface/graphic/theme.js.map +1 -1
- package/es/interface/graphic/util.js.map +1 -1
- package/es/interface/graphic-service.js.map +1 -1
- package/es/interface/graphic-utils.js.map +1 -1
- package/es/interface/graphic.d.ts +12 -2
- package/es/interface/graphic.js.map +1 -1
- package/es/interface/index.js.map +1 -1
- package/es/interface/layer.d.ts +1 -0
- package/es/interface/layer.js.map +1 -1
- package/es/interface/light.js.map +1 -1
- package/es/interface/loader.js.map +1 -1
- package/es/interface/matrix.js.map +1 -1
- package/es/interface/node-tree.js.map +1 -1
- package/es/interface/path.js.map +1 -1
- package/es/interface/picker.js.map +1 -1
- package/es/interface/plugin.js.map +1 -1
- package/es/interface/render.js.map +1 -1
- package/es/interface/stage.d.ts +7 -2
- package/es/interface/stage.js.map +1 -1
- package/es/interface/sync-hook.js.map +1 -1
- package/es/interface/text.js.map +1 -1
- package/es/interface/theme-service.js.map +1 -1
- package/es/interface/util.js.map +1 -1
- package/es/interface/window.d.ts +4 -0
- package/es/interface/window.js.map +1 -1
- package/es/jsx/graphicType.d.ts +96 -60
- package/es/jsx/graphicType.js.map +1 -1
- package/es/jsx/index.js.map +1 -1
- package/es/jsx/jsx-classic.d.ts +2 -4
- package/es/jsx/jsx-classic.js +8 -15
- package/es/jsx/jsx-classic.js.map +1 -1
- package/es/kits/env.js.map +1 -1
- package/es/kits/index.js.map +1 -1
- package/es/modules.js.map +1 -1
- package/es/picker/canvas-picker-service.js.map +1 -1
- package/es/picker/contributions/canvas-picker/arc-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/arc3d-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/area-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/base-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/circle-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/glyph-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/image-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/line-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/module.js.map +1 -1
- package/es/picker/contributions/canvas-picker/path-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/polygon-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/pyramid3d-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/rect-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/rect3d-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/richtext-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/symbol-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/text-picker.js.map +1 -1
- package/es/picker/contributions/constants.js.map +1 -1
- package/es/picker/contributions/math-picker/arc-picker.js.map +1 -1
- package/es/picker/contributions/math-picker/area-picker.js.map +1 -1
- package/es/picker/contributions/math-picker/circle-picker.js.map +1 -1
- package/es/picker/contributions/math-picker/glyph-picker.js.map +1 -1
- package/es/picker/contributions/math-picker/line-picker.js.map +1 -1
- package/es/picker/contributions/math-picker/module.js.map +1 -1
- package/es/picker/contributions/math-picker/path-picker.js.map +1 -1
- package/es/picker/contributions/math-picker/polygon-picker.js.map +1 -1
- package/es/picker/contributions/math-picker/rect-picker.js.map +1 -1
- package/es/picker/contributions/math-picker/symbol-picker.js.map +1 -1
- package/es/picker/contributions/math-picker/text-picker.js.map +1 -1
- package/es/picker/contributions/modules.js.map +1 -1
- package/es/picker/contributions/old/circle-picker.js.map +1 -1
- package/es/picker/contributions/old/rect-picker.js.map +1 -1
- package/es/picker/global-picker-service.js.map +1 -1
- package/es/picker/index.js.map +1 -1
- package/es/picker/math-picker-service.js.map +1 -1
- package/es/picker/pick-interceptor.js.map +1 -1
- package/es/picker/pick-modules.js.map +1 -1
- package/es/picker/picker-service.js.map +1 -1
- package/es/plugins/builtin-plugin/3dview-transform-plugin.js.map +1 -1
- package/es/plugins/builtin-plugin/auto-render-plugin.js.map +1 -1
- package/es/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
- package/es/plugins/builtin-plugin/flex-layout-plugin.d.ts +2 -0
- package/es/plugins/builtin-plugin/flex-layout-plugin.js +47 -20
- package/es/plugins/builtin-plugin/flex-layout-plugin.js.map +1 -1
- package/es/plugins/builtin-plugin/html-attribute-plugin.js.map +1 -1
- package/es/plugins/builtin-plugin/incremental-auto-render-plugin.js.map +1 -1
- package/es/plugins/builtin-plugin/poptip-plugin.js.map +1 -1
- package/es/plugins/constants.js.map +1 -1
- package/es/plugins/plugin-modules.js +2 -2
- package/es/plugins/plugin-modules.js.map +1 -1
- package/es/plugins/plugin-service.js.map +1 -1
- package/es/render/contributions/modules.js.map +1 -1
- package/es/render/contributions/render/arc-render.js +10 -3
- package/es/render/contributions/render/arc-render.js.map +1 -1
- package/es/render/contributions/render/arc3d-render.js.map +1 -1
- package/es/render/contributions/render/area-render.js +1 -1
- package/es/render/contributions/render/area-render.js.map +1 -1
- package/es/render/contributions/render/base-render.js.map +1 -1
- package/es/render/contributions/render/circle-render.js.map +1 -1
- package/es/render/contributions/render/clear-screen.js.map +1 -1
- package/es/render/contributions/render/contributions/arc-contribution-render.js +9 -7
- package/es/render/contributions/render/contributions/arc-contribution-render.js.map +1 -1
- package/es/render/contributions/render/contributions/area-contribution-render.js.map +1 -1
- package/es/render/contributions/render/contributions/base-contribution-render.js.map +1 -1
- package/es/render/contributions/render/contributions/circle-contribution-render.js +9 -7
- package/es/render/contributions/render/contributions/circle-contribution-render.js.map +1 -1
- package/es/render/contributions/render/contributions/constants.js.map +1 -1
- package/es/render/contributions/render/contributions/group-contribution-render.js.map +1 -1
- package/es/render/contributions/render/contributions/image-contribution-render.js +27 -0
- package/es/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
- package/es/render/contributions/render/contributions/index.js.map +1 -1
- package/es/render/contributions/render/contributions/path-contribution-render.js.map +1 -1
- package/es/render/contributions/render/contributions/polygon-contribution-render.js.map +1 -1
- package/es/render/contributions/render/contributions/rect-contribution-render.js +9 -7
- package/es/render/contributions/render/contributions/rect-contribution-render.js.map +1 -1
- package/es/render/contributions/render/contributions/symbol-contribution-render.js +22 -20
- package/es/render/contributions/render/contributions/symbol-contribution-render.js.map +1 -1
- package/es/render/contributions/render/contributions/text-contribution-render.js.map +1 -1
- package/es/render/contributions/render/draw-contribution.js.map +1 -1
- package/es/render/contributions/render/draw-interceptor.js.map +1 -1
- package/es/render/contributions/render/glyph-render.js.map +1 -1
- package/es/render/contributions/render/graphic-render.js.map +1 -1
- package/es/render/contributions/render/group-render.js.map +1 -1
- package/es/render/contributions/render/image-render.js +10 -2
- package/es/render/contributions/render/image-render.js.map +1 -1
- package/es/render/contributions/render/incremental-area-render.js.map +1 -1
- package/es/render/contributions/render/incremental-draw-contribution.js.map +1 -1
- package/es/render/contributions/render/incremental-line-render.js.map +1 -1
- package/es/render/contributions/render/index.js.map +1 -1
- package/es/render/contributions/render/line-render.js.map +1 -1
- package/es/render/contributions/render/module.js.map +1 -1
- package/es/render/contributions/render/path-render.js.map +1 -1
- package/es/render/contributions/render/polygon-render.js.map +1 -1
- package/es/render/contributions/render/pyramid3d-render.js.map +1 -1
- package/es/render/contributions/render/rect-render.js.map +1 -1
- package/es/render/contributions/render/rect3d-render.js.map +1 -1
- package/es/render/contributions/render/render-slector.js.map +1 -1
- package/es/render/contributions/render/richtext-render.js.map +1 -1
- package/es/render/contributions/render/symbol-render.js.map +1 -1
- package/es/render/contributions/render/symbol.js.map +1 -1
- package/es/render/contributions/render/text-render.js.map +1 -1
- package/es/render/contributions/render/utils.d.ts +2 -2
- package/es/render/contributions/render/utils.js.map +1 -1
- package/es/render/index.js.map +1 -1
- package/es/render/render-modules.js.map +1 -1
- package/es/render/render-service.js.map +1 -1
- package/es/resource-loader/loader.js.map +1 -1
- package/es/tapable/Hook.js.map +1 -1
- package/es/tapable/SyncHook.js.map +1 -1
- package/es/tapable/index.js.map +1 -1
- package/package.json +2 -2
- package/es/tsconfig.tsbuildinfo +0 -1
package/dist/index.js
CHANGED
|
@@ -10,41 +10,41 @@
|
|
|
10
10
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
function _iterableToArrayLimit(
|
|
14
|
-
var
|
|
15
|
-
if (null !=
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
function _iterableToArrayLimit(r, l) {
|
|
14
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
15
|
+
if (null != t) {
|
|
16
|
+
var e,
|
|
17
|
+
n,
|
|
18
|
+
i,
|
|
19
|
+
u,
|
|
20
|
+
a = [],
|
|
21
|
+
f = !0,
|
|
22
|
+
o = !1;
|
|
23
23
|
try {
|
|
24
|
-
if (
|
|
25
|
-
if (Object(
|
|
26
|
-
|
|
27
|
-
} else for (; !(
|
|
28
|
-
} catch (
|
|
29
|
-
|
|
24
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
25
|
+
if (Object(t) !== t) return;
|
|
26
|
+
f = !1;
|
|
27
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
28
|
+
} catch (r) {
|
|
29
|
+
o = !0, n = r;
|
|
30
30
|
} finally {
|
|
31
31
|
try {
|
|
32
|
-
if (!
|
|
32
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
33
33
|
} finally {
|
|
34
|
-
if (
|
|
34
|
+
if (o) throw n;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
return
|
|
37
|
+
return a;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
function _typeof(
|
|
40
|
+
function _typeof(o) {
|
|
41
41
|
"@babel/helpers - typeof";
|
|
42
42
|
|
|
43
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
44
|
-
return typeof
|
|
45
|
-
} : function (
|
|
46
|
-
return
|
|
47
|
-
}, _typeof(
|
|
43
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
44
|
+
return typeof o;
|
|
45
|
+
} : function (o) {
|
|
46
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
47
|
+
}, _typeof(o);
|
|
48
48
|
}
|
|
49
49
|
function _classCallCheck(instance, Constructor) {
|
|
50
50
|
if (!(instance instanceof Constructor)) {
|
|
@@ -3712,7 +3712,7 @@
|
|
|
3712
3712
|
return Array.isArray(object) && object.some(isPromise);
|
|
3713
3713
|
}
|
|
3714
3714
|
|
|
3715
|
-
var __awaiter$
|
|
3715
|
+
var __awaiter$4 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
3716
3716
|
function adopt(value) {
|
|
3717
3717
|
return value instanceof P ? value : new P(function (resolve) {
|
|
3718
3718
|
resolve(value);
|
|
@@ -3857,7 +3857,7 @@
|
|
|
3857
3857
|
}
|
|
3858
3858
|
};
|
|
3859
3859
|
var _saveAsyncResultToSingletonScope = function _saveAsyncResultToSingletonScope(binding, asyncResult) {
|
|
3860
|
-
return __awaiter$
|
|
3860
|
+
return __awaiter$4(void 0, void 0, void 0, function () {
|
|
3861
3861
|
var result, ex_1;
|
|
3862
3862
|
return __generator$3(this, function (_a) {
|
|
3863
3863
|
switch (_a.label) {
|
|
@@ -3945,7 +3945,7 @@
|
|
|
3945
3945
|
};
|
|
3946
3946
|
return __assign$1.apply(this, arguments);
|
|
3947
3947
|
};
|
|
3948
|
-
var __awaiter$
|
|
3948
|
+
var __awaiter$3 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
3949
3949
|
function adopt(value) {
|
|
3950
3950
|
return value instanceof P ? value : new P(function (resolve) {
|
|
3951
3951
|
resolve(value);
|
|
@@ -4118,7 +4118,7 @@
|
|
|
4118
4118
|
return instance;
|
|
4119
4119
|
}
|
|
4120
4120
|
function createInstanceWithInjectionsAsync(args) {
|
|
4121
|
-
return __awaiter$
|
|
4121
|
+
return __awaiter$3(this, void 0, void 0, function () {
|
|
4122
4122
|
var constructorInjections, propertyInjections;
|
|
4123
4123
|
return __generator$2(this, function (_a) {
|
|
4124
4124
|
switch (_a.label) {
|
|
@@ -4138,7 +4138,7 @@
|
|
|
4138
4138
|
});
|
|
4139
4139
|
}
|
|
4140
4140
|
function possiblyWaitInjections(possiblePromiseinjections) {
|
|
4141
|
-
return __awaiter$
|
|
4141
|
+
return __awaiter$3(this, void 0, void 0, function () {
|
|
4142
4142
|
var injections, _i, possiblePromiseinjections_1, injection;
|
|
4143
4143
|
return __generator$2(this, function (_a) {
|
|
4144
4144
|
injections = [];
|
|
@@ -4201,7 +4201,7 @@
|
|
|
4201
4201
|
}
|
|
4202
4202
|
}
|
|
4203
4203
|
|
|
4204
|
-
var __awaiter$
|
|
4204
|
+
var __awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
4205
4205
|
function adopt(value) {
|
|
4206
4206
|
return value instanceof P ? value : new P(function (resolve) {
|
|
4207
4207
|
resolve(value);
|
|
@@ -4427,7 +4427,7 @@
|
|
|
4427
4427
|
return result;
|
|
4428
4428
|
};
|
|
4429
4429
|
var _activateContainerAsync = function _activateContainerAsync(activationsIterator, context, resultPromise) {
|
|
4430
|
-
return __awaiter$
|
|
4430
|
+
return __awaiter$2(void 0, void 0, void 0, function () {
|
|
4431
4431
|
var result, activation;
|
|
4432
4432
|
return __generator$1(this, function (_a) {
|
|
4433
4433
|
switch (_a.label) {
|
|
@@ -5041,7 +5041,7 @@
|
|
|
5041
5041
|
};
|
|
5042
5042
|
return __assign.apply(this, arguments);
|
|
5043
5043
|
};
|
|
5044
|
-
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
5044
|
+
var __awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
5045
5045
|
function adopt(value) {
|
|
5046
5046
|
return value instanceof P ? value : new P(function (resolve) {
|
|
5047
5047
|
resolve(value);
|
|
@@ -5240,7 +5240,7 @@
|
|
|
5240
5240
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
5241
5241
|
modules[_i] = arguments[_i];
|
|
5242
5242
|
}
|
|
5243
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
5243
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
5244
5244
|
var getHelpers, _a, modules_2, currentModule, containerModuleHelpers;
|
|
5245
5245
|
return __generator(this, function (_b) {
|
|
5246
5246
|
switch (_b.label) {
|
|
@@ -5282,7 +5282,7 @@
|
|
|
5282
5282
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
5283
5283
|
modules[_i] = arguments[_i];
|
|
5284
5284
|
}
|
|
5285
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
5285
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
5286
5286
|
var _a, modules_3, module_1, deactivations;
|
|
5287
5287
|
return __generator(this, function (_b) {
|
|
5288
5288
|
switch (_b.label) {
|
|
@@ -5318,7 +5318,7 @@
|
|
|
5318
5318
|
return this.bind(serviceIdentifier);
|
|
5319
5319
|
};
|
|
5320
5320
|
Container.prototype.rebindAsync = function (serviceIdentifier) {
|
|
5321
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
5321
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
5322
5322
|
return __generator(this, function (_a) {
|
|
5323
5323
|
switch (_a.label) {
|
|
5324
5324
|
case 0:
|
|
@@ -5338,7 +5338,7 @@
|
|
|
5338
5338
|
this._removeServiceFromDictionary(serviceIdentifier);
|
|
5339
5339
|
};
|
|
5340
5340
|
Container.prototype.unbindAsync = function (serviceIdentifier) {
|
|
5341
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
5341
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
5342
5342
|
var bindings;
|
|
5343
5343
|
return __generator(this, function (_a) {
|
|
5344
5344
|
switch (_a.label) {
|
|
@@ -5364,7 +5364,7 @@
|
|
|
5364
5364
|
this._bindingDictionary = new Lookup();
|
|
5365
5365
|
};
|
|
5366
5366
|
Container.prototype.unbindAllAsync = function () {
|
|
5367
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
5367
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
5368
5368
|
var promises;
|
|
5369
5369
|
var _this = this;
|
|
5370
5370
|
return __generator(this, function (_a) {
|
|
@@ -5453,7 +5453,7 @@
|
|
|
5453
5453
|
return this._getButThrowIfAsync(getArgs);
|
|
5454
5454
|
};
|
|
5455
5455
|
Container.prototype.getAsync = function (serviceIdentifier) {
|
|
5456
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
5456
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
5457
5457
|
var getArgs;
|
|
5458
5458
|
return __generator(this, function (_a) {
|
|
5459
5459
|
getArgs = this._getNotAllArgs(serviceIdentifier, false);
|
|
@@ -5466,7 +5466,7 @@
|
|
|
5466
5466
|
return this._getButThrowIfAsync(getArgs);
|
|
5467
5467
|
};
|
|
5468
5468
|
Container.prototype.getTaggedAsync = function (serviceIdentifier, key, value) {
|
|
5469
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
5469
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
5470
5470
|
var getArgs;
|
|
5471
5471
|
return __generator(this, function (_a) {
|
|
5472
5472
|
getArgs = this._getNotAllArgs(serviceIdentifier, false, key, value);
|
|
@@ -5550,7 +5550,7 @@
|
|
|
5550
5550
|
}
|
|
5551
5551
|
};
|
|
5552
5552
|
Container.prototype._handleDeactivationError = function (asyncResult, constructor) {
|
|
5553
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
5553
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
5554
5554
|
var ex_1;
|
|
5555
5555
|
return __generator(this, function (_a) {
|
|
5556
5556
|
switch (_a.label) {
|
|
@@ -5583,7 +5583,7 @@
|
|
|
5583
5583
|
}
|
|
5584
5584
|
};
|
|
5585
5585
|
Container.prototype._deactivateContainerAsync = function (instance, deactivationsIterator) {
|
|
5586
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
5586
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
5587
5587
|
var deactivation;
|
|
5588
5588
|
return __generator(this, function (_a) {
|
|
5589
5589
|
switch (_a.label) {
|
|
@@ -5736,7 +5736,7 @@
|
|
|
5736
5736
|
}
|
|
5737
5737
|
};
|
|
5738
5738
|
Container.prototype._deactivateSingletonsAsync = function (bindings) {
|
|
5739
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
5739
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
5740
5740
|
var _this = this;
|
|
5741
5741
|
return __generator(this, function (_a) {
|
|
5742
5742
|
switch (_a.label) {
|
|
@@ -5759,7 +5759,7 @@
|
|
|
5759
5759
|
}
|
|
5760
5760
|
};
|
|
5761
5761
|
Container.prototype._propagateContainerDeactivationThenBindingAndPreDestroyAsync = function (binding, instance, constructor) {
|
|
5762
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
5762
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
5763
5763
|
return __generator(this, function (_a) {
|
|
5764
5764
|
switch (_a.label) {
|
|
5765
5765
|
case 0:
|
|
@@ -5799,7 +5799,7 @@
|
|
|
5799
5799
|
return this._preDestroy(constructor, instance);
|
|
5800
5800
|
};
|
|
5801
5801
|
Container.prototype._bindingDeactivationAndPreDestroyAsync = function (binding, instance, constructor) {
|
|
5802
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
5802
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
5803
5803
|
return __generator(this, function (_a) {
|
|
5804
5804
|
switch (_a.label) {
|
|
5805
5805
|
case 0:
|
|
@@ -5955,6 +5955,14 @@
|
|
|
5955
5955
|
|
|
5956
5956
|
var postConstruct = propertyEventDecorator(POST_CONSTRUCT, MULTIPLE_POST_CONSTRUCT_METHODS);
|
|
5957
5957
|
|
|
5958
|
+
function __rest(s, e) {
|
|
5959
|
+
var t = {};
|
|
5960
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
5961
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
5962
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
5963
|
+
}
|
|
5964
|
+
return t;
|
|
5965
|
+
}
|
|
5958
5966
|
function __decorate(decorators, target, key, desc) {
|
|
5959
5967
|
var c = arguments.length,
|
|
5960
5968
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
@@ -5970,6 +5978,33 @@
|
|
|
5970
5978
|
function __metadata(metadataKey, metadataValue) {
|
|
5971
5979
|
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
5972
5980
|
}
|
|
5981
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
5982
|
+
function adopt(value) {
|
|
5983
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
5984
|
+
resolve(value);
|
|
5985
|
+
});
|
|
5986
|
+
}
|
|
5987
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5988
|
+
function fulfilled(value) {
|
|
5989
|
+
try {
|
|
5990
|
+
step(generator.next(value));
|
|
5991
|
+
} catch (e) {
|
|
5992
|
+
reject(e);
|
|
5993
|
+
}
|
|
5994
|
+
}
|
|
5995
|
+
function rejected(value) {
|
|
5996
|
+
try {
|
|
5997
|
+
step(generator["throw"](value));
|
|
5998
|
+
} catch (e) {
|
|
5999
|
+
reject(e);
|
|
6000
|
+
}
|
|
6001
|
+
}
|
|
6002
|
+
function step(result) {
|
|
6003
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
6004
|
+
}
|
|
6005
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
6006
|
+
});
|
|
6007
|
+
}
|
|
5973
6008
|
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
5974
6009
|
var e = new Error(message);
|
|
5975
6010
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
@@ -5997,6 +6032,11 @@
|
|
|
5997
6032
|
.inSingletonScope()
|
|
5998
6033
|
.whenTargetNamed(id);
|
|
5999
6034
|
}
|
|
6035
|
+
function bindContributionProviderNoSingletonScope(bind, id) {
|
|
6036
|
+
bind(ContributionProvider)
|
|
6037
|
+
.toDynamicValue(({ container }) => new ContributionProviderCache(id, container))
|
|
6038
|
+
.whenTargetNamed(id);
|
|
6039
|
+
}
|
|
6000
6040
|
|
|
6001
6041
|
class Hook {
|
|
6002
6042
|
constructor(args, name) {
|
|
@@ -6691,14 +6731,14 @@
|
|
|
6691
6731
|
return isType(value, "Date");
|
|
6692
6732
|
};
|
|
6693
6733
|
|
|
6694
|
-
var isNumber = function isNumber(value) {
|
|
6734
|
+
var isNumber$1 = function isNumber(value) {
|
|
6695
6735
|
var fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
6696
6736
|
var type = _typeof(value);
|
|
6697
6737
|
return fuzzy ? "number" === type : "number" === type || isType(value, "Number");
|
|
6698
6738
|
};
|
|
6699
6739
|
|
|
6700
6740
|
var isValidNumber = function isValidNumber(value) {
|
|
6701
|
-
return isNumber(value) && Number.isFinite(value);
|
|
6741
|
+
return isNumber$1(value) && Number.isFinite(value);
|
|
6702
6742
|
};
|
|
6703
6743
|
|
|
6704
6744
|
var isValidUrl = function isValidUrl(value) {
|
|
@@ -6834,12 +6874,12 @@
|
|
|
6834
6874
|
}, {
|
|
6835
6875
|
key: "add",
|
|
6836
6876
|
value: function add(point) {
|
|
6837
|
-
return isNumber(point) ? (this.x += point, void (this.y += point)) : (this.x += point.x, this.y += point.y, this);
|
|
6877
|
+
return isNumber$1(point) ? (this.x += point, void (this.y += point)) : (this.x += point.x, this.y += point.y, this);
|
|
6838
6878
|
}
|
|
6839
6879
|
}, {
|
|
6840
6880
|
key: "sub",
|
|
6841
6881
|
value: function sub(point) {
|
|
6842
|
-
return isNumber(point) ? (this.x -= point, void (this.y -= point)) : (this.x -= point.x, this.y -= point.y, this);
|
|
6882
|
+
return isNumber$1(point) ? (this.x -= point, void (this.y -= point)) : (this.x -= point.x, this.y -= point.y, this);
|
|
6843
6883
|
}
|
|
6844
6884
|
}, {
|
|
6845
6885
|
key: "multi",
|
|
@@ -7823,13 +7863,15 @@
|
|
|
7823
7863
|
UpdateTag[UpdateTag["UPDATE_SHAPE"] = 2] = "UPDATE_SHAPE";
|
|
7824
7864
|
UpdateTag[UpdateTag["CLEAR_SHAPE"] = 253] = "CLEAR_SHAPE";
|
|
7825
7865
|
UpdateTag[UpdateTag["UPDATE_SHAPE_AND_BOUNDS"] = 3] = "UPDATE_SHAPE_AND_BOUNDS";
|
|
7826
|
-
UpdateTag[UpdateTag["INIT"] =
|
|
7866
|
+
UpdateTag[UpdateTag["INIT"] = 179] = "INIT";
|
|
7827
7867
|
UpdateTag[UpdateTag["CLEAR_BOUNDS"] = 254] = "CLEAR_BOUNDS";
|
|
7828
7868
|
UpdateTag[UpdateTag["UPDATE_GLOBAL_MATRIX"] = 32] = "UPDATE_GLOBAL_MATRIX";
|
|
7829
7869
|
UpdateTag[UpdateTag["CLEAR_GLOBAL_MATRIX"] = 223] = "CLEAR_GLOBAL_MATRIX";
|
|
7830
7870
|
UpdateTag[UpdateTag["UPDATE_LOCAL_MATRIX"] = 16] = "UPDATE_LOCAL_MATRIX";
|
|
7831
7871
|
UpdateTag[UpdateTag["CLEAR_LOCAL_MATRIX"] = 239] = "CLEAR_LOCAL_MATRIX";
|
|
7832
7872
|
UpdateTag[UpdateTag["UPDATE_GLOBAL_LOCAL_MATRIX"] = 48] = "UPDATE_GLOBAL_LOCAL_MATRIX";
|
|
7873
|
+
UpdateTag[UpdateTag["UPDATE_LAYOUT"] = 128] = "UPDATE_LAYOUT";
|
|
7874
|
+
UpdateTag[UpdateTag["CLEAR_LAYOUT"] = 127] = "CLEAR_LAYOUT";
|
|
7833
7875
|
})(exports.UpdateTag || (exports.UpdateTag = {}));
|
|
7834
7876
|
exports.IContainPointMode = void 0;
|
|
7835
7877
|
(function (IContainPointMode) {
|
|
@@ -9287,11 +9329,7 @@
|
|
|
9287
9329
|
strokeBoundsBuffer: 2,
|
|
9288
9330
|
stroke: false
|
|
9289
9331
|
};
|
|
9290
|
-
const DefaultStrokeStyle = {
|
|
9291
|
-
outerBorder: { ...commonStroke, distance: 0 },
|
|
9292
|
-
innerBorder: { ...commonStroke, distance: 0 },
|
|
9293
|
-
...commonStroke
|
|
9294
|
-
};
|
|
9332
|
+
const DefaultStrokeStyle = Object.assign({ outerBorder: Object.assign(Object.assign({}, commonStroke), { distance: 0 }), innerBorder: Object.assign(Object.assign({}, commonStroke), { distance: 0 }) }, commonStroke);
|
|
9295
9333
|
const DefaultTextStyle = {
|
|
9296
9334
|
text: '',
|
|
9297
9335
|
maxLineWidth: Infinity,
|
|
@@ -9309,44 +9347,17 @@
|
|
|
9309
9347
|
lineThrough: 0,
|
|
9310
9348
|
scaleIn3d: false,
|
|
9311
9349
|
direction: 'horizontal',
|
|
9312
|
-
wordBreak: 'break-all'
|
|
9313
|
-
|
|
9314
|
-
const DefaultStyle = {
|
|
9315
|
-
opacity: 1,
|
|
9316
|
-
background: null,
|
|
9317
|
-
texture: null,
|
|
9318
|
-
textureColor: 'black',
|
|
9319
|
-
textureSize: 10,
|
|
9320
|
-
texturePadding: 2,
|
|
9321
|
-
backgroundMode: 0,
|
|
9322
|
-
blur: 0,
|
|
9323
|
-
cursor: null,
|
|
9324
|
-
html: null,
|
|
9325
|
-
...DefaultFillStyle,
|
|
9326
|
-
...DefaultStrokeStyle,
|
|
9327
|
-
...DefaultLayout
|
|
9350
|
+
wordBreak: 'break-all',
|
|
9351
|
+
ignoreBuf: false
|
|
9328
9352
|
};
|
|
9353
|
+
const DefaultStyle = Object.assign(Object.assign(Object.assign({ opacity: 1, background: null, texture: null, textureColor: 'black', textureSize: 10, texturePadding: 2, backgroundMode: 0, blur: 0, cursor: null, html: null }, DefaultFillStyle), DefaultStrokeStyle), DefaultLayout);
|
|
9329
9354
|
const DefaultConnectAttribute = {
|
|
9330
9355
|
connectedType: 'none',
|
|
9331
9356
|
connectedStyle: {},
|
|
9332
9357
|
connectedX: NaN,
|
|
9333
9358
|
connectedY: NaN
|
|
9334
9359
|
};
|
|
9335
|
-
const DefaultAttribute = {
|
|
9336
|
-
strokeSeg: null,
|
|
9337
|
-
pickable: true,
|
|
9338
|
-
childrenPickable: true,
|
|
9339
|
-
visible: true,
|
|
9340
|
-
zIndex: 0,
|
|
9341
|
-
layout: null,
|
|
9342
|
-
boundsPadding: 0,
|
|
9343
|
-
pickMode: 'accurate',
|
|
9344
|
-
customPickShape: null,
|
|
9345
|
-
boundsMode: 'accurate',
|
|
9346
|
-
keepDirIn3d: true,
|
|
9347
|
-
...DefaultStyle,
|
|
9348
|
-
...DefaultTransform
|
|
9349
|
-
};
|
|
9360
|
+
const DefaultAttribute = Object.assign(Object.assign({ strokeSeg: null, pickable: true, childrenPickable: true, visible: true, zIndex: 0, layout: null, boundsPadding: 0, pickMode: 'accurate', customPickShape: null, boundsMode: 'accurate', keepDirIn3d: true }, DefaultStyle), DefaultTransform);
|
|
9350
9361
|
function addAttributeToPrototype(obj, c, keys) {
|
|
9351
9362
|
keys.forEach(key => {
|
|
9352
9363
|
c.prototype[key] = obj[key];
|
|
@@ -9355,145 +9366,23 @@
|
|
|
9355
9366
|
function rewriteProto(obj, c) {
|
|
9356
9367
|
Object.setPrototypeOf(obj, c);
|
|
9357
9368
|
}
|
|
9358
|
-
const DefaultArcAttribute = {
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
|
|
9364
|
-
|
|
9365
|
-
padRadius: 0,
|
|
9366
|
-
padAngle: 0,
|
|
9367
|
-
cap: false,
|
|
9368
|
-
forceShowCap: false
|
|
9369
|
-
};
|
|
9370
|
-
const DefaultAreaAttribute = {
|
|
9371
|
-
...DefaultAttribute,
|
|
9372
|
-
...DefaultConnectAttribute,
|
|
9373
|
-
points: [],
|
|
9374
|
-
segments: [],
|
|
9375
|
-
curveType: 'linear',
|
|
9376
|
-
clipRange: 1
|
|
9377
|
-
};
|
|
9378
|
-
const DefaultCircleAttribute = {
|
|
9379
|
-
...DefaultAttribute,
|
|
9380
|
-
radius: 1,
|
|
9381
|
-
startAngle: 0,
|
|
9382
|
-
endAngle: pi2
|
|
9383
|
-
};
|
|
9384
|
-
const DefaultGroupAttribute = {
|
|
9385
|
-
...DefaultAttribute,
|
|
9386
|
-
width: 0,
|
|
9387
|
-
height: 0,
|
|
9388
|
-
cornerRadius: 0,
|
|
9389
|
-
path: [],
|
|
9390
|
-
clip: false,
|
|
9391
|
-
visibleAll: true,
|
|
9392
|
-
display: 'relative',
|
|
9393
|
-
flexDirection: 'row',
|
|
9394
|
-
flexWrap: 'wrap',
|
|
9395
|
-
justifyContent: 'flex-start',
|
|
9396
|
-
alignItems: 'flex-start',
|
|
9397
|
-
alignContent: 'flex-start'
|
|
9398
|
-
};
|
|
9399
|
-
const DefaultGlyphAttribute = {
|
|
9400
|
-
...DefaultAttribute,
|
|
9401
|
-
path: '',
|
|
9402
|
-
width: 0,
|
|
9403
|
-
height: 0,
|
|
9404
|
-
cornerRadius: 0,
|
|
9405
|
-
clip: false
|
|
9406
|
-
};
|
|
9407
|
-
const DefaultLineAttribute = {
|
|
9408
|
-
...DefaultAttribute,
|
|
9409
|
-
...DefaultConnectAttribute,
|
|
9410
|
-
points: [],
|
|
9411
|
-
segments: [],
|
|
9412
|
-
curveType: 'linear',
|
|
9413
|
-
clipRange: 1,
|
|
9414
|
-
clipRangeByDimension: 'default'
|
|
9415
|
-
};
|
|
9416
|
-
const DefaultPathAttribute = {
|
|
9417
|
-
...DefaultAttribute,
|
|
9418
|
-
path: new CustomPath2D(),
|
|
9419
|
-
customPath: () => {
|
|
9369
|
+
const DefaultArcAttribute = Object.assign(Object.assign({}, DefaultAttribute), { startAngle: 0, endAngle: pi2, innerRadius: 0, outerRadius: 1, cornerRadius: 0, padRadius: 0, padAngle: 0, cap: false, forceShowCap: false });
|
|
9370
|
+
const DefaultAreaAttribute = Object.assign(Object.assign(Object.assign({}, DefaultAttribute), DefaultConnectAttribute), { points: [], segments: [], curveType: 'linear', clipRange: 1 });
|
|
9371
|
+
const DefaultCircleAttribute = Object.assign(Object.assign({}, DefaultAttribute), { radius: 1, startAngle: 0, endAngle: pi2 });
|
|
9372
|
+
const DefaultGroupAttribute = Object.assign(Object.assign({}, DefaultAttribute), { width: 0, height: 0, cornerRadius: 0, path: [], clip: false, visibleAll: true, display: 'relative', flexDirection: 'row', flexWrap: 'wrap', justifyContent: 'flex-start', alignItems: 'flex-start', alignContent: 'flex-start' });
|
|
9373
|
+
const DefaultGlyphAttribute = Object.assign(Object.assign({}, DefaultAttribute), { path: '', width: 0, height: 0, cornerRadius: 0, clip: false });
|
|
9374
|
+
const DefaultLineAttribute = Object.assign(Object.assign(Object.assign({}, DefaultAttribute), DefaultConnectAttribute), { points: [], segments: [], curveType: 'linear', clipRange: 1, clipRangeByDimension: 'default' });
|
|
9375
|
+
const DefaultPathAttribute = Object.assign(Object.assign({}, DefaultAttribute), { path: new CustomPath2D(), customPath: () => {
|
|
9420
9376
|
console.warn('空函数');
|
|
9421
|
-
}
|
|
9422
|
-
};
|
|
9423
|
-
const
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
};
|
|
9428
|
-
const
|
|
9429
|
-
|
|
9430
|
-
width: 0,
|
|
9431
|
-
height: 0,
|
|
9432
|
-
strokeBoundsBuffer: 0,
|
|
9433
|
-
cornerRadius: 0
|
|
9434
|
-
};
|
|
9435
|
-
const DefaultRect3dAttribute = {
|
|
9436
|
-
...DefaultAttribute,
|
|
9437
|
-
width: 0,
|
|
9438
|
-
height: 0,
|
|
9439
|
-
cornerRadius: 0,
|
|
9440
|
-
length: 0
|
|
9441
|
-
};
|
|
9442
|
-
const DefaultSymbolAttribute = {
|
|
9443
|
-
...DefaultAttribute,
|
|
9444
|
-
symbolType: 'circle',
|
|
9445
|
-
size: 10,
|
|
9446
|
-
keepDirIn3d: true
|
|
9447
|
-
};
|
|
9448
|
-
const DefaultTextAttribute = {
|
|
9449
|
-
...DefaultAttribute,
|
|
9450
|
-
...DefaultTextStyle,
|
|
9451
|
-
strokeBoundsBuffer: 0,
|
|
9452
|
-
keepDirIn3d: true
|
|
9453
|
-
};
|
|
9454
|
-
const DefaultRichTextAttribute = {
|
|
9455
|
-
...DefaultAttribute,
|
|
9456
|
-
width: 300,
|
|
9457
|
-
height: 300,
|
|
9458
|
-
ellipsis: true,
|
|
9459
|
-
wordBreak: 'break-word',
|
|
9460
|
-
verticalDirection: 'top',
|
|
9461
|
-
textAlign: 'left',
|
|
9462
|
-
textBaseline: 'top',
|
|
9463
|
-
layoutDirection: 'horizontal',
|
|
9464
|
-
textConfig: [],
|
|
9465
|
-
maxHeight: undefined,
|
|
9466
|
-
maxWidth: undefined,
|
|
9467
|
-
singleLine: false
|
|
9468
|
-
};
|
|
9469
|
-
const DefaultImageAttribute = {
|
|
9470
|
-
repeatX: 'no-repeat',
|
|
9471
|
-
repeatY: 'no-repeat',
|
|
9472
|
-
image: '',
|
|
9473
|
-
width: 0,
|
|
9474
|
-
height: 0,
|
|
9475
|
-
...DefaultAttribute,
|
|
9476
|
-
fill: true
|
|
9477
|
-
};
|
|
9478
|
-
const DefaultRichTextIconAttribute = {
|
|
9479
|
-
...DefaultImageAttribute,
|
|
9480
|
-
backgroundShowMode: 'never',
|
|
9481
|
-
backgroundWidth: 0,
|
|
9482
|
-
backgroundHeight: 0,
|
|
9483
|
-
textAlign: 'left',
|
|
9484
|
-
textBaseline: 'middle',
|
|
9485
|
-
direction: 'horizontal',
|
|
9486
|
-
margin: 0,
|
|
9487
|
-
id: '',
|
|
9488
|
-
width: 20,
|
|
9489
|
-
height: 20,
|
|
9490
|
-
backgroundFill: 'rgba(101, 117, 168, 0.1)',
|
|
9491
|
-
backgroundFillOpacity: 1,
|
|
9492
|
-
backgroundStroke: false,
|
|
9493
|
-
backgroundStrokeOpacity: 1,
|
|
9494
|
-
backgroundRadius: 4,
|
|
9495
|
-
opacity: 1
|
|
9496
|
-
};
|
|
9377
|
+
} });
|
|
9378
|
+
const DefaultPolygonAttribute = Object.assign(Object.assign({}, DefaultAttribute), { points: [], cornerRadius: 0 });
|
|
9379
|
+
const DefaultRectAttribute = Object.assign(Object.assign({}, DefaultAttribute), { width: 0, height: 0, strokeBoundsBuffer: 0, cornerRadius: 0 });
|
|
9380
|
+
const DefaultRect3dAttribute = Object.assign(Object.assign({}, DefaultAttribute), { width: 0, height: 0, cornerRadius: 0, length: 0 });
|
|
9381
|
+
const DefaultSymbolAttribute = Object.assign(Object.assign({}, DefaultAttribute), { symbolType: 'circle', size: 10, keepDirIn3d: true });
|
|
9382
|
+
const DefaultTextAttribute = Object.assign(Object.assign(Object.assign({}, DefaultAttribute), DefaultTextStyle), { strokeBoundsBuffer: 0, keepDirIn3d: true });
|
|
9383
|
+
const DefaultRichTextAttribute = Object.assign(Object.assign({}, DefaultAttribute), { width: 300, height: 300, ellipsis: true, wordBreak: 'break-word', verticalDirection: 'top', textAlign: 'left', textBaseline: 'top', layoutDirection: 'horizontal', textConfig: [], maxHeight: undefined, maxWidth: undefined, singleLine: false });
|
|
9384
|
+
const DefaultImageAttribute = Object.assign(Object.assign({ repeatX: 'no-repeat', repeatY: 'no-repeat', image: '', width: 0, height: 0 }, DefaultAttribute), { fill: true, cornerRadius: 0 });
|
|
9385
|
+
const DefaultRichTextIconAttribute = Object.assign(Object.assign({}, DefaultImageAttribute), { backgroundShowMode: 'never', backgroundWidth: 0, backgroundHeight: 0, textAlign: 'left', textBaseline: 'middle', direction: 'horizontal', margin: 0, id: '', width: 20, height: 20, backgroundFill: 'rgba(101, 117, 168, 0.1)', backgroundFillOpacity: 1, backgroundStroke: false, backgroundStrokeOpacity: 1, backgroundRadius: 4, opacity: 1 });
|
|
9497
9386
|
|
|
9498
9387
|
class Application {
|
|
9499
9388
|
}
|
|
@@ -9531,7 +9420,7 @@
|
|
|
9531
9420
|
textAlign: 'left',
|
|
9532
9421
|
script: 'normal'
|
|
9533
9422
|
};
|
|
9534
|
-
const regLetter = /\w|\(|\)
|
|
9423
|
+
const regLetter = /\w|\(|\)|-/;
|
|
9535
9424
|
const regPunctuation = /[.?!,;:/,。?!、;:]/;
|
|
9536
9425
|
const regFirstSpace = /\S/;
|
|
9537
9426
|
function applyFillStyle(ctx, character) {
|
|
@@ -9743,7 +9632,7 @@
|
|
|
9743
9632
|
clipedData.width = this.measureTextWidth(clipedData.str, options);
|
|
9744
9633
|
}
|
|
9745
9634
|
}
|
|
9746
|
-
out.push({
|
|
9635
|
+
out.push(Object.assign(Object.assign({}, verticalList[i]), { text: clipedData.str, width: clipedData.width }));
|
|
9747
9636
|
length += clipedData.width;
|
|
9748
9637
|
}
|
|
9749
9638
|
return {
|
|
@@ -9888,6 +9777,9 @@
|
|
|
9888
9777
|
function isNotAroundZero(val) {
|
|
9889
9778
|
return val > EPSILON || val < -EPSILON;
|
|
9890
9779
|
}
|
|
9780
|
+
function isNumber(data) {
|
|
9781
|
+
return typeof data === 'number' && Number.isFinite(data);
|
|
9782
|
+
}
|
|
9891
9783
|
const _v0 = [0, 0];
|
|
9892
9784
|
const _v1 = [0, 0];
|
|
9893
9785
|
const _v2 = [0, 0];
|
|
@@ -10628,16 +10520,10 @@
|
|
|
10628
10520
|
}
|
|
10629
10521
|
createTextMeasureInstance(textSpec, option, getCanvasForMeasure) {
|
|
10630
10522
|
this.configure(this.global, this.global.env);
|
|
10631
|
-
return new TextMeasure({
|
|
10632
|
-
defaultFontParams: {
|
|
10523
|
+
return new TextMeasure(Object.assign({ defaultFontParams: {
|
|
10633
10524
|
fontFamily: DefaultTextStyle.fontFamily,
|
|
10634
10525
|
fontSize: DefaultTextStyle.fontSize
|
|
10635
|
-
},
|
|
10636
|
-
getCanvasForMeasure: getCanvasForMeasure || (() => this.canvas),
|
|
10637
|
-
getTextBounds: undefined,
|
|
10638
|
-
specialCharSet: '-/: .,@%\'"~' + TextMeasure.ALPHABET_CHAR_SET + TextMeasure.ALPHABET_CHAR_SET.toUpperCase(),
|
|
10639
|
-
...(option !== null && option !== void 0 ? option : {})
|
|
10640
|
-
}, textSpec);
|
|
10526
|
+
}, getCanvasForMeasure: getCanvasForMeasure || (() => this.canvas), getTextBounds: undefined, specialCharSet: '-/: .,@%\'"~' + TextMeasure.ALPHABET_CHAR_SET + TextMeasure.ALPHABET_CHAR_SET.toUpperCase() }, (option !== null && option !== void 0 ? option : {})), textSpec);
|
|
10641
10527
|
}
|
|
10642
10528
|
};
|
|
10643
10529
|
exports.DefaultGraphicUtil = __decorate([
|
|
@@ -11014,35 +10900,37 @@
|
|
|
11014
10900
|
}
|
|
11015
10901
|
}
|
|
11016
10902
|
}
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
breakTag
|
|
11025
|
-
|
|
11026
|
-
|
|
11027
|
-
|
|
10903
|
+
forEachChildrenAsync(cb, reverse = false) {
|
|
10904
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10905
|
+
if (reverse) {
|
|
10906
|
+
let child = this._lastChild;
|
|
10907
|
+
let i = 0;
|
|
10908
|
+
while (child) {
|
|
10909
|
+
let breakTag = cb(child, i++);
|
|
10910
|
+
if (breakTag.then) {
|
|
10911
|
+
breakTag = yield breakTag;
|
|
10912
|
+
}
|
|
10913
|
+
if (breakTag) {
|
|
10914
|
+
return;
|
|
10915
|
+
}
|
|
10916
|
+
child = child._prev;
|
|
11028
10917
|
}
|
|
11029
|
-
child = child._prev;
|
|
11030
10918
|
}
|
|
11031
|
-
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11035
|
-
|
|
11036
|
-
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
11040
|
-
|
|
11041
|
-
|
|
10919
|
+
else {
|
|
10920
|
+
let child = this._firstChild;
|
|
10921
|
+
let i = 0;
|
|
10922
|
+
while (child) {
|
|
10923
|
+
let breakTag = cb(child, i++);
|
|
10924
|
+
if (breakTag.then) {
|
|
10925
|
+
breakTag = yield breakTag;
|
|
10926
|
+
}
|
|
10927
|
+
if (breakTag) {
|
|
10928
|
+
return;
|
|
10929
|
+
}
|
|
10930
|
+
child = child._next;
|
|
11042
10931
|
}
|
|
11043
|
-
child = child._next;
|
|
11044
10932
|
}
|
|
11045
|
-
}
|
|
10933
|
+
});
|
|
11046
10934
|
}
|
|
11047
10935
|
forEach(cb) {
|
|
11048
10936
|
return this.forEachChildren(cb);
|
|
@@ -12007,20 +11895,23 @@
|
|
|
12007
11895
|
this.dispatch.emit(type || e.type, e);
|
|
12008
11896
|
}
|
|
12009
11897
|
mapEvent(e) {
|
|
12010
|
-
var _a;
|
|
11898
|
+
var _a, _b, _c, _d, _e;
|
|
12011
11899
|
if (!this.rootTarget) {
|
|
12012
11900
|
return;
|
|
12013
11901
|
}
|
|
12014
11902
|
const mappers = this.mappingTable[e.type];
|
|
12015
11903
|
let target;
|
|
12016
11904
|
const cacheKey = `${e.canvasX}-${e.canvasY}`;
|
|
12017
|
-
if ((_a = this._prePointTargetCache) === null || _a === void 0 ? void 0 : _a[cacheKey])
|
|
11905
|
+
if (((_a = this._prePointTargetCache) === null || _a === void 0 ? void 0 : _a[cacheKey]) &&
|
|
11906
|
+
((_c = (_b = this._prePointTargetCache) === null || _b === void 0 ? void 0 : _b[cacheKey]) === null || _c === void 0 ? void 0 : _c.stage.renderCount) ===
|
|
11907
|
+
((_d = this._prePointTargetCache) === null || _d === void 0 ? void 0 : _d.stageRenderCount)) {
|
|
12018
11908
|
target = this._prePointTargetCache[cacheKey];
|
|
12019
11909
|
}
|
|
12020
11910
|
else {
|
|
12021
11911
|
target = this.pickTarget(e.canvasX, e.canvasY);
|
|
12022
11912
|
this._prePointTargetCache = {
|
|
12023
|
-
[cacheKey]: target
|
|
11913
|
+
[cacheKey]: target,
|
|
11914
|
+
stageRenderCount: (_e = target === null || target === void 0 ? void 0 : target.stage.renderCount) !== null && _e !== void 0 ? _e : -1
|
|
12024
11915
|
};
|
|
12025
11916
|
}
|
|
12026
11917
|
if (mappers) {
|
|
@@ -12237,9 +12128,7 @@
|
|
|
12237
12128
|
}
|
|
12238
12129
|
}
|
|
12239
12130
|
}
|
|
12240
|
-
|
|
12241
|
-
this.emitDelegation(e, type);
|
|
12242
|
-
}
|
|
12131
|
+
this.emitDelegation(e, type);
|
|
12243
12132
|
}
|
|
12244
12133
|
emitDelegation(e, type) {
|
|
12245
12134
|
const events = e.currentTarget._events;
|
|
@@ -13577,7 +13466,7 @@
|
|
|
13577
13466
|
this.animateTail = null;
|
|
13578
13467
|
this.animateCount = 0;
|
|
13579
13468
|
}
|
|
13580
|
-
removeAnimate(animate) {
|
|
13469
|
+
removeAnimate(animate, release = true) {
|
|
13581
13470
|
animate._onRemove && animate._onRemove.forEach(cb => cb());
|
|
13582
13471
|
if (animate === this.animateHead) {
|
|
13583
13472
|
this.animateHead = animate.nextAnimate;
|
|
@@ -13596,7 +13485,7 @@
|
|
|
13596
13485
|
animate.prevAnimate.nextAnimate = animate.nextAnimate;
|
|
13597
13486
|
animate.nextAnimate.prevAnimate = animate.prevAnimate;
|
|
13598
13487
|
}
|
|
13599
|
-
animate.release();
|
|
13488
|
+
release && animate.release();
|
|
13600
13489
|
return;
|
|
13601
13490
|
}
|
|
13602
13491
|
}
|
|
@@ -13684,6 +13573,13 @@
|
|
|
13684
13573
|
this._duringTime = 0;
|
|
13685
13574
|
this.timeline.addAnimate(this);
|
|
13686
13575
|
}
|
|
13576
|
+
setTimeline(timeline) {
|
|
13577
|
+
if (timeline === this.timeline) {
|
|
13578
|
+
return;
|
|
13579
|
+
}
|
|
13580
|
+
this.timeline.removeAnimate(this, false);
|
|
13581
|
+
timeline.addAnimate(this);
|
|
13582
|
+
}
|
|
13687
13583
|
getStartTime() {
|
|
13688
13584
|
return this._startTime;
|
|
13689
13585
|
}
|
|
@@ -14520,8 +14416,8 @@
|
|
|
14520
14416
|
}
|
|
14521
14417
|
onBind() {
|
|
14522
14418
|
var _a, _b, _c, _d, _e, _f;
|
|
14523
|
-
this.fromNumber = isNumber((_a = this.from) === null || _a === void 0 ? void 0 : _a.text) ? (_b = this.from) === null || _b === void 0 ? void 0 : _b.text : Number.parseFloat((_c = this.from) === null || _c === void 0 ? void 0 : _c.text);
|
|
14524
|
-
this.toNumber = isNumber((_d = this.to) === null || _d === void 0 ? void 0 : _d.text) ? (_e = this.to) === null || _e === void 0 ? void 0 : _e.text : Number.parseFloat((_f = this.to) === null || _f === void 0 ? void 0 : _f.text);
|
|
14419
|
+
this.fromNumber = isNumber$1((_a = this.from) === null || _a === void 0 ? void 0 : _a.text) ? (_b = this.from) === null || _b === void 0 ? void 0 : _b.text : Number.parseFloat((_c = this.from) === null || _c === void 0 ? void 0 : _c.text);
|
|
14420
|
+
this.toNumber = isNumber$1((_d = this.to) === null || _d === void 0 ? void 0 : _d.text) ? (_e = this.to) === null || _e === void 0 ? void 0 : _e.text : Number.parseFloat((_f = this.to) === null || _f === void 0 ? void 0 : _f.text);
|
|
14525
14421
|
if (!Number.isFinite(this.toNumber)) {
|
|
14526
14422
|
this.fromNumber = 0;
|
|
14527
14423
|
}
|
|
@@ -14733,16 +14629,7 @@
|
|
|
14733
14629
|
var _a;
|
|
14734
14630
|
const root = this.target.attachShadow();
|
|
14735
14631
|
const height = this.target.AABBBounds.height();
|
|
14736
|
-
const rect = application.graphicService.creator.rect({
|
|
14737
|
-
height: height,
|
|
14738
|
-
fill: '#bcdeff',
|
|
14739
|
-
shadowBlur: 30,
|
|
14740
|
-
shadowColor: '#bcdeff',
|
|
14741
|
-
...(_a = this.params) === null || _a === void 0 ? void 0 : _a.attribute,
|
|
14742
|
-
x: 0,
|
|
14743
|
-
y: 0,
|
|
14744
|
-
width: 0
|
|
14745
|
-
});
|
|
14632
|
+
const rect = application.graphicService.creator.rect(Object.assign(Object.assign({ height: height, fill: '#bcdeff', shadowBlur: 30, shadowColor: '#bcdeff' }, (_a = this.params) === null || _a === void 0 ? void 0 : _a.attribute), { x: 0, y: 0, width: 0 }));
|
|
14746
14633
|
this.rect = rect;
|
|
14747
14634
|
root.add(rect);
|
|
14748
14635
|
}
|
|
@@ -15846,7 +15733,7 @@
|
|
|
15846
15733
|
return res;
|
|
15847
15734
|
};
|
|
15848
15735
|
const samplingPoints = (points, count) => {
|
|
15849
|
-
const validatePoints = points.filter(point => point.defined !== false && isNumber(point.x) && isNumber(point.y));
|
|
15736
|
+
const validatePoints = points.filter(point => point.defined !== false && isNumber$1(point.x) && isNumber$1(point.y));
|
|
15850
15737
|
if (validatePoints.length === 0) {
|
|
15851
15738
|
return [];
|
|
15852
15739
|
}
|
|
@@ -15900,7 +15787,7 @@
|
|
|
15900
15787
|
return res.concat((_a = seg.points) !== null && _a !== void 0 ? _a : []);
|
|
15901
15788
|
}, []);
|
|
15902
15789
|
}
|
|
15903
|
-
const validatePoints = points.filter(point => point.defined !== false && isNumber(point.x) && isNumber(point.y));
|
|
15790
|
+
const validatePoints = points.filter(point => point.defined !== false && isNumber$1(point.x) && isNumber$1(point.y));
|
|
15904
15791
|
if (!validatePoints.length) {
|
|
15905
15792
|
return [];
|
|
15906
15793
|
}
|
|
@@ -16505,10 +16392,7 @@
|
|
|
16505
16392
|
if (fromGradient !== toGradient) {
|
|
16506
16393
|
const gradient = (fromGradient ? from : to);
|
|
16507
16394
|
const pure = (fromGradient ? to : from);
|
|
16508
|
-
const gradientFromPure = {
|
|
16509
|
-
...gradient,
|
|
16510
|
-
stops: gradient.stops.map(v => ({ ...v, color: colorArrayToString(pure) }))
|
|
16511
|
-
};
|
|
16395
|
+
const gradientFromPure = Object.assign(Object.assign({}, gradient), { stops: gradient.stops.map(v => (Object.assign(Object.assign({}, v), { color: colorArrayToString(pure) }))) });
|
|
16512
16396
|
return fromGradient
|
|
16513
16397
|
? interpolateColor(gradient, gradientFromPure, ratio, alphaChannel, cb)
|
|
16514
16398
|
: interpolateColor(gradientFromPure, gradient, ratio, alphaChannel, cb);
|
|
@@ -17264,6 +17148,7 @@
|
|
|
17264
17148
|
}
|
|
17265
17149
|
application.graphicService.beforeUpdateAABBBounds(this, this.stage, true, this._AABBBounds);
|
|
17266
17150
|
const bounds = this.doUpdateAABBBounds(full);
|
|
17151
|
+
this.addUpdateLayoutTag();
|
|
17267
17152
|
application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, true);
|
|
17268
17153
|
return bounds;
|
|
17269
17154
|
}
|
|
@@ -17378,6 +17263,7 @@
|
|
|
17378
17263
|
this.addUpdateBoundTag();
|
|
17379
17264
|
}
|
|
17380
17265
|
this.addUpdatePositionTag();
|
|
17266
|
+
this.addUpdateLayoutTag();
|
|
17381
17267
|
this.onAttributeUpdate(context);
|
|
17382
17268
|
}
|
|
17383
17269
|
setAttribute(key, value, forceUpdateTag, context) {
|
|
@@ -17397,6 +17283,7 @@
|
|
|
17397
17283
|
this.addUpdateBoundTag();
|
|
17398
17284
|
}
|
|
17399
17285
|
this.addUpdatePositionTag();
|
|
17286
|
+
this.addUpdateLayoutTag();
|
|
17400
17287
|
this.onAttributeUpdate(context);
|
|
17401
17288
|
}
|
|
17402
17289
|
}
|
|
@@ -17464,6 +17351,7 @@
|
|
|
17464
17351
|
}
|
|
17465
17352
|
this.addUpdatePositionTag();
|
|
17466
17353
|
this.addUpdateBoundTag();
|
|
17354
|
+
this.addUpdateLayoutTag();
|
|
17467
17355
|
this.onAttributeUpdate(context);
|
|
17468
17356
|
return this;
|
|
17469
17357
|
}
|
|
@@ -17485,6 +17373,7 @@
|
|
|
17485
17373
|
attribute.y = y;
|
|
17486
17374
|
this.addUpdatePositionTag();
|
|
17487
17375
|
this.addUpdateBoundTag();
|
|
17376
|
+
this.addUpdateLayoutTag();
|
|
17488
17377
|
this.onAttributeUpdate(context);
|
|
17489
17378
|
return this;
|
|
17490
17379
|
}
|
|
@@ -17520,6 +17409,7 @@
|
|
|
17520
17409
|
}
|
|
17521
17410
|
this.addUpdatePositionTag();
|
|
17522
17411
|
this.addUpdateBoundTag();
|
|
17412
|
+
this.addUpdateLayoutTag();
|
|
17523
17413
|
this.onAttributeUpdate(context);
|
|
17524
17414
|
return this;
|
|
17525
17415
|
}
|
|
@@ -17541,6 +17431,7 @@
|
|
|
17541
17431
|
attribute.scaleY = scaleY;
|
|
17542
17432
|
this.addUpdatePositionTag();
|
|
17543
17433
|
this.addUpdateBoundTag();
|
|
17434
|
+
this.addUpdateLayoutTag();
|
|
17544
17435
|
this.onAttributeUpdate(context);
|
|
17545
17436
|
return this;
|
|
17546
17437
|
}
|
|
@@ -17560,6 +17451,7 @@
|
|
|
17560
17451
|
attribute.angle = ((_a = attribute.angle) !== null && _a !== void 0 ? _a : DefaultTransform.angle) + angle;
|
|
17561
17452
|
this.addUpdatePositionTag();
|
|
17562
17453
|
this.addUpdateBoundTag();
|
|
17454
|
+
this.addUpdateLayoutTag();
|
|
17563
17455
|
this.onAttributeUpdate(context);
|
|
17564
17456
|
return this;
|
|
17565
17457
|
}
|
|
@@ -17580,6 +17472,7 @@
|
|
|
17580
17472
|
attribute.angle = angle;
|
|
17581
17473
|
this.addUpdatePositionTag();
|
|
17582
17474
|
this.addUpdateBoundTag();
|
|
17475
|
+
this.addUpdateLayoutTag();
|
|
17583
17476
|
this.onAttributeUpdate(context);
|
|
17584
17477
|
return this;
|
|
17585
17478
|
}
|
|
@@ -17788,6 +17681,15 @@
|
|
|
17788
17681
|
clearUpdateGlobalPositionTag() {
|
|
17789
17682
|
this._updateTag &= exports.UpdateTag.CLEAR_GLOBAL_MATRIX;
|
|
17790
17683
|
}
|
|
17684
|
+
addUpdateLayoutTag() {
|
|
17685
|
+
this._updateTag |= exports.UpdateTag.UPDATE_LAYOUT;
|
|
17686
|
+
}
|
|
17687
|
+
clearUpdateLayoutTag() {
|
|
17688
|
+
this._updateTag &= exports.UpdateTag.CLEAR_LAYOUT;
|
|
17689
|
+
}
|
|
17690
|
+
needUpdateLayout() {
|
|
17691
|
+
return !!(this._updateTag & exports.UpdateTag.UPDATE_LAYOUT);
|
|
17692
|
+
}
|
|
17791
17693
|
doUpdateLocalMatrix() {
|
|
17792
17694
|
const { x = DefaultTransform.x, y = DefaultTransform.y, scaleX = DefaultTransform.scaleX, scaleY = DefaultTransform.scaleY, angle = DefaultTransform.angle, anchor, postMatrix } = this.attribute;
|
|
17793
17695
|
const _anchor = [0, 0];
|
|
@@ -17832,6 +17734,12 @@
|
|
|
17832
17734
|
this.stage = stage;
|
|
17833
17735
|
this.layer = layer;
|
|
17834
17736
|
this.setStageToShadowRoot(stage, layer);
|
|
17737
|
+
if (this.animates && this.animates.size) {
|
|
17738
|
+
const timeline = stage.getTimeline();
|
|
17739
|
+
this.animates.forEach(a => {
|
|
17740
|
+
a.setTimeline(timeline);
|
|
17741
|
+
});
|
|
17742
|
+
}
|
|
17835
17743
|
this._onSetStage && this._onSetStage(this, stage, layer);
|
|
17836
17744
|
application.graphicService.onSetStage(this, stage);
|
|
17837
17745
|
}
|
|
@@ -18005,7 +17913,7 @@
|
|
|
18005
17913
|
return this.pathProxy;
|
|
18006
17914
|
}
|
|
18007
17915
|
loadImage(image, background = false) {
|
|
18008
|
-
if (!image) {
|
|
17916
|
+
if (!image || (background && backgroundNotImage(image))) {
|
|
18009
17917
|
return;
|
|
18010
17918
|
}
|
|
18011
17919
|
const url = image;
|
|
@@ -18090,6 +17998,12 @@
|
|
|
18090
17998
|
}
|
|
18091
17999
|
}
|
|
18092
18000
|
Graphic.mixin(EventTarget);
|
|
18001
|
+
function backgroundNotImage(image) {
|
|
18002
|
+
if (image.fill || image.stroke) {
|
|
18003
|
+
return true;
|
|
18004
|
+
}
|
|
18005
|
+
return false;
|
|
18006
|
+
}
|
|
18093
18007
|
|
|
18094
18008
|
var validator$2 = {};
|
|
18095
18009
|
|
|
@@ -19968,31 +19882,33 @@
|
|
|
19968
19882
|
function incrementalAddTo(group, graphic) {
|
|
19969
19883
|
group.incrementalAppendChild(graphic);
|
|
19970
19884
|
}
|
|
19971
|
-
|
|
19972
|
-
|
|
19973
|
-
|
|
19974
|
-
|
|
19975
|
-
|
|
19976
|
-
|
|
19885
|
+
function waitForAllSubLayers(stage) {
|
|
19886
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19887
|
+
const promiseList = [];
|
|
19888
|
+
const layers = stage.getChildren();
|
|
19889
|
+
yield new Promise(resolve => {
|
|
19890
|
+
application.global.getRequestAnimationFrame()(() => {
|
|
19891
|
+
resolve(null);
|
|
19892
|
+
});
|
|
19977
19893
|
});
|
|
19978
|
-
|
|
19979
|
-
|
|
19980
|
-
|
|
19981
|
-
|
|
19982
|
-
|
|
19983
|
-
|
|
19984
|
-
|
|
19985
|
-
|
|
19986
|
-
|
|
19894
|
+
layers.forEach(l => {
|
|
19895
|
+
if (l.subLayers.size) {
|
|
19896
|
+
l.subLayers.forEach(sl => {
|
|
19897
|
+
if (sl.drawContribution && sl.drawContribution.hooks && sl.drawContribution.rendering) {
|
|
19898
|
+
promiseList.push(new Promise(resolve => {
|
|
19899
|
+
sl.drawContribution.hooks.completeDraw.tap('outWait', () => {
|
|
19900
|
+
sl.drawContribution.hooks.completeDraw.taps = sl.drawContribution.hooks.completeDraw.taps.filter(i => {
|
|
19901
|
+
return i.name !== 'outWait';
|
|
19902
|
+
});
|
|
19903
|
+
resolve(null);
|
|
19987
19904
|
});
|
|
19988
|
-
|
|
19989
|
-
|
|
19990
|
-
|
|
19991
|
-
|
|
19992
|
-
|
|
19993
|
-
|
|
19905
|
+
}));
|
|
19906
|
+
}
|
|
19907
|
+
});
|
|
19908
|
+
}
|
|
19909
|
+
});
|
|
19910
|
+
yield Promise.all(promiseList);
|
|
19994
19911
|
});
|
|
19995
|
-
await Promise.all(promiseList);
|
|
19996
19912
|
}
|
|
19997
19913
|
function boundStroke(bounds, halfW, miter, pad = 0) {
|
|
19998
19914
|
bounds.expand(halfW + (pad / 2 + (miter ? miterAdjustment(miter, halfW) : 0)));
|
|
@@ -20259,6 +20175,7 @@
|
|
|
20259
20175
|
application.graphicService.beforeUpdateAABBBounds(this, this.stage, true, this._AABBBounds);
|
|
20260
20176
|
const selfChange = this.shouldSelfChangeUpdateAABBBounds();
|
|
20261
20177
|
const bounds = this.doUpdateAABBBounds();
|
|
20178
|
+
this.addUpdateLayoutTag();
|
|
20262
20179
|
application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, selfChange);
|
|
20263
20180
|
return bounds;
|
|
20264
20181
|
}
|
|
@@ -20426,7 +20343,7 @@
|
|
|
20426
20343
|
return graphic;
|
|
20427
20344
|
}
|
|
20428
20345
|
clone() {
|
|
20429
|
-
return new Group({
|
|
20346
|
+
return new Group(Object.assign({}, this.attribute));
|
|
20430
20347
|
}
|
|
20431
20348
|
}
|
|
20432
20349
|
|
|
@@ -20539,7 +20456,7 @@
|
|
|
20539
20456
|
this.layerHandler.resizeView(w, h);
|
|
20540
20457
|
}
|
|
20541
20458
|
setDpr(dpr) {
|
|
20542
|
-
|
|
20459
|
+
this.layerHandler.setDpr(dpr);
|
|
20543
20460
|
}
|
|
20544
20461
|
afterDraw(cb) {
|
|
20545
20462
|
this.afterDrawCbs.push(cb);
|
|
@@ -20556,17 +20473,7 @@
|
|
|
20556
20473
|
combineTo(target, params) {
|
|
20557
20474
|
var _a, _b, _c;
|
|
20558
20475
|
if (this.offscreen) {
|
|
20559
|
-
this.layerHandler.drawTo(target, [this], {
|
|
20560
|
-
background: (_a = params.background) !== null && _a !== void 0 ? _a : this.background,
|
|
20561
|
-
renderService: params.renderService,
|
|
20562
|
-
x: (_b = params.x) !== null && _b !== void 0 ? _b : this.stage.x,
|
|
20563
|
-
y: (_c = params.y) !== null && _c !== void 0 ? _c : this.stage.y,
|
|
20564
|
-
width: this.viewWidth,
|
|
20565
|
-
height: this.viewHeight,
|
|
20566
|
-
stage: this.stage,
|
|
20567
|
-
layer: this,
|
|
20568
|
-
...params
|
|
20569
|
-
});
|
|
20476
|
+
this.layerHandler.drawTo(target, [this], Object.assign({ background: (_a = params.background) !== null && _a !== void 0 ? _a : this.background, renderService: params.renderService, x: (_b = params.x) !== null && _b !== void 0 ? _b : this.stage.x, y: (_c = params.y) !== null && _c !== void 0 ? _c : this.stage.y, width: this.viewWidth, height: this.viewHeight, stage: this.stage, layer: this }, params));
|
|
20570
20477
|
this.afterDrawCbs.forEach(c => c(this));
|
|
20571
20478
|
}
|
|
20572
20479
|
}
|
|
@@ -20581,17 +20488,7 @@
|
|
|
20581
20488
|
}
|
|
20582
20489
|
drawTo(target, params) {
|
|
20583
20490
|
var _a, _b, _c;
|
|
20584
|
-
this.layerHandler.drawTo(target, [this], {
|
|
20585
|
-
background: (_a = params.background) !== null && _a !== void 0 ? _a : this.background,
|
|
20586
|
-
renderService: params.renderService,
|
|
20587
|
-
x: (_b = params.x) !== null && _b !== void 0 ? _b : this.stage.x,
|
|
20588
|
-
y: (_c = params.y) !== null && _c !== void 0 ? _c : this.stage.y,
|
|
20589
|
-
width: this.viewWidth,
|
|
20590
|
-
height: this.viewHeight,
|
|
20591
|
-
stage: this.stage,
|
|
20592
|
-
layer: this,
|
|
20593
|
-
...params
|
|
20594
|
-
});
|
|
20491
|
+
this.layerHandler.drawTo(target, [this], Object.assign({ background: (_a = params.background) !== null && _a !== void 0 ? _a : this.background, renderService: params.renderService, x: (_b = params.x) !== null && _b !== void 0 ? _b : this.stage.x, y: (_c = params.y) !== null && _c !== void 0 ? _c : this.stage.y, width: this.viewWidth, height: this.viewHeight, stage: this.stage, layer: this }, params));
|
|
20595
20492
|
this.afterDrawCbs.forEach(c => c(this));
|
|
20596
20493
|
}
|
|
20597
20494
|
}
|
|
@@ -20613,10 +20510,7 @@
|
|
|
20613
20510
|
}
|
|
20614
20511
|
createLayer(stage, options = { main: false }) {
|
|
20615
20512
|
this.tryInit();
|
|
20616
|
-
const layer = new Layer(stage, this.global, stage.window, {
|
|
20617
|
-
...options,
|
|
20618
|
-
virtual: this.staticLayerCountInEnv === 0
|
|
20619
|
-
});
|
|
20513
|
+
const layer = new Layer(stage, this.global, stage.window, Object.assign(Object.assign({}, options), { virtual: this.staticLayerCountInEnv === 0 }));
|
|
20620
20514
|
const stageLayers = this.layerMap.get(stage) || [];
|
|
20621
20515
|
stageLayers.push(layer);
|
|
20622
20516
|
this.layerMap.set(stage, stageLayers);
|
|
@@ -20745,6 +20639,12 @@
|
|
|
20745
20639
|
clearViewBox(viewBox, color) {
|
|
20746
20640
|
this._handler.clearViewBox(viewBox, color);
|
|
20747
20641
|
}
|
|
20642
|
+
isVisible(bbox) {
|
|
20643
|
+
return this._handler.isVisible(bbox);
|
|
20644
|
+
}
|
|
20645
|
+
onVisibleChange(cb) {
|
|
20646
|
+
return this._handler.onVisibleChange(cb);
|
|
20647
|
+
}
|
|
20748
20648
|
};
|
|
20749
20649
|
__decorate([
|
|
20750
20650
|
postConstruct(),
|
|
@@ -21385,6 +21285,16 @@
|
|
|
21385
21285
|
return;
|
|
21386
21286
|
}
|
|
21387
21287
|
const { outerRadius = arcAttribute.outerRadius, innerRadius = arcAttribute.innerRadius, cap = arcAttribute.cap, forceShowCap = arcAttribute.forceShowCap } = arc.attribute;
|
|
21288
|
+
let conicalOffset = 0;
|
|
21289
|
+
const tempChangeConicalColor = ((isBoolean(cap) && cap) || cap[0]) && fill.gradient === 'conical';
|
|
21290
|
+
if (tempChangeConicalColor) {
|
|
21291
|
+
const { sc, startAngle, endAngle } = arc.getParsedAngle();
|
|
21292
|
+
if (abs(endAngle - startAngle) < pi2 - epsilon) {
|
|
21293
|
+
conicalOffset = sc || 0;
|
|
21294
|
+
fill.startAngle -= conicalOffset;
|
|
21295
|
+
fill.endAngle -= conicalOffset;
|
|
21296
|
+
}
|
|
21297
|
+
}
|
|
21388
21298
|
let beforeRenderContribitionsRuned = false;
|
|
21389
21299
|
const { isFullStroke, stroke: arrayStroke } = parseStroke(stroke);
|
|
21390
21300
|
if (doFill || isFullStroke) {
|
|
@@ -21459,7 +21369,7 @@
|
|
|
21459
21369
|
context.stroke();
|
|
21460
21370
|
}
|
|
21461
21371
|
}
|
|
21462
|
-
if (cap && forceShowCap) {
|
|
21372
|
+
if (((isBoolean(cap) && cap) || cap[1]) && forceShowCap) {
|
|
21463
21373
|
const { startAngle: sa, endAngle: ea } = arc.getParsedAngle();
|
|
21464
21374
|
const deltaAngle = abs(ea - sa);
|
|
21465
21375
|
if (deltaAngle >= pi2 - epsilon) {
|
|
@@ -21513,6 +21423,10 @@
|
|
|
21513
21423
|
this._arcAfterRenderContribitions.forEach(c => {
|
|
21514
21424
|
c.drawShape(arc, context, x, y, doFill, doStroke, fVisible, sVisible, arcAttribute, drawContext, fillCb, strokeCb);
|
|
21515
21425
|
});
|
|
21426
|
+
if (tempChangeConicalColor) {
|
|
21427
|
+
fill.startAngle += conicalOffset;
|
|
21428
|
+
fill.endAngle += conicalOffset;
|
|
21429
|
+
}
|
|
21516
21430
|
}
|
|
21517
21431
|
draw(arc, renderService, drawContext, params) {
|
|
21518
21432
|
const { context } = drawContext;
|
|
@@ -21705,7 +21619,7 @@
|
|
|
21705
21619
|
return path;
|
|
21706
21620
|
}
|
|
21707
21621
|
clone() {
|
|
21708
|
-
return new Circle({
|
|
21622
|
+
return new Circle(Object.assign({}, this.attribute));
|
|
21709
21623
|
}
|
|
21710
21624
|
}
|
|
21711
21625
|
|
|
@@ -21855,6 +21769,7 @@
|
|
|
21855
21769
|
bboxWH[0] = lineWidth;
|
|
21856
21770
|
}
|
|
21857
21771
|
bboxWH[1] = linesLayout.length * lineHeight;
|
|
21772
|
+
bboxWH[0] = linesLayout.reduce((a, b) => Math.max(a, b.width), 0);
|
|
21858
21773
|
const bbox = {
|
|
21859
21774
|
xOffset: 0,
|
|
21860
21775
|
yOffset: 0,
|
|
@@ -22004,17 +21919,17 @@
|
|
|
22004
21919
|
: this.updateVerticalMultilineAABBBounds(text);
|
|
22005
21920
|
}
|
|
22006
21921
|
updateHorizontalSinglelineAABBBounds(text) {
|
|
22007
|
-
var _a;
|
|
21922
|
+
var _a, _b;
|
|
22008
21923
|
const textTheme = getTheme(this).text;
|
|
22009
21924
|
const textMeasure = application.graphicUtil.textMeasure;
|
|
22010
21925
|
let width;
|
|
22011
21926
|
let str;
|
|
22012
21927
|
const attribute = this.attribute;
|
|
22013
|
-
const { maxLineWidth = textTheme.maxLineWidth, ellipsis = textTheme.ellipsis, textAlign = textTheme.textAlign, textBaseline = textTheme.textBaseline, fontSize = textTheme.fontSize, fontWeight = textTheme.fontWeight, stroke = textTheme.stroke, lineWidth = textTheme.lineWidth, wordBreak = textTheme.wordBreak } = attribute;
|
|
22014
|
-
const buf = Math.max(2, fontSize * 0.075);
|
|
21928
|
+
const { maxLineWidth = textTheme.maxLineWidth, ellipsis = textTheme.ellipsis, textAlign = textTheme.textAlign, textBaseline = textTheme.textBaseline, fontFamily = textTheme.fontFamily, fontSize = textTheme.fontSize, fontWeight = textTheme.fontWeight, stroke = textTheme.stroke, lineWidth = textTheme.lineWidth, wordBreak = textTheme.wordBreak, ignoreBuf = textTheme.ignoreBuf } = attribute;
|
|
21929
|
+
const buf = ignoreBuf ? 0 : Math.max(2, fontSize * 0.075);
|
|
22015
21930
|
const { lineHeight = (_a = attribute.lineHeight) !== null && _a !== void 0 ? _a : (attribute.fontSize || textTheme.fontSize) + buf } = attribute;
|
|
22016
21931
|
if (!this.shouldUpdateShape() && this.cache) {
|
|
22017
|
-
width = this.cache.clipedWidth;
|
|
21932
|
+
width = (_b = this.cache.clipedWidth) !== null && _b !== void 0 ? _b : 0;
|
|
22018
21933
|
const dx = textDrawOffsetX(textAlign, width);
|
|
22019
21934
|
const dy = textLayoutOffsetY(textBaseline, lineHeight, fontSize);
|
|
22020
21935
|
this._AABBBounds.set(dx, dy, dx + width, dy + lineHeight);
|
|
@@ -22026,12 +21941,12 @@
|
|
|
22026
21941
|
if (Number.isFinite(maxLineWidth)) {
|
|
22027
21942
|
if (ellipsis) {
|
|
22028
21943
|
const strEllipsis = (ellipsis === true ? textTheme.ellipsis : ellipsis);
|
|
22029
|
-
const data = textMeasure.clipTextWithSuffix(text.toString(), { fontSize, fontWeight }, maxLineWidth, strEllipsis,
|
|
21944
|
+
const data = textMeasure.clipTextWithSuffix(text.toString(), { fontSize, fontWeight, fontFamily }, maxLineWidth, strEllipsis, false);
|
|
22030
21945
|
str = data.str;
|
|
22031
21946
|
width = data.width;
|
|
22032
21947
|
}
|
|
22033
21948
|
else {
|
|
22034
|
-
const data = textMeasure.clipText(text.toString(), { fontSize, fontWeight }, maxLineWidth,
|
|
21949
|
+
const data = textMeasure.clipText(text.toString(), { fontSize, fontWeight, fontFamily }, maxLineWidth, false);
|
|
22035
21950
|
str = data.str;
|
|
22036
21951
|
width = data.width;
|
|
22037
21952
|
}
|
|
@@ -22039,14 +21954,14 @@
|
|
|
22039
21954
|
this.cache.clipedWidth = width;
|
|
22040
21955
|
}
|
|
22041
21956
|
else {
|
|
22042
|
-
width = textMeasure.measureTextWidth(text.toString(), { fontSize, fontWeight });
|
|
21957
|
+
width = textMeasure.measureTextWidth(text.toString(), { fontSize, fontWeight, fontFamily });
|
|
22043
21958
|
this.cache.clipedText = text.toString();
|
|
22044
21959
|
this.cache.clipedWidth = width;
|
|
22045
21960
|
}
|
|
22046
21961
|
this.clearUpdateShapeTag();
|
|
22047
21962
|
const dx = textDrawOffsetX(textAlign, width);
|
|
22048
21963
|
let lh = lineHeight;
|
|
22049
|
-
if (
|
|
21964
|
+
if (application.global && application.global.isSafari()) {
|
|
22050
21965
|
lh += fontSize * 0.2;
|
|
22051
21966
|
}
|
|
22052
21967
|
const dy = textLayoutOffsetY(textBaseline, lh, fontSize, buf);
|
|
@@ -22061,9 +21976,10 @@
|
|
|
22061
21976
|
const textTheme = getTheme(this).text;
|
|
22062
21977
|
const textMeasure = application.graphicUtil.textMeasure;
|
|
22063
21978
|
let width;
|
|
22064
|
-
const buf = 2;
|
|
22065
21979
|
const attribute = this.attribute;
|
|
22066
|
-
const {
|
|
21980
|
+
const { ignoreBuf = textTheme.ignoreBuf } = attribute;
|
|
21981
|
+
const buf = ignoreBuf ? 0 : 2;
|
|
21982
|
+
const { maxLineWidth = textTheme.maxLineWidth, ellipsis = textTheme.ellipsis, textAlign = textTheme.textAlign, textBaseline = textTheme.textBaseline, fontSize = textTheme.fontSize, fontWeight = textTheme.fontWeight, fontFamily = textTheme.fontFamily, stroke = textTheme.stroke, lineHeight = (_a = attribute.lineHeight) !== null && _a !== void 0 ? _a : (attribute.fontSize || textTheme.fontSize) + buf, lineWidth = textTheme.lineWidth, wordBreak = textTheme.wordBreak } = attribute;
|
|
22067
21983
|
if (!this.shouldUpdateShape() && this.cache) {
|
|
22068
21984
|
width = this.cache.clipedWidth;
|
|
22069
21985
|
const dx = textDrawOffsetX(textAlign, width);
|
|
@@ -22080,12 +21996,12 @@
|
|
|
22080
21996
|
if (Number.isFinite(maxLineWidth)) {
|
|
22081
21997
|
if (ellipsis) {
|
|
22082
21998
|
const strEllipsis = (ellipsis === true ? textTheme.ellipsis : ellipsis);
|
|
22083
|
-
const data = textMeasure.clipTextWithSuffixVertical(verticalList[0], { fontSize, fontWeight }, maxLineWidth, strEllipsis,
|
|
21999
|
+
const data = textMeasure.clipTextWithSuffixVertical(verticalList[0], { fontSize, fontWeight, fontFamily }, maxLineWidth, strEllipsis, false);
|
|
22084
22000
|
verticalList = [data.verticalList];
|
|
22085
22001
|
width = data.width;
|
|
22086
22002
|
}
|
|
22087
22003
|
else {
|
|
22088
|
-
const data = textMeasure.clipTextVertical(verticalList[0], { fontSize, fontWeight }, maxLineWidth,
|
|
22004
|
+
const data = textMeasure.clipTextVertical(verticalList[0], { fontSize, fontWeight, fontFamily }, maxLineWidth, false);
|
|
22089
22005
|
verticalList = [data.verticalList];
|
|
22090
22006
|
width = data.width;
|
|
22091
22007
|
}
|
|
@@ -22097,7 +22013,7 @@
|
|
|
22097
22013
|
verticalList[0].forEach(t => {
|
|
22098
22014
|
const w = t.direction === exports.TextDirection.HORIZONTAL
|
|
22099
22015
|
? fontSize
|
|
22100
|
-
: textMeasure.measureTextWidth(t.text, { fontSize, fontWeight });
|
|
22016
|
+
: textMeasure.measureTextWidth(t.text, { fontSize, fontWeight, fontFamily });
|
|
22101
22017
|
width += w;
|
|
22102
22018
|
t.width = w;
|
|
22103
22019
|
});
|
|
@@ -22127,8 +22043,8 @@
|
|
|
22127
22043
|
return this._AABBBounds;
|
|
22128
22044
|
}
|
|
22129
22045
|
const textMeasure = application.graphicUtil.textMeasure;
|
|
22130
|
-
const layoutObj = new CanvasTextLayout(fontFamily, { fontSize, fontWeight }, textMeasure);
|
|
22131
|
-
const layoutData = layoutObj.GetLayoutByLines(text, textAlign, textBaseline, lineHeight, ellipsis === true ? textTheme.ellipsis : ellipsis || undefined,
|
|
22046
|
+
const layoutObj = new CanvasTextLayout(fontFamily, { fontSize, fontWeight, fontFamily }, textMeasure);
|
|
22047
|
+
const layoutData = layoutObj.GetLayoutByLines(text, textAlign, textBaseline, lineHeight, ellipsis === true ? textTheme.ellipsis : ellipsis || undefined, false, maxLineWidth);
|
|
22132
22048
|
const { bbox } = layoutData;
|
|
22133
22049
|
this.cache.layoutData = layoutData;
|
|
22134
22050
|
this.clearUpdateShapeTag();
|
|
@@ -22143,9 +22059,10 @@
|
|
|
22143
22059
|
const textTheme = getTheme(this).text;
|
|
22144
22060
|
const textMeasure = application.graphicUtil.textMeasure;
|
|
22145
22061
|
let width;
|
|
22146
|
-
const buf = 2;
|
|
22147
22062
|
const attribute = this.attribute;
|
|
22148
|
-
const {
|
|
22063
|
+
const { ignoreBuf = textTheme.ignoreBuf } = attribute;
|
|
22064
|
+
const buf = ignoreBuf ? 0 : 2;
|
|
22065
|
+
const { maxLineWidth = textTheme.maxLineWidth, ellipsis = textTheme.ellipsis, textAlign = textTheme.textAlign, textBaseline = textTheme.textBaseline, fontFamily = textTheme.fontFamily, fontSize = textTheme.fontSize, fontWeight = textTheme.fontWeight, stroke = textTheme.stroke, lineHeight = (_a = attribute.lineHeight) !== null && _a !== void 0 ? _a : (attribute.fontSize || textTheme.fontSize) + buf, lineWidth = textTheme.lineWidth, wordBreak = textTheme.wordBreak } = attribute;
|
|
22149
22066
|
width = 0;
|
|
22150
22067
|
if (!this.shouldUpdateShape() && this.cache) {
|
|
22151
22068
|
this.cache.verticalList.forEach(item => {
|
|
@@ -22168,12 +22085,12 @@
|
|
|
22168
22085
|
if (Number.isFinite(maxLineWidth)) {
|
|
22169
22086
|
if (ellipsis) {
|
|
22170
22087
|
const strEllipsis = (ellipsis === true ? textTheme.ellipsis : ellipsis);
|
|
22171
|
-
const data = textMeasure.clipTextWithSuffixVertical(verticalData, { fontSize, fontWeight }, maxLineWidth, strEllipsis,
|
|
22088
|
+
const data = textMeasure.clipTextWithSuffixVertical(verticalData, { fontSize, fontWeight, fontFamily }, maxLineWidth, strEllipsis, false);
|
|
22172
22089
|
verticalLists[i] = data.verticalList;
|
|
22173
22090
|
width = data.width;
|
|
22174
22091
|
}
|
|
22175
22092
|
else {
|
|
22176
|
-
const data = textMeasure.clipTextVertical(verticalData, { fontSize, fontWeight }, maxLineWidth,
|
|
22093
|
+
const data = textMeasure.clipTextVertical(verticalData, { fontSize, fontWeight, fontFamily }, maxLineWidth, false);
|
|
22177
22094
|
verticalLists[i] = data.verticalList;
|
|
22178
22095
|
width = data.width;
|
|
22179
22096
|
}
|
|
@@ -22183,7 +22100,7 @@
|
|
|
22183
22100
|
verticalData.forEach(t => {
|
|
22184
22101
|
const w = t.direction === exports.TextDirection.HORIZONTAL
|
|
22185
22102
|
? fontSize
|
|
22186
|
-
: textMeasure.measureTextWidth(t.text, { fontSize, fontWeight });
|
|
22103
|
+
: textMeasure.measureTextWidth(t.text, { fontSize, fontWeight, fontFamily });
|
|
22187
22104
|
width += w;
|
|
22188
22105
|
t.width = w;
|
|
22189
22106
|
});
|
|
@@ -22230,7 +22147,7 @@
|
|
|
22230
22147
|
return false;
|
|
22231
22148
|
}
|
|
22232
22149
|
clone() {
|
|
22233
|
-
return new Text({
|
|
22150
|
+
return new Text(Object.assign({}, this.attribute));
|
|
22234
22151
|
}
|
|
22235
22152
|
}
|
|
22236
22153
|
|
|
@@ -22246,8 +22163,8 @@
|
|
|
22246
22163
|
updateMultilineAABBBounds(text) {
|
|
22247
22164
|
var _a, _b, _c;
|
|
22248
22165
|
const textTheme = getTheme(this).text;
|
|
22249
|
-
const { fontFamily = textTheme.fontFamily, textAlign = textTheme.textAlign, textBaseline = textTheme.textBaseline, fontSize = textTheme.fontSize, lineHeight = this.attribute.lineHeight || this.attribute.fontSize || textTheme.fontSize, ellipsis = textTheme.ellipsis, maxLineWidth, stroke = textTheme.stroke, lineWidth = textTheme.lineWidth, wordBreak = textTheme.wordBreak, heightLimit = 0, lineClamp } = this.attribute;
|
|
22250
|
-
const buf = 2;
|
|
22166
|
+
const { fontFamily = textTheme.fontFamily, textAlign = textTheme.textAlign, textBaseline = textTheme.textBaseline, fontSize = textTheme.fontSize, lineHeight = this.attribute.lineHeight || this.attribute.fontSize || textTheme.fontSize, ellipsis = textTheme.ellipsis, maxLineWidth, stroke = textTheme.stroke, lineWidth = textTheme.lineWidth, wordBreak = textTheme.wordBreak, fontWeight = textTheme.fontWeight, ignoreBuf = textTheme.ignoreBuf, heightLimit = 0, lineClamp } = this.attribute;
|
|
22167
|
+
const buf = ignoreBuf ? 0 : 2;
|
|
22251
22168
|
if (!this.shouldUpdateShape() && ((_a = this.cache) === null || _a === void 0 ? void 0 : _a.layoutData)) {
|
|
22252
22169
|
const bbox = this.cache.layoutData.bbox;
|
|
22253
22170
|
this._AABBBounds.set(bbox.xOffset, bbox.yOffset, bbox.xOffset + bbox.width, bbox.yOffset + bbox.height);
|
|
@@ -22257,7 +22174,7 @@
|
|
|
22257
22174
|
return this._AABBBounds;
|
|
22258
22175
|
}
|
|
22259
22176
|
const textMeasure = application.graphicUtil.textMeasure;
|
|
22260
|
-
const layoutObj = new CanvasTextLayout(fontFamily, { fontSize }, textMeasure);
|
|
22177
|
+
const layoutObj = new CanvasTextLayout(fontFamily, { fontSize, fontWeight, fontFamily }, textMeasure);
|
|
22261
22178
|
const lines = text.map(l => l.toString());
|
|
22262
22179
|
const linesLayout = [];
|
|
22263
22180
|
const bboxWH = [0, 0];
|
|
@@ -22272,8 +22189,9 @@
|
|
|
22272
22189
|
if (maxLineWidth > 0) {
|
|
22273
22190
|
for (let i = 0; i < lines.length; i++) {
|
|
22274
22191
|
const str = lines[i];
|
|
22192
|
+
let needCut = true;
|
|
22275
22193
|
if (i === lineCountLimit - 1) {
|
|
22276
|
-
const clip = layoutObj.textMeasure.clipTextWithSuffix(str, layoutObj.textOptions, maxLineWidth, ellipsis,
|
|
22194
|
+
const clip = layoutObj.textMeasure.clipTextWithSuffix(str, layoutObj.textOptions, maxLineWidth, ellipsis, false);
|
|
22277
22195
|
linesLayout.push({
|
|
22278
22196
|
str: clip.str,
|
|
22279
22197
|
width: clip.width
|
|
@@ -22283,7 +22201,7 @@
|
|
|
22283
22201
|
const clip = layoutObj.textMeasure.clipText(str, layoutObj.textOptions, maxLineWidth, wordBreak === 'break-word');
|
|
22284
22202
|
if (str !== '' && clip.str === '') {
|
|
22285
22203
|
if (ellipsis) {
|
|
22286
|
-
const clipEllipsis = layoutObj.textMeasure.clipTextWithSuffix(str, layoutObj.textOptions, maxLineWidth, ellipsis,
|
|
22204
|
+
const clipEllipsis = layoutObj.textMeasure.clipTextWithSuffix(str, layoutObj.textOptions, maxLineWidth, ellipsis, false);
|
|
22287
22205
|
clip.str = (_b = clipEllipsis.str) !== null && _b !== void 0 ? _b : '';
|
|
22288
22206
|
clip.width = (_c = clipEllipsis.width) !== null && _c !== void 0 ? _c : 0;
|
|
22289
22207
|
}
|
|
@@ -22291,13 +22209,14 @@
|
|
|
22291
22209
|
clip.str = '';
|
|
22292
22210
|
clip.width = 0;
|
|
22293
22211
|
}
|
|
22212
|
+
needCut = false;
|
|
22294
22213
|
}
|
|
22295
22214
|
linesLayout.push({
|
|
22296
22215
|
str: clip.str,
|
|
22297
22216
|
width: clip.width
|
|
22298
22217
|
});
|
|
22299
22218
|
if (clip.str.length === str.length) ;
|
|
22300
|
-
else {
|
|
22219
|
+
else if (needCut) {
|
|
22301
22220
|
const newStr = str.substring(clip.str.length);
|
|
22302
22221
|
lines.splice(i + 1, 0, newStr);
|
|
22303
22222
|
}
|
|
@@ -22315,7 +22234,7 @@
|
|
|
22315
22234
|
let text;
|
|
22316
22235
|
for (let i = 0, len = lines.length; i < len; i++) {
|
|
22317
22236
|
if (i === lineCountLimit - 1) {
|
|
22318
|
-
const clip = layoutObj.textMeasure.clipTextWithSuffix(lines[i], layoutObj.textOptions, maxLineWidth, ellipsis,
|
|
22237
|
+
const clip = layoutObj.textMeasure.clipTextWithSuffix(lines[i], layoutObj.textOptions, maxLineWidth, ellipsis, false);
|
|
22319
22238
|
linesLayout.push({
|
|
22320
22239
|
str: clip.str,
|
|
22321
22240
|
width: clip.width
|
|
@@ -23122,17 +23041,17 @@
|
|
|
23122
23041
|
this.pathStr = 'M-0.5,-0.5h1v1h-1Z';
|
|
23123
23042
|
}
|
|
23124
23043
|
draw(ctx, size, x, y) {
|
|
23125
|
-
const rectSize = isNumber(size) ? [size, size] : size;
|
|
23044
|
+
const rectSize = isNumber$1(size) ? [size, size] : size;
|
|
23126
23045
|
return rect(ctx, rectSize, x, y);
|
|
23127
23046
|
}
|
|
23128
23047
|
drawOffset(ctx, size, x, y, offset) {
|
|
23129
|
-
const rectSize = isNumber(size)
|
|
23048
|
+
const rectSize = isNumber$1(size)
|
|
23130
23049
|
? [size + 2 * offset, size + 2 * offset]
|
|
23131
23050
|
: [size[0] + 2 * offset, size[1] + 2 * offset];
|
|
23132
23051
|
return rect(ctx, rectSize, x, y);
|
|
23133
23052
|
}
|
|
23134
23053
|
bounds(size, bounds) {
|
|
23135
|
-
const rectSize = isNumber(size) ? [size, size] : size;
|
|
23054
|
+
const rectSize = isNumber$1(size) ? [size, size] : size;
|
|
23136
23055
|
bounds.x1 = -rectSize[0] / 2;
|
|
23137
23056
|
bounds.x2 = rectSize[0] / 2;
|
|
23138
23057
|
bounds.y1 = -rectSize[1] / 2;
|
|
@@ -23369,7 +23288,7 @@
|
|
|
23369
23288
|
: new CustomPath2D().fromString(symbolInstance.pathStr, x, y, formattedSize[0], formattedSize[1]);
|
|
23370
23289
|
}
|
|
23371
23290
|
clone() {
|
|
23372
|
-
return new Symbol({
|
|
23291
|
+
return new Symbol(Object.assign({}, this.attribute));
|
|
23373
23292
|
}
|
|
23374
23293
|
};
|
|
23375
23294
|
Symbol$1.userSymbolMap = {};
|
|
@@ -23475,7 +23394,7 @@
|
|
|
23475
23394
|
return path;
|
|
23476
23395
|
}
|
|
23477
23396
|
clone() {
|
|
23478
|
-
return new Line({
|
|
23397
|
+
return new Line(Object.assign({}, this.attribute));
|
|
23479
23398
|
}
|
|
23480
23399
|
};
|
|
23481
23400
|
|
|
@@ -23543,7 +23462,7 @@
|
|
|
23543
23462
|
return path;
|
|
23544
23463
|
}
|
|
23545
23464
|
clone() {
|
|
23546
|
-
return new Rect({
|
|
23465
|
+
return new Rect(Object.assign({}, this.attribute));
|
|
23547
23466
|
}
|
|
23548
23467
|
}
|
|
23549
23468
|
|
|
@@ -23755,7 +23674,7 @@
|
|
|
23755
23674
|
this.currentStates = [];
|
|
23756
23675
|
}
|
|
23757
23676
|
clone() {
|
|
23758
|
-
const glyph = new Glyph({
|
|
23677
|
+
const glyph = new Glyph(Object.assign({}, this.attribute));
|
|
23759
23678
|
glyph.setSubGraphic(this.subGraphic.map(g => g.clone()));
|
|
23760
23679
|
return glyph;
|
|
23761
23680
|
}
|
|
@@ -24309,7 +24228,7 @@
|
|
|
24309
24228
|
return false;
|
|
24310
24229
|
}
|
|
24311
24230
|
clone() {
|
|
24312
|
-
return new Image({
|
|
24231
|
+
return new Image(Object.assign({}, this.attribute));
|
|
24313
24232
|
}
|
|
24314
24233
|
}
|
|
24315
24234
|
|
|
@@ -24867,7 +24786,7 @@
|
|
|
24867
24786
|
this._frameCache = frame;
|
|
24868
24787
|
}
|
|
24869
24788
|
clone() {
|
|
24870
|
-
return new RichText({
|
|
24789
|
+
return new RichText(Object.assign({}, this.attribute));
|
|
24871
24790
|
}
|
|
24872
24791
|
setStage(stage, layer) {
|
|
24873
24792
|
super.setStage(stage, layer);
|
|
@@ -25011,7 +24930,7 @@
|
|
|
25011
24930
|
return new CustomPath2D().fromCustomPath2D(this.getParsedPathShape(), x, y);
|
|
25012
24931
|
}
|
|
25013
24932
|
clone() {
|
|
25014
|
-
return new Path({
|
|
24933
|
+
return new Path(Object.assign({}, this.attribute));
|
|
25015
24934
|
}
|
|
25016
24935
|
}
|
|
25017
24936
|
|
|
@@ -25125,7 +25044,7 @@
|
|
|
25125
25044
|
return path;
|
|
25126
25045
|
}
|
|
25127
25046
|
clone() {
|
|
25128
|
-
return new Area({
|
|
25047
|
+
return new Area(Object.assign({}, this.attribute));
|
|
25129
25048
|
}
|
|
25130
25049
|
}
|
|
25131
25050
|
|
|
@@ -25163,7 +25082,7 @@
|
|
|
25163
25082
|
return 0;
|
|
25164
25083
|
}
|
|
25165
25084
|
const deltaRadius = Math.abs(outerRadius - innerRadius);
|
|
25166
|
-
return Math.min(isNumber(cornerRadius, true)
|
|
25085
|
+
return Math.min(isNumber$1(cornerRadius, true)
|
|
25167
25086
|
? cornerRadius
|
|
25168
25087
|
: (deltaRadius * parseFloat(cornerRadius)) / 100, deltaRadius / 2);
|
|
25169
25088
|
}
|
|
@@ -25188,7 +25107,9 @@
|
|
|
25188
25107
|
if (capWidth > epsilon && outerRadius > epsilon) {
|
|
25189
25108
|
return {
|
|
25190
25109
|
startAngle: startAngle - sign * capAngle * startCap,
|
|
25191
|
-
endAngle: endAngle + sign * capAngle * endCap
|
|
25110
|
+
endAngle: endAngle + sign * capAngle * endCap,
|
|
25111
|
+
sc: sign * capAngle * startCap,
|
|
25112
|
+
ec: sign * capAngle * endCap
|
|
25192
25113
|
};
|
|
25193
25114
|
}
|
|
25194
25115
|
}
|
|
@@ -25327,7 +25248,7 @@
|
|
|
25327
25248
|
return path;
|
|
25328
25249
|
}
|
|
25329
25250
|
clone() {
|
|
25330
|
-
return new Arc({
|
|
25251
|
+
return new Arc(Object.assign({}, this.attribute));
|
|
25331
25252
|
}
|
|
25332
25253
|
}
|
|
25333
25254
|
|
|
@@ -25424,7 +25345,7 @@
|
|
|
25424
25345
|
return path;
|
|
25425
25346
|
}
|
|
25426
25347
|
clone() {
|
|
25427
|
-
return new Polygon({
|
|
25348
|
+
return new Polygon(Object.assign({}, this.attribute));
|
|
25428
25349
|
}
|
|
25429
25350
|
}
|
|
25430
25351
|
|
|
@@ -27868,7 +27789,7 @@
|
|
|
27868
27789
|
strokeCb(context, attribute, defaultAttribute);
|
|
27869
27790
|
}
|
|
27870
27791
|
else {
|
|
27871
|
-
const { stroke } = attribute;
|
|
27792
|
+
const { stroke = defaultAttribute && defaultAttribute[1] && defaultAttribute[1].stroke } = attribute;
|
|
27872
27793
|
if (isArray(stroke) && (stroke[0] || stroke[2]) && stroke[1] === false) {
|
|
27873
27794
|
context.beginPath();
|
|
27874
27795
|
drawSegments(context.camera ? context : context.nativeContext, stroke[0] ? cache.top : cache.bottom, clipRange, direction === exports.Direction.ROW ? 'x' : 'y', {
|
|
@@ -27994,7 +27915,7 @@
|
|
|
27994
27915
|
const halfPi = pi / 2;
|
|
27995
27916
|
function createRectPath(path, x, y, width, height, rectCornerRadius) {
|
|
27996
27917
|
let cornerRadius;
|
|
27997
|
-
if (isNumber(rectCornerRadius, true)) {
|
|
27918
|
+
if (isNumber$1(rectCornerRadius, true)) {
|
|
27998
27919
|
cornerRadius = [
|
|
27999
27920
|
rectCornerRadius,
|
|
28000
27921
|
rectCornerRadius,
|
|
@@ -28794,7 +28715,7 @@
|
|
|
28794
28715
|
}
|
|
28795
28716
|
drawShape(image, context, x, y, drawContext, params, fillCb) {
|
|
28796
28717
|
const imageAttribute = getTheme(image).image;
|
|
28797
|
-
const { fill = imageAttribute.fill, width = imageAttribute.width, height = imageAttribute.height, opacity = imageAttribute.opacity, fillOpacity = imageAttribute.fillOpacity, visible = imageAttribute.visible, repeatX = imageAttribute.repeatX, repeatY = imageAttribute.repeatY, image: url } = image.attribute;
|
|
28718
|
+
const { fill = imageAttribute.fill, width = imageAttribute.width, height = imageAttribute.height, opacity = imageAttribute.opacity, fillOpacity = imageAttribute.fillOpacity, visible = imageAttribute.visible, repeatX = imageAttribute.repeatX, repeatY = imageAttribute.repeatY, cornerRadius = imageAttribute.cornerRadius, image: url } = image.attribute;
|
|
28798
28719
|
const fVisible = fillVisible(opacity, fillOpacity, fill);
|
|
28799
28720
|
const doFill = runFill(fill);
|
|
28800
28721
|
if (!(image.valid && visible)) {
|
|
@@ -28827,6 +28748,15 @@
|
|
|
28827
28748
|
if (res.state !== 'success') {
|
|
28828
28749
|
return;
|
|
28829
28750
|
}
|
|
28751
|
+
let needRestore = false;
|
|
28752
|
+
if (cornerRadius === 0 || (isArray(cornerRadius) && cornerRadius.every(num => num === 0))) ;
|
|
28753
|
+
else {
|
|
28754
|
+
context.beginPath();
|
|
28755
|
+
createRectPath(context, x, y, width, height, cornerRadius);
|
|
28756
|
+
context.save();
|
|
28757
|
+
context.clip();
|
|
28758
|
+
needRestore = true;
|
|
28759
|
+
}
|
|
28830
28760
|
context.setCommonStyle(image, image.attribute, x, y, imageAttribute);
|
|
28831
28761
|
let repeat = 0;
|
|
28832
28762
|
if (repeatX === 'repeat') {
|
|
@@ -28843,6 +28773,9 @@
|
|
|
28843
28773
|
else {
|
|
28844
28774
|
context.drawImage(res.data, x, y, width, height);
|
|
28845
28775
|
}
|
|
28776
|
+
if (needRestore) {
|
|
28777
|
+
context.restore();
|
|
28778
|
+
}
|
|
28846
28779
|
}
|
|
28847
28780
|
}
|
|
28848
28781
|
this._imageRenderContribitions.forEach(c => {
|
|
@@ -29038,10 +28971,7 @@
|
|
|
29038
28971
|
}
|
|
29039
28972
|
allocate(data) {
|
|
29040
28973
|
if (!this.pools.length) {
|
|
29041
|
-
return wrapCanvas({
|
|
29042
|
-
nativeCanvas: application.global.createCanvas(data),
|
|
29043
|
-
...data
|
|
29044
|
-
});
|
|
28974
|
+
return wrapCanvas(Object.assign({ nativeCanvas: application.global.createCanvas(data) }, data));
|
|
29045
28975
|
}
|
|
29046
28976
|
const m = this.pools.pop();
|
|
29047
28977
|
m.resize(data.width, data.height);
|
|
@@ -29055,10 +28985,7 @@
|
|
|
29055
28985
|
height: canvas.height / canvas.dpr,
|
|
29056
28986
|
dpr: canvas.dpr
|
|
29057
28987
|
};
|
|
29058
|
-
return wrapCanvas({
|
|
29059
|
-
nativeCanvas: application.global.createCanvas(data),
|
|
29060
|
-
...data
|
|
29061
|
-
});
|
|
28988
|
+
return wrapCanvas(Object.assign({ nativeCanvas: application.global.createCanvas(data) }, data));
|
|
29062
28989
|
}
|
|
29063
28990
|
const m = this.pools.pop();
|
|
29064
28991
|
m.width = canvas.width;
|
|
@@ -29305,8 +29232,16 @@
|
|
|
29305
29232
|
this.order = 0;
|
|
29306
29233
|
}
|
|
29307
29234
|
drawShape(arc, context, x, y, doFill, doStroke, fVisible, sVisible, arcAttribute, drawContext, fillCb, strokeCb) {
|
|
29308
|
-
const {
|
|
29309
|
-
|
|
29235
|
+
const { outerBorder, innerBorder } = arc.attribute;
|
|
29236
|
+
const doOuterBorder = outerBorder && outerBorder.visible !== false;
|
|
29237
|
+
const doInnerBorder = innerBorder && innerBorder.visible !== false;
|
|
29238
|
+
if (!(doOuterBorder || doInnerBorder)) {
|
|
29239
|
+
return;
|
|
29240
|
+
}
|
|
29241
|
+
const { innerRadius = arcAttribute.innerRadius, outerRadius = arcAttribute.outerRadius, startAngle = arcAttribute.startAngle, endAngle = arcAttribute.endAngle, opacity = arcAttribute.opacity, x: originX = arcAttribute.x, y: originY = arcAttribute.y, scaleX = arcAttribute.scaleX, scaleY = arcAttribute.scaleY } = arc.attribute;
|
|
29242
|
+
const doStrokeOuter = !!(outerBorder && outerBorder.stroke);
|
|
29243
|
+
const doStrokeInner = !!(innerBorder && innerBorder.stroke);
|
|
29244
|
+
if (doOuterBorder) {
|
|
29310
29245
|
const { distance = arcAttribute.outerBorder.distance } = outerBorder;
|
|
29311
29246
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29312
29247
|
const deltaAngle = distance / outerRadius;
|
|
@@ -29322,15 +29257,15 @@
|
|
|
29322
29257
|
if (strokeCb) {
|
|
29323
29258
|
strokeCb(context, outerBorder, arcAttribute.outerBorder);
|
|
29324
29259
|
}
|
|
29325
|
-
else if (
|
|
29260
|
+
else if (doStrokeOuter) {
|
|
29326
29261
|
const lastOpacity = arcAttribute.outerBorder.opacity;
|
|
29327
29262
|
arcAttribute.outerBorder.opacity = opacity;
|
|
29328
|
-
context.setStrokeStyle(arc, outerBorder, x, y, arcAttribute.outerBorder);
|
|
29263
|
+
context.setStrokeStyle(arc, outerBorder, (originX - x) / scaleX, (originY - y) / scaleY, arcAttribute.outerBorder);
|
|
29329
29264
|
arcAttribute.outerBorder.opacity = lastOpacity;
|
|
29330
29265
|
context.stroke();
|
|
29331
29266
|
}
|
|
29332
29267
|
}
|
|
29333
|
-
if (
|
|
29268
|
+
if (doInnerBorder) {
|
|
29334
29269
|
const { distance = arcAttribute.innerBorder.distance } = innerBorder;
|
|
29335
29270
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29336
29271
|
const deltaAngle = distance / outerRadius;
|
|
@@ -29346,10 +29281,10 @@
|
|
|
29346
29281
|
if (strokeCb) {
|
|
29347
29282
|
strokeCb(context, innerBorder, arcAttribute.innerBorder);
|
|
29348
29283
|
}
|
|
29349
|
-
else if (
|
|
29284
|
+
else if (doStrokeInner) {
|
|
29350
29285
|
const lastOpacity = arcAttribute.innerBorder.opacity;
|
|
29351
29286
|
arcAttribute.innerBorder.opacity = opacity;
|
|
29352
|
-
context.setStrokeStyle(arc, innerBorder, x, y, arcAttribute.innerBorder);
|
|
29287
|
+
context.setStrokeStyle(arc, innerBorder, (originX - x) / scaleX, (originY - y) / scaleY, arcAttribute.innerBorder);
|
|
29353
29288
|
arcAttribute.innerBorder.opacity = lastOpacity;
|
|
29354
29289
|
context.stroke();
|
|
29355
29290
|
}
|
|
@@ -29386,8 +29321,16 @@
|
|
|
29386
29321
|
this.order = 0;
|
|
29387
29322
|
}
|
|
29388
29323
|
drawShape(circle, context, x, y, doFill, doStroke, fVisible, sVisible, circleAttribute, drawContext, fillCb, strokeCb) {
|
|
29389
|
-
const {
|
|
29390
|
-
|
|
29324
|
+
const { outerBorder, innerBorder } = circle.attribute;
|
|
29325
|
+
const doOuterBorder = outerBorder && outerBorder.visible !== false;
|
|
29326
|
+
const doInnerBorder = innerBorder && innerBorder.visible !== false;
|
|
29327
|
+
if (!(doOuterBorder || doInnerBorder)) {
|
|
29328
|
+
return;
|
|
29329
|
+
}
|
|
29330
|
+
const { radius = circleAttribute.radius, startAngle = circleAttribute.startAngle, endAngle = circleAttribute.endAngle, opacity = circleAttribute.opacity, x: originX = circleAttribute.x, y: originY = circleAttribute.y, scaleX = circleAttribute.scaleX, scaleY = circleAttribute.scaleY } = circle.attribute;
|
|
29331
|
+
const doStrokeOuter = !!(outerBorder && outerBorder.stroke);
|
|
29332
|
+
const doStrokeInner = !!(innerBorder && innerBorder.stroke);
|
|
29333
|
+
if (doOuterBorder) {
|
|
29391
29334
|
const { distance = circleAttribute.outerBorder.distance } = outerBorder;
|
|
29392
29335
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29393
29336
|
const dw = d;
|
|
@@ -29398,15 +29341,15 @@
|
|
|
29398
29341
|
if (strokeCb) {
|
|
29399
29342
|
strokeCb(context, outerBorder, circleAttribute.outerBorder);
|
|
29400
29343
|
}
|
|
29401
|
-
else if (
|
|
29344
|
+
else if (doStrokeOuter) {
|
|
29402
29345
|
const lastOpacity = circleAttribute.outerBorder.opacity;
|
|
29403
29346
|
circleAttribute.outerBorder.opacity = opacity;
|
|
29404
|
-
context.setStrokeStyle(circle, outerBorder, x, y, circleAttribute.outerBorder);
|
|
29347
|
+
context.setStrokeStyle(circle, outerBorder, (originX - x) / scaleX, (originY - y) / scaleY, circleAttribute.outerBorder);
|
|
29405
29348
|
circleAttribute.outerBorder.opacity = lastOpacity;
|
|
29406
29349
|
context.stroke();
|
|
29407
29350
|
}
|
|
29408
29351
|
}
|
|
29409
|
-
if (
|
|
29352
|
+
if (doInnerBorder) {
|
|
29410
29353
|
const { distance = circleAttribute.innerBorder.distance } = innerBorder;
|
|
29411
29354
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29412
29355
|
const dw = d;
|
|
@@ -29417,10 +29360,10 @@
|
|
|
29417
29360
|
if (strokeCb) {
|
|
29418
29361
|
strokeCb(context, innerBorder, circleAttribute.innerBorder);
|
|
29419
29362
|
}
|
|
29420
|
-
else if (
|
|
29363
|
+
else if (doStrokeInner) {
|
|
29421
29364
|
const lastOpacity = circleAttribute.innerBorder.opacity;
|
|
29422
29365
|
circleAttribute.innerBorder.opacity = opacity;
|
|
29423
|
-
context.setStrokeStyle(circle, innerBorder, x, y, circleAttribute.innerBorder);
|
|
29366
|
+
context.setStrokeStyle(circle, innerBorder, (originX - x) / scaleX, (originY - y) / scaleY, circleAttribute.innerBorder);
|
|
29424
29367
|
circleAttribute.innerBorder.opacity = lastOpacity;
|
|
29425
29368
|
context.stroke();
|
|
29426
29369
|
}
|
|
@@ -29494,12 +29437,38 @@
|
|
|
29494
29437
|
return;
|
|
29495
29438
|
}
|
|
29496
29439
|
if (!graphic.backgroundImg) {
|
|
29497
|
-
|
|
29498
|
-
|
|
29499
|
-
|
|
29500
|
-
|
|
29501
|
-
|
|
29502
|
-
|
|
29440
|
+
if (isObject(background)) {
|
|
29441
|
+
const { stroke, fill, lineWidth = 1, cornerRadius = 0, expandX = 0, expandY = 0 } = background;
|
|
29442
|
+
if (!stroke && !fill) {
|
|
29443
|
+
return;
|
|
29444
|
+
}
|
|
29445
|
+
context.beginPath();
|
|
29446
|
+
const { x, y, width, height } = getActualPosition(graphic);
|
|
29447
|
+
if (cornerRadius) {
|
|
29448
|
+
createRectPath(context, x - expandX, y - expandY, width + expandX * 2, height + expandY * 2, cornerRadius);
|
|
29449
|
+
}
|
|
29450
|
+
else {
|
|
29451
|
+
context.rect(x - expandX, y - expandY, width + expandX * 2, height + expandY * 2);
|
|
29452
|
+
}
|
|
29453
|
+
context.globalAlpha = 1;
|
|
29454
|
+
if (fill) {
|
|
29455
|
+
context.fillStyle = fill;
|
|
29456
|
+
context.fill();
|
|
29457
|
+
}
|
|
29458
|
+
if (stroke && lineWidth > 0) {
|
|
29459
|
+
context.lineWidth = lineWidth;
|
|
29460
|
+
context.strokeStyle = stroke;
|
|
29461
|
+
context.stroke();
|
|
29462
|
+
}
|
|
29463
|
+
}
|
|
29464
|
+
else {
|
|
29465
|
+
context.beginPath();
|
|
29466
|
+
const b = graphic.AABBBounds;
|
|
29467
|
+
context.rect(x, y, b.width(), b.height());
|
|
29468
|
+
context.fillStyle = background;
|
|
29469
|
+
context.globalAlpha = 1;
|
|
29470
|
+
context.fill();
|
|
29471
|
+
}
|
|
29503
29472
|
}
|
|
29504
29473
|
else {
|
|
29505
29474
|
const res = graphic.resources.get(background);
|
|
@@ -29525,6 +29494,32 @@
|
|
|
29525
29494
|
exports.DefaultImageBackgroundRenderContribution = __decorate([
|
|
29526
29495
|
injectable()
|
|
29527
29496
|
], exports.DefaultImageBackgroundRenderContribution);
|
|
29497
|
+
function getActualPosition(graphic) {
|
|
29498
|
+
const boundsPadding = parsePadding(graphic.attribute.boundsPadding);
|
|
29499
|
+
const bounds = graphic.AABBBounds;
|
|
29500
|
+
let x = bounds.x1;
|
|
29501
|
+
let y = bounds.y1;
|
|
29502
|
+
let width = bounds.width();
|
|
29503
|
+
let height = bounds.height();
|
|
29504
|
+
if (isNumber$1(boundsPadding)) {
|
|
29505
|
+
x += boundsPadding;
|
|
29506
|
+
y += boundsPadding;
|
|
29507
|
+
width -= boundsPadding * 2;
|
|
29508
|
+
height -= boundsPadding * 2;
|
|
29509
|
+
}
|
|
29510
|
+
else {
|
|
29511
|
+
x += boundsPadding[3];
|
|
29512
|
+
y += boundsPadding[0];
|
|
29513
|
+
width -= boundsPadding[1] + boundsPadding[3];
|
|
29514
|
+
height -= boundsPadding[0] + boundsPadding[2];
|
|
29515
|
+
}
|
|
29516
|
+
return {
|
|
29517
|
+
x,
|
|
29518
|
+
y,
|
|
29519
|
+
width,
|
|
29520
|
+
height
|
|
29521
|
+
};
|
|
29522
|
+
}
|
|
29528
29523
|
|
|
29529
29524
|
exports.DefaultRectRenderContribution = class DefaultRectRenderContribution {
|
|
29530
29525
|
constructor() {
|
|
@@ -29533,8 +29528,16 @@
|
|
|
29533
29528
|
this.order = 0;
|
|
29534
29529
|
}
|
|
29535
29530
|
drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
|
|
29536
|
-
const {
|
|
29537
|
-
|
|
29531
|
+
const { outerBorder, innerBorder } = rect.attribute;
|
|
29532
|
+
const doOuterBorder = outerBorder && outerBorder.visible !== false;
|
|
29533
|
+
const doInnerBorder = innerBorder && innerBorder.visible !== false;
|
|
29534
|
+
if (!(doOuterBorder || doInnerBorder)) {
|
|
29535
|
+
return;
|
|
29536
|
+
}
|
|
29537
|
+
const { width = rectAttribute.width, height = rectAttribute.height, cornerRadius = rectAttribute.cornerRadius, opacity = rectAttribute.opacity, x: originX = rectAttribute.x, y: originY = rectAttribute.y, scaleX = rectAttribute.scaleX, scaleY = rectAttribute.scaleY } = rect.attribute;
|
|
29538
|
+
const doStrokeOuter = !!(outerBorder && outerBorder.stroke);
|
|
29539
|
+
const doStrokeInner = !!(innerBorder && innerBorder.stroke);
|
|
29540
|
+
if (doOuterBorder) {
|
|
29538
29541
|
const { distance = rectAttribute.outerBorder.distance } = outerBorder;
|
|
29539
29542
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29540
29543
|
const nextX = x - d;
|
|
@@ -29552,15 +29555,15 @@
|
|
|
29552
29555
|
if (strokeCb) {
|
|
29553
29556
|
strokeCb(context, outerBorder, rectAttribute.outerBorder);
|
|
29554
29557
|
}
|
|
29555
|
-
else if (
|
|
29558
|
+
else if (doStrokeOuter) {
|
|
29556
29559
|
const lastOpacity = rectAttribute.outerBorder.opacity;
|
|
29557
29560
|
rectAttribute.outerBorder.opacity = opacity;
|
|
29558
|
-
context.setStrokeStyle(rect, outerBorder, x, y, rectAttribute.outerBorder);
|
|
29561
|
+
context.setStrokeStyle(rect, outerBorder, (originX - x) / scaleX, (originY - y) / scaleY, rectAttribute.outerBorder);
|
|
29559
29562
|
rectAttribute.outerBorder.opacity = lastOpacity;
|
|
29560
29563
|
context.stroke();
|
|
29561
29564
|
}
|
|
29562
29565
|
}
|
|
29563
|
-
if (
|
|
29566
|
+
if (doInnerBorder) {
|
|
29564
29567
|
const { distance = rectAttribute.innerBorder.distance } = innerBorder;
|
|
29565
29568
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29566
29569
|
const nextX = x + d;
|
|
@@ -29578,10 +29581,10 @@
|
|
|
29578
29581
|
if (strokeCb) {
|
|
29579
29582
|
strokeCb(context, innerBorder, rectAttribute.innerBorder);
|
|
29580
29583
|
}
|
|
29581
|
-
else if (
|
|
29584
|
+
else if (doStrokeInner) {
|
|
29582
29585
|
const lastOpacity = rectAttribute.innerBorder.opacity;
|
|
29583
29586
|
rectAttribute.innerBorder.opacity = opacity;
|
|
29584
|
-
context.setStrokeStyle(rect, innerBorder, x, y, rectAttribute.innerBorder);
|
|
29587
|
+
context.setStrokeStyle(rect, innerBorder, (originX - x) / scaleX, (originY - y) / scaleY, rectAttribute.innerBorder);
|
|
29585
29588
|
rectAttribute.innerBorder.opacity = lastOpacity;
|
|
29586
29589
|
context.stroke();
|
|
29587
29590
|
}
|
|
@@ -29678,12 +29681,20 @@
|
|
|
29678
29681
|
this.order = 0;
|
|
29679
29682
|
}
|
|
29680
29683
|
drawShape(symbol, context, x, y, doFill, doStroke, fVisible, sVisible, symbolAttribute, drawContext, fillCb, strokeCb) {
|
|
29681
|
-
const { size = symbolAttribute.size, opacity = symbolAttribute.opacity, outerBorder, innerBorder } = symbol.attribute;
|
|
29682
29684
|
const parsedPath = symbol.getParsedPath();
|
|
29683
29685
|
if (!parsedPath) {
|
|
29684
29686
|
return;
|
|
29685
29687
|
}
|
|
29686
|
-
|
|
29688
|
+
const { outerBorder, innerBorder } = symbol.attribute;
|
|
29689
|
+
const doOuterBorder = outerBorder && outerBorder.visible !== false;
|
|
29690
|
+
const doInnerBorder = innerBorder && innerBorder.visible !== false;
|
|
29691
|
+
if (!(doOuterBorder || doInnerBorder)) {
|
|
29692
|
+
return;
|
|
29693
|
+
}
|
|
29694
|
+
const { size = symbolAttribute.size, opacity = symbolAttribute.opacity, x: originX = symbolAttribute.x, y: originY = symbolAttribute.y, scaleX = symbolAttribute.scaleX, scaleY = symbolAttribute.scaleY } = symbol.attribute;
|
|
29695
|
+
const doStrokeOuter = !!(outerBorder && outerBorder.stroke);
|
|
29696
|
+
const doStrokeInner = !!(innerBorder && innerBorder.stroke);
|
|
29697
|
+
if (doOuterBorder) {
|
|
29687
29698
|
const { distance = symbolAttribute.outerBorder.distance } = outerBorder;
|
|
29688
29699
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29689
29700
|
context.beginPath();
|
|
@@ -29694,15 +29705,15 @@
|
|
|
29694
29705
|
if (strokeCb) {
|
|
29695
29706
|
strokeCb(context, outerBorder, symbolAttribute.outerBorder);
|
|
29696
29707
|
}
|
|
29697
|
-
else if (
|
|
29708
|
+
else if (doStrokeOuter) {
|
|
29698
29709
|
const lastOpacity = symbolAttribute.outerBorder.opacity;
|
|
29699
29710
|
symbolAttribute.outerBorder.opacity = opacity;
|
|
29700
|
-
context.setStrokeStyle(symbol, outerBorder, x, y, symbolAttribute.outerBorder);
|
|
29711
|
+
context.setStrokeStyle(symbol, outerBorder, (originX - x) / scaleX, (originY - y) / scaleY, symbolAttribute.outerBorder);
|
|
29701
29712
|
symbolAttribute.outerBorder.opacity = lastOpacity;
|
|
29702
29713
|
context.stroke();
|
|
29703
29714
|
}
|
|
29704
29715
|
}
|
|
29705
|
-
if (
|
|
29716
|
+
if (doInnerBorder) {
|
|
29706
29717
|
const { distance = symbolAttribute.innerBorder.distance } = innerBorder;
|
|
29707
29718
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29708
29719
|
context.beginPath();
|
|
@@ -29713,10 +29724,10 @@
|
|
|
29713
29724
|
if (strokeCb) {
|
|
29714
29725
|
strokeCb(context, innerBorder, symbolAttribute.innerBorder);
|
|
29715
29726
|
}
|
|
29716
|
-
else if (
|
|
29727
|
+
else if (doStrokeInner) {
|
|
29717
29728
|
const lastOpacity = symbolAttribute.innerBorder.opacity;
|
|
29718
29729
|
symbolAttribute.innerBorder.opacity = opacity;
|
|
29719
|
-
context.setStrokeStyle(symbol, innerBorder, x, y, symbolAttribute.innerBorder);
|
|
29730
|
+
context.setStrokeStyle(symbol, innerBorder, (originX - x) / scaleX, (originY - y) / scaleY, symbolAttribute.innerBorder);
|
|
29720
29731
|
symbolAttribute.innerBorder.opacity = lastOpacity;
|
|
29721
29732
|
context.stroke();
|
|
29722
29733
|
}
|
|
@@ -29764,10 +29775,10 @@
|
|
|
29764
29775
|
return;
|
|
29765
29776
|
}
|
|
29766
29777
|
draw(params) {
|
|
29767
|
-
this.drawContribution.draw(this, {
|
|
29778
|
+
this.drawContribution.draw(this, Object.assign({}, this.drawParams));
|
|
29768
29779
|
}
|
|
29769
29780
|
afterDraw(params) {
|
|
29770
|
-
this.drawContribution.afterDraw && this.drawContribution.afterDraw(this, {
|
|
29781
|
+
this.drawContribution.afterDraw && this.drawContribution.afterDraw(this, Object.assign({}, this.drawParams));
|
|
29771
29782
|
return;
|
|
29772
29783
|
}
|
|
29773
29784
|
render(groups, params) {
|
|
@@ -29850,8 +29861,10 @@
|
|
|
29850
29861
|
graphic.forEachChildren(cb, reverse);
|
|
29851
29862
|
}
|
|
29852
29863
|
}
|
|
29853
|
-
|
|
29854
|
-
|
|
29864
|
+
function foreachAsync(graphic, defaultZIndex, cb, reverse = false) {
|
|
29865
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29866
|
+
yield graphic.forEachChildrenAsync(cb, reverse);
|
|
29867
|
+
});
|
|
29855
29868
|
}
|
|
29856
29869
|
function findNextGraphic(graphic, id, defaultZIndex, reverse = false) {
|
|
29857
29870
|
const childMap = {};
|
|
@@ -30459,12 +30472,12 @@
|
|
|
30459
30472
|
}
|
|
30460
30473
|
class OrthoCamera {
|
|
30461
30474
|
set params(params) {
|
|
30462
|
-
this._params = {
|
|
30475
|
+
this._params = Object.assign({}, params);
|
|
30463
30476
|
this._projectionMatrixCached = this.forceGetProjectionMatrix();
|
|
30464
30477
|
this._viewMatrixCached = this.forceGetViewMatrix();
|
|
30465
30478
|
}
|
|
30466
30479
|
get params() {
|
|
30467
|
-
return {
|
|
30480
|
+
return Object.assign({}, this._params);
|
|
30468
30481
|
}
|
|
30469
30482
|
constructor(params) {
|
|
30470
30483
|
this.params = params;
|
|
@@ -30678,9 +30691,9 @@
|
|
|
30678
30691
|
}
|
|
30679
30692
|
}
|
|
30680
30693
|
constructor(canvas, dpr) {
|
|
30681
|
-
this.fillAttributes = {
|
|
30682
|
-
this.strokeAttributes = {
|
|
30683
|
-
this.textAttributes = {
|
|
30694
|
+
this.fillAttributes = Object.assign(Object.assign({}, DefaultFillStyle), { opacity: 1 });
|
|
30695
|
+
this.strokeAttributes = Object.assign(Object.assign({}, DefaultStrokeStyle), { opacity: 1 });
|
|
30696
|
+
this.textAttributes = Object.assign(Object.assign({}, DefaultTextStyle), { opacity: 1 });
|
|
30684
30697
|
this._clearShadowStyle = false;
|
|
30685
30698
|
this._clearFilterStyle = false;
|
|
30686
30699
|
const context = canvas.nativeCanvas.getContext('2d');
|
|
@@ -31350,7 +31363,7 @@
|
|
|
31350
31363
|
}
|
|
31351
31364
|
set dpr(dpr) {
|
|
31352
31365
|
this._dpr = dpr;
|
|
31353
|
-
this.resize(this.
|
|
31366
|
+
this.resize(this._displayWidth, this._displayHeight);
|
|
31354
31367
|
}
|
|
31355
31368
|
constructor(params) {
|
|
31356
31369
|
const { nativeCanvas, width = DefaultConfig$6.WIDTH, height = DefaultConfig$6.HEIGHT, dpr = DefaultConfig$6.DPR, container, x, y, canvasControled = true } = params;
|
|
@@ -32006,7 +32019,7 @@
|
|
|
32006
32019
|
var pluginModule = new ContainerModule(bind => {
|
|
32007
32020
|
bind(DefaultPluginService).toSelf();
|
|
32008
32021
|
bind(PluginService).toService(DefaultPluginService);
|
|
32009
|
-
|
|
32022
|
+
bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
32010
32023
|
});
|
|
32011
32024
|
|
|
32012
32025
|
exports.BaseEnvContribution = class BaseEnvContribution {
|
|
@@ -32885,28 +32898,37 @@
|
|
|
32885
32898
|
injectable()
|
|
32886
32899
|
], NodeEnvContribution);
|
|
32887
32900
|
|
|
32888
|
-
|
|
32889
|
-
|
|
32890
|
-
|
|
32891
|
-
|
|
32892
|
-
|
|
32893
|
-
|
|
32894
|
-
.
|
|
32895
|
-
|
|
32896
|
-
|
|
32897
|
-
|
|
32898
|
-
|
|
32899
|
-
|
|
32900
|
-
|
|
32901
|
-
|
|
32902
|
-
|
|
32903
|
-
|
|
32904
|
-
|
|
32905
|
-
|
|
32906
|
-
|
|
32901
|
+
function makeUpCanvas(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, compoient) {
|
|
32902
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32903
|
+
const dpr = wx.getSystemInfoSync().pixelRatio;
|
|
32904
|
+
for (let i = 0; i < canvasIdLists.length; i++) {
|
|
32905
|
+
const id = canvasIdLists[i];
|
|
32906
|
+
yield new Promise(resolve => {
|
|
32907
|
+
let data = wx.createSelectorQuery();
|
|
32908
|
+
if (compoient) {
|
|
32909
|
+
data = data.in(compoient);
|
|
32910
|
+
}
|
|
32911
|
+
data
|
|
32912
|
+
.select(`#${id}`)
|
|
32913
|
+
.fields({ node: true, size: true })
|
|
32914
|
+
.exec((res) => {
|
|
32915
|
+
if (!res[0]) {
|
|
32916
|
+
return;
|
|
32917
|
+
}
|
|
32918
|
+
const canvas = res[0].node;
|
|
32919
|
+
const width = res[0].width;
|
|
32920
|
+
const height = res[0].height;
|
|
32921
|
+
canvas.width = width * dpr;
|
|
32922
|
+
canvas.height = height * dpr;
|
|
32923
|
+
canvasMap.set(id, canvas);
|
|
32924
|
+
if (i >= freeCanvasIdx) {
|
|
32925
|
+
freeCanvasList.push(canvas);
|
|
32926
|
+
}
|
|
32927
|
+
resolve(null);
|
|
32928
|
+
});
|
|
32907
32929
|
});
|
|
32908
|
-
}
|
|
32909
|
-
}
|
|
32930
|
+
}
|
|
32931
|
+
});
|
|
32910
32932
|
}
|
|
32911
32933
|
let WxEnvContribution = class WxEnvContribution extends exports.BaseEnvContribution {
|
|
32912
32934
|
constructor() {
|
|
@@ -32930,7 +32952,7 @@
|
|
|
32930
32952
|
configure(service, params) {
|
|
32931
32953
|
if (service.env === this.type) {
|
|
32932
32954
|
service.setActiveEnvContribution(this);
|
|
32933
|
-
return makeUpCanvas(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList).then(() => {
|
|
32955
|
+
return makeUpCanvas(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.compoient).then(() => {
|
|
32934
32956
|
loadFeishuContributions();
|
|
32935
32957
|
});
|
|
32936
32958
|
}
|
|
@@ -33033,6 +33055,12 @@
|
|
|
33033
33055
|
release(...params) {
|
|
33034
33056
|
this.releaseWindow();
|
|
33035
33057
|
}
|
|
33058
|
+
isVisible(bbox) {
|
|
33059
|
+
return true;
|
|
33060
|
+
}
|
|
33061
|
+
onVisibleChange(cb) {
|
|
33062
|
+
return;
|
|
33063
|
+
}
|
|
33036
33064
|
};
|
|
33037
33065
|
exports.BaseWindowHandlerContribution = __decorate([
|
|
33038
33066
|
injectable(),
|
|
@@ -33047,6 +33075,7 @@
|
|
|
33047
33075
|
super();
|
|
33048
33076
|
this.global = global;
|
|
33049
33077
|
this.type = 'browser';
|
|
33078
|
+
this._canvasIsIntersecting = true;
|
|
33050
33079
|
}
|
|
33051
33080
|
getTitle() {
|
|
33052
33081
|
return this.canvas.id.toString();
|
|
@@ -33067,6 +33096,42 @@
|
|
|
33067
33096
|
else {
|
|
33068
33097
|
this.createWindowByCanvas(params);
|
|
33069
33098
|
}
|
|
33099
|
+
this.postInit();
|
|
33100
|
+
}
|
|
33101
|
+
postInit() {
|
|
33102
|
+
try {
|
|
33103
|
+
this.observerCanvas();
|
|
33104
|
+
}
|
|
33105
|
+
catch (err) {
|
|
33106
|
+
console.error('发生错误,该环境不存在IntersectionObserver');
|
|
33107
|
+
}
|
|
33108
|
+
}
|
|
33109
|
+
isElementVisible(el) {
|
|
33110
|
+
const rect = el.getBoundingClientRect();
|
|
33111
|
+
const vWidth = window.innerWidth || document.documentElement.clientWidth;
|
|
33112
|
+
const vHeight = window.innerHeight || document.documentElement.clientHeight;
|
|
33113
|
+
if (rect.right < 0 || rect.bottom < 0 || rect.left > vWidth || rect.top > vHeight) {
|
|
33114
|
+
return false;
|
|
33115
|
+
}
|
|
33116
|
+
return true;
|
|
33117
|
+
}
|
|
33118
|
+
observerCanvas() {
|
|
33119
|
+
this._canvasIsIntersecting = this.isElementVisible(this.canvas.nativeCanvas);
|
|
33120
|
+
const observer = new IntersectionObserver((entries, observer) => {
|
|
33121
|
+
entries.forEach(entry => {
|
|
33122
|
+
if (this._canvasIsIntersecting !== entry.isIntersecting) {
|
|
33123
|
+
this._canvasIsIntersecting = entry.isIntersecting;
|
|
33124
|
+
this._onVisibleChangeCb(entry.isIntersecting);
|
|
33125
|
+
}
|
|
33126
|
+
else {
|
|
33127
|
+
this._canvasIsIntersecting = entry.isIntersecting;
|
|
33128
|
+
}
|
|
33129
|
+
});
|
|
33130
|
+
});
|
|
33131
|
+
if (!observer) {
|
|
33132
|
+
return;
|
|
33133
|
+
}
|
|
33134
|
+
observer.observe(this.canvas.nativeCanvas);
|
|
33070
33135
|
}
|
|
33071
33136
|
createWindowByConfig(params) {
|
|
33072
33137
|
const nativeCanvas = this.global.createCanvas({
|
|
@@ -33206,6 +33271,12 @@
|
|
|
33206
33271
|
}
|
|
33207
33272
|
context.nativeContext.restore();
|
|
33208
33273
|
}
|
|
33274
|
+
isVisible(bbox) {
|
|
33275
|
+
return this._canvasIsIntersecting;
|
|
33276
|
+
}
|
|
33277
|
+
onVisibleChange(cb) {
|
|
33278
|
+
this._onVisibleChangeCb = cb;
|
|
33279
|
+
}
|
|
33209
33280
|
};
|
|
33210
33281
|
BrowserWindowHandlerContribution.env = 'browser';
|
|
33211
33282
|
BrowserWindowHandlerContribution = __decorate([
|
|
@@ -33902,22 +33973,14 @@
|
|
|
33902
33973
|
}
|
|
33903
33974
|
if (event.changedTouches.length > 0) {
|
|
33904
33975
|
event.changedTouches.forEach((d, i) => {
|
|
33905
|
-
event.changedTouches[i] = {
|
|
33906
|
-
...event.changedTouches[i],
|
|
33907
|
-
offsetX: d.x,
|
|
33908
|
-
offsetY: d.y
|
|
33909
|
-
};
|
|
33976
|
+
event.changedTouches[i] = Object.assign(Object.assign({}, event.changedTouches[i]), { offsetX: d.x, offsetY: d.y });
|
|
33910
33977
|
});
|
|
33911
33978
|
event.offsetX = event.changedTouches[0].offsetX;
|
|
33912
33979
|
event.offsetY = event.changedTouches[0].offsetY;
|
|
33913
33980
|
}
|
|
33914
33981
|
if (event.touches.length > 0) {
|
|
33915
33982
|
event.touches.forEach((d, i) => {
|
|
33916
|
-
event.touches[i] = {
|
|
33917
|
-
...event.touches[i],
|
|
33918
|
-
offsetX: d.x,
|
|
33919
|
-
offsetY: d.y
|
|
33920
|
-
};
|
|
33983
|
+
event.touches[i] = Object.assign(Object.assign({}, event.touches[i]), { offsetX: d.x, offsetY: d.y });
|
|
33921
33984
|
});
|
|
33922
33985
|
}
|
|
33923
33986
|
event.preventDefault = () => {
|
|
@@ -34953,6 +35016,10 @@
|
|
|
34953
35016
|
this.global = global;
|
|
34954
35017
|
this.offscreen = false;
|
|
34955
35018
|
}
|
|
35019
|
+
setDpr(dpr) {
|
|
35020
|
+
this.canvas.dpr = dpr;
|
|
35021
|
+
return;
|
|
35022
|
+
}
|
|
34956
35023
|
init(layer, window, params) {
|
|
34957
35024
|
this.layer = layer;
|
|
34958
35025
|
this.window = window;
|
|
@@ -35011,12 +35078,7 @@
|
|
|
35011
35078
|
this.canvas.applyPosition();
|
|
35012
35079
|
}
|
|
35013
35080
|
}
|
|
35014
|
-
params.renderService.render(group, {
|
|
35015
|
-
context: this.context,
|
|
35016
|
-
clear: (_a = params.background) !== null && _a !== void 0 ? _a : '#ffffff',
|
|
35017
|
-
...params,
|
|
35018
|
-
...userParams
|
|
35019
|
-
});
|
|
35081
|
+
params.renderService.render(group, Object.assign(Object.assign({ context: this.context, clear: (_a = params.background) !== null && _a !== void 0 ? _a : '#ffffff' }, params), userParams));
|
|
35020
35082
|
}
|
|
35021
35083
|
merge(layerHandlers) {
|
|
35022
35084
|
layerHandlers.forEach(l => {
|
|
@@ -35031,11 +35093,7 @@
|
|
|
35031
35093
|
drawTo(target, group, params) {
|
|
35032
35094
|
var _a;
|
|
35033
35095
|
const context = target.getContext();
|
|
35034
|
-
params.renderService.render(group, {
|
|
35035
|
-
context,
|
|
35036
|
-
...params,
|
|
35037
|
-
clear: params.clear ? (_a = params.background) !== null && _a !== void 0 ? _a : '#fff' : undefined
|
|
35038
|
-
});
|
|
35096
|
+
params.renderService.render(group, Object.assign(Object.assign({ context }, params), { clear: params.clear ? (_a = params.background) !== null && _a !== void 0 ? _a : '#fff' : undefined }));
|
|
35039
35097
|
return;
|
|
35040
35098
|
}
|
|
35041
35099
|
getContext() {
|
|
@@ -35056,6 +35114,10 @@
|
|
|
35056
35114
|
this.global = global;
|
|
35057
35115
|
this.offscreen = true;
|
|
35058
35116
|
}
|
|
35117
|
+
setDpr(dpr) {
|
|
35118
|
+
this.canvas.dpr = dpr;
|
|
35119
|
+
return;
|
|
35120
|
+
}
|
|
35059
35121
|
init(layer, window, params) {
|
|
35060
35122
|
this.layer = layer;
|
|
35061
35123
|
const nativeCanvas = this.global.createOffscreenCanvas({
|
|
@@ -35083,13 +35145,7 @@
|
|
|
35083
35145
|
}
|
|
35084
35146
|
render(group, params) {
|
|
35085
35147
|
var _a;
|
|
35086
|
-
params.renderService.render(group, {
|
|
35087
|
-
context: this.context,
|
|
35088
|
-
...params,
|
|
35089
|
-
x: 0,
|
|
35090
|
-
y: 0,
|
|
35091
|
-
clear: (_a = params.background) !== null && _a !== void 0 ? _a : '#ffffff'
|
|
35092
|
-
});
|
|
35148
|
+
params.renderService.render(group, Object.assign(Object.assign({ context: this.context }, params), { x: 0, y: 0, clear: (_a = params.background) !== null && _a !== void 0 ? _a : '#ffffff' }));
|
|
35093
35149
|
}
|
|
35094
35150
|
prepare(dirtyBounds, params) {
|
|
35095
35151
|
return;
|
|
@@ -35460,15 +35516,7 @@
|
|
|
35460
35516
|
const idc = incrementalLayer.drawContribution || container.get(IncrementalDrawContribution);
|
|
35461
35517
|
idc.dirtyBounds.setValue(-Infinity, -Infinity, Infinity, Infinity);
|
|
35462
35518
|
idc.backupDirtyBounds.setValue(-Infinity, -Infinity, Infinity, Infinity);
|
|
35463
|
-
idc.draw(this.currentRenderService, {
|
|
35464
|
-
...drawContext,
|
|
35465
|
-
drawContribution: idc,
|
|
35466
|
-
clear: 'transparent',
|
|
35467
|
-
layer: incrementalLayer.layer,
|
|
35468
|
-
context: incrementalContext,
|
|
35469
|
-
startAtId: group._uid,
|
|
35470
|
-
break: false
|
|
35471
|
-
});
|
|
35519
|
+
idc.draw(this.currentRenderService, Object.assign(Object.assign({}, drawContext), { drawContribution: idc, clear: 'transparent', layer: incrementalLayer.layer, context: incrementalContext, startAtId: group._uid, break: false }));
|
|
35472
35520
|
incrementalLayer.drawContribution = idc;
|
|
35473
35521
|
const nextGraphic = this._findNextGraphic(group);
|
|
35474
35522
|
if (nextGraphic) {
|
|
@@ -35485,15 +35533,7 @@
|
|
|
35485
35533
|
subLayers.set(nextGraphic._uid, afterLayer);
|
|
35486
35534
|
}
|
|
35487
35535
|
const afterContext = afterLayer.layer.getNativeHandler().getContext();
|
|
35488
|
-
this.draw(this.currentRenderService, {
|
|
35489
|
-
...drawContext,
|
|
35490
|
-
drawContribution: idc,
|
|
35491
|
-
clear: 'transparent',
|
|
35492
|
-
layer: afterLayer.layer,
|
|
35493
|
-
context: afterContext,
|
|
35494
|
-
startAtId: nextGraphic._uid,
|
|
35495
|
-
break: false
|
|
35496
|
-
});
|
|
35536
|
+
this.draw(this.currentRenderService, Object.assign(Object.assign({}, drawContext), { drawContribution: idc, clear: 'transparent', layer: afterLayer.layer, context: afterContext, startAtId: nextGraphic._uid, break: false }));
|
|
35497
35537
|
}
|
|
35498
35538
|
}
|
|
35499
35539
|
}
|
|
@@ -35895,164 +35935,178 @@
|
|
|
35895
35935
|
this.defaultRenderMap.set(this.lineRender.numberType, this.lineRender);
|
|
35896
35936
|
this.defaultRenderMap.set(this.areaRender.numberType, this.areaRender);
|
|
35897
35937
|
}
|
|
35898
|
-
|
|
35899
|
-
|
|
35900
|
-
|
|
35901
|
-
|
|
35902
|
-
|
|
35903
|
-
|
|
35904
|
-
|
|
35905
|
-
|
|
35906
|
-
|
|
35907
|
-
|
|
35908
|
-
|
|
35909
|
-
|
|
35910
|
-
|
|
35911
|
-
|
|
35912
|
-
|
|
35913
|
-
|
|
35914
|
-
|
|
35915
|
-
|
|
35916
|
-
|
|
35917
|
-
|
|
35918
|
-
|
|
35919
|
-
|
|
35920
|
-
|
|
35921
|
-
|
|
35922
|
-
|
|
35923
|
-
.
|
|
35924
|
-
|
|
35925
|
-
|
|
35926
|
-
|
|
35927
|
-
|
|
35928
|
-
|
|
35929
|
-
|
|
35930
|
-
|
|
35931
|
-
|
|
35932
|
-
|
|
35933
|
-
|
|
35934
|
-
|
|
35935
|
-
|
|
35938
|
+
draw(renderService, drawContext) {
|
|
35939
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35940
|
+
if (this.checkingForDrawPromise) {
|
|
35941
|
+
return;
|
|
35942
|
+
}
|
|
35943
|
+
this.lastRenderService = renderService;
|
|
35944
|
+
this.lastDrawContext = drawContext;
|
|
35945
|
+
this.checkingForDrawPromise = this.checkForDraw(drawContext);
|
|
35946
|
+
const skipDraw = yield this.checkingForDrawPromise;
|
|
35947
|
+
this.checkingForDrawPromise = null;
|
|
35948
|
+
if (skipDraw) {
|
|
35949
|
+
return;
|
|
35950
|
+
}
|
|
35951
|
+
this.currentRenderService = renderService;
|
|
35952
|
+
const { context, x = 0, y = 0 } = drawContext;
|
|
35953
|
+
if (!context) {
|
|
35954
|
+
return;
|
|
35955
|
+
}
|
|
35956
|
+
context.inuse = true;
|
|
35957
|
+
context.clearMatrix();
|
|
35958
|
+
context.setTransformForCurrent(true);
|
|
35959
|
+
context.save();
|
|
35960
|
+
drawContext.restartIncremental && this.clearScreen(this.currentRenderService, context, drawContext);
|
|
35961
|
+
context.translate(x, y, true);
|
|
35962
|
+
context.save();
|
|
35963
|
+
renderService.renderTreeRoots
|
|
35964
|
+
.sort((a, b) => {
|
|
35965
|
+
var _a, _b;
|
|
35966
|
+
return ((_a = a.attribute.zIndex) !== null && _a !== void 0 ? _a : DefaultAttribute.zIndex) - ((_b = b.attribute.zIndex) !== null && _b !== void 0 ? _b : DefaultAttribute.zIndex);
|
|
35967
|
+
})
|
|
35968
|
+
.forEach(group => {
|
|
35969
|
+
this.renderGroup(group, drawContext);
|
|
35970
|
+
});
|
|
35971
|
+
this.hooks.completeDraw.tap('top-draw', () => {
|
|
35972
|
+
context.restore();
|
|
35973
|
+
context.restore();
|
|
35974
|
+
context.draw();
|
|
35975
|
+
context.inuse = false;
|
|
35976
|
+
this.rendering = false;
|
|
35977
|
+
});
|
|
35936
35978
|
});
|
|
35937
35979
|
}
|
|
35938
|
-
|
|
35939
|
-
this
|
|
35940
|
-
|
|
35941
|
-
|
|
35980
|
+
_increaseRender(group, drawContext) {
|
|
35981
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35982
|
+
this.rendering = true;
|
|
35983
|
+
yield this._renderIncrementalGroup(group, drawContext);
|
|
35984
|
+
return;
|
|
35985
|
+
});
|
|
35942
35986
|
}
|
|
35943
|
-
|
|
35944
|
-
this
|
|
35945
|
-
|
|
35946
|
-
|
|
35947
|
-
|
|
35948
|
-
|
|
35949
|
-
|
|
35950
|
-
|
|
35951
|
-
if (
|
|
35952
|
-
graphic.incrementalAt
|
|
35987
|
+
_renderIncrementalGroup(group, drawContext) {
|
|
35988
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35989
|
+
this.count = group.count;
|
|
35990
|
+
yield new Promise(resolve => {
|
|
35991
|
+
this.renderItem(group, drawContext, {
|
|
35992
|
+
drawingCb: () => __awaiter(this, void 0, void 0, function* () {
|
|
35993
|
+
if (group.count === 2) {
|
|
35994
|
+
const graphic = group.getChildAt(0);
|
|
35995
|
+
if (graphic.incremental && graphic.attribute.segments) {
|
|
35996
|
+
if (!graphic.incrementalAt) {
|
|
35997
|
+
graphic.incrementalAt = 0;
|
|
35998
|
+
}
|
|
35999
|
+
while (graphic.incrementalAt < graphic.attribute.segments.length) {
|
|
36000
|
+
drawContext.multiGraphicOptions = {
|
|
36001
|
+
startAtIdx: graphic.incrementalAt,
|
|
36002
|
+
length: graphic.incremental
|
|
36003
|
+
};
|
|
36004
|
+
this.renderItem(graphic, drawContext);
|
|
36005
|
+
graphic.incrementalAt += graphic.incremental;
|
|
36006
|
+
yield this.waitToNextFrame();
|
|
36007
|
+
}
|
|
35953
36008
|
}
|
|
35954
|
-
|
|
35955
|
-
drawContext.multiGraphicOptions = {
|
|
35956
|
-
startAtIdx: graphic.incrementalAt,
|
|
35957
|
-
length: graphic.incremental
|
|
35958
|
-
};
|
|
36009
|
+
else {
|
|
35959
36010
|
this.renderItem(graphic, drawContext);
|
|
35960
|
-
graphic.incrementalAt += graphic.incremental;
|
|
35961
|
-
await this.waitToNextFrame();
|
|
35962
36011
|
}
|
|
36012
|
+
resolve(false);
|
|
36013
|
+
return;
|
|
35963
36014
|
}
|
|
35964
|
-
|
|
35965
|
-
this.
|
|
35966
|
-
|
|
35967
|
-
|
|
35968
|
-
|
|
35969
|
-
|
|
35970
|
-
|
|
35971
|
-
|
|
35972
|
-
|
|
35973
|
-
|
|
35974
|
-
|
|
35975
|
-
|
|
35976
|
-
|
|
35977
|
-
|
|
36015
|
+
yield foreachAsync(group, DefaultAttribute.zIndex, (item, i) => {
|
|
36016
|
+
if (this.status === STATUS.STOP) {
|
|
36017
|
+
return true;
|
|
36018
|
+
}
|
|
36019
|
+
if (item.isContainer) {
|
|
36020
|
+
return false;
|
|
36021
|
+
}
|
|
36022
|
+
if (i < this.currentIdx) {
|
|
36023
|
+
return false;
|
|
36024
|
+
}
|
|
36025
|
+
const frameTail = this.currFrameStartAt + group.incremental;
|
|
36026
|
+
if (i < frameTail) {
|
|
36027
|
+
this.currentIdx = i + 1;
|
|
36028
|
+
this.renderItem(item, drawContext);
|
|
36029
|
+
}
|
|
36030
|
+
if (i === frameTail - 1) {
|
|
36031
|
+
this.currFrameStartAt = this.currentIdx;
|
|
36032
|
+
return this.waitToNextFrame();
|
|
36033
|
+
}
|
|
35978
36034
|
return false;
|
|
35979
|
-
}
|
|
35980
|
-
|
|
35981
|
-
|
|
35982
|
-
|
|
35983
|
-
this.renderItem(item, drawContext);
|
|
35984
|
-
}
|
|
35985
|
-
if (i === frameTail - 1) {
|
|
35986
|
-
this.currFrameStartAt = this.currentIdx;
|
|
35987
|
-
return this.waitToNextFrame();
|
|
35988
|
-
}
|
|
35989
|
-
return false;
|
|
35990
|
-
});
|
|
35991
|
-
resolve(false);
|
|
35992
|
-
}
|
|
36035
|
+
});
|
|
36036
|
+
resolve(false);
|
|
36037
|
+
})
|
|
36038
|
+
});
|
|
35993
36039
|
});
|
|
36040
|
+
this.hooks.completeDraw.call();
|
|
35994
36041
|
});
|
|
35995
|
-
this.hooks.completeDraw.call();
|
|
35996
36042
|
}
|
|
35997
|
-
|
|
35998
|
-
return
|
|
35999
|
-
|
|
36000
|
-
|
|
36043
|
+
waitToNextFrame() {
|
|
36044
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36045
|
+
return new Promise(resolve => {
|
|
36046
|
+
this.global.getRequestAnimationFrame()(() => {
|
|
36047
|
+
resolve(false);
|
|
36048
|
+
});
|
|
36001
36049
|
});
|
|
36002
36050
|
});
|
|
36003
36051
|
}
|
|
36004
|
-
|
|
36005
|
-
|
|
36006
|
-
|
|
36007
|
-
|
|
36008
|
-
|
|
36009
|
-
|
|
36010
|
-
|
|
36011
|
-
|
|
36052
|
+
checkForDraw(drawContext) {
|
|
36053
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36054
|
+
let skip = this.rendering;
|
|
36055
|
+
if (drawContext.restartIncremental) {
|
|
36056
|
+
skip = false;
|
|
36057
|
+
yield this.forceStop();
|
|
36058
|
+
this.resetToInit();
|
|
36059
|
+
}
|
|
36060
|
+
return skip;
|
|
36061
|
+
});
|
|
36012
36062
|
}
|
|
36013
|
-
|
|
36014
|
-
|
|
36015
|
-
this.
|
|
36016
|
-
|
|
36017
|
-
|
|
36018
|
-
this.
|
|
36019
|
-
|
|
36020
|
-
|
|
36063
|
+
forceStop() {
|
|
36064
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36065
|
+
if (this.rendering) {
|
|
36066
|
+
this.status = STATUS.STOP;
|
|
36067
|
+
yield new Promise(resolve => {
|
|
36068
|
+
this.hooks.completeDraw.tap('stopCb', () => {
|
|
36069
|
+
this.status = STATUS.NORMAL;
|
|
36070
|
+
this.hooks.completeDraw.taps = this.hooks.completeDraw.taps.filter(item => {
|
|
36071
|
+
return item.name !== 'stopCb';
|
|
36072
|
+
});
|
|
36073
|
+
resolve(false);
|
|
36021
36074
|
});
|
|
36022
|
-
resolve(false);
|
|
36023
36075
|
});
|
|
36024
|
-
}
|
|
36025
|
-
}
|
|
36076
|
+
}
|
|
36077
|
+
});
|
|
36026
36078
|
}
|
|
36027
36079
|
resetToInit() {
|
|
36028
36080
|
this.currFrameStartAt = 0;
|
|
36029
36081
|
this.currentIdx = 0;
|
|
36030
36082
|
}
|
|
36031
|
-
|
|
36032
|
-
|
|
36033
|
-
|
|
36034
|
-
|
|
36035
|
-
|
|
36036
|
-
|
|
36037
|
-
|
|
36038
|
-
|
|
36039
|
-
|
|
36040
|
-
|
|
36041
|
-
|
|
36042
|
-
|
|
36043
|
-
|
|
36044
|
-
|
|
36045
|
-
|
|
36046
|
-
|
|
36047
|
-
|
|
36048
|
-
|
|
36049
|
-
|
|
36050
|
-
|
|
36051
|
-
|
|
36052
|
-
|
|
36053
|
-
|
|
36054
|
-
|
|
36055
|
-
|
|
36083
|
+
renderGroup(group, drawContext) {
|
|
36084
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36085
|
+
if (drawContext.break || group.attribute.visibleAll === false) {
|
|
36086
|
+
return;
|
|
36087
|
+
}
|
|
36088
|
+
if (group.incremental && drawContext.startAtId === group._uid) {
|
|
36089
|
+
yield this._increaseRender(group, drawContext);
|
|
36090
|
+
drawContext.break = true;
|
|
36091
|
+
return;
|
|
36092
|
+
}
|
|
36093
|
+
yield new Promise(resolve => {
|
|
36094
|
+
this.renderItem(group, drawContext, {
|
|
36095
|
+
drawingCb: () => __awaiter(this, void 0, void 0, function* () {
|
|
36096
|
+
yield foreachAsync(group, DefaultAttribute.zIndex, (item) => __awaiter(this, void 0, void 0, function* () {
|
|
36097
|
+
if (drawContext.break) {
|
|
36098
|
+
return;
|
|
36099
|
+
}
|
|
36100
|
+
if (item.isContainer) {
|
|
36101
|
+
yield this.renderGroup(item, drawContext);
|
|
36102
|
+
}
|
|
36103
|
+
else {
|
|
36104
|
+
return;
|
|
36105
|
+
}
|
|
36106
|
+
}));
|
|
36107
|
+
resolve(false);
|
|
36108
|
+
})
|
|
36109
|
+
});
|
|
36056
36110
|
});
|
|
36057
36111
|
});
|
|
36058
36112
|
}
|
|
@@ -37031,7 +37085,7 @@
|
|
|
37031
37085
|
}
|
|
37032
37086
|
let picked = true;
|
|
37033
37087
|
if (!onlyTranslate ||
|
|
37034
|
-
(isNumber(cornerRadius, true) && cornerRadius !== 0) ||
|
|
37088
|
+
(isNumber$1(cornerRadius, true) && cornerRadius !== 0) ||
|
|
37035
37089
|
(isArray(cornerRadius) && cornerRadius.some(num => num !== 0))) {
|
|
37036
37090
|
picked = false;
|
|
37037
37091
|
this.canvasRenderer.drawShape(rect, pickContext, x, y, {}, null, (context, rectAttribute, themeAttribute) => {
|
|
@@ -37913,7 +37967,7 @@
|
|
|
37913
37967
|
}
|
|
37914
37968
|
let picked = true;
|
|
37915
37969
|
if (!onlyTranslate ||
|
|
37916
|
-
(isNumber(cornerRadius, true) && cornerRadius !== 0) ||
|
|
37970
|
+
(isNumber$1(cornerRadius, true) && cornerRadius !== 0) ||
|
|
37917
37971
|
(isArray(cornerRadius) && cornerRadius.some(num => num !== 0))) {
|
|
37918
37972
|
picked = false;
|
|
37919
37973
|
this.canvasRenderer.drawShape(rect, pickContext, x, y, {}, null, (context, rectAttribute, themeAttribute) => {
|
|
@@ -38597,20 +38651,8 @@
|
|
|
38597
38651
|
if (!subLayer || !subLayer.drawContribution) {
|
|
38598
38652
|
return;
|
|
38599
38653
|
}
|
|
38600
|
-
subLayer.drawContribution.draw(stage.renderService, {
|
|
38601
|
-
|
|
38602
|
-
y: stage.y,
|
|
38603
|
-
width: layer.viewWidth,
|
|
38604
|
-
height: layer.viewHeight,
|
|
38605
|
-
stage,
|
|
38606
|
-
layer,
|
|
38607
|
-
clear: 'transparent',
|
|
38608
|
-
renderService: stage.renderService,
|
|
38609
|
-
updateBounds: false,
|
|
38610
|
-
startAtId: group._uid,
|
|
38611
|
-
context: subLayer.layer.getNativeHandler().getContext(),
|
|
38612
|
-
...this.nextUserParams
|
|
38613
|
-
});
|
|
38654
|
+
subLayer.drawContribution.draw(stage.renderService, Object.assign({ x: stage.x, y: stage.y, width: layer.viewWidth, height: layer.viewHeight, stage,
|
|
38655
|
+
layer, clear: 'transparent', renderService: stage.renderService, updateBounds: false, startAtId: group._uid, context: subLayer.layer.getNativeHandler().getContext() }, this.nextUserParams));
|
|
38614
38656
|
});
|
|
38615
38657
|
this.nextUserParams = {};
|
|
38616
38658
|
this.nextFrameRenderGroupSet.clear();
|
|
@@ -38797,10 +38839,11 @@
|
|
|
38797
38839
|
this.activeEvent = 'onRegister';
|
|
38798
38840
|
this.id = Generator.GenAutoIncrementId();
|
|
38799
38841
|
this.key = this.name + this.id;
|
|
38842
|
+
this.tempBounds = new AABBBounds();
|
|
38800
38843
|
}
|
|
38801
38844
|
tryLayout(graphic) {
|
|
38802
38845
|
const p = graphic.parent;
|
|
38803
|
-
if (!p) {
|
|
38846
|
+
if (!p || !graphic.needUpdateLayout()) {
|
|
38804
38847
|
return;
|
|
38805
38848
|
}
|
|
38806
38849
|
const theme = getTheme(p).group;
|
|
@@ -38808,10 +38851,37 @@
|
|
|
38808
38851
|
if (display !== 'flex') {
|
|
38809
38852
|
return;
|
|
38810
38853
|
}
|
|
38811
|
-
const {
|
|
38812
|
-
|
|
38854
|
+
const { flexDirection = theme.flexDirection, flexWrap = theme.flexWrap, justifyContent = theme.justifyContent, alignItems = theme.alignItems, alignContent = theme.alignContent, clip = theme.clip } = p.attribute;
|
|
38855
|
+
let childrenWidth = 0;
|
|
38856
|
+
let childrenHeight = 0;
|
|
38857
|
+
let boundsLegal = 0;
|
|
38858
|
+
p.forEachChildren((child) => {
|
|
38859
|
+
const bounds = child.AABBBounds;
|
|
38860
|
+
if (flexDirection === 'column' || flexDirection === 'column-reverse') {
|
|
38861
|
+
childrenHeight += bounds.height();
|
|
38862
|
+
childrenWidth = Math.max(childrenWidth, bounds.width());
|
|
38863
|
+
}
|
|
38864
|
+
else {
|
|
38865
|
+
childrenWidth += bounds.width();
|
|
38866
|
+
childrenHeight = Math.max(childrenHeight, bounds.height());
|
|
38867
|
+
}
|
|
38868
|
+
boundsLegal += bounds.x1;
|
|
38869
|
+
boundsLegal += bounds.y1;
|
|
38870
|
+
boundsLegal += bounds.x2;
|
|
38871
|
+
boundsLegal += bounds.y2;
|
|
38872
|
+
});
|
|
38873
|
+
if (!isFinite(boundsLegal)) {
|
|
38813
38874
|
return;
|
|
38814
38875
|
}
|
|
38876
|
+
const width = p.attribute.width || childrenWidth;
|
|
38877
|
+
const height = p.attribute.height || childrenHeight;
|
|
38878
|
+
if (!p.attribute.width) {
|
|
38879
|
+
p.attribute.width = 0;
|
|
38880
|
+
}
|
|
38881
|
+
if (!p.attribute.height) {
|
|
38882
|
+
p.attribute.height = 0;
|
|
38883
|
+
}
|
|
38884
|
+
this.tempBounds.copy(p._AABBBounds);
|
|
38815
38885
|
const result = {
|
|
38816
38886
|
main: { len: width, field: 'x' },
|
|
38817
38887
|
cross: { len: height, field: 'y' },
|
|
@@ -38889,6 +38959,11 @@
|
|
|
38889
38959
|
const anchorPos = cross.len / 2;
|
|
38890
38960
|
this.layoutCross(children, alignItems, cross, anchorPos, mianLenArray, mainList[0], 0);
|
|
38891
38961
|
}
|
|
38962
|
+
else {
|
|
38963
|
+
children.forEach(child => {
|
|
38964
|
+
child.attribute[cross.field] = getPadding(child, cross.field);
|
|
38965
|
+
});
|
|
38966
|
+
}
|
|
38892
38967
|
}
|
|
38893
38968
|
else {
|
|
38894
38969
|
if (alignContent === 'flex-start') {
|
|
@@ -38931,12 +39006,21 @@
|
|
|
38931
39006
|
});
|
|
38932
39007
|
}
|
|
38933
39008
|
}
|
|
39009
|
+
children.forEach((child, idx) => {
|
|
39010
|
+
child.addUpdateBoundTag();
|
|
39011
|
+
child.addUpdatePositionTag();
|
|
39012
|
+
child.clearUpdateLayoutTag();
|
|
39013
|
+
});
|
|
39014
|
+
p.addUpdateLayoutTag();
|
|
39015
|
+
if (!clip && !this.tempBounds.equals(p.AABBBounds)) {
|
|
39016
|
+
this.tryLayout(p);
|
|
39017
|
+
}
|
|
38934
39018
|
}
|
|
38935
39019
|
layoutMain(p, children, justifyContent, main, mianLenArray, lastIdx, currSeg) {
|
|
38936
39020
|
if (justifyContent === 'flex-start') {
|
|
38937
39021
|
let pos = 0;
|
|
38938
39022
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38939
|
-
children[i].attribute[main.field] = pos;
|
|
39023
|
+
children[i].attribute[main.field] = pos + getPadding(children[i], main.field);
|
|
38940
39024
|
pos += mianLenArray[i].mainLen;
|
|
38941
39025
|
}
|
|
38942
39026
|
}
|
|
@@ -38944,14 +39028,14 @@
|
|
|
38944
39028
|
let pos = main.len;
|
|
38945
39029
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38946
39030
|
pos -= mianLenArray[i].mainLen;
|
|
38947
|
-
children[i].attribute[main.field] = pos;
|
|
39031
|
+
children[i].attribute[main.field] = pos + getPadding(children[i], main.field);
|
|
38948
39032
|
}
|
|
38949
39033
|
}
|
|
38950
39034
|
else if (justifyContent === 'space-around') {
|
|
38951
39035
|
if (currSeg.mainLen >= main.len) {
|
|
38952
39036
|
let pos = 0;
|
|
38953
39037
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38954
|
-
children[i].attribute[main.field] = pos;
|
|
39038
|
+
children[i].attribute[main.field] = pos + getPadding(children[i], main.field);
|
|
38955
39039
|
pos += mianLenArray[i].mainLen;
|
|
38956
39040
|
}
|
|
38957
39041
|
}
|
|
@@ -38960,7 +39044,7 @@
|
|
|
38960
39044
|
const padding = (main.len - currSeg.mainLen) / size / 2;
|
|
38961
39045
|
let pos = padding;
|
|
38962
39046
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38963
|
-
children[i].attribute[main.field] = pos;
|
|
39047
|
+
children[i].attribute[main.field] = pos + getPadding(children[i], main.field);
|
|
38964
39048
|
pos += mianLenArray[i].mainLen + padding * 2;
|
|
38965
39049
|
}
|
|
38966
39050
|
}
|
|
@@ -38969,7 +39053,7 @@
|
|
|
38969
39053
|
if (currSeg.mainLen >= main.len) {
|
|
38970
39054
|
let pos = 0;
|
|
38971
39055
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38972
|
-
children[i].attribute[main.field] = pos;
|
|
39056
|
+
children[i].attribute[main.field] = pos + getPadding(children[i], main.field);
|
|
38973
39057
|
pos += mianLenArray[i].mainLen;
|
|
38974
39058
|
}
|
|
38975
39059
|
}
|
|
@@ -38978,7 +39062,7 @@
|
|
|
38978
39062
|
const padding = (main.len - currSeg.mainLen) / (size * 2 - 2);
|
|
38979
39063
|
let pos = 0;
|
|
38980
39064
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38981
|
-
children[i].attribute[main.field] = pos;
|
|
39065
|
+
children[i].attribute[main.field] = pos + getPadding(children[i], main.field);
|
|
38982
39066
|
pos += mianLenArray[i].mainLen + padding * 2;
|
|
38983
39067
|
}
|
|
38984
39068
|
}
|
|
@@ -38987,17 +39071,18 @@
|
|
|
38987
39071
|
layoutCross(children, alignItem, cross, anchorPos, lenArray, currSeg, lastIdx) {
|
|
38988
39072
|
if (alignItem === 'flex-end') {
|
|
38989
39073
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38990
|
-
children[i].attribute[cross.field] = anchorPos - lenArray[i].crossLen;
|
|
39074
|
+
children[i].attribute[cross.field] = anchorPos - lenArray[i].crossLen + getPadding(children[i], cross.field);
|
|
38991
39075
|
}
|
|
38992
39076
|
}
|
|
38993
39077
|
else if (alignItem === 'center') {
|
|
38994
39078
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38995
|
-
children[i].attribute[cross.field] =
|
|
39079
|
+
children[i].attribute[cross.field] =
|
|
39080
|
+
anchorPos - lenArray[i].crossLen / 2 + getPadding(children[i], cross.field);
|
|
38996
39081
|
}
|
|
38997
39082
|
}
|
|
38998
39083
|
else {
|
|
38999
39084
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
39000
|
-
children[i].attribute[cross.field] = anchorPos;
|
|
39085
|
+
children[i].attribute[cross.field] = anchorPos + getPadding(children[i], cross.field);
|
|
39001
39086
|
}
|
|
39002
39087
|
}
|
|
39003
39088
|
}
|
|
@@ -39025,11 +39110,30 @@
|
|
|
39025
39110
|
});
|
|
39026
39111
|
}
|
|
39027
39112
|
}
|
|
39113
|
+
function getPadding(graphic, field) {
|
|
39114
|
+
if (!graphic.attribute.boundsPadding) {
|
|
39115
|
+
return 0;
|
|
39116
|
+
}
|
|
39117
|
+
else if (isNumber(graphic.attribute.boundsPadding)) {
|
|
39118
|
+
return graphic.attribute.boundsPadding;
|
|
39119
|
+
}
|
|
39120
|
+
else if (isArray(graphic.attribute.boundsPadding) && graphic.attribute.boundsPadding.length === 1) {
|
|
39121
|
+
return graphic.attribute.boundsPadding[0];
|
|
39122
|
+
}
|
|
39123
|
+
const paddingArray = parsePadding(graphic.attribute.boundsPadding);
|
|
39124
|
+
if (field === 'x') {
|
|
39125
|
+
return paddingArray[3];
|
|
39126
|
+
}
|
|
39127
|
+
else if (field === 'y') {
|
|
39128
|
+
return paddingArray[0];
|
|
39129
|
+
}
|
|
39130
|
+
return 0;
|
|
39131
|
+
}
|
|
39028
39132
|
|
|
39029
39133
|
const defaultTicker = new DefaultTicker();
|
|
39030
39134
|
defaultTicker.addTimeline(defaultTimeline);
|
|
39031
|
-
const
|
|
39032
|
-
defaultTicker.setFPS(
|
|
39135
|
+
const TICKER_FPS = 60;
|
|
39136
|
+
defaultTicker.setFPS(TICKER_FPS);
|
|
39033
39137
|
|
|
39034
39138
|
class DirectionalLight {
|
|
39035
39139
|
constructor(dir, color, ambient = 0.8) {
|
|
@@ -39214,19 +39318,46 @@
|
|
|
39214
39318
|
this._afterRender = params.afterRender;
|
|
39215
39319
|
this.ticker = params.ticker || defaultTicker;
|
|
39216
39320
|
this.supportInteractiveLayer = params.interactiveLayer !== false;
|
|
39321
|
+
this.timeline = new DefaultTimeline();
|
|
39322
|
+
this.ticker.addTimeline(this.timeline);
|
|
39323
|
+
this.timeline.pause();
|
|
39324
|
+
this.optmize(params.optimize);
|
|
39325
|
+
}
|
|
39326
|
+
optmize(params) {
|
|
39327
|
+
this.optmizeRender(params === null || params === void 0 ? void 0 : params.skipRenderWithOutRange);
|
|
39328
|
+
}
|
|
39329
|
+
optmizeRender(skipRenderWithOutRange = true) {
|
|
39330
|
+
if (!skipRenderWithOutRange) {
|
|
39331
|
+
return;
|
|
39332
|
+
}
|
|
39333
|
+
this._skipRender = this.window.isVisible() ? 0 : 1;
|
|
39334
|
+
this.window.onVisibleChange(visible => {
|
|
39335
|
+
if (visible) {
|
|
39336
|
+
if (this.dirtyBounds) {
|
|
39337
|
+
this.dirtyBounds.setValue(0, 0, this._viewBox.width(), this._viewBox.height());
|
|
39338
|
+
}
|
|
39339
|
+
if (this._skipRender > 1) {
|
|
39340
|
+
this.renderNextFrame();
|
|
39341
|
+
}
|
|
39342
|
+
this._skipRender = 0;
|
|
39343
|
+
}
|
|
39344
|
+
else {
|
|
39345
|
+
this._skipRender = 1;
|
|
39346
|
+
}
|
|
39347
|
+
});
|
|
39348
|
+
}
|
|
39349
|
+
getTimeline() {
|
|
39350
|
+
return this.timeline;
|
|
39217
39351
|
}
|
|
39218
39352
|
get3dOptions(options) {
|
|
39219
39353
|
const { center = { x: this.width / 2, y: this.height / 2, z: 0, dx: 0, dy: 0, dz: 0 }, light = {}, alpha = 0, beta = 0, camera, fieldRatio = 1, fieldDepth } = options;
|
|
39220
|
-
return {
|
|
39221
|
-
...options,
|
|
39222
|
-
center,
|
|
39354
|
+
return Object.assign(Object.assign({}, options), { center,
|
|
39223
39355
|
light,
|
|
39224
39356
|
alpha,
|
|
39225
39357
|
beta,
|
|
39226
39358
|
camera,
|
|
39227
39359
|
fieldRatio,
|
|
39228
|
-
fieldDepth
|
|
39229
|
-
};
|
|
39360
|
+
fieldDepth });
|
|
39230
39361
|
}
|
|
39231
39362
|
set3dOptions(options) {
|
|
39232
39363
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -39422,18 +39553,22 @@
|
|
|
39422
39553
|
}
|
|
39423
39554
|
render(layers, params) {
|
|
39424
39555
|
this.ticker.start();
|
|
39425
|
-
this.
|
|
39426
|
-
this.
|
|
39427
|
-
|
|
39428
|
-
|
|
39429
|
-
|
|
39430
|
-
|
|
39431
|
-
|
|
39432
|
-
|
|
39433
|
-
|
|
39434
|
-
|
|
39435
|
-
|
|
39436
|
-
|
|
39556
|
+
this.timeline.resume();
|
|
39557
|
+
if (!this._skipRender) {
|
|
39558
|
+
this.lastRenderparams = params;
|
|
39559
|
+
this.hooks.beforeRender.call(this);
|
|
39560
|
+
(layers || this).forEach((layer, i) => {
|
|
39561
|
+
layer.render({
|
|
39562
|
+
renderService: this.renderService,
|
|
39563
|
+
background: layer === this.defaultLayer ? this.background : undefined,
|
|
39564
|
+
updateBounds: !!this.dirtyBounds
|
|
39565
|
+
}, Object.assign({ renderStyle: this.renderStyle }, params));
|
|
39566
|
+
});
|
|
39567
|
+
this.combineLayersToWindow();
|
|
39568
|
+
this.nextFrameRenderLayerSet.clear();
|
|
39569
|
+
this.hooks.afterRender.call(this);
|
|
39570
|
+
}
|
|
39571
|
+
this._skipRender && this._skipRender++;
|
|
39437
39572
|
}
|
|
39438
39573
|
combineLayersToWindow() {
|
|
39439
39574
|
this.forEach((layer, i) => {
|
|
@@ -39463,8 +39598,9 @@
|
|
|
39463
39598
|
}
|
|
39464
39599
|
}
|
|
39465
39600
|
_doRenderInThisFrame() {
|
|
39466
|
-
|
|
39467
|
-
|
|
39601
|
+
this.timeline.resume();
|
|
39602
|
+
this.ticker.start();
|
|
39603
|
+
if (this.nextFrameRenderLayerSet.size && !this._skipRender) {
|
|
39468
39604
|
this.hooks.beforeRender.call(this);
|
|
39469
39605
|
this.forEach((layer) => {
|
|
39470
39606
|
if (this.nextFrameRenderLayerSet.has(layer)) {
|
|
@@ -39472,13 +39608,14 @@
|
|
|
39472
39608
|
renderService: this.renderService,
|
|
39473
39609
|
background: layer === this.defaultLayer ? this.background : undefined,
|
|
39474
39610
|
updateBounds: !!this.dirtyBounds
|
|
39475
|
-
}, { renderStyle: this.renderStyle,
|
|
39611
|
+
}, Object.assign({ renderStyle: this.renderStyle }, (this.lastRenderparams || {})));
|
|
39476
39612
|
}
|
|
39477
39613
|
});
|
|
39478
39614
|
this.combineLayersToWindow();
|
|
39479
39615
|
this.hooks.afterRender.call(this);
|
|
39480
39616
|
this.nextFrameRenderLayerSet.clear();
|
|
39481
39617
|
}
|
|
39618
|
+
this._skipRender && this._skipRender++;
|
|
39482
39619
|
}
|
|
39483
39620
|
resizeWindow(w, h, rerender = true) {
|
|
39484
39621
|
this.window.resize(w, h);
|
|
@@ -39500,7 +39637,7 @@
|
|
|
39500
39637
|
this.forEachChildren(c => {
|
|
39501
39638
|
c.resizeView(w, h);
|
|
39502
39639
|
});
|
|
39503
|
-
this.camera && (this.camera.params = {
|
|
39640
|
+
this.camera && (this.camera.params = Object.assign(Object.assign({}, this.camera.params), { right: this.width, bottom: this.height }));
|
|
39504
39641
|
rerender && this.render();
|
|
39505
39642
|
}
|
|
39506
39643
|
setViewBox(x, y, w, h, rerender) {
|
|
@@ -39522,10 +39659,11 @@
|
|
|
39522
39659
|
});
|
|
39523
39660
|
isRerender && this.render();
|
|
39524
39661
|
}
|
|
39525
|
-
setDpr(dpr) {
|
|
39662
|
+
setDpr(dpr, rerender = true) {
|
|
39526
39663
|
this.forEachChildren(c => {
|
|
39527
39664
|
c.setDpr(dpr);
|
|
39528
39665
|
});
|
|
39666
|
+
rerender && this.render();
|
|
39529
39667
|
}
|
|
39530
39668
|
setOrigin(x, y) {
|
|
39531
39669
|
throw new Error('暂不支持');
|
|
@@ -39576,13 +39714,7 @@
|
|
|
39576
39714
|
}
|
|
39577
39715
|
renderTo(window, params) {
|
|
39578
39716
|
this.forEachChildren((layer, i) => {
|
|
39579
|
-
layer.drawTo(window, {
|
|
39580
|
-
...params,
|
|
39581
|
-
renderService: this.renderService,
|
|
39582
|
-
background: layer === this.defaultLayer ? this.background : undefined,
|
|
39583
|
-
clear: i === 0,
|
|
39584
|
-
updateBounds: !!this.dirtyBounds
|
|
39585
|
-
});
|
|
39717
|
+
layer.drawTo(window, Object.assign(Object.assign({}, params), { renderService: this.renderService, background: layer === this.defaultLayer ? this.background : undefined, clear: i === 0, updateBounds: !!this.dirtyBounds }));
|
|
39586
39718
|
});
|
|
39587
39719
|
}
|
|
39588
39720
|
renderToNewWindow(fullImage = true, viewBox) {
|
|
@@ -39614,8 +39746,8 @@
|
|
|
39614
39746
|
this.renderTo(window, {
|
|
39615
39747
|
x,
|
|
39616
39748
|
y,
|
|
39617
|
-
width: window.width,
|
|
39618
|
-
height: window.height
|
|
39749
|
+
width: viewBox ? viewBox.x2 : window.width,
|
|
39750
|
+
height: viewBox ? viewBox.y2 : window.height
|
|
39619
39751
|
});
|
|
39620
39752
|
return window;
|
|
39621
39753
|
}
|
|
@@ -39756,16 +39888,10 @@
|
|
|
39756
39888
|
return createRichText(params ? params.attribute : {});
|
|
39757
39889
|
}
|
|
39758
39890
|
VRichText.Text = function (params) {
|
|
39759
|
-
return {
|
|
39760
|
-
type: 'rich/text',
|
|
39761
|
-
...params
|
|
39762
|
-
};
|
|
39891
|
+
return Object.assign({ type: 'rich/text' }, params);
|
|
39763
39892
|
};
|
|
39764
39893
|
VRichText.Image = function (params) {
|
|
39765
|
-
return {
|
|
39766
|
-
type: 'rich/image',
|
|
39767
|
-
...params
|
|
39768
|
-
};
|
|
39894
|
+
return Object.assign({ type: 'rich/image' }, params);
|
|
39769
39895
|
};
|
|
39770
39896
|
|
|
39771
39897
|
function flatten(list, out) {
|
|
@@ -39775,7 +39901,7 @@
|
|
|
39775
39901
|
out.push(list);
|
|
39776
39902
|
}
|
|
39777
39903
|
function jsx(type, config, ...children) {
|
|
39778
|
-
const { key, attribute,
|
|
39904
|
+
const _a = config || {}, { key, attribute, stateProxy } = _a, props = __rest(_a, ["key", "attribute", "stateProxy"]);
|
|
39779
39905
|
let c = type;
|
|
39780
39906
|
if (isString(type)) {
|
|
39781
39907
|
c = graphicCreator[type];
|
|
@@ -39784,9 +39910,11 @@
|
|
|
39784
39910
|
if (children.length) {
|
|
39785
39911
|
flatten(children.length === 1 ? children[0] : children, childrenList);
|
|
39786
39912
|
}
|
|
39787
|
-
|
|
39788
|
-
const g = c.prototype.type ? new c(attribute) : c(config);
|
|
39913
|
+
const g = c.name === 'Group' ? new c(attribute) : c(config);
|
|
39789
39914
|
parseToGraphic(g, childrenList, props);
|
|
39915
|
+
if (stateProxy) {
|
|
39916
|
+
g.stateProxy = stateProxy;
|
|
39917
|
+
}
|
|
39790
39918
|
return g;
|
|
39791
39919
|
}
|
|
39792
39920
|
function parseToGraphic(g, childrenList, props) {
|
|
@@ -39806,7 +39934,7 @@
|
|
|
39806
39934
|
}
|
|
39807
39935
|
if (isGraphic) {
|
|
39808
39936
|
childrenList.forEach((c) => {
|
|
39809
|
-
g.add(c);
|
|
39937
|
+
c && g.add(c);
|
|
39810
39938
|
});
|
|
39811
39939
|
Object.keys(props).forEach(k => {
|
|
39812
39940
|
const en = REACT_TO_CANOPUS_EVENTS[k];
|
|
@@ -39821,16 +39949,9 @@
|
|
|
39821
39949
|
}
|
|
39822
39950
|
}
|
|
39823
39951
|
}
|
|
39824
|
-
|
|
39825
|
-
constructor() {
|
|
39826
|
-
this.children = [];
|
|
39827
|
-
}
|
|
39828
|
-
add(g) {
|
|
39829
|
-
this.children.push(g);
|
|
39830
|
-
}
|
|
39831
|
-
}
|
|
39952
|
+
const Fragment = Group;
|
|
39832
39953
|
|
|
39833
|
-
const version = "0.15.0-alpha.
|
|
39954
|
+
const version = "0.15.0-alpha.11";
|
|
39834
39955
|
|
|
39835
39956
|
exports.ACustomAnimate = ACustomAnimate;
|
|
39836
39957
|
exports.ARC3D_NUMBER_TYPE = ARC3D_NUMBER_TYPE;
|
|
@@ -40038,6 +40159,7 @@
|
|
|
40038
40159
|
exports.bezierCurversToPath = bezierCurversToPath;
|
|
40039
40160
|
exports.binarySplitPolygon = binarySplitPolygon;
|
|
40040
40161
|
exports.bindContributionProvider = bindContributionProvider;
|
|
40162
|
+
exports.bindContributionProviderNoSingletonScope = bindContributionProviderNoSingletonScope;
|
|
40041
40163
|
exports.boundStroke = boundStroke;
|
|
40042
40164
|
exports.builtinSymbols = builtinSymbols;
|
|
40043
40165
|
exports.builtinSymbolsMap = builtinSymbolsMap;
|