@visactor/vrender 0.15.0-alpha.2 → 0.15.0-alpha.21
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.d.ts +6 -0
- package/cjs/core/contributions/env/base-contribution.js +12 -0
- package/cjs/core/contributions/env/base-contribution.js.map +1 -1
- package/cjs/core/contributions/env/browser-contribution.d.ts +6 -0
- package/cjs/core/contributions/env/browser-contribution.js +19 -0
- 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 +11 -5
- package/cjs/core/contributions/window/base-contribution.js +10 -0
- package/cjs/core/contributions/window/base-contribution.js.map +1 -1
- package/cjs/core/contributions/window/browser-contribution.d.ts +11 -0
- package/cjs/core/contributions/window/browser-contribution.js +33 -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.d.ts +6 -0
- package/cjs/core/global.js +9 -0
- package/cjs/core/global.js.map +1 -1
- package/cjs/core/graphic-utils.d.ts +2 -0
- package/cjs/core/graphic-utils.js +13 -0
- 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 +27 -12
- package/cjs/core/stage.js.map +1 -1
- package/cjs/core/window.d.ts +6 -0
- package/cjs/core/window.js +10 -1
- 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 +13 -11
- 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.d.ts +1 -0
- 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 +9 -4
- 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 +4 -1
- package/cjs/graphic/graphic.js +58 -23
- 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.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 +35 -25
- 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 +2 -1
- package/cjs/index.js +2 -2
- 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.d.ts +1 -0
- 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.d.ts +12 -0
- 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.d.ts +1 -0
- 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 +15 -3
- 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.d.ts +9 -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 +12 -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.d.ts +2 -2
- package/cjs/picker/canvas-picker-service.js +20 -3
- 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 +1 -1
- package/cjs/picker/contributions/canvas-picker/glyph-picker.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/group-picker.d.ts +7 -0
- package/cjs/picker/contributions/canvas-picker/group-picker.js +26 -0
- package/cjs/picker/contributions/canvas-picker/group-picker.js.map +1 -0
- 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 +3 -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.d.ts +1 -0
- package/cjs/picker/contributions/constants.js +9 -8
- 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 +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.d.ts +1 -1
- package/cjs/picker/global-picker-service.js +12 -5
- package/cjs/picker/global-picker-service.js.map +1 -1
- package/cjs/picker/index.js.map +1 -1
- package/cjs/picker/math-picker-service.d.ts +2 -2
- package/cjs/picker/math-picker-service.js +1 -1
- package/cjs/picker/math-picker-service.js.map +1 -1
- package/cjs/picker/pick-interceptor.d.ts +12 -0
- package/cjs/picker/pick-interceptor.js +30 -2
- package/cjs/picker/pick-interceptor.js.map +1 -1
- package/cjs/picker/pick-modules.js +2 -0
- package/cjs/picker/pick-modules.js.map +1 -1
- package/cjs/picker/picker-service.d.ts +1 -1
- package/cjs/picker/picker-service.js +15 -6
- 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 +8 -4
- 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 +32 -22
- 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.d.ts +2 -0
- package/cjs/render/contributions/render/draw-interceptor.js +8 -0
- 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 +50 -23
- 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 +1373 -933
- 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.d.ts +6 -0
- package/es/core/contributions/env/base-contribution.js +12 -0
- package/es/core/contributions/env/base-contribution.js.map +1 -1
- package/es/core/contributions/env/browser-contribution.d.ts +6 -0
- package/es/core/contributions/env/browser-contribution.js +19 -0
- 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 +11 -5
- package/es/core/contributions/window/base-contribution.js +10 -0
- package/es/core/contributions/window/base-contribution.js.map +1 -1
- package/es/core/contributions/window/browser-contribution.d.ts +11 -0
- package/es/core/contributions/window/browser-contribution.js +33 -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.d.ts +6 -0
- package/es/core/global.js +9 -0
- package/es/core/global.js.map +1 -1
- package/es/core/graphic-utils.d.ts +2 -0
- package/es/core/graphic-utils.js +13 -0
- 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 +28 -11
- package/es/core/stage.js.map +1 -1
- package/es/core/window.d.ts +6 -0
- package/es/core/window.js +10 -1
- 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 +13 -11
- 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.d.ts +1 -0
- 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 +9 -4
- 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 +4 -1
- package/es/graphic/graphic.js +57 -23
- 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.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 +34 -26
- 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 +2 -1
- package/es/index.js +3 -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.d.ts +1 -0
- 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.d.ts +12 -0
- 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.d.ts +1 -0
- 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 +15 -3
- 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.d.ts +9 -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 +12 -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.d.ts +2 -2
- package/es/picker/canvas-picker-service.js +20 -3
- 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 +1 -1
- package/es/picker/contributions/canvas-picker/glyph-picker.js.map +1 -1
- package/es/picker/contributions/canvas-picker/group-picker.d.ts +7 -0
- package/es/picker/contributions/canvas-picker/group-picker.js +23 -0
- package/es/picker/contributions/canvas-picker/group-picker.js.map +1 -0
- 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 +6 -2
- 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.d.ts +1 -0
- package/es/picker/contributions/constants.js +2 -0
- 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 +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.d.ts +1 -1
- package/es/picker/global-picker-service.js +12 -5
- package/es/picker/global-picker-service.js.map +1 -1
- package/es/picker/index.js.map +1 -1
- package/es/picker/math-picker-service.d.ts +2 -2
- package/es/picker/math-picker-service.js +1 -1
- package/es/picker/math-picker-service.js.map +1 -1
- package/es/picker/pick-interceptor.d.ts +12 -0
- package/es/picker/pick-interceptor.js +32 -1
- package/es/picker/pick-interceptor.js.map +1 -1
- package/es/picker/pick-modules.js +4 -2
- package/es/picker/pick-modules.js.map +1 -1
- package/es/picker/picker-service.d.ts +1 -1
- package/es/picker/picker-service.js +15 -6
- 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 +8 -4
- 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 +31 -21
- 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.d.ts +2 -0
- package/es/render/contributions/render/draw-interceptor.js +8 -0
- 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 +49 -22
- 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 +7 -7
- 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)) {
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
var isCallable$h = isCallable$i;
|
|
345
345
|
var $documentAll = documentAll_1;
|
|
346
346
|
var documentAll = $documentAll.all;
|
|
347
|
-
var isObject$
|
|
347
|
+
var isObject$f = $documentAll.IS_HTMLDDA ? function (it) {
|
|
348
348
|
return _typeof(it) == 'object' ? it !== null : isCallable$h(it) || it === documentAll;
|
|
349
349
|
} : function (it) {
|
|
350
350
|
return _typeof(it) == 'object' ? it !== null : isCallable$h(it);
|
|
@@ -453,16 +453,16 @@
|
|
|
453
453
|
|
|
454
454
|
var call$7 = functionCall;
|
|
455
455
|
var isCallable$d = isCallable$i;
|
|
456
|
-
var isObject$
|
|
456
|
+
var isObject$e = isObject$f;
|
|
457
457
|
var $TypeError$7 = TypeError;
|
|
458
458
|
|
|
459
459
|
// `OrdinaryToPrimitive` abstract operation
|
|
460
460
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
461
461
|
var ordinaryToPrimitive$1 = function ordinaryToPrimitive(input, pref) {
|
|
462
462
|
var fn, val;
|
|
463
|
-
if (pref === 'string' && isCallable$d(fn = input.toString) && !isObject$
|
|
464
|
-
if (isCallable$d(fn = input.valueOf) && !isObject$
|
|
465
|
-
if (pref !== 'string' && isCallable$d(fn = input.toString) && !isObject$
|
|
463
|
+
if (pref === 'string' && isCallable$d(fn = input.toString) && !isObject$e(val = call$7(fn, input))) return val;
|
|
464
|
+
if (isCallable$d(fn = input.valueOf) && !isObject$e(val = call$7(fn, input))) return val;
|
|
465
|
+
if (pref !== 'string' && isCallable$d(fn = input.toString) && !isObject$e(val = call$7(fn, input))) return val;
|
|
466
466
|
throw $TypeError$7("Can't convert object to primitive value");
|
|
467
467
|
};
|
|
468
468
|
|
|
@@ -548,7 +548,7 @@
|
|
|
548
548
|
};
|
|
549
549
|
|
|
550
550
|
var call$6 = functionCall;
|
|
551
|
-
var isObject$
|
|
551
|
+
var isObject$d = isObject$f;
|
|
552
552
|
var isSymbol$1 = isSymbol$2;
|
|
553
553
|
var getMethod$2 = getMethod$3;
|
|
554
554
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
@@ -559,13 +559,13 @@
|
|
|
559
559
|
// `ToPrimitive` abstract operation
|
|
560
560
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
561
561
|
var toPrimitive$1 = function toPrimitive(input, pref) {
|
|
562
|
-
if (!isObject$
|
|
562
|
+
if (!isObject$d(input) || isSymbol$1(input)) return input;
|
|
563
563
|
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
564
564
|
var result;
|
|
565
565
|
if (exoticToPrim) {
|
|
566
566
|
if (pref === undefined) pref = 'default';
|
|
567
567
|
result = call$6(exoticToPrim, input, pref);
|
|
568
|
-
if (!isObject$
|
|
568
|
+
if (!isObject$d(result) || isSymbol$1(result)) return result;
|
|
569
569
|
throw $TypeError$6("Can't convert object to primitive value");
|
|
570
570
|
}
|
|
571
571
|
if (pref === undefined) pref = 'number';
|
|
@@ -583,10 +583,10 @@
|
|
|
583
583
|
};
|
|
584
584
|
|
|
585
585
|
var global$6 = global$d;
|
|
586
|
-
var isObject$
|
|
586
|
+
var isObject$c = isObject$f;
|
|
587
587
|
var document$1 = global$6.document;
|
|
588
588
|
// typeof document.createElement is 'object' in old IE
|
|
589
|
-
var EXISTS$1 = isObject$
|
|
589
|
+
var EXISTS$1 = isObject$c(document$1) && isObject$c(document$1.createElement);
|
|
590
590
|
var documentCreateElement$1 = function documentCreateElement(it) {
|
|
591
591
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
592
592
|
};
|
|
@@ -643,13 +643,13 @@
|
|
|
643
643
|
}).prototype != 42;
|
|
644
644
|
});
|
|
645
645
|
|
|
646
|
-
var isObject$
|
|
646
|
+
var isObject$b = isObject$f;
|
|
647
647
|
var $String$2 = String;
|
|
648
648
|
var $TypeError$5 = TypeError;
|
|
649
649
|
|
|
650
650
|
// `Assert: Type(argument) is Object`
|
|
651
651
|
var anObject$i = function anObject(argument) {
|
|
652
|
-
if (isObject$
|
|
652
|
+
if (isObject$b(argument)) return argument;
|
|
653
653
|
throw $TypeError$5($String$2(argument) + ' is not an object');
|
|
654
654
|
};
|
|
655
655
|
|
|
@@ -753,7 +753,7 @@
|
|
|
753
753
|
|
|
754
754
|
var NATIVE_WEAK_MAP$1 = weakMapBasicDetection;
|
|
755
755
|
var global$4 = global$d;
|
|
756
|
-
var isObject$
|
|
756
|
+
var isObject$a = isObject$f;
|
|
757
757
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
|
|
758
758
|
var hasOwn$7 = hasOwnProperty_1;
|
|
759
759
|
var shared$1 = sharedStore;
|
|
@@ -762,14 +762,14 @@
|
|
|
762
762
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
763
763
|
var TypeError$1 = global$4.TypeError;
|
|
764
764
|
var WeakMap$1 = global$4.WeakMap;
|
|
765
|
-
var set, get$
|
|
765
|
+
var set, get$2, has$2;
|
|
766
766
|
var enforce = function enforce(it) {
|
|
767
|
-
return has$
|
|
767
|
+
return has$2(it) ? get$2(it) : set(it, {});
|
|
768
768
|
};
|
|
769
769
|
var getterFor = function getterFor(TYPE) {
|
|
770
770
|
return function (it) {
|
|
771
771
|
var state;
|
|
772
|
-
if (!isObject$
|
|
772
|
+
if (!isObject$a(it) || (state = get$2(it)).type !== TYPE) {
|
|
773
773
|
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
774
774
|
}
|
|
775
775
|
return state;
|
|
@@ -788,10 +788,10 @@
|
|
|
788
788
|
store$2.set(it, metadata);
|
|
789
789
|
return metadata;
|
|
790
790
|
};
|
|
791
|
-
get$
|
|
791
|
+
get$2 = function get(it) {
|
|
792
792
|
return store$2.get(it) || {};
|
|
793
793
|
};
|
|
794
|
-
has$
|
|
794
|
+
has$2 = function has(it) {
|
|
795
795
|
return store$2.has(it);
|
|
796
796
|
};
|
|
797
797
|
} else {
|
|
@@ -803,17 +803,17 @@
|
|
|
803
803
|
createNonEnumerableProperty$2(it, STATE, metadata);
|
|
804
804
|
return metadata;
|
|
805
805
|
};
|
|
806
|
-
get$
|
|
806
|
+
get$2 = function get(it) {
|
|
807
807
|
return hasOwn$7(it, STATE) ? it[STATE] : {};
|
|
808
808
|
};
|
|
809
|
-
has$
|
|
809
|
+
has$2 = function has(it) {
|
|
810
810
|
return hasOwn$7(it, STATE);
|
|
811
811
|
};
|
|
812
812
|
}
|
|
813
813
|
var internalState = {
|
|
814
814
|
set: set,
|
|
815
|
-
get: get$
|
|
816
|
-
has: has$
|
|
815
|
+
get: get$2,
|
|
816
|
+
has: has$2,
|
|
817
817
|
enforce: enforce,
|
|
818
818
|
getterFor: getterFor
|
|
819
819
|
};
|
|
@@ -1185,7 +1185,7 @@
|
|
|
1185
1185
|
});
|
|
1186
1186
|
|
|
1187
1187
|
var fails$6 = fails$g;
|
|
1188
|
-
var isObject$
|
|
1188
|
+
var isObject$9 = isObject$f;
|
|
1189
1189
|
var classof$4 = classofRaw$2;
|
|
1190
1190
|
var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible;
|
|
1191
1191
|
|
|
@@ -1198,7 +1198,7 @@
|
|
|
1198
1198
|
// `Object.isExtensible` method
|
|
1199
1199
|
// https://tc39.es/ecma262/#sec-object.isextensible
|
|
1200
1200
|
var objectIsExtensible = FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE ? function isExtensible(it) {
|
|
1201
|
-
if (!isObject$
|
|
1201
|
+
if (!isObject$9(it)) return false;
|
|
1202
1202
|
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$4(it) == 'ArrayBuffer') return false;
|
|
1203
1203
|
return $isExtensible ? $isExtensible(it) : true;
|
|
1204
1204
|
} : $isExtensible;
|
|
@@ -1212,7 +1212,7 @@
|
|
|
1212
1212
|
var $$b = _export;
|
|
1213
1213
|
var uncurryThis$d = functionUncurryThis;
|
|
1214
1214
|
var hiddenKeys$1 = hiddenKeys$5;
|
|
1215
|
-
var isObject$
|
|
1215
|
+
var isObject$8 = isObject$f;
|
|
1216
1216
|
var hasOwn$3 = hasOwnProperty_1;
|
|
1217
1217
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1218
1218
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
@@ -1235,7 +1235,7 @@
|
|
|
1235
1235
|
|
|
1236
1236
|
var fastKey$1 = function fastKey(it, create) {
|
|
1237
1237
|
// return a primitive with prefix
|
|
1238
|
-
if (!isObject$
|
|
1238
|
+
if (!isObject$8(it)) return _typeof(it) == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
|
1239
1239
|
if (!hasOwn$3(it, METADATA)) {
|
|
1240
1240
|
// can't set metadata to uncaught frozen object
|
|
1241
1241
|
if (!isExtensible$1(it)) return 'F';
|
|
@@ -1591,7 +1591,7 @@
|
|
|
1591
1591
|
}() : undefined);
|
|
1592
1592
|
|
|
1593
1593
|
var isCallable$5 = isCallable$i;
|
|
1594
|
-
var isObject$
|
|
1594
|
+
var isObject$7 = isObject$f;
|
|
1595
1595
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
1596
1596
|
|
|
1597
1597
|
// makes subclassing work correct for wrapped built-ins
|
|
@@ -1601,7 +1601,7 @@
|
|
|
1601
1601
|
// it can work only with native `setPrototypeOf`
|
|
1602
1602
|
setPrototypeOf$1 &&
|
|
1603
1603
|
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
1604
|
-
isCallable$5(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$
|
|
1604
|
+
isCallable$5(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$7(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) setPrototypeOf$1($this, NewTargetPrototype);
|
|
1605
1605
|
return $this;
|
|
1606
1606
|
};
|
|
1607
1607
|
|
|
@@ -1615,7 +1615,7 @@
|
|
|
1615
1615
|
var anInstance$2 = anInstance$3;
|
|
1616
1616
|
var isCallable$4 = isCallable$i;
|
|
1617
1617
|
var isNullOrUndefined$3 = isNullOrUndefined$7;
|
|
1618
|
-
var isObject$
|
|
1618
|
+
var isObject$6 = isObject$f;
|
|
1619
1619
|
var fails$4 = fails$g;
|
|
1620
1620
|
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
|
|
1621
1621
|
var setToStringTag$2 = setToStringTag$3;
|
|
@@ -1634,11 +1634,11 @@
|
|
|
1634
1634
|
uncurriedNativeMethod(this, value === 0 ? 0 : value);
|
|
1635
1635
|
return this;
|
|
1636
1636
|
} : KEY == 'delete' ? function (key) {
|
|
1637
|
-
return IS_WEAK && !isObject$
|
|
1637
|
+
return IS_WEAK && !isObject$6(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
1638
1638
|
} : KEY == 'get' ? function get(key) {
|
|
1639
|
-
return IS_WEAK && !isObject$
|
|
1639
|
+
return IS_WEAK && !isObject$6(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
1640
1640
|
} : KEY == 'has' ? function has(key) {
|
|
1641
|
-
return IS_WEAK && !isObject$
|
|
1641
|
+
return IS_WEAK && !isObject$6(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
1642
1642
|
} : function set(key, value) {
|
|
1643
1643
|
uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
|
|
1644
1644
|
return this;
|
|
@@ -1869,7 +1869,7 @@
|
|
|
1869
1869
|
|
|
1870
1870
|
var fails$2 = fails$g;
|
|
1871
1871
|
var isCallable$2 = isCallable$i;
|
|
1872
|
-
var isObject$
|
|
1872
|
+
var isObject$5 = isObject$f;
|
|
1873
1873
|
var getPrototypeOf$4 = objectGetPrototypeOf;
|
|
1874
1874
|
var defineBuiltIn$1 = defineBuiltIn$5;
|
|
1875
1875
|
var wellKnownSymbol$3 = wellKnownSymbol$b;
|
|
@@ -1889,7 +1889,7 @@
|
|
|
1889
1889
|
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1892
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$5(IteratorPrototype$2) || fails$2(function () {
|
|
1893
1893
|
var test = {};
|
|
1894
1894
|
// FF44- legacy iterators case
|
|
1895
1895
|
return IteratorPrototype$2[ITERATOR$1].call(test) !== test;
|
|
@@ -2280,7 +2280,7 @@
|
|
|
2280
2280
|
// `IsArray` abstract operation
|
|
2281
2281
|
// https://tc39.es/ecma262/#sec-isarray
|
|
2282
2282
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
2283
|
-
var isArray$
|
|
2283
|
+
var isArray$4 = Array.isArray || function isArray(argument) {
|
|
2284
2284
|
return classof$1(argument) == 'Array';
|
|
2285
2285
|
};
|
|
2286
2286
|
|
|
@@ -2333,9 +2333,9 @@
|
|
|
2333
2333
|
}) || called;
|
|
2334
2334
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
2335
2335
|
|
|
2336
|
-
var isArray$
|
|
2336
|
+
var isArray$3 = isArray$4;
|
|
2337
2337
|
var isConstructor = isConstructor$1;
|
|
2338
|
-
var isObject$
|
|
2338
|
+
var isObject$4 = isObject$f;
|
|
2339
2339
|
var wellKnownSymbol = wellKnownSymbol$b;
|
|
2340
2340
|
var SPECIES = wellKnownSymbol('species');
|
|
2341
2341
|
var $Array = Array;
|
|
@@ -2344,10 +2344,10 @@
|
|
|
2344
2344
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
2345
2345
|
var arraySpeciesConstructor$1 = function arraySpeciesConstructor(originalArray) {
|
|
2346
2346
|
var C;
|
|
2347
|
-
if (isArray$
|
|
2347
|
+
if (isArray$3(originalArray)) {
|
|
2348
2348
|
C = originalArray.constructor;
|
|
2349
2349
|
// cross-realm fallback
|
|
2350
|
-
if (isConstructor(C) && (C === $Array || isArray$
|
|
2350
|
+
if (isConstructor(C) && (C === $Array || isArray$3(C.prototype))) C = undefined;else if (isObject$4(C)) {
|
|
2351
2351
|
C = C[SPECIES];
|
|
2352
2352
|
if (C === null) C = undefined;
|
|
2353
2353
|
}
|
|
@@ -2454,7 +2454,7 @@
|
|
|
2454
2454
|
var anInstance = anInstance$3;
|
|
2455
2455
|
var anObject$9 = anObject$i;
|
|
2456
2456
|
var isNullOrUndefined$1 = isNullOrUndefined$7;
|
|
2457
|
-
var isObject$
|
|
2457
|
+
var isObject$3 = isObject$f;
|
|
2458
2458
|
var iterate$1 = iterate$4;
|
|
2459
2459
|
var ArrayIterationModule = arrayIteration;
|
|
2460
2460
|
var hasOwn = hasOwnProperty_1;
|
|
@@ -2526,7 +2526,7 @@
|
|
|
2526
2526
|
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
|
|
2527
2527
|
'delete': function _delete(key) {
|
|
2528
2528
|
var state = getInternalState(this);
|
|
2529
|
-
if (!isObject$
|
|
2529
|
+
if (!isObject$3(key)) return false;
|
|
2530
2530
|
var data = getWeakData(key);
|
|
2531
2531
|
if (data === true) return uncaughtFrozenStore(state)['delete'](key);
|
|
2532
2532
|
return data && hasOwn(data, state.id) && delete data[state.id];
|
|
@@ -2536,7 +2536,7 @@
|
|
|
2536
2536
|
// https://tc39.es/ecma262/#sec-weakset.prototype.has
|
|
2537
2537
|
has: function has(key) {
|
|
2538
2538
|
var state = getInternalState(this);
|
|
2539
|
-
if (!isObject$
|
|
2539
|
+
if (!isObject$3(key)) return false;
|
|
2540
2540
|
var data = getWeakData(key);
|
|
2541
2541
|
if (data === true) return uncaughtFrozenStore(state).has(key);
|
|
2542
2542
|
return data && hasOwn(data, state.id);
|
|
@@ -2547,7 +2547,7 @@
|
|
|
2547
2547
|
// https://tc39.es/ecma262/#sec-weakmap.prototype.get
|
|
2548
2548
|
get: function get(key) {
|
|
2549
2549
|
var state = getInternalState(this);
|
|
2550
|
-
if (isObject$
|
|
2550
|
+
if (isObject$3(key)) {
|
|
2551
2551
|
var data = getWeakData(key);
|
|
2552
2552
|
if (data === true) return uncaughtFrozenStore(state).get(key);
|
|
2553
2553
|
return data ? data[state.id] : undefined;
|
|
@@ -2576,13 +2576,13 @@
|
|
|
2576
2576
|
var InternalMetadataModule = internalMetadataExports;
|
|
2577
2577
|
var collection = collection$2;
|
|
2578
2578
|
var collectionWeak = collectionWeak$1;
|
|
2579
|
-
var isObject$
|
|
2579
|
+
var isObject$2 = isObject$f;
|
|
2580
2580
|
var enforceInternalState = internalState.enforce;
|
|
2581
2581
|
var fails = fails$g;
|
|
2582
2582
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
2583
2583
|
var $Object = Object;
|
|
2584
2584
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
2585
|
-
var isArray$
|
|
2585
|
+
var isArray$2 = Array.isArray;
|
|
2586
2586
|
// eslint-disable-next-line es/no-object-isextensible -- safe
|
|
2587
2587
|
var isExtensible = $Object.isExtensible;
|
|
2588
2588
|
// eslint-disable-next-line es/no-object-isfrozen -- safe
|
|
@@ -2629,7 +2629,7 @@
|
|
|
2629
2629
|
var nativeGet = uncurryThis$5(WeakMapPrototype.get);
|
|
2630
2630
|
defineBuiltIns(WeakMapPrototype, {
|
|
2631
2631
|
'delete': function _delete(key) {
|
|
2632
|
-
if (isObject$
|
|
2632
|
+
if (isObject$2(key) && !isExtensible(key)) {
|
|
2633
2633
|
var state = enforceInternalState(this);
|
|
2634
2634
|
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
2635
2635
|
return nativeDelete(this, key) || state.frozen['delete'](key);
|
|
@@ -2637,7 +2637,7 @@
|
|
|
2637
2637
|
return nativeDelete(this, key);
|
|
2638
2638
|
},
|
|
2639
2639
|
has: function has(key) {
|
|
2640
|
-
if (isObject$
|
|
2640
|
+
if (isObject$2(key) && !isExtensible(key)) {
|
|
2641
2641
|
var state = enforceInternalState(this);
|
|
2642
2642
|
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
2643
2643
|
return nativeHas(this, key) || state.frozen.has(key);
|
|
@@ -2645,7 +2645,7 @@
|
|
|
2645
2645
|
return nativeHas(this, key);
|
|
2646
2646
|
},
|
|
2647
2647
|
get: function get(key) {
|
|
2648
|
-
if (isObject$
|
|
2648
|
+
if (isObject$2(key) && !isExtensible(key)) {
|
|
2649
2649
|
var state = enforceInternalState(this);
|
|
2650
2650
|
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
2651
2651
|
return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
|
|
@@ -2653,7 +2653,7 @@
|
|
|
2653
2653
|
return nativeGet(this, key);
|
|
2654
2654
|
},
|
|
2655
2655
|
set: function set(key, value) {
|
|
2656
|
-
if (isObject$
|
|
2656
|
+
if (isObject$2(key) && !isExtensible(key)) {
|
|
2657
2657
|
var state = enforceInternalState(this);
|
|
2658
2658
|
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
2659
2659
|
nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
|
|
@@ -2666,7 +2666,7 @@
|
|
|
2666
2666
|
defineBuiltIns(WeakMapPrototype, {
|
|
2667
2667
|
set: function set(key, value) {
|
|
2668
2668
|
var arrayIntegrityLevel;
|
|
2669
|
-
if (isArray$
|
|
2669
|
+
if (isArray$2(key)) {
|
|
2670
2670
|
if (isFrozen(key)) arrayIntegrityLevel = FROZEN;else if (isSealed(key)) arrayIntegrityLevel = SEALED;
|
|
2671
2671
|
}
|
|
2672
2672
|
nativeSet(this, key, value);
|
|
@@ -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) {
|
|
@@ -6322,6 +6362,24 @@
|
|
|
6322
6362
|
}
|
|
6323
6363
|
return this.envContribution.createDom(params);
|
|
6324
6364
|
}
|
|
6365
|
+
getElementTop(dom, baseWindow = false) {
|
|
6366
|
+
if (!this._env) {
|
|
6367
|
+
this.setEnv('browser');
|
|
6368
|
+
}
|
|
6369
|
+
return this.envContribution.getElementTop(dom, baseWindow);
|
|
6370
|
+
}
|
|
6371
|
+
getElementLeft(dom, baseWindow = false) {
|
|
6372
|
+
if (!this._env) {
|
|
6373
|
+
this.setEnv('browser');
|
|
6374
|
+
}
|
|
6375
|
+
return this.envContribution.getElementLeft(dom, baseWindow);
|
|
6376
|
+
}
|
|
6377
|
+
getElementTopLeft(dom, baseWindow = false) {
|
|
6378
|
+
if (!this._env) {
|
|
6379
|
+
this.setEnv('browser');
|
|
6380
|
+
}
|
|
6381
|
+
return this.envContribution.getElementTopLeft(dom, baseWindow);
|
|
6382
|
+
}
|
|
6325
6383
|
};
|
|
6326
6384
|
exports.DefaultGlobal = __decorate([
|
|
6327
6385
|
injectable(),
|
|
@@ -6650,79 +6708,96 @@
|
|
|
6650
6708
|
var isType = function isType(value, type) {
|
|
6651
6709
|
return Object.prototype.toString.call(value) === "[object ".concat(type, "]");
|
|
6652
6710
|
};
|
|
6711
|
+
var isType$1 = isType;
|
|
6653
6712
|
|
|
6654
6713
|
var isBoolean = function isBoolean(value) {
|
|
6655
6714
|
var fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
6656
|
-
return fuzzy ? "boolean" == typeof value : !0 === value || !1 === value || isType(value, "Boolean");
|
|
6715
|
+
return fuzzy ? "boolean" == typeof value : !0 === value || !1 === value || isType$1(value, "Boolean");
|
|
6657
6716
|
};
|
|
6717
|
+
var isBoolean$1 = isBoolean;
|
|
6658
6718
|
|
|
6659
6719
|
var isFunction = function isFunction(value) {
|
|
6660
6720
|
return "function" == typeof value;
|
|
6661
6721
|
};
|
|
6722
|
+
var isFunction$1 = isFunction;
|
|
6662
6723
|
|
|
6663
6724
|
var isNil = function isNil(value) {
|
|
6664
6725
|
return null == value;
|
|
6665
6726
|
};
|
|
6727
|
+
var isNil$1 = isNil;
|
|
6666
6728
|
|
|
6667
6729
|
var isValid = function isValid(value) {
|
|
6668
6730
|
return null != value;
|
|
6669
6731
|
};
|
|
6732
|
+
var isValid$1 = isValid;
|
|
6670
6733
|
|
|
6671
6734
|
var isObject = function isObject(value) {
|
|
6672
6735
|
var type = _typeof(value);
|
|
6673
6736
|
return null !== value && "object" === type || "function" === type;
|
|
6674
6737
|
};
|
|
6738
|
+
var isObject$1 = isObject;
|
|
6675
6739
|
|
|
6676
6740
|
var isUndefined = function isUndefined(value) {
|
|
6677
6741
|
return void 0 === value;
|
|
6678
6742
|
};
|
|
6743
|
+
var isUndefined$1 = isUndefined;
|
|
6679
6744
|
|
|
6680
6745
|
var isString = function isString(value) {
|
|
6681
6746
|
var fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
6682
6747
|
var type = _typeof(value);
|
|
6683
|
-
return fuzzy ? "string" === type : "string" === type || isType(value, "String");
|
|
6748
|
+
return fuzzy ? "string" === type : "string" === type || isType$1(value, "String");
|
|
6684
6749
|
};
|
|
6750
|
+
var isString$1 = isString;
|
|
6685
6751
|
|
|
6686
6752
|
var isArray = function isArray(value) {
|
|
6687
|
-
return Array.isArray ? Array.isArray(value) : isType(value, "Array");
|
|
6753
|
+
return Array.isArray ? Array.isArray(value) : isType$1(value, "Array");
|
|
6688
6754
|
};
|
|
6755
|
+
var isArray$1 = isArray;
|
|
6689
6756
|
|
|
6690
6757
|
var isDate = function isDate(value) {
|
|
6691
|
-
return isType(value, "Date");
|
|
6758
|
+
return isType$1(value, "Date");
|
|
6692
6759
|
};
|
|
6760
|
+
var isDate$1 = isDate;
|
|
6693
6761
|
|
|
6694
|
-
var isNumber = function isNumber(value) {
|
|
6762
|
+
var isNumber$1 = function isNumber(value) {
|
|
6695
6763
|
var fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
6696
6764
|
var type = _typeof(value);
|
|
6697
|
-
return fuzzy ? "number" === type : "number" === type || isType(value, "Number");
|
|
6765
|
+
return fuzzy ? "number" === type : "number" === type || isType$1(value, "Number");
|
|
6698
6766
|
};
|
|
6767
|
+
var isNumber$2 = isNumber$1;
|
|
6699
6768
|
|
|
6700
6769
|
var isValidNumber = function isValidNumber(value) {
|
|
6701
|
-
return isNumber(value) && Number.isFinite(value);
|
|
6770
|
+
return isNumber$2(value) && Number.isFinite(value);
|
|
6702
6771
|
};
|
|
6772
|
+
var isValidNumber$1 = isValidNumber;
|
|
6703
6773
|
|
|
6704
6774
|
var isValidUrl = function isValidUrl(value) {
|
|
6705
6775
|
return new RegExp(/^(http(s)?:\/\/)\w+[^\s]+(\.[^\s]+){1,}$/).test(value);
|
|
6706
6776
|
};
|
|
6777
|
+
var isValidUrl$1 = isValidUrl;
|
|
6707
6778
|
|
|
6708
6779
|
var isRegExp = function isRegExp(value) {
|
|
6709
|
-
return isType(value, "RegExp");
|
|
6780
|
+
return isType$1(value, "RegExp");
|
|
6710
6781
|
};
|
|
6782
|
+
var isRegExp$1 = isRegExp;
|
|
6711
6783
|
|
|
6712
6784
|
var isBase64 = function isBase64(value) {
|
|
6713
6785
|
return new RegExp(/^data:image\/(?:gif|png|jpeg|bmp|webp)(?:;charset=utf-8)?;base64,(?:[A-Za-z0-9]|[+/])+={0,2}/g).test(value);
|
|
6714
6786
|
};
|
|
6787
|
+
var isBase64$1 = isBase64;
|
|
6715
6788
|
|
|
6716
6789
|
var get = function get(obj, path, defaultValue) {
|
|
6717
|
-
var paths = isString(path) ? path.split(".") : path;
|
|
6790
|
+
var paths = isString$1(path) ? path.split(".") : path;
|
|
6718
6791
|
for (var p = 0; p < paths.length; p++) obj = obj ? obj[paths[p]] : void 0;
|
|
6719
6792
|
return void 0 === obj ? defaultValue : obj;
|
|
6720
6793
|
};
|
|
6794
|
+
var get$1 = get;
|
|
6721
6795
|
|
|
6722
6796
|
var hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
6723
6797
|
has = function has(object, key) {
|
|
6724
6798
|
return null != object && hasOwnProperty.call(object, key);
|
|
6725
6799
|
};
|
|
6800
|
+
var has$1 = has;
|
|
6726
6801
|
|
|
6727
6802
|
function getRegExpFlags(re) {
|
|
6728
6803
|
var flags = "";
|
|
@@ -6739,7 +6814,7 @@
|
|
|
6739
6814
|
if (0 === depth) return parent;
|
|
6740
6815
|
var child;
|
|
6741
6816
|
if ("object" != _typeof(parent)) return parent;
|
|
6742
|
-
if (isArray(parent) ? child = [] : isRegExp(parent) ? (child = new RegExp(parent.source, getRegExpFlags(parent)), parent.lastIndex && (child.lastIndex = parent.lastIndex)) : child = isDate(parent) ? new Date(parent.getTime()) : void 0 === prototype ? Object.create(Object.getPrototypeOf(parent)) : Object.create(prototype), circular) {
|
|
6817
|
+
if (isArray$1(parent) ? child = [] : isRegExp$1(parent) ? (child = new RegExp(parent.source, getRegExpFlags(parent)), parent.lastIndex && (child.lastIndex = parent.lastIndex)) : child = isDate$1(parent) ? new Date(parent.getTime()) : void 0 === prototype ? Object.create(Object.getPrototypeOf(parent)) : Object.create(prototype), circular) {
|
|
6743
6818
|
var index = allParents.indexOf(parent);
|
|
6744
6819
|
if (-1 !== index) return allChildren[index];
|
|
6745
6820
|
allParents.push(parent), allChildren.push(child);
|
|
@@ -6750,7 +6825,7 @@
|
|
|
6750
6825
|
}
|
|
6751
6826
|
|
|
6752
6827
|
function arrayEqual(a, b) {
|
|
6753
|
-
if (!isArray(a) || !isArray(b)) return !1;
|
|
6828
|
+
if (!isArray$1(a) || !isArray$1(b)) return !1;
|
|
6754
6829
|
if (a.length !== b.length) return !1;
|
|
6755
6830
|
for (var i = 0; i < a.length; i++) if (a[i] !== b[i]) return !1;
|
|
6756
6831
|
return !0;
|
|
@@ -6766,14 +6841,6 @@
|
|
|
6766
6841
|
return Math.abs(a - b) <= Math.max(abs, rel);
|
|
6767
6842
|
}
|
|
6768
6843
|
|
|
6769
|
-
var hasRaf = !1;
|
|
6770
|
-
try {
|
|
6771
|
-
hasRaf = "function" == typeof requestAnimationFrame && "function" == typeof cancelAnimationFrame;
|
|
6772
|
-
} catch (err) {
|
|
6773
|
-
hasRaf = !1;
|
|
6774
|
-
}
|
|
6775
|
-
hasRaf = !1;
|
|
6776
|
-
|
|
6777
6844
|
var epsilon = 1e-12;
|
|
6778
6845
|
var pi = Math.PI;
|
|
6779
6846
|
var halfPi$1 = pi / 2;
|
|
@@ -6834,12 +6901,12 @@
|
|
|
6834
6901
|
}, {
|
|
6835
6902
|
key: "add",
|
|
6836
6903
|
value: function add(point) {
|
|
6837
|
-
return isNumber(point) ? (this.x += point, void (this.y += point)) : (this.x += point.x, this.y += point.y, this);
|
|
6904
|
+
return isNumber$2(point) ? (this.x += point, void (this.y += point)) : (this.x += point.x, this.y += point.y, this);
|
|
6838
6905
|
}
|
|
6839
6906
|
}, {
|
|
6840
6907
|
key: "sub",
|
|
6841
6908
|
value: function sub(point) {
|
|
6842
|
-
return isNumber(point) ? (this.x -= point, void (this.y -= point)) : (this.x -= point.x, this.y -= point.y, this);
|
|
6909
|
+
return isNumber$2(point) ? (this.x -= point, void (this.y -= point)) : (this.x -= point.x, this.y -= point.y, this);
|
|
6843
6910
|
}
|
|
6844
6911
|
}, {
|
|
6845
6912
|
key: "multi",
|
|
@@ -6943,7 +7010,7 @@
|
|
|
6943
7010
|
key: "expand",
|
|
6944
7011
|
value: function expand() {
|
|
6945
7012
|
var d = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
6946
|
-
return isArray(d) ? (this.y1 -= d[0], this.x2 += d[1], this.y2 += d[2], this.x1 -= d[3]) : (this.x1 -= d, this.y1 -= d, this.x2 += d, this.y2 += d), this;
|
|
7013
|
+
return isArray$1(d) ? (this.y1 -= d[0], this.x2 += d[1], this.y2 += d[2], this.x1 -= d[3]) : (this.x1 -= d, this.y1 -= d, this.x2 += d, this.y2 += d), this;
|
|
6947
7014
|
}
|
|
6948
7015
|
}, {
|
|
6949
7016
|
key: "round",
|
|
@@ -7368,17 +7435,17 @@
|
|
|
7368
7435
|
var TextMeasure = /*#__PURE__*/function () {
|
|
7369
7436
|
function TextMeasure(option, textSpec) {
|
|
7370
7437
|
_classCallCheck(this, TextMeasure);
|
|
7371
|
-
this._numberCharSize = null, this._fullCharSize = null, this._letterCharSize = null, this._specialCharSizeMap = {}, this._canvas = null, this._context = null, this._contextSaved = !1, this._notSupportCanvas = !1, this._notSupportVRender = !1, this._userSpec = {}, this.specialCharSet = "-/: .,@%'\"~", this._option = option, this._userSpec = null != textSpec ? textSpec : {}, this.textSpec = this._initSpec(), isValid(option.specialCharSet) && (this.specialCharSet = option.specialCharSet), this._standardMethod = isValid(option.getTextBounds) ? this.fullMeasure.bind(this) : this.measureWithNaiveCanvas.bind(this);
|
|
7438
|
+
this._numberCharSize = null, this._fullCharSize = null, this._letterCharSize = null, this._specialCharSizeMap = {}, this._canvas = null, this._context = null, this._contextSaved = !1, this._notSupportCanvas = !1, this._notSupportVRender = !1, this._userSpec = {}, this.specialCharSet = "-/: .,@%'\"~", this._option = option, this._userSpec = null != textSpec ? textSpec : {}, this.textSpec = this._initSpec(), isValid$1(option.specialCharSet) && (this.specialCharSet = option.specialCharSet), this._standardMethod = isValid$1(option.getTextBounds) ? this.fullMeasure.bind(this) : this.measureWithNaiveCanvas.bind(this);
|
|
7372
7439
|
}
|
|
7373
7440
|
_createClass(TextMeasure, [{
|
|
7374
7441
|
key: "initContext",
|
|
7375
7442
|
value: function initContext() {
|
|
7376
7443
|
if (this._notSupportCanvas) return !1;
|
|
7377
|
-
if (isNil(this._canvas) && (isValid(this._option.getCanvasForMeasure) && (this._canvas = this._option.getCanvasForMeasure()), isNil(this._canvas) && "undefined" != typeof window && void 0 !== window.document && isValid(globalThis.document) && (this._canvas = globalThis.document.createElement("canvas"))), isNil(this._context) && isValid(this._canvas)) {
|
|
7444
|
+
if (isNil$1(this._canvas) && (isValid$1(this._option.getCanvasForMeasure) && (this._canvas = this._option.getCanvasForMeasure()), isNil$1(this._canvas) && "undefined" != typeof window && void 0 !== window.document && isValid$1(globalThis.document) && (this._canvas = globalThis.document.createElement("canvas"))), isNil$1(this._context) && isValid$1(this._canvas)) {
|
|
7378
7445
|
var context = this._canvas.getContext("2d");
|
|
7379
|
-
isValid(context) && (context.save(), context.font = getContextFont$1(this.textSpec), this._contextSaved = !0, this._context = context);
|
|
7446
|
+
isValid$1(context) && (context.save(), context.font = getContextFont$1(this.textSpec), this._contextSaved = !0, this._context = context);
|
|
7380
7447
|
}
|
|
7381
|
-
return !isNil(this._context) || (this._notSupportCanvas = !0, !1);
|
|
7448
|
+
return !isNil$1(this._context) || (this._notSupportCanvas = !0, !1);
|
|
7382
7449
|
}
|
|
7383
7450
|
}, {
|
|
7384
7451
|
key: "_initSpec",
|
|
@@ -7438,11 +7505,11 @@
|
|
|
7438
7505
|
}, {
|
|
7439
7506
|
key: "fullMeasure",
|
|
7440
7507
|
value: function fullMeasure(text) {
|
|
7441
|
-
if (isNil(text)) return {
|
|
7508
|
+
if (isNil$1(text)) return {
|
|
7442
7509
|
width: 0,
|
|
7443
7510
|
height: 0
|
|
7444
7511
|
};
|
|
7445
|
-
if (isNil(this._option.getTextBounds) || !this._notSupportVRender) return this.measureWithNaiveCanvas(text);
|
|
7512
|
+
if (isNil$1(this._option.getTextBounds) || !this._notSupportVRender) return this.measureWithNaiveCanvas(text);
|
|
7446
7513
|
var _this$textSpec = this.textSpec,
|
|
7447
7514
|
fontFamily = _this$textSpec.fontFamily,
|
|
7448
7515
|
fontSize = _this$textSpec.fontSize,
|
|
@@ -7507,7 +7574,7 @@
|
|
|
7507
7574
|
for (var i = 0; i < text.length; i++) {
|
|
7508
7575
|
var _char = text[i];
|
|
7509
7576
|
var size = this._measureSpecialChar(_char);
|
|
7510
|
-
isNil(size) && TextMeasure.NUMBERS_CHAR_SET.includes(_char) && (size = this._measureNumberChar()), isNil(size) && ["F", "W"].includes(eastAsianCharacterInfo(_char)) && (size = this._measureFullSizeChar()), isNil(size) && (size = this._measureLetterChar()), totalSize.width += size.width, totalSize.height = Math.max(totalSize.height, size.height);
|
|
7577
|
+
isNil$1(size) && TextMeasure.NUMBERS_CHAR_SET.includes(_char) && (size = this._measureNumberChar()), isNil$1(size) && ["F", "W"].includes(eastAsianCharacterInfo(_char)) && (size = this._measureFullSizeChar()), isNil$1(size) && (size = this._measureLetterChar()), totalSize.width += size.width, totalSize.height = Math.max(totalSize.height, size.height);
|
|
7511
7578
|
}
|
|
7512
7579
|
return totalSize;
|
|
7513
7580
|
}
|
|
@@ -7543,9 +7610,9 @@
|
|
|
7543
7610
|
width: 0,
|
|
7544
7611
|
height: 0
|
|
7545
7612
|
};
|
|
7546
|
-
if (isNil(text)) return defaultResult;
|
|
7547
|
-
if (isArray(text)) {
|
|
7548
|
-
var textArr = text.filter(isValid).map(function (s) {
|
|
7613
|
+
if (isNil$1(text)) return defaultResult;
|
|
7614
|
+
if (isArray$1(text)) {
|
|
7615
|
+
var textArr = text.filter(isValid$1).map(function (s) {
|
|
7549
7616
|
return s.toString();
|
|
7550
7617
|
});
|
|
7551
7618
|
return 0 === textArr.length ? defaultResult : 1 === textArr.length ? processor(textArr[0]) : {
|
|
@@ -7560,7 +7627,7 @@
|
|
|
7560
7627
|
}, {
|
|
7561
7628
|
key: "_measureNumberChar",
|
|
7562
7629
|
value: function _measureNumberChar() {
|
|
7563
|
-
if (isNil(this._numberCharSize)) {
|
|
7630
|
+
if (isNil$1(this._numberCharSize)) {
|
|
7564
7631
|
var numberBounds = this._standardMethod(TextMeasure.NUMBERS_CHAR_SET);
|
|
7565
7632
|
this._numberCharSize = {
|
|
7566
7633
|
width: numberBounds.width / TextMeasure.NUMBERS_CHAR_SET.length,
|
|
@@ -7572,12 +7639,12 @@
|
|
|
7572
7639
|
}, {
|
|
7573
7640
|
key: "_measureFullSizeChar",
|
|
7574
7641
|
value: function _measureFullSizeChar() {
|
|
7575
|
-
return isNil(this._fullCharSize) && (this._fullCharSize = this._standardMethod(TextMeasure.FULL_SIZE_CHAR)), this._fullCharSize;
|
|
7642
|
+
return isNil$1(this._fullCharSize) && (this._fullCharSize = this._standardMethod(TextMeasure.FULL_SIZE_CHAR)), this._fullCharSize;
|
|
7576
7643
|
}
|
|
7577
7644
|
}, {
|
|
7578
7645
|
key: "_measureLetterChar",
|
|
7579
7646
|
value: function _measureLetterChar() {
|
|
7580
|
-
if (isNil(this._letterCharSize)) {
|
|
7647
|
+
if (isNil$1(this._letterCharSize)) {
|
|
7581
7648
|
var alphabetBounds = this._standardMethod(TextMeasure.ALPHABET_CHAR_SET);
|
|
7582
7649
|
this._letterCharSize = {
|
|
7583
7650
|
width: alphabetBounds.width / TextMeasure.ALPHABET_CHAR_SET.length,
|
|
@@ -7589,23 +7656,18 @@
|
|
|
7589
7656
|
}, {
|
|
7590
7657
|
key: "_measureSpecialChar",
|
|
7591
7658
|
value: function _measureSpecialChar(_char3) {
|
|
7592
|
-
return isValid(this._specialCharSizeMap[_char3]) ? this._specialCharSizeMap[_char3] : this.specialCharSet.includes(_char3) ? (this._specialCharSizeMap[_char3] = this._standardMethod(_char3), this._specialCharSizeMap[_char3]) : null;
|
|
7659
|
+
return isValid$1(this._specialCharSizeMap[_char3]) ? this._specialCharSizeMap[_char3] : this.specialCharSet.includes(_char3) ? (this._specialCharSizeMap[_char3] = this._standardMethod(_char3), this._specialCharSizeMap[_char3]) : null;
|
|
7593
7660
|
}
|
|
7594
7661
|
}, {
|
|
7595
7662
|
key: "release",
|
|
7596
7663
|
value: function release() {
|
|
7597
|
-
isValid(this._canvas) && (this._canvas = null), isValid(this._context) && (this._contextSaved && (this._context.restore(), this._contextSaved = !1), this._context = null);
|
|
7664
|
+
isValid$1(this._canvas) && (this._canvas = null), isValid$1(this._context) && (this._contextSaved && (this._context.restore(), this._contextSaved = !1), this._context = null);
|
|
7598
7665
|
}
|
|
7599
7666
|
}]);
|
|
7600
7667
|
return TextMeasure;
|
|
7601
7668
|
}();
|
|
7602
7669
|
TextMeasure.ALPHABET_CHAR_SET = "abcdefghijklmnopqrstuvwxyz", TextMeasure.NUMBERS_CHAR_SET = "0123456789", TextMeasure.FULL_SIZE_CHAR = "字";
|
|
7603
7670
|
|
|
7604
|
-
var LoggerLevel;
|
|
7605
|
-
!function (LoggerLevel) {
|
|
7606
|
-
LoggerLevel[LoggerLevel.None = 0] = "None", LoggerLevel[LoggerLevel.Error = 1] = "Error", LoggerLevel[LoggerLevel.Warn = 2] = "Warn", LoggerLevel[LoggerLevel.Info = 3] = "Info", LoggerLevel[LoggerLevel.Debug = 4] = "Debug";
|
|
7607
|
-
}(LoggerLevel || (LoggerLevel = {}));
|
|
7608
|
-
|
|
7609
7671
|
const circleThreshold = tau - 1e-8;
|
|
7610
7672
|
class BoundsContext {
|
|
7611
7673
|
constructor(bounds) {
|
|
@@ -7823,13 +7885,15 @@
|
|
|
7823
7885
|
UpdateTag[UpdateTag["UPDATE_SHAPE"] = 2] = "UPDATE_SHAPE";
|
|
7824
7886
|
UpdateTag[UpdateTag["CLEAR_SHAPE"] = 253] = "CLEAR_SHAPE";
|
|
7825
7887
|
UpdateTag[UpdateTag["UPDATE_SHAPE_AND_BOUNDS"] = 3] = "UPDATE_SHAPE_AND_BOUNDS";
|
|
7826
|
-
UpdateTag[UpdateTag["INIT"] =
|
|
7888
|
+
UpdateTag[UpdateTag["INIT"] = 179] = "INIT";
|
|
7827
7889
|
UpdateTag[UpdateTag["CLEAR_BOUNDS"] = 254] = "CLEAR_BOUNDS";
|
|
7828
7890
|
UpdateTag[UpdateTag["UPDATE_GLOBAL_MATRIX"] = 32] = "UPDATE_GLOBAL_MATRIX";
|
|
7829
7891
|
UpdateTag[UpdateTag["CLEAR_GLOBAL_MATRIX"] = 223] = "CLEAR_GLOBAL_MATRIX";
|
|
7830
7892
|
UpdateTag[UpdateTag["UPDATE_LOCAL_MATRIX"] = 16] = "UPDATE_LOCAL_MATRIX";
|
|
7831
7893
|
UpdateTag[UpdateTag["CLEAR_LOCAL_MATRIX"] = 239] = "CLEAR_LOCAL_MATRIX";
|
|
7832
7894
|
UpdateTag[UpdateTag["UPDATE_GLOBAL_LOCAL_MATRIX"] = 48] = "UPDATE_GLOBAL_LOCAL_MATRIX";
|
|
7895
|
+
UpdateTag[UpdateTag["UPDATE_LAYOUT"] = 128] = "UPDATE_LAYOUT";
|
|
7896
|
+
UpdateTag[UpdateTag["CLEAR_LAYOUT"] = 127] = "CLEAR_LAYOUT";
|
|
7833
7897
|
})(exports.UpdateTag || (exports.UpdateTag = {}));
|
|
7834
7898
|
exports.IContainPointMode = void 0;
|
|
7835
7899
|
(function (IContainPointMode) {
|
|
@@ -9264,6 +9328,7 @@
|
|
|
9264
9328
|
angle: 0,
|
|
9265
9329
|
alpha: 0,
|
|
9266
9330
|
beta: 0,
|
|
9331
|
+
scaleCenter: [0, 0],
|
|
9267
9332
|
anchor: [0, 0],
|
|
9268
9333
|
anchor3d: [0, 0],
|
|
9269
9334
|
postMatrix: new Matrix()
|
|
@@ -9287,11 +9352,7 @@
|
|
|
9287
9352
|
strokeBoundsBuffer: 2,
|
|
9288
9353
|
stroke: false
|
|
9289
9354
|
};
|
|
9290
|
-
const DefaultStrokeStyle = {
|
|
9291
|
-
outerBorder: { ...commonStroke, distance: 0 },
|
|
9292
|
-
innerBorder: { ...commonStroke, distance: 0 },
|
|
9293
|
-
...commonStroke
|
|
9294
|
-
};
|
|
9355
|
+
const DefaultStrokeStyle = Object.assign({ outerBorder: Object.assign(Object.assign({}, commonStroke), { distance: 0 }), innerBorder: Object.assign(Object.assign({}, commonStroke), { distance: 0 }) }, commonStroke);
|
|
9295
9356
|
const DefaultTextStyle = {
|
|
9296
9357
|
text: '',
|
|
9297
9358
|
maxLineWidth: Infinity,
|
|
@@ -9309,44 +9370,17 @@
|
|
|
9309
9370
|
lineThrough: 0,
|
|
9310
9371
|
scaleIn3d: false,
|
|
9311
9372
|
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
|
|
9373
|
+
wordBreak: 'break-all',
|
|
9374
|
+
ignoreBuf: false
|
|
9328
9375
|
};
|
|
9376
|
+
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
9377
|
const DefaultConnectAttribute = {
|
|
9330
9378
|
connectedType: 'none',
|
|
9331
9379
|
connectedStyle: {},
|
|
9332
9380
|
connectedX: NaN,
|
|
9333
9381
|
connectedY: NaN
|
|
9334
9382
|
};
|
|
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
|
-
};
|
|
9383
|
+
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, shadowRootIdx: 1 }, DefaultStyle), DefaultTransform);
|
|
9350
9384
|
function addAttributeToPrototype(obj, c, keys) {
|
|
9351
9385
|
keys.forEach(key => {
|
|
9352
9386
|
c.prototype[key] = obj[key];
|
|
@@ -9355,145 +9389,23 @@
|
|
|
9355
9389
|
function rewriteProto(obj, c) {
|
|
9356
9390
|
Object.setPrototypeOf(obj, c);
|
|
9357
9391
|
}
|
|
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: () => {
|
|
9392
|
+
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 });
|
|
9393
|
+
const DefaultAreaAttribute = Object.assign(Object.assign(Object.assign({}, DefaultAttribute), DefaultConnectAttribute), { points: [], segments: [], curveType: 'linear', clipRange: 1 });
|
|
9394
|
+
const DefaultCircleAttribute = Object.assign(Object.assign({}, DefaultAttribute), { radius: 1, startAngle: 0, endAngle: pi2 });
|
|
9395
|
+
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' });
|
|
9396
|
+
const DefaultGlyphAttribute = Object.assign(Object.assign({}, DefaultAttribute), { path: '', width: 0, height: 0, cornerRadius: 0, clip: false });
|
|
9397
|
+
const DefaultLineAttribute = Object.assign(Object.assign(Object.assign({}, DefaultAttribute), DefaultConnectAttribute), { points: [], segments: [], curveType: 'linear', clipRange: 1, clipRangeByDimension: 'default', closePath: false });
|
|
9398
|
+
const DefaultPathAttribute = Object.assign(Object.assign({}, DefaultAttribute), { path: new CustomPath2D(), customPath: () => {
|
|
9420
9399
|
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
|
-
};
|
|
9400
|
+
} });
|
|
9401
|
+
const DefaultPolygonAttribute = Object.assign(Object.assign({}, DefaultAttribute), { points: [], cornerRadius: 0 });
|
|
9402
|
+
const DefaultRectAttribute = Object.assign(Object.assign({}, DefaultAttribute), { width: 0, height: 0, strokeBoundsBuffer: 0, cornerRadius: 0 });
|
|
9403
|
+
const DefaultRect3dAttribute = Object.assign(Object.assign({}, DefaultAttribute), { width: 0, height: 0, cornerRadius: 0, length: 0 });
|
|
9404
|
+
const DefaultSymbolAttribute = Object.assign(Object.assign({}, DefaultAttribute), { symbolType: 'circle', size: 10, keepDirIn3d: true });
|
|
9405
|
+
const DefaultTextAttribute = Object.assign(Object.assign(Object.assign({}, DefaultAttribute), DefaultTextStyle), { strokeBoundsBuffer: 0, keepDirIn3d: true });
|
|
9406
|
+
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 });
|
|
9407
|
+
const DefaultImageAttribute = Object.assign(Object.assign({ repeatX: 'no-repeat', repeatY: 'no-repeat', image: '', width: 0, height: 0 }, DefaultAttribute), { fill: true, cornerRadius: 0 });
|
|
9408
|
+
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
9409
|
|
|
9498
9410
|
class Application {
|
|
9499
9411
|
}
|
|
@@ -9743,7 +9655,7 @@
|
|
|
9743
9655
|
clipedData.width = this.measureTextWidth(clipedData.str, options);
|
|
9744
9656
|
}
|
|
9745
9657
|
}
|
|
9746
|
-
out.push({
|
|
9658
|
+
out.push(Object.assign(Object.assign({}, verticalList[i]), { text: clipedData.str, width: clipedData.width }));
|
|
9747
9659
|
length += clipedData.width;
|
|
9748
9660
|
}
|
|
9749
9661
|
return {
|
|
@@ -9888,6 +9800,9 @@
|
|
|
9888
9800
|
function isNotAroundZero(val) {
|
|
9889
9801
|
return val > EPSILON || val < -EPSILON;
|
|
9890
9802
|
}
|
|
9803
|
+
function isNumber(data) {
|
|
9804
|
+
return typeof data === 'number' && Number.isFinite(data);
|
|
9805
|
+
}
|
|
9891
9806
|
const _v0 = [0, 0];
|
|
9892
9807
|
const _v1 = [0, 0];
|
|
9893
9808
|
const _v2 = [0, 0];
|
|
@@ -10628,16 +10543,10 @@
|
|
|
10628
10543
|
}
|
|
10629
10544
|
createTextMeasureInstance(textSpec, option, getCanvasForMeasure) {
|
|
10630
10545
|
this.configure(this.global, this.global.env);
|
|
10631
|
-
return new TextMeasure({
|
|
10632
|
-
defaultFontParams: {
|
|
10546
|
+
return new TextMeasure(Object.assign({ defaultFontParams: {
|
|
10633
10547
|
fontFamily: DefaultTextStyle.fontFamily,
|
|
10634
10548
|
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);
|
|
10549
|
+
}, getCanvasForMeasure: getCanvasForMeasure || (() => this.canvas), getTextBounds: undefined, specialCharSet: '-/: .,@%\'"~' + TextMeasure.ALPHABET_CHAR_SET + TextMeasure.ALPHABET_CHAR_SET.toUpperCase() }, (option !== null && option !== void 0 ? option : {})), textSpec);
|
|
10641
10550
|
}
|
|
10642
10551
|
};
|
|
10643
10552
|
exports.DefaultGraphicUtil = __decorate([
|
|
@@ -10685,12 +10594,34 @@
|
|
|
10685
10594
|
this.outTargetMatrix.multiply(_matrix.a, _matrix.b, _matrix.c, _matrix.d, _matrix.e, _matrix.f);
|
|
10686
10595
|
return this;
|
|
10687
10596
|
}
|
|
10597
|
+
rotateMatrix(angle, center) {
|
|
10598
|
+
const sMatrix = this.outSourceMatrix;
|
|
10599
|
+
_matrix.setValue(sMatrix.a, sMatrix.b, sMatrix.c, sMatrix.d, sMatrix.e, sMatrix.f);
|
|
10600
|
+
this.outTargetMatrix.reset();
|
|
10601
|
+
if (center) {
|
|
10602
|
+
const { x, y } = center;
|
|
10603
|
+
this.outTargetMatrix.translate(x, y);
|
|
10604
|
+
this.outTargetMatrix.rotate(angle);
|
|
10605
|
+
this.outTargetMatrix.translate(-x, -y);
|
|
10606
|
+
}
|
|
10607
|
+
else {
|
|
10608
|
+
this.outTargetMatrix.rotate(angle);
|
|
10609
|
+
}
|
|
10610
|
+
this.outTargetMatrix.multiply(_matrix.a, _matrix.b, _matrix.c, _matrix.d, _matrix.e, _matrix.f);
|
|
10611
|
+
return this;
|
|
10612
|
+
}
|
|
10688
10613
|
scale(sx, sy, center) {
|
|
10689
10614
|
if (this.mode === TransformMode.matrix) {
|
|
10690
10615
|
return this.scaleMatrix(sx, sy, center);
|
|
10691
10616
|
}
|
|
10692
10617
|
return this;
|
|
10693
10618
|
}
|
|
10619
|
+
rotate(angle, center) {
|
|
10620
|
+
if (this.mode === TransformMode.matrix) {
|
|
10621
|
+
return this.rotateMatrix(angle, center);
|
|
10622
|
+
}
|
|
10623
|
+
return this;
|
|
10624
|
+
}
|
|
10694
10625
|
translateMatrix(dx, dy) {
|
|
10695
10626
|
const sMatrix = this.outSourceMatrix;
|
|
10696
10627
|
_matrix.setValue(sMatrix.a, sMatrix.b, sMatrix.c, sMatrix.d, sMatrix.e, sMatrix.f);
|
|
@@ -11014,35 +10945,37 @@
|
|
|
11014
10945
|
}
|
|
11015
10946
|
}
|
|
11016
10947
|
}
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
breakTag
|
|
11025
|
-
|
|
11026
|
-
|
|
11027
|
-
|
|
10948
|
+
forEachChildrenAsync(cb, reverse = false) {
|
|
10949
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10950
|
+
if (reverse) {
|
|
10951
|
+
let child = this._lastChild;
|
|
10952
|
+
let i = 0;
|
|
10953
|
+
while (child) {
|
|
10954
|
+
let breakTag = cb(child, i++);
|
|
10955
|
+
if (breakTag.then) {
|
|
10956
|
+
breakTag = yield breakTag;
|
|
10957
|
+
}
|
|
10958
|
+
if (breakTag) {
|
|
10959
|
+
return;
|
|
10960
|
+
}
|
|
10961
|
+
child = child._prev;
|
|
11028
10962
|
}
|
|
11029
|
-
child = child._prev;
|
|
11030
10963
|
}
|
|
11031
|
-
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11035
|
-
|
|
11036
|
-
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
11040
|
-
|
|
11041
|
-
|
|
10964
|
+
else {
|
|
10965
|
+
let child = this._firstChild;
|
|
10966
|
+
let i = 0;
|
|
10967
|
+
while (child) {
|
|
10968
|
+
let breakTag = cb(child, i++);
|
|
10969
|
+
if (breakTag.then) {
|
|
10970
|
+
breakTag = yield breakTag;
|
|
10971
|
+
}
|
|
10972
|
+
if (breakTag) {
|
|
10973
|
+
return;
|
|
10974
|
+
}
|
|
10975
|
+
child = child._next;
|
|
11042
10976
|
}
|
|
11043
|
-
child = child._next;
|
|
11044
10977
|
}
|
|
11045
|
-
}
|
|
10978
|
+
});
|
|
11046
10979
|
}
|
|
11047
10980
|
forEach(cb) {
|
|
11048
10981
|
return this.forEachChildren(cb);
|
|
@@ -11456,11 +11389,11 @@
|
|
|
11456
11389
|
return this.removeChild(child);
|
|
11457
11390
|
}
|
|
11458
11391
|
addEventListener(type, listener, options) {
|
|
11459
|
-
const capture = (isBoolean(options, true) && options) || (isObject(options) && options.capture);
|
|
11460
|
-
const once = isObject(options) && options.once;
|
|
11461
|
-
const context = isFunction(listener) ? undefined : listener;
|
|
11392
|
+
const capture = (isBoolean$1(options, true) && options) || (isObject$1(options) && options.capture);
|
|
11393
|
+
const once = isObject$1(options) && options.once;
|
|
11394
|
+
const context = isFunction$1(listener) ? undefined : listener;
|
|
11462
11395
|
type = capture ? `${type}capture` : type;
|
|
11463
|
-
listener = isFunction(listener) ? listener : listener.handleEvent;
|
|
11396
|
+
listener = isFunction$1(listener) ? listener : listener.handleEvent;
|
|
11464
11397
|
if (once) {
|
|
11465
11398
|
super.once(type, listener, context);
|
|
11466
11399
|
}
|
|
@@ -11473,11 +11406,11 @@
|
|
|
11473
11406
|
return this.addEventListener(type, listener, options);
|
|
11474
11407
|
}
|
|
11475
11408
|
removeEventListener(type, listener, options) {
|
|
11476
|
-
const capture = (isBoolean(options, true) && options) || (isObject(options) && options.capture);
|
|
11477
|
-
const context = isFunction(listener) ? undefined : listener;
|
|
11409
|
+
const capture = (isBoolean$1(options, true) && options) || (isObject$1(options) && options.capture);
|
|
11410
|
+
const context = isFunction$1(listener) ? undefined : listener;
|
|
11478
11411
|
type = capture ? `${type}capture` : type;
|
|
11479
|
-
listener = isFunction(listener) ? listener : listener.handleEvent;
|
|
11480
|
-
const once = isObject(options) && options.once;
|
|
11412
|
+
listener = isFunction$1(listener) ? listener : listener.handleEvent;
|
|
11413
|
+
const once = isObject$1(options) && options.once;
|
|
11481
11414
|
super.off(type, listener, context, once);
|
|
11482
11415
|
return this;
|
|
11483
11416
|
}
|
|
@@ -11485,7 +11418,7 @@
|
|
|
11485
11418
|
return this.removeEventListener(type, listener, options);
|
|
11486
11419
|
}
|
|
11487
11420
|
once(type, listener, options) {
|
|
11488
|
-
if (isObject(options)) {
|
|
11421
|
+
if (isObject$1(options)) {
|
|
11489
11422
|
options.once = true;
|
|
11490
11423
|
return this.addEventListener(type, listener, options);
|
|
11491
11424
|
}
|
|
@@ -12007,21 +11940,26 @@
|
|
|
12007
11940
|
this.dispatch.emit(type || e.type, e);
|
|
12008
11941
|
}
|
|
12009
11942
|
mapEvent(e) {
|
|
12010
|
-
var _a;
|
|
11943
|
+
var _a, _b, _c, _d, _e;
|
|
12011
11944
|
if (!this.rootTarget) {
|
|
12012
11945
|
return;
|
|
12013
11946
|
}
|
|
12014
11947
|
const mappers = this.mappingTable[e.type];
|
|
12015
11948
|
let target;
|
|
12016
11949
|
const cacheKey = `${e.canvasX}-${e.canvasY}`;
|
|
12017
|
-
if ((_a = this._prePointTargetCache) === null || _a === void 0 ? void 0 : _a[cacheKey])
|
|
11950
|
+
if (((_a = this._prePointTargetCache) === null || _a === void 0 ? void 0 : _a[cacheKey]) &&
|
|
11951
|
+
((_c = (_b = this._prePointTargetCache) === null || _b === void 0 ? void 0 : _b[cacheKey]) === null || _c === void 0 ? void 0 : _c.stage.renderCount) ===
|
|
11952
|
+
((_d = this._prePointTargetCache) === null || _d === void 0 ? void 0 : _d.stageRenderCount)) {
|
|
12018
11953
|
target = this._prePointTargetCache[cacheKey];
|
|
12019
11954
|
}
|
|
12020
11955
|
else {
|
|
12021
|
-
target = this.pickTarget(e.canvasX, e.canvasY);
|
|
12022
|
-
|
|
12023
|
-
|
|
12024
|
-
|
|
11956
|
+
target = this.pickTarget(e.canvasX, e.canvasY, e);
|
|
11957
|
+
if (!e.pickParams) {
|
|
11958
|
+
this._prePointTargetCache = {
|
|
11959
|
+
[cacheKey]: target,
|
|
11960
|
+
stageRenderCount: (_e = target === null || target === void 0 ? void 0 : target.stage.renderCount) !== null && _e !== void 0 ? _e : -1
|
|
11961
|
+
};
|
|
11962
|
+
}
|
|
12025
11963
|
}
|
|
12026
11964
|
if (mappers) {
|
|
12027
11965
|
for (let i = 0, j = mappers.length; i < j; i++) {
|
|
@@ -12106,7 +12044,7 @@
|
|
|
12106
12044
|
event.target = target;
|
|
12107
12045
|
}
|
|
12108
12046
|
else {
|
|
12109
|
-
event.target = this.pickTarget(event.global.x, event.global.y);
|
|
12047
|
+
event.target = this.pickTarget(event.global.x, event.global.y, event);
|
|
12110
12048
|
}
|
|
12111
12049
|
if (typeof type === 'string') {
|
|
12112
12050
|
event.type = type;
|
|
@@ -12120,7 +12058,7 @@
|
|
|
12120
12058
|
this.copyData(from, event);
|
|
12121
12059
|
event.nativeEvent = from.nativeEvent;
|
|
12122
12060
|
event.originalEvent = from;
|
|
12123
|
-
event.target = target || this.pickTarget(event.global.x, event.global.y);
|
|
12061
|
+
event.target = target || this.pickTarget(event.global.x, event.global.y, event);
|
|
12124
12062
|
return event;
|
|
12125
12063
|
}
|
|
12126
12064
|
clonePointerEvent(from, type) {
|
|
@@ -12184,6 +12122,7 @@
|
|
|
12184
12122
|
to.which = from.which;
|
|
12185
12123
|
to.layer.copyFrom(from.layer);
|
|
12186
12124
|
to.page.copyFrom(from.page);
|
|
12125
|
+
to.pickParams = from.pickParams;
|
|
12187
12126
|
}
|
|
12188
12127
|
trackingData(id) {
|
|
12189
12128
|
if (!this.mappingState.trackingData[id]) {
|
|
@@ -12237,9 +12176,7 @@
|
|
|
12237
12176
|
}
|
|
12238
12177
|
}
|
|
12239
12178
|
}
|
|
12240
|
-
|
|
12241
|
-
this.emitDelegation(e, type);
|
|
12242
|
-
}
|
|
12179
|
+
this.emitDelegation(e, type);
|
|
12243
12180
|
}
|
|
12244
12181
|
emitDelegation(e, type) {
|
|
12245
12182
|
const events = e.currentTarget._events;
|
|
@@ -12255,7 +12192,7 @@
|
|
|
12255
12192
|
}
|
|
12256
12193
|
}
|
|
12257
12194
|
}
|
|
12258
|
-
pickTarget(x, y) {
|
|
12195
|
+
pickTarget(x, y, e) {
|
|
12259
12196
|
let target;
|
|
12260
12197
|
const pickResult = this.rootTarget.pick(x, y);
|
|
12261
12198
|
if (pickResult && pickResult.graphic) {
|
|
@@ -12264,12 +12201,15 @@
|
|
|
12264
12201
|
else if (pickResult && pickResult.group) {
|
|
12265
12202
|
target = pickResult.group;
|
|
12266
12203
|
}
|
|
12267
|
-
else if (x >= 0 && x <= get(this.rootTarget, 'width') && y >= 0 && y <= get(this.rootTarget, 'height')) {
|
|
12204
|
+
else if (x >= 0 && x <= get$1(this.rootTarget, 'width') && y >= 0 && y <= get$1(this.rootTarget, 'height')) {
|
|
12268
12205
|
target = this.rootTarget;
|
|
12269
12206
|
}
|
|
12270
12207
|
else {
|
|
12271
12208
|
target = null;
|
|
12272
12209
|
}
|
|
12210
|
+
if (e) {
|
|
12211
|
+
e.pickParams = pickResult.params;
|
|
12212
|
+
}
|
|
12273
12213
|
return target;
|
|
12274
12214
|
}
|
|
12275
12215
|
}
|
|
@@ -12404,7 +12344,7 @@
|
|
|
12404
12344
|
Object.assign(domElement.style, style);
|
|
12405
12345
|
}
|
|
12406
12346
|
}
|
|
12407
|
-
else if (applyStyles && isString(mode) && !has(this.cursorStyles, mode)) {
|
|
12347
|
+
else if (applyStyles && isString$1(mode) && !has$1(this.cursorStyles, mode)) {
|
|
12408
12348
|
domElement.style.cursor = mode;
|
|
12409
12349
|
}
|
|
12410
12350
|
}
|
|
@@ -12522,46 +12462,46 @@
|
|
|
12522
12462
|
event.changedTouches.length) {
|
|
12523
12463
|
for (let i = 0, li = event.changedTouches.length; i < li; i++) {
|
|
12524
12464
|
const touch = event.changedTouches[i];
|
|
12525
|
-
if (isUndefined(touch.button)) {
|
|
12465
|
+
if (isUndefined$1(touch.button)) {
|
|
12526
12466
|
touch.button = 0;
|
|
12527
12467
|
}
|
|
12528
|
-
if (isUndefined(touch.buttons)) {
|
|
12468
|
+
if (isUndefined$1(touch.buttons)) {
|
|
12529
12469
|
touch.buttons = 1;
|
|
12530
12470
|
}
|
|
12531
|
-
if (isUndefined(touch.isPrimary)) {
|
|
12471
|
+
if (isUndefined$1(touch.isPrimary)) {
|
|
12532
12472
|
touch.isPrimary = event.touches.length === 1 && event.type === 'touchstart';
|
|
12533
12473
|
}
|
|
12534
|
-
if (isUndefined(touch.width)) {
|
|
12474
|
+
if (isUndefined$1(touch.width)) {
|
|
12535
12475
|
touch.width = touch.radiusX || 1;
|
|
12536
12476
|
}
|
|
12537
|
-
if (isUndefined(touch.height)) {
|
|
12477
|
+
if (isUndefined$1(touch.height)) {
|
|
12538
12478
|
touch.height = touch.radiusY || 1;
|
|
12539
12479
|
}
|
|
12540
|
-
if (isUndefined(touch.tiltX)) {
|
|
12480
|
+
if (isUndefined$1(touch.tiltX)) {
|
|
12541
12481
|
touch.tiltX = 0;
|
|
12542
12482
|
}
|
|
12543
|
-
if (isUndefined(touch.tiltY)) {
|
|
12483
|
+
if (isUndefined$1(touch.tiltY)) {
|
|
12544
12484
|
touch.tiltY = 0;
|
|
12545
12485
|
}
|
|
12546
|
-
if (isUndefined(touch.pointerType)) {
|
|
12486
|
+
if (isUndefined$1(touch.pointerType)) {
|
|
12547
12487
|
touch.pointerType = 'touch';
|
|
12548
12488
|
}
|
|
12549
|
-
if (isUndefined(touch.pointerId)) {
|
|
12489
|
+
if (isUndefined$1(touch.pointerId)) {
|
|
12550
12490
|
touch.pointerId = touch.identifier || 0;
|
|
12551
12491
|
}
|
|
12552
|
-
if (isUndefined(touch.pressure)) {
|
|
12492
|
+
if (isUndefined$1(touch.pressure)) {
|
|
12553
12493
|
touch.pressure = touch.force || 0.5;
|
|
12554
12494
|
}
|
|
12555
|
-
if (isUndefined(touch.twist)) {
|
|
12495
|
+
if (isUndefined$1(touch.twist)) {
|
|
12556
12496
|
touch.twist = 0;
|
|
12557
12497
|
}
|
|
12558
|
-
if (isUndefined(touch.tangentialPressure)) {
|
|
12498
|
+
if (isUndefined$1(touch.tangentialPressure)) {
|
|
12559
12499
|
touch.tangentialPressure = 0;
|
|
12560
12500
|
}
|
|
12561
|
-
if (isUndefined(touch.layerX)) {
|
|
12501
|
+
if (isUndefined$1(touch.layerX)) {
|
|
12562
12502
|
touch.layerX = touch.offsetX = touch.clientX;
|
|
12563
12503
|
}
|
|
12564
|
-
if (isUndefined(touch.layerY)) {
|
|
12504
|
+
if (isUndefined$1(touch.layerY)) {
|
|
12565
12505
|
touch.layerY = touch.offsetY = touch.clientY;
|
|
12566
12506
|
}
|
|
12567
12507
|
touch.isNormalized = true;
|
|
@@ -12572,34 +12512,34 @@
|
|
|
12572
12512
|
else if (!this.globalObj.supportsMouseEvents ||
|
|
12573
12513
|
(event instanceof MouseEvent && (!this.supportsPointerEvents || !(event instanceof PointerEvent)))) {
|
|
12574
12514
|
const tempEvent = event;
|
|
12575
|
-
if (isUndefined(tempEvent.isPrimary)) {
|
|
12515
|
+
if (isUndefined$1(tempEvent.isPrimary)) {
|
|
12576
12516
|
tempEvent.isPrimary = true;
|
|
12577
12517
|
}
|
|
12578
|
-
if (isUndefined(tempEvent.width)) {
|
|
12518
|
+
if (isUndefined$1(tempEvent.width)) {
|
|
12579
12519
|
tempEvent.width = 1;
|
|
12580
12520
|
}
|
|
12581
|
-
if (isUndefined(tempEvent.height)) {
|
|
12521
|
+
if (isUndefined$1(tempEvent.height)) {
|
|
12582
12522
|
tempEvent.height = 1;
|
|
12583
12523
|
}
|
|
12584
|
-
if (isUndefined(tempEvent.tiltX)) {
|
|
12524
|
+
if (isUndefined$1(tempEvent.tiltX)) {
|
|
12585
12525
|
tempEvent.tiltX = 0;
|
|
12586
12526
|
}
|
|
12587
|
-
if (isUndefined(tempEvent.tiltY)) {
|
|
12527
|
+
if (isUndefined$1(tempEvent.tiltY)) {
|
|
12588
12528
|
tempEvent.tiltY = 0;
|
|
12589
12529
|
}
|
|
12590
|
-
if (isUndefined(tempEvent.pointerType)) {
|
|
12530
|
+
if (isUndefined$1(tempEvent.pointerType)) {
|
|
12591
12531
|
tempEvent.pointerType = 'mouse';
|
|
12592
12532
|
}
|
|
12593
|
-
if (isUndefined(tempEvent.pointerId)) {
|
|
12533
|
+
if (isUndefined$1(tempEvent.pointerId)) {
|
|
12594
12534
|
tempEvent.pointerId = MOUSE_POINTER_ID;
|
|
12595
12535
|
}
|
|
12596
|
-
if (isUndefined(tempEvent.pressure)) {
|
|
12536
|
+
if (isUndefined$1(tempEvent.pressure)) {
|
|
12597
12537
|
tempEvent.pressure = 0.5;
|
|
12598
12538
|
}
|
|
12599
|
-
if (isUndefined(tempEvent.twist)) {
|
|
12539
|
+
if (isUndefined$1(tempEvent.twist)) {
|
|
12600
12540
|
tempEvent.twist = 0;
|
|
12601
12541
|
}
|
|
12602
|
-
if (isUndefined(tempEvent.tangentialPressure)) {
|
|
12542
|
+
if (isUndefined$1(tempEvent.tangentialPressure)) {
|
|
12603
12543
|
tempEvent.tangentialPressure = 0;
|
|
12604
12544
|
}
|
|
12605
12545
|
tempEvent.isNormalized = true;
|
|
@@ -13577,7 +13517,7 @@
|
|
|
13577
13517
|
this.animateTail = null;
|
|
13578
13518
|
this.animateCount = 0;
|
|
13579
13519
|
}
|
|
13580
|
-
removeAnimate(animate) {
|
|
13520
|
+
removeAnimate(animate, release = true) {
|
|
13581
13521
|
animate._onRemove && animate._onRemove.forEach(cb => cb());
|
|
13582
13522
|
if (animate === this.animateHead) {
|
|
13583
13523
|
this.animateHead = animate.nextAnimate;
|
|
@@ -13596,7 +13536,7 @@
|
|
|
13596
13536
|
animate.prevAnimate.nextAnimate = animate.nextAnimate;
|
|
13597
13537
|
animate.nextAnimate.prevAnimate = animate.prevAnimate;
|
|
13598
13538
|
}
|
|
13599
|
-
animate.release();
|
|
13539
|
+
release && animate.release();
|
|
13600
13540
|
return;
|
|
13601
13541
|
}
|
|
13602
13542
|
}
|
|
@@ -13684,6 +13624,13 @@
|
|
|
13684
13624
|
this._duringTime = 0;
|
|
13685
13625
|
this.timeline.addAnimate(this);
|
|
13686
13626
|
}
|
|
13627
|
+
setTimeline(timeline) {
|
|
13628
|
+
if (timeline === this.timeline) {
|
|
13629
|
+
return;
|
|
13630
|
+
}
|
|
13631
|
+
this.timeline.removeAnimate(this, false);
|
|
13632
|
+
timeline.addAnimate(this);
|
|
13633
|
+
}
|
|
13687
13634
|
getStartTime() {
|
|
13688
13635
|
return this._startTime;
|
|
13689
13636
|
}
|
|
@@ -14289,7 +14236,7 @@
|
|
|
14289
14236
|
const parseStroke = (stroke) => {
|
|
14290
14237
|
var _a;
|
|
14291
14238
|
let isFullStroke = true;
|
|
14292
|
-
if (isBoolean(stroke, true)) {
|
|
14239
|
+
if (isBoolean$1(stroke, true)) {
|
|
14293
14240
|
for (let i = 0; i < 4; i++) {
|
|
14294
14241
|
_strokeVec4[i] = stroke;
|
|
14295
14242
|
isFullStroke && (isFullStroke = !!((_a = _strokeVec4[i]) !== null && _a !== void 0 ? _a : true));
|
|
@@ -14318,7 +14265,7 @@
|
|
|
14318
14265
|
if (!padding) {
|
|
14319
14266
|
return 0;
|
|
14320
14267
|
}
|
|
14321
|
-
if (isArray(padding)) {
|
|
14268
|
+
if (isArray$1(padding)) {
|
|
14322
14269
|
if (padding.length === 0) {
|
|
14323
14270
|
return 0;
|
|
14324
14271
|
}
|
|
@@ -14469,7 +14416,7 @@
|
|
|
14469
14416
|
return transformKeys.includes(key);
|
|
14470
14417
|
};
|
|
14471
14418
|
function getAttributeFromDefaultAttrList(attr, key) {
|
|
14472
|
-
if (isArray(attr)) {
|
|
14419
|
+
if (isArray$1(attr)) {
|
|
14473
14420
|
let val;
|
|
14474
14421
|
for (let i = 0; i < attr.length && val === undefined; i++) {
|
|
14475
14422
|
val = attr[i][key];
|
|
@@ -14520,8 +14467,8 @@
|
|
|
14520
14467
|
}
|
|
14521
14468
|
onBind() {
|
|
14522
14469
|
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);
|
|
14470
|
+
this.fromNumber = isNumber$2((_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);
|
|
14471
|
+
this.toNumber = isNumber$2((_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
14472
|
if (!Number.isFinite(this.toNumber)) {
|
|
14526
14473
|
this.fromNumber = 0;
|
|
14527
14474
|
}
|
|
@@ -14685,7 +14632,7 @@
|
|
|
14685
14632
|
var _a, _b, _c, _d;
|
|
14686
14633
|
this.fromText = (_b = (_a = this.from) === null || _a === void 0 ? void 0 : _a.text) !== null && _b !== void 0 ? _b : '';
|
|
14687
14634
|
this.toText = (_d = (_c = this.to) === null || _c === void 0 ? void 0 : _c.text) !== null && _d !== void 0 ? _d : '';
|
|
14688
|
-
if (!this.toText || isArray(this.toText)) {
|
|
14635
|
+
if (!this.toText || isArray$1(this.toText)) {
|
|
14689
14636
|
this.valid = false;
|
|
14690
14637
|
}
|
|
14691
14638
|
else {
|
|
@@ -14733,16 +14680,7 @@
|
|
|
14733
14680
|
var _a;
|
|
14734
14681
|
const root = this.target.attachShadow();
|
|
14735
14682
|
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
|
-
});
|
|
14683
|
+
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
14684
|
this.rect = rect;
|
|
14747
14685
|
root.add(rect);
|
|
14748
14686
|
}
|
|
@@ -15846,7 +15784,7 @@
|
|
|
15846
15784
|
return res;
|
|
15847
15785
|
};
|
|
15848
15786
|
const samplingPoints = (points, count) => {
|
|
15849
|
-
const validatePoints = points.filter(point => point.defined !== false && isNumber(point.x) && isNumber(point.y));
|
|
15787
|
+
const validatePoints = points.filter(point => point.defined !== false && isNumber$2(point.x) && isNumber$2(point.y));
|
|
15850
15788
|
if (validatePoints.length === 0) {
|
|
15851
15789
|
return [];
|
|
15852
15790
|
}
|
|
@@ -15900,7 +15838,7 @@
|
|
|
15900
15838
|
return res.concat((_a = seg.points) !== null && _a !== void 0 ? _a : []);
|
|
15901
15839
|
}, []);
|
|
15902
15840
|
}
|
|
15903
|
-
const validatePoints = points.filter(point => point.defined !== false && isNumber(point.x) && isNumber(point.y));
|
|
15841
|
+
const validatePoints = points.filter(point => point.defined !== false && isNumber$2(point.x) && isNumber$2(point.y));
|
|
15904
15842
|
if (!validatePoints.length) {
|
|
15905
15843
|
return [];
|
|
15906
15844
|
}
|
|
@@ -16209,7 +16147,7 @@
|
|
|
16209
16147
|
|
|
16210
16148
|
const reverseNames = {};
|
|
16211
16149
|
for (const name in colorNames) {
|
|
16212
|
-
if (has(colorNames, name)) {
|
|
16150
|
+
if (has$1(colorNames, name)) {
|
|
16213
16151
|
reverseNames[colorNames[name]] = name;
|
|
16214
16152
|
}
|
|
16215
16153
|
}
|
|
@@ -16505,10 +16443,7 @@
|
|
|
16505
16443
|
if (fromGradient !== toGradient) {
|
|
16506
16444
|
const gradient = (fromGradient ? from : to);
|
|
16507
16445
|
const pure = (fromGradient ? to : from);
|
|
16508
|
-
const gradientFromPure = {
|
|
16509
|
-
...gradient,
|
|
16510
|
-
stops: gradient.stops.map(v => ({ ...v, color: colorArrayToString(pure) }))
|
|
16511
|
-
};
|
|
16446
|
+
const gradientFromPure = Object.assign(Object.assign({}, gradient), { stops: gradient.stops.map(v => (Object.assign(Object.assign({}, v), { color: colorArrayToString(pure) }))) });
|
|
16512
16447
|
return fromGradient
|
|
16513
16448
|
? interpolateColor(gradient, gradientFromPure, ratio, alphaChannel, cb)
|
|
16514
16449
|
: interpolateColor(gradientFromPure, gradient, ratio, alphaChannel, cb);
|
|
@@ -16711,7 +16646,7 @@
|
|
|
16711
16646
|
return;
|
|
16712
16647
|
}
|
|
16713
16648
|
const toValue = toAttrs[fromKey];
|
|
16714
|
-
if (!isNil(toValue) && !isNil(fromAttrs[fromKey]) && toValue !== fromAttrs[fromKey]) {
|
|
16649
|
+
if (!isNil$1(toValue) && !isNil$1(fromAttrs[fromKey]) && toValue !== fromAttrs[fromKey]) {
|
|
16715
16650
|
if (fromKey === 'fill' || fromKey === 'stroke') {
|
|
16716
16651
|
res.push({
|
|
16717
16652
|
from: typeof fromAttrs[fromKey] === 'string'
|
|
@@ -17264,6 +17199,7 @@
|
|
|
17264
17199
|
}
|
|
17265
17200
|
application.graphicService.beforeUpdateAABBBounds(this, this.stage, true, this._AABBBounds);
|
|
17266
17201
|
const bounds = this.doUpdateAABBBounds(full);
|
|
17202
|
+
this.addUpdateLayoutTag();
|
|
17267
17203
|
application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, true);
|
|
17268
17204
|
return bounds;
|
|
17269
17205
|
}
|
|
@@ -17378,13 +17314,14 @@
|
|
|
17378
17314
|
this.addUpdateBoundTag();
|
|
17379
17315
|
}
|
|
17380
17316
|
this.addUpdatePositionTag();
|
|
17317
|
+
this.addUpdateLayoutTag();
|
|
17381
17318
|
this.onAttributeUpdate(context);
|
|
17382
17319
|
}
|
|
17383
17320
|
setAttribute(key, value, forceUpdateTag, context) {
|
|
17384
17321
|
var _a;
|
|
17385
17322
|
const params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate({ [key]: value }, this.attribute, key, context);
|
|
17386
17323
|
if (!params) {
|
|
17387
|
-
if (!isNil((_a = this.normalAttrs) === null || _a === void 0 ? void 0 : _a[key])) {
|
|
17324
|
+
if (!isNil$1((_a = this.normalAttrs) === null || _a === void 0 ? void 0 : _a[key])) {
|
|
17388
17325
|
this.normalAttrs[key] = value;
|
|
17389
17326
|
}
|
|
17390
17327
|
else {
|
|
@@ -17397,6 +17334,7 @@
|
|
|
17397
17334
|
this.addUpdateBoundTag();
|
|
17398
17335
|
}
|
|
17399
17336
|
this.addUpdatePositionTag();
|
|
17337
|
+
this.addUpdateLayoutTag();
|
|
17400
17338
|
this.onAttributeUpdate(context);
|
|
17401
17339
|
}
|
|
17402
17340
|
}
|
|
@@ -17464,6 +17402,7 @@
|
|
|
17464
17402
|
}
|
|
17465
17403
|
this.addUpdatePositionTag();
|
|
17466
17404
|
this.addUpdateBoundTag();
|
|
17405
|
+
this.addUpdateLayoutTag();
|
|
17467
17406
|
this.onAttributeUpdate(context);
|
|
17468
17407
|
return this;
|
|
17469
17408
|
}
|
|
@@ -17485,6 +17424,7 @@
|
|
|
17485
17424
|
attribute.y = y;
|
|
17486
17425
|
this.addUpdatePositionTag();
|
|
17487
17426
|
this.addUpdateBoundTag();
|
|
17427
|
+
this.addUpdateLayoutTag();
|
|
17488
17428
|
this.onAttributeUpdate(context);
|
|
17489
17429
|
return this;
|
|
17490
17430
|
}
|
|
@@ -17520,6 +17460,7 @@
|
|
|
17520
17460
|
}
|
|
17521
17461
|
this.addUpdatePositionTag();
|
|
17522
17462
|
this.addUpdateBoundTag();
|
|
17463
|
+
this.addUpdateLayoutTag();
|
|
17523
17464
|
this.onAttributeUpdate(context);
|
|
17524
17465
|
return this;
|
|
17525
17466
|
}
|
|
@@ -17541,25 +17482,37 @@
|
|
|
17541
17482
|
attribute.scaleY = scaleY;
|
|
17542
17483
|
this.addUpdatePositionTag();
|
|
17543
17484
|
this.addUpdateBoundTag();
|
|
17485
|
+
this.addUpdateLayoutTag();
|
|
17544
17486
|
this.onAttributeUpdate(context);
|
|
17545
17487
|
return this;
|
|
17546
17488
|
}
|
|
17547
|
-
rotate(angle) {
|
|
17489
|
+
rotate(angle, rotateCenter) {
|
|
17548
17490
|
var _a;
|
|
17549
17491
|
if (angle === 0) {
|
|
17550
17492
|
return this;
|
|
17551
17493
|
}
|
|
17552
17494
|
const context = { type: exports.AttributeUpdateType.ROTATE };
|
|
17553
17495
|
const params = this.onBeforeAttributeUpdate &&
|
|
17554
|
-
this.onBeforeAttributeUpdate(angle, this.attribute, tempConstantAngleKey, context);
|
|
17496
|
+
this.onBeforeAttributeUpdate({ angle, rotateCenter }, this.attribute, tempConstantAngleKey, context);
|
|
17555
17497
|
if (params) {
|
|
17498
|
+
delete params.angle;
|
|
17556
17499
|
this._setAttributes(params, false, context);
|
|
17557
|
-
return this;
|
|
17558
17500
|
}
|
|
17559
17501
|
const attribute = this.attribute;
|
|
17560
|
-
|
|
17502
|
+
if (!rotateCenter) {
|
|
17503
|
+
attribute.angle = ((_a = attribute.angle) !== null && _a !== void 0 ? _a : DefaultTransform.angle) + angle;
|
|
17504
|
+
}
|
|
17505
|
+
else {
|
|
17506
|
+
let { postMatrix } = this.attribute;
|
|
17507
|
+
if (!postMatrix) {
|
|
17508
|
+
postMatrix = new Matrix();
|
|
17509
|
+
attribute.postMatrix = postMatrix;
|
|
17510
|
+
}
|
|
17511
|
+
application.transformUtil.fromMatrix(postMatrix, postMatrix).rotate(angle, rotateCenter);
|
|
17512
|
+
}
|
|
17561
17513
|
this.addUpdatePositionTag();
|
|
17562
17514
|
this.addUpdateBoundTag();
|
|
17515
|
+
this.addUpdateLayoutTag();
|
|
17563
17516
|
this.onAttributeUpdate(context);
|
|
17564
17517
|
return this;
|
|
17565
17518
|
}
|
|
@@ -17580,6 +17533,7 @@
|
|
|
17580
17533
|
attribute.angle = angle;
|
|
17581
17534
|
this.addUpdatePositionTag();
|
|
17582
17535
|
this.addUpdateBoundTag();
|
|
17536
|
+
this.addUpdateLayoutTag();
|
|
17583
17537
|
this.onAttributeUpdate(context);
|
|
17584
17538
|
return this;
|
|
17585
17539
|
}
|
|
@@ -17623,7 +17577,7 @@
|
|
|
17623
17577
|
if (!this.currentStates || !this.currentStates.length) {
|
|
17624
17578
|
return false;
|
|
17625
17579
|
}
|
|
17626
|
-
if (!isNil(stateName)) {
|
|
17580
|
+
if (!isNil$1(stateName)) {
|
|
17627
17581
|
return this.currentStates.includes(stateName);
|
|
17628
17582
|
}
|
|
17629
17583
|
return true;
|
|
@@ -17679,7 +17633,7 @@
|
|
|
17679
17633
|
this.animates.forEach(animate => {
|
|
17680
17634
|
if (animate.stateNames) {
|
|
17681
17635
|
const endProps = animate.getEndProps();
|
|
17682
|
-
if (has(endProps, key)) {
|
|
17636
|
+
if (has$1(endProps, key)) {
|
|
17683
17637
|
value = endProps[key];
|
|
17684
17638
|
}
|
|
17685
17639
|
}
|
|
@@ -17788,8 +17742,17 @@
|
|
|
17788
17742
|
clearUpdateGlobalPositionTag() {
|
|
17789
17743
|
this._updateTag &= exports.UpdateTag.CLEAR_GLOBAL_MATRIX;
|
|
17790
17744
|
}
|
|
17745
|
+
addUpdateLayoutTag() {
|
|
17746
|
+
this._updateTag |= exports.UpdateTag.UPDATE_LAYOUT;
|
|
17747
|
+
}
|
|
17748
|
+
clearUpdateLayoutTag() {
|
|
17749
|
+
this._updateTag &= exports.UpdateTag.CLEAR_LAYOUT;
|
|
17750
|
+
}
|
|
17751
|
+
needUpdateLayout() {
|
|
17752
|
+
return !!(this._updateTag & exports.UpdateTag.UPDATE_LAYOUT);
|
|
17753
|
+
}
|
|
17791
17754
|
doUpdateLocalMatrix() {
|
|
17792
|
-
const { x = DefaultTransform.x, y = DefaultTransform.y, scaleX = DefaultTransform.scaleX, scaleY = DefaultTransform.scaleY, angle = DefaultTransform.angle, anchor, postMatrix } = this.attribute;
|
|
17755
|
+
const { x = DefaultTransform.x, y = DefaultTransform.y, scaleX = DefaultTransform.scaleX, scaleY = DefaultTransform.scaleY, angle = DefaultTransform.angle, scaleCenter, anchor, postMatrix } = this.attribute;
|
|
17793
17756
|
const _anchor = [0, 0];
|
|
17794
17757
|
if (anchor) {
|
|
17795
17758
|
if (typeof anchor[0] === 'string') {
|
|
@@ -17809,7 +17772,18 @@
|
|
|
17809
17772
|
_anchor[1] = anchor[1];
|
|
17810
17773
|
}
|
|
17811
17774
|
}
|
|
17812
|
-
|
|
17775
|
+
if (scaleCenter && (scaleX !== 1 || scaleY !== 1)) {
|
|
17776
|
+
const m = this._transMatrix;
|
|
17777
|
+
m.reset();
|
|
17778
|
+
m.translate(_anchor[0], _anchor[1]);
|
|
17779
|
+
m.rotate(angle);
|
|
17780
|
+
m.translate(-_anchor[0], -_anchor[1]);
|
|
17781
|
+
m.translate(x, y);
|
|
17782
|
+
application.transformUtil.fromMatrix(m, m).scale(scaleX, scaleY, { x: scaleCenter[0], y: scaleCenter[1] });
|
|
17783
|
+
}
|
|
17784
|
+
else {
|
|
17785
|
+
normalTransform(this._transMatrix, this._transMatrix.reset(), x, y, scaleX, scaleY, angle, anchor && _anchor);
|
|
17786
|
+
}
|
|
17813
17787
|
const p = this.getOffsetXY(DefaultTransform);
|
|
17814
17788
|
this._transMatrix.e += p.x;
|
|
17815
17789
|
this._transMatrix.f += p.y;
|
|
@@ -17832,6 +17806,12 @@
|
|
|
17832
17806
|
this.stage = stage;
|
|
17833
17807
|
this.layer = layer;
|
|
17834
17808
|
this.setStageToShadowRoot(stage, layer);
|
|
17809
|
+
if (this.animates && this.animates.size) {
|
|
17810
|
+
const timeline = stage.getTimeline();
|
|
17811
|
+
this.animates.forEach(a => {
|
|
17812
|
+
a.setTimeline(timeline);
|
|
17813
|
+
});
|
|
17814
|
+
}
|
|
17835
17815
|
this._onSetStage && this._onSetStage(this, stage, layer);
|
|
17836
17816
|
application.graphicService.onSetStage(this, stage);
|
|
17837
17817
|
}
|
|
@@ -17996,7 +17976,7 @@
|
|
|
17996
17976
|
};
|
|
17997
17977
|
}
|
|
17998
17978
|
createPathProxy(path) {
|
|
17999
|
-
if (isString(path, true)) {
|
|
17979
|
+
if (isString$1(path, true)) {
|
|
18000
17980
|
this.pathProxy = new CustomPath2D().fromString(path);
|
|
18001
17981
|
}
|
|
18002
17982
|
else {
|
|
@@ -18005,7 +17985,7 @@
|
|
|
18005
17985
|
return this.pathProxy;
|
|
18006
17986
|
}
|
|
18007
17987
|
loadImage(image, background = false) {
|
|
18008
|
-
if (!image) {
|
|
17988
|
+
if (!image || (background && backgroundNotImage(image))) {
|
|
18009
17989
|
return;
|
|
18010
17990
|
}
|
|
18011
17991
|
const url = image;
|
|
@@ -18019,7 +17999,7 @@
|
|
|
18019
17999
|
this.resources.set(url, cache);
|
|
18020
18000
|
if (typeof image === 'string') {
|
|
18021
18001
|
cache.state = 'loading';
|
|
18022
|
-
if (isValidUrl(image) || isBase64(image)) {
|
|
18002
|
+
if (isValidUrl$1(image) || isBase64$1(image)) {
|
|
18023
18003
|
ResourceLoader.GetImage(image, this);
|
|
18024
18004
|
this.backgroundImg = this.backgroundImg || background;
|
|
18025
18005
|
}
|
|
@@ -18090,6 +18070,12 @@
|
|
|
18090
18070
|
}
|
|
18091
18071
|
}
|
|
18092
18072
|
Graphic.mixin(EventTarget);
|
|
18073
|
+
function backgroundNotImage(image) {
|
|
18074
|
+
if (image.fill || image.stroke) {
|
|
18075
|
+
return true;
|
|
18076
|
+
}
|
|
18077
|
+
return false;
|
|
18078
|
+
}
|
|
18093
18079
|
|
|
18094
18080
|
var validator$2 = {};
|
|
18095
18081
|
|
|
@@ -19968,31 +19954,33 @@
|
|
|
19968
19954
|
function incrementalAddTo(group, graphic) {
|
|
19969
19955
|
group.incrementalAppendChild(graphic);
|
|
19970
19956
|
}
|
|
19971
|
-
|
|
19972
|
-
|
|
19973
|
-
|
|
19974
|
-
|
|
19975
|
-
|
|
19976
|
-
|
|
19957
|
+
function waitForAllSubLayers(stage) {
|
|
19958
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19959
|
+
const promiseList = [];
|
|
19960
|
+
const layers = stage.getChildren();
|
|
19961
|
+
yield new Promise(resolve => {
|
|
19962
|
+
application.global.getRequestAnimationFrame()(() => {
|
|
19963
|
+
resolve(null);
|
|
19964
|
+
});
|
|
19977
19965
|
});
|
|
19978
|
-
|
|
19979
|
-
|
|
19980
|
-
|
|
19981
|
-
|
|
19982
|
-
|
|
19983
|
-
|
|
19984
|
-
|
|
19985
|
-
|
|
19986
|
-
|
|
19966
|
+
layers.forEach(l => {
|
|
19967
|
+
if (l.subLayers.size) {
|
|
19968
|
+
l.subLayers.forEach(sl => {
|
|
19969
|
+
if (sl.drawContribution && sl.drawContribution.hooks && sl.drawContribution.rendering) {
|
|
19970
|
+
promiseList.push(new Promise(resolve => {
|
|
19971
|
+
sl.drawContribution.hooks.completeDraw.tap('outWait', () => {
|
|
19972
|
+
sl.drawContribution.hooks.completeDraw.taps = sl.drawContribution.hooks.completeDraw.taps.filter(i => {
|
|
19973
|
+
return i.name !== 'outWait';
|
|
19974
|
+
});
|
|
19975
|
+
resolve(null);
|
|
19987
19976
|
});
|
|
19988
|
-
|
|
19989
|
-
|
|
19990
|
-
|
|
19991
|
-
|
|
19992
|
-
|
|
19993
|
-
|
|
19977
|
+
}));
|
|
19978
|
+
}
|
|
19979
|
+
});
|
|
19980
|
+
}
|
|
19981
|
+
});
|
|
19982
|
+
yield Promise.all(promiseList);
|
|
19994
19983
|
});
|
|
19995
|
-
await Promise.all(promiseList);
|
|
19996
19984
|
}
|
|
19997
19985
|
function boundStroke(bounds, halfW, miter, pad = 0) {
|
|
19998
19986
|
bounds.expand(halfW + (pad / 2 + (miter ? miterAdjustment(miter, halfW) : 0)));
|
|
@@ -20068,7 +20056,7 @@
|
|
|
20068
20056
|
return rotate;
|
|
20069
20057
|
}
|
|
20070
20058
|
function xul(str) {
|
|
20071
|
-
const xmlStr = isArray(str) ? str[0] : str;
|
|
20059
|
+
const xmlStr = isArray$1(str) ? str[0] : str;
|
|
20072
20060
|
const config = [];
|
|
20073
20061
|
if (!xmlStr) {
|
|
20074
20062
|
return config;
|
|
@@ -20259,6 +20247,7 @@
|
|
|
20259
20247
|
application.graphicService.beforeUpdateAABBBounds(this, this.stage, true, this._AABBBounds);
|
|
20260
20248
|
const selfChange = this.shouldSelfChangeUpdateAABBBounds();
|
|
20261
20249
|
const bounds = this.doUpdateAABBBounds();
|
|
20250
|
+
this.addUpdateLayoutTag();
|
|
20262
20251
|
application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, selfChange);
|
|
20263
20252
|
return bounds;
|
|
20264
20253
|
}
|
|
@@ -20426,7 +20415,7 @@
|
|
|
20426
20415
|
return graphic;
|
|
20427
20416
|
}
|
|
20428
20417
|
clone() {
|
|
20429
|
-
return new Group({
|
|
20418
|
+
return new Group(Object.assign({}, this.attribute));
|
|
20430
20419
|
}
|
|
20431
20420
|
}
|
|
20432
20421
|
|
|
@@ -20539,7 +20528,7 @@
|
|
|
20539
20528
|
this.layerHandler.resizeView(w, h);
|
|
20540
20529
|
}
|
|
20541
20530
|
setDpr(dpr) {
|
|
20542
|
-
|
|
20531
|
+
this.layerHandler.setDpr(dpr);
|
|
20543
20532
|
}
|
|
20544
20533
|
afterDraw(cb) {
|
|
20545
20534
|
this.afterDrawCbs.push(cb);
|
|
@@ -20556,17 +20545,7 @@
|
|
|
20556
20545
|
combineTo(target, params) {
|
|
20557
20546
|
var _a, _b, _c;
|
|
20558
20547
|
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
|
-
});
|
|
20548
|
+
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
20549
|
this.afterDrawCbs.forEach(c => c(this));
|
|
20571
20550
|
}
|
|
20572
20551
|
}
|
|
@@ -20581,17 +20560,7 @@
|
|
|
20581
20560
|
}
|
|
20582
20561
|
drawTo(target, params) {
|
|
20583
20562
|
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
|
-
});
|
|
20563
|
+
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
20564
|
this.afterDrawCbs.forEach(c => c(this));
|
|
20596
20565
|
}
|
|
20597
20566
|
}
|
|
@@ -20613,10 +20582,7 @@
|
|
|
20613
20582
|
}
|
|
20614
20583
|
createLayer(stage, options = { main: false }) {
|
|
20615
20584
|
this.tryInit();
|
|
20616
|
-
const layer = new Layer(stage, this.global, stage.window, {
|
|
20617
|
-
...options,
|
|
20618
|
-
virtual: this.staticLayerCountInEnv === 0
|
|
20619
|
-
});
|
|
20585
|
+
const layer = new Layer(stage, this.global, stage.window, Object.assign(Object.assign({}, options), { virtual: this.staticLayerCountInEnv === 0 }));
|
|
20620
20586
|
const stageLayers = this.layerMap.get(stage) || [];
|
|
20621
20587
|
stageLayers.push(layer);
|
|
20622
20588
|
this.layerMap.set(stage, stageLayers);
|
|
@@ -20685,6 +20651,7 @@
|
|
|
20685
20651
|
const handler = container.getNamed(WindowHandlerContribution, global.env);
|
|
20686
20652
|
handler.configure(this, global);
|
|
20687
20653
|
this.actived = true;
|
|
20654
|
+
this._handler;
|
|
20688
20655
|
}
|
|
20689
20656
|
get style() {
|
|
20690
20657
|
return this._handler.getStyle();
|
|
@@ -20745,6 +20712,15 @@
|
|
|
20745
20712
|
clearViewBox(viewBox, color) {
|
|
20746
20713
|
this._handler.clearViewBox(viewBox, color);
|
|
20747
20714
|
}
|
|
20715
|
+
isVisible(bbox) {
|
|
20716
|
+
return this._handler.isVisible(bbox);
|
|
20717
|
+
}
|
|
20718
|
+
onVisibleChange(cb) {
|
|
20719
|
+
return this._handler.onVisibleChange(cb);
|
|
20720
|
+
}
|
|
20721
|
+
getTopLeft(baseWindow) {
|
|
20722
|
+
return this._handler.getTopLeft(baseWindow);
|
|
20723
|
+
}
|
|
20748
20724
|
};
|
|
20749
20725
|
__decorate([
|
|
20750
20726
|
postConstruct(),
|
|
@@ -20780,7 +20756,7 @@
|
|
|
20780
20756
|
}
|
|
20781
20757
|
function runStroke(stroke, lineWidth) {
|
|
20782
20758
|
let s;
|
|
20783
|
-
if (isArray(stroke)) {
|
|
20759
|
+
if (isArray$1(stroke)) {
|
|
20784
20760
|
s = stroke.some(item => item || item === undefined);
|
|
20785
20761
|
}
|
|
20786
20762
|
else {
|
|
@@ -21385,6 +21361,16 @@
|
|
|
21385
21361
|
return;
|
|
21386
21362
|
}
|
|
21387
21363
|
const { outerRadius = arcAttribute.outerRadius, innerRadius = arcAttribute.innerRadius, cap = arcAttribute.cap, forceShowCap = arcAttribute.forceShowCap } = arc.attribute;
|
|
21364
|
+
let conicalOffset = 0;
|
|
21365
|
+
const tempChangeConicalColor = ((isBoolean$1(cap) && cap) || cap[0]) && fill.gradient === 'conical';
|
|
21366
|
+
if (tempChangeConicalColor) {
|
|
21367
|
+
const { sc, startAngle, endAngle } = arc.getParsedAngle();
|
|
21368
|
+
if (abs(endAngle - startAngle) < pi2 - epsilon) {
|
|
21369
|
+
conicalOffset = sc || 0;
|
|
21370
|
+
fill.startAngle -= conicalOffset;
|
|
21371
|
+
fill.endAngle -= conicalOffset;
|
|
21372
|
+
}
|
|
21373
|
+
}
|
|
21388
21374
|
let beforeRenderContribitionsRuned = false;
|
|
21389
21375
|
const { isFullStroke, stroke: arrayStroke } = parseStroke(stroke);
|
|
21390
21376
|
if (doFill || isFullStroke) {
|
|
@@ -21459,7 +21445,7 @@
|
|
|
21459
21445
|
context.stroke();
|
|
21460
21446
|
}
|
|
21461
21447
|
}
|
|
21462
|
-
if (cap && forceShowCap) {
|
|
21448
|
+
if (((isBoolean$1(cap) && cap) || cap[1]) && forceShowCap) {
|
|
21463
21449
|
const { startAngle: sa, endAngle: ea } = arc.getParsedAngle();
|
|
21464
21450
|
const deltaAngle = abs(ea - sa);
|
|
21465
21451
|
if (deltaAngle >= pi2 - epsilon) {
|
|
@@ -21513,6 +21499,10 @@
|
|
|
21513
21499
|
this._arcAfterRenderContribitions.forEach(c => {
|
|
21514
21500
|
c.drawShape(arc, context, x, y, doFill, doStroke, fVisible, sVisible, arcAttribute, drawContext, fillCb, strokeCb);
|
|
21515
21501
|
});
|
|
21502
|
+
if (tempChangeConicalColor) {
|
|
21503
|
+
fill.startAngle += conicalOffset;
|
|
21504
|
+
fill.endAngle += conicalOffset;
|
|
21505
|
+
}
|
|
21516
21506
|
}
|
|
21517
21507
|
draw(arc, renderService, drawContext, params) {
|
|
21518
21508
|
const { context } = drawContext;
|
|
@@ -21705,7 +21695,7 @@
|
|
|
21705
21695
|
return path;
|
|
21706
21696
|
}
|
|
21707
21697
|
clone() {
|
|
21708
|
-
return new Circle({
|
|
21698
|
+
return new Circle(Object.assign({}, this.attribute));
|
|
21709
21699
|
}
|
|
21710
21700
|
}
|
|
21711
21701
|
|
|
@@ -21855,6 +21845,7 @@
|
|
|
21855
21845
|
bboxWH[0] = lineWidth;
|
|
21856
21846
|
}
|
|
21857
21847
|
bboxWH[1] = linesLayout.length * lineHeight;
|
|
21848
|
+
bboxWH[0] = linesLayout.reduce((a, b) => Math.max(a, b.width), 0);
|
|
21858
21849
|
const bbox = {
|
|
21859
21850
|
xOffset: 0,
|
|
21860
21851
|
yOffset: 0,
|
|
@@ -21954,7 +21945,7 @@
|
|
|
21954
21945
|
return false;
|
|
21955
21946
|
}
|
|
21956
21947
|
this.tryUpdateAABBBounds();
|
|
21957
|
-
return this.clipedText !== attribute.text;
|
|
21948
|
+
return this.clipedText !== attribute.text.toString();
|
|
21958
21949
|
}
|
|
21959
21950
|
get multilineLayout() {
|
|
21960
21951
|
if (!Array.isArray(this.attribute.text)) {
|
|
@@ -22004,17 +21995,17 @@
|
|
|
22004
21995
|
: this.updateVerticalMultilineAABBBounds(text);
|
|
22005
21996
|
}
|
|
22006
21997
|
updateHorizontalSinglelineAABBBounds(text) {
|
|
22007
|
-
var _a;
|
|
21998
|
+
var _a, _b;
|
|
22008
21999
|
const textTheme = getTheme(this).text;
|
|
22009
22000
|
const textMeasure = application.graphicUtil.textMeasure;
|
|
22010
22001
|
let width;
|
|
22011
22002
|
let str;
|
|
22012
22003
|
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);
|
|
22004
|
+
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;
|
|
22005
|
+
const buf = ignoreBuf ? 0 : Math.max(2, fontSize * 0.075);
|
|
22015
22006
|
const { lineHeight = (_a = attribute.lineHeight) !== null && _a !== void 0 ? _a : (attribute.fontSize || textTheme.fontSize) + buf } = attribute;
|
|
22016
22007
|
if (!this.shouldUpdateShape() && this.cache) {
|
|
22017
|
-
width = this.cache.clipedWidth;
|
|
22008
|
+
width = (_b = this.cache.clipedWidth) !== null && _b !== void 0 ? _b : 0;
|
|
22018
22009
|
const dx = textDrawOffsetX(textAlign, width);
|
|
22019
22010
|
const dy = textLayoutOffsetY(textBaseline, lineHeight, fontSize);
|
|
22020
22011
|
this._AABBBounds.set(dx, dy, dx + width, dy + lineHeight);
|
|
@@ -22026,12 +22017,12 @@
|
|
|
22026
22017
|
if (Number.isFinite(maxLineWidth)) {
|
|
22027
22018
|
if (ellipsis) {
|
|
22028
22019
|
const strEllipsis = (ellipsis === true ? textTheme.ellipsis : ellipsis);
|
|
22029
|
-
const data = textMeasure.clipTextWithSuffix(text.toString(), { fontSize, fontWeight }, maxLineWidth, strEllipsis,
|
|
22020
|
+
const data = textMeasure.clipTextWithSuffix(text.toString(), { fontSize, fontWeight, fontFamily }, maxLineWidth, strEllipsis, false);
|
|
22030
22021
|
str = data.str;
|
|
22031
22022
|
width = data.width;
|
|
22032
22023
|
}
|
|
22033
22024
|
else {
|
|
22034
|
-
const data = textMeasure.clipText(text.toString(), { fontSize, fontWeight }, maxLineWidth,
|
|
22025
|
+
const data = textMeasure.clipText(text.toString(), { fontSize, fontWeight, fontFamily }, maxLineWidth, false);
|
|
22035
22026
|
str = data.str;
|
|
22036
22027
|
width = data.width;
|
|
22037
22028
|
}
|
|
@@ -22039,14 +22030,14 @@
|
|
|
22039
22030
|
this.cache.clipedWidth = width;
|
|
22040
22031
|
}
|
|
22041
22032
|
else {
|
|
22042
|
-
width = textMeasure.measureTextWidth(text.toString(), { fontSize, fontWeight });
|
|
22033
|
+
width = textMeasure.measureTextWidth(text.toString(), { fontSize, fontWeight, fontFamily });
|
|
22043
22034
|
this.cache.clipedText = text.toString();
|
|
22044
22035
|
this.cache.clipedWidth = width;
|
|
22045
22036
|
}
|
|
22046
22037
|
this.clearUpdateShapeTag();
|
|
22047
22038
|
const dx = textDrawOffsetX(textAlign, width);
|
|
22048
22039
|
let lh = lineHeight;
|
|
22049
|
-
if (
|
|
22040
|
+
if (application.global && application.global.isSafari()) {
|
|
22050
22041
|
lh += fontSize * 0.2;
|
|
22051
22042
|
}
|
|
22052
22043
|
const dy = textLayoutOffsetY(textBaseline, lh, fontSize, buf);
|
|
@@ -22061,9 +22052,10 @@
|
|
|
22061
22052
|
const textTheme = getTheme(this).text;
|
|
22062
22053
|
const textMeasure = application.graphicUtil.textMeasure;
|
|
22063
22054
|
let width;
|
|
22064
|
-
const buf = 2;
|
|
22065
22055
|
const attribute = this.attribute;
|
|
22066
|
-
const {
|
|
22056
|
+
const { ignoreBuf = textTheme.ignoreBuf } = attribute;
|
|
22057
|
+
const buf = ignoreBuf ? 0 : 2;
|
|
22058
|
+
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
22059
|
if (!this.shouldUpdateShape() && this.cache) {
|
|
22068
22060
|
width = this.cache.clipedWidth;
|
|
22069
22061
|
const dx = textDrawOffsetX(textAlign, width);
|
|
@@ -22080,12 +22072,12 @@
|
|
|
22080
22072
|
if (Number.isFinite(maxLineWidth)) {
|
|
22081
22073
|
if (ellipsis) {
|
|
22082
22074
|
const strEllipsis = (ellipsis === true ? textTheme.ellipsis : ellipsis);
|
|
22083
|
-
const data = textMeasure.clipTextWithSuffixVertical(verticalList[0], { fontSize, fontWeight }, maxLineWidth, strEllipsis,
|
|
22075
|
+
const data = textMeasure.clipTextWithSuffixVertical(verticalList[0], { fontSize, fontWeight, fontFamily }, maxLineWidth, strEllipsis, false);
|
|
22084
22076
|
verticalList = [data.verticalList];
|
|
22085
22077
|
width = data.width;
|
|
22086
22078
|
}
|
|
22087
22079
|
else {
|
|
22088
|
-
const data = textMeasure.clipTextVertical(verticalList[0], { fontSize, fontWeight }, maxLineWidth,
|
|
22080
|
+
const data = textMeasure.clipTextVertical(verticalList[0], { fontSize, fontWeight, fontFamily }, maxLineWidth, false);
|
|
22089
22081
|
verticalList = [data.verticalList];
|
|
22090
22082
|
width = data.width;
|
|
22091
22083
|
}
|
|
@@ -22097,7 +22089,7 @@
|
|
|
22097
22089
|
verticalList[0].forEach(t => {
|
|
22098
22090
|
const w = t.direction === exports.TextDirection.HORIZONTAL
|
|
22099
22091
|
? fontSize
|
|
22100
|
-
: textMeasure.measureTextWidth(t.text, { fontSize, fontWeight });
|
|
22092
|
+
: textMeasure.measureTextWidth(t.text, { fontSize, fontWeight, fontFamily });
|
|
22101
22093
|
width += w;
|
|
22102
22094
|
t.width = w;
|
|
22103
22095
|
});
|
|
@@ -22127,8 +22119,8 @@
|
|
|
22127
22119
|
return this._AABBBounds;
|
|
22128
22120
|
}
|
|
22129
22121
|
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,
|
|
22122
|
+
const layoutObj = new CanvasTextLayout(fontFamily, { fontSize, fontWeight, fontFamily }, textMeasure);
|
|
22123
|
+
const layoutData = layoutObj.GetLayoutByLines(text, textAlign, textBaseline, lineHeight, ellipsis === true ? textTheme.ellipsis : ellipsis || undefined, false, maxLineWidth);
|
|
22132
22124
|
const { bbox } = layoutData;
|
|
22133
22125
|
this.cache.layoutData = layoutData;
|
|
22134
22126
|
this.clearUpdateShapeTag();
|
|
@@ -22143,9 +22135,10 @@
|
|
|
22143
22135
|
const textTheme = getTheme(this).text;
|
|
22144
22136
|
const textMeasure = application.graphicUtil.textMeasure;
|
|
22145
22137
|
let width;
|
|
22146
|
-
const buf = 2;
|
|
22147
22138
|
const attribute = this.attribute;
|
|
22148
|
-
const {
|
|
22139
|
+
const { ignoreBuf = textTheme.ignoreBuf } = attribute;
|
|
22140
|
+
const buf = ignoreBuf ? 0 : 2;
|
|
22141
|
+
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
22142
|
width = 0;
|
|
22150
22143
|
if (!this.shouldUpdateShape() && this.cache) {
|
|
22151
22144
|
this.cache.verticalList.forEach(item => {
|
|
@@ -22168,12 +22161,12 @@
|
|
|
22168
22161
|
if (Number.isFinite(maxLineWidth)) {
|
|
22169
22162
|
if (ellipsis) {
|
|
22170
22163
|
const strEllipsis = (ellipsis === true ? textTheme.ellipsis : ellipsis);
|
|
22171
|
-
const data = textMeasure.clipTextWithSuffixVertical(verticalData, { fontSize, fontWeight }, maxLineWidth, strEllipsis,
|
|
22164
|
+
const data = textMeasure.clipTextWithSuffixVertical(verticalData, { fontSize, fontWeight, fontFamily }, maxLineWidth, strEllipsis, false);
|
|
22172
22165
|
verticalLists[i] = data.verticalList;
|
|
22173
22166
|
width = data.width;
|
|
22174
22167
|
}
|
|
22175
22168
|
else {
|
|
22176
|
-
const data = textMeasure.clipTextVertical(verticalData, { fontSize, fontWeight }, maxLineWidth,
|
|
22169
|
+
const data = textMeasure.clipTextVertical(verticalData, { fontSize, fontWeight, fontFamily }, maxLineWidth, false);
|
|
22177
22170
|
verticalLists[i] = data.verticalList;
|
|
22178
22171
|
width = data.width;
|
|
22179
22172
|
}
|
|
@@ -22183,7 +22176,7 @@
|
|
|
22183
22176
|
verticalData.forEach(t => {
|
|
22184
22177
|
const w = t.direction === exports.TextDirection.HORIZONTAL
|
|
22185
22178
|
? fontSize
|
|
22186
|
-
: textMeasure.measureTextWidth(t.text, { fontSize, fontWeight });
|
|
22179
|
+
: textMeasure.measureTextWidth(t.text, { fontSize, fontWeight, fontFamily });
|
|
22187
22180
|
width += w;
|
|
22188
22181
|
t.width = w;
|
|
22189
22182
|
});
|
|
@@ -22230,7 +22223,7 @@
|
|
|
22230
22223
|
return false;
|
|
22231
22224
|
}
|
|
22232
22225
|
clone() {
|
|
22233
|
-
return new Text({
|
|
22226
|
+
return new Text(Object.assign({}, this.attribute));
|
|
22234
22227
|
}
|
|
22235
22228
|
}
|
|
22236
22229
|
|
|
@@ -22238,7 +22231,7 @@
|
|
|
22238
22231
|
class WrapText extends Text {
|
|
22239
22232
|
_isValid() {
|
|
22240
22233
|
const { text } = this.attribute;
|
|
22241
|
-
if (isArray(text)) {
|
|
22234
|
+
if (isArray$1(text)) {
|
|
22242
22235
|
return !text.every((t) => t == null || t === '');
|
|
22243
22236
|
}
|
|
22244
22237
|
return text != null && text !== '';
|
|
@@ -22246,8 +22239,8 @@
|
|
|
22246
22239
|
updateMultilineAABBBounds(text) {
|
|
22247
22240
|
var _a, _b, _c;
|
|
22248
22241
|
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;
|
|
22242
|
+
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;
|
|
22243
|
+
const buf = ignoreBuf ? 0 : 2;
|
|
22251
22244
|
if (!this.shouldUpdateShape() && ((_a = this.cache) === null || _a === void 0 ? void 0 : _a.layoutData)) {
|
|
22252
22245
|
const bbox = this.cache.layoutData.bbox;
|
|
22253
22246
|
this._AABBBounds.set(bbox.xOffset, bbox.yOffset, bbox.xOffset + bbox.width, bbox.yOffset + bbox.height);
|
|
@@ -22257,7 +22250,7 @@
|
|
|
22257
22250
|
return this._AABBBounds;
|
|
22258
22251
|
}
|
|
22259
22252
|
const textMeasure = application.graphicUtil.textMeasure;
|
|
22260
|
-
const layoutObj = new CanvasTextLayout(fontFamily, { fontSize }, textMeasure);
|
|
22253
|
+
const layoutObj = new CanvasTextLayout(fontFamily, { fontSize, fontWeight, fontFamily }, textMeasure);
|
|
22261
22254
|
const lines = text.map(l => l.toString());
|
|
22262
22255
|
const linesLayout = [];
|
|
22263
22256
|
const bboxWH = [0, 0];
|
|
@@ -22272,8 +22265,9 @@
|
|
|
22272
22265
|
if (maxLineWidth > 0) {
|
|
22273
22266
|
for (let i = 0; i < lines.length; i++) {
|
|
22274
22267
|
const str = lines[i];
|
|
22268
|
+
let needCut = true;
|
|
22275
22269
|
if (i === lineCountLimit - 1) {
|
|
22276
|
-
const clip = layoutObj.textMeasure.clipTextWithSuffix(str, layoutObj.textOptions, maxLineWidth, ellipsis,
|
|
22270
|
+
const clip = layoutObj.textMeasure.clipTextWithSuffix(str, layoutObj.textOptions, maxLineWidth, ellipsis, false);
|
|
22277
22271
|
linesLayout.push({
|
|
22278
22272
|
str: clip.str,
|
|
22279
22273
|
width: clip.width
|
|
@@ -22283,7 +22277,7 @@
|
|
|
22283
22277
|
const clip = layoutObj.textMeasure.clipText(str, layoutObj.textOptions, maxLineWidth, wordBreak === 'break-word');
|
|
22284
22278
|
if (str !== '' && clip.str === '') {
|
|
22285
22279
|
if (ellipsis) {
|
|
22286
|
-
const clipEllipsis = layoutObj.textMeasure.clipTextWithSuffix(str, layoutObj.textOptions, maxLineWidth, ellipsis,
|
|
22280
|
+
const clipEllipsis = layoutObj.textMeasure.clipTextWithSuffix(str, layoutObj.textOptions, maxLineWidth, ellipsis, false);
|
|
22287
22281
|
clip.str = (_b = clipEllipsis.str) !== null && _b !== void 0 ? _b : '';
|
|
22288
22282
|
clip.width = (_c = clipEllipsis.width) !== null && _c !== void 0 ? _c : 0;
|
|
22289
22283
|
}
|
|
@@ -22291,13 +22285,14 @@
|
|
|
22291
22285
|
clip.str = '';
|
|
22292
22286
|
clip.width = 0;
|
|
22293
22287
|
}
|
|
22288
|
+
needCut = false;
|
|
22294
22289
|
}
|
|
22295
22290
|
linesLayout.push({
|
|
22296
22291
|
str: clip.str,
|
|
22297
22292
|
width: clip.width
|
|
22298
22293
|
});
|
|
22299
22294
|
if (clip.str.length === str.length) ;
|
|
22300
|
-
else {
|
|
22295
|
+
else if (needCut) {
|
|
22301
22296
|
const newStr = str.substring(clip.str.length);
|
|
22302
22297
|
lines.splice(i + 1, 0, newStr);
|
|
22303
22298
|
}
|
|
@@ -22315,7 +22310,7 @@
|
|
|
22315
22310
|
let text;
|
|
22316
22311
|
for (let i = 0, len = lines.length; i < len; i++) {
|
|
22317
22312
|
if (i === lineCountLimit - 1) {
|
|
22318
|
-
const clip = layoutObj.textMeasure.clipTextWithSuffix(lines[i], layoutObj.textOptions, maxLineWidth, ellipsis,
|
|
22313
|
+
const clip = layoutObj.textMeasure.clipTextWithSuffix(lines[i], layoutObj.textOptions, maxLineWidth, ellipsis, false);
|
|
22319
22314
|
linesLayout.push({
|
|
22320
22315
|
str: clip.str,
|
|
22321
22316
|
width: clip.width
|
|
@@ -23122,17 +23117,17 @@
|
|
|
23122
23117
|
this.pathStr = 'M-0.5,-0.5h1v1h-1Z';
|
|
23123
23118
|
}
|
|
23124
23119
|
draw(ctx, size, x, y) {
|
|
23125
|
-
const rectSize = isNumber(size) ? [size, size] : size;
|
|
23120
|
+
const rectSize = isNumber$2(size) ? [size, size] : size;
|
|
23126
23121
|
return rect(ctx, rectSize, x, y);
|
|
23127
23122
|
}
|
|
23128
23123
|
drawOffset(ctx, size, x, y, offset) {
|
|
23129
|
-
const rectSize = isNumber(size)
|
|
23124
|
+
const rectSize = isNumber$2(size)
|
|
23130
23125
|
? [size + 2 * offset, size + 2 * offset]
|
|
23131
23126
|
: [size[0] + 2 * offset, size[1] + 2 * offset];
|
|
23132
23127
|
return rect(ctx, rectSize, x, y);
|
|
23133
23128
|
}
|
|
23134
23129
|
bounds(size, bounds) {
|
|
23135
|
-
const rectSize = isNumber(size) ? [size, size] : size;
|
|
23130
|
+
const rectSize = isNumber$2(size) ? [size, size] : size;
|
|
23136
23131
|
bounds.x1 = -rectSize[0] / 2;
|
|
23137
23132
|
bounds.x2 = rectSize[0] / 2;
|
|
23138
23133
|
bounds.y1 = -rectSize[1] / 2;
|
|
@@ -23146,7 +23141,7 @@
|
|
|
23146
23141
|
constructor(type, path, isSvg = false) {
|
|
23147
23142
|
this.pathStr = '';
|
|
23148
23143
|
this.type = type;
|
|
23149
|
-
if (isArray(path)) {
|
|
23144
|
+
if (isArray$1(path)) {
|
|
23150
23145
|
this.svgCache = path;
|
|
23151
23146
|
}
|
|
23152
23147
|
else {
|
|
@@ -23258,7 +23253,7 @@
|
|
|
23258
23253
|
}
|
|
23259
23254
|
_isValid() {
|
|
23260
23255
|
const { size } = this.attribute;
|
|
23261
|
-
return isArray(size) ? size.length === 2 && size.every(this._validNumber) : this._validNumber(size);
|
|
23256
|
+
return isArray$1(size) ? size.length === 2 && size.every(this._validNumber) : this._validNumber(size);
|
|
23262
23257
|
}
|
|
23263
23258
|
doUpdateParsedPath() {
|
|
23264
23259
|
const symbolTheme = getTheme(this).symbol;
|
|
@@ -23282,7 +23277,7 @@
|
|
|
23282
23277
|
if (!svg) {
|
|
23283
23278
|
return null;
|
|
23284
23279
|
}
|
|
23285
|
-
const path = isArray(svg.path) ? svg.path : [svg.path];
|
|
23280
|
+
const path = isArray$1(svg.path) ? svg.path : [svg.path];
|
|
23286
23281
|
const b = new AABBBounds();
|
|
23287
23282
|
const cacheList = [];
|
|
23288
23283
|
path.forEach((item) => {
|
|
@@ -23363,13 +23358,13 @@
|
|
|
23363
23358
|
const size = this.attribute.size;
|
|
23364
23359
|
const x = 0;
|
|
23365
23360
|
const y = 0;
|
|
23366
|
-
const formattedSize = isArray(size) ? size : [size, size];
|
|
23361
|
+
const formattedSize = isArray$1(size) ? size : [size, size];
|
|
23367
23362
|
return symbolInstance.path
|
|
23368
23363
|
? new CustomPath2D().fromCustomPath2D(symbolInstance.path, x, y, formattedSize[0], formattedSize[1])
|
|
23369
23364
|
: new CustomPath2D().fromString(symbolInstance.pathStr, x, y, formattedSize[0], formattedSize[1]);
|
|
23370
23365
|
}
|
|
23371
23366
|
clone() {
|
|
23372
|
-
return new Symbol({
|
|
23367
|
+
return new Symbol(Object.assign({}, this.attribute));
|
|
23373
23368
|
}
|
|
23374
23369
|
};
|
|
23375
23370
|
Symbol$1.userSymbolMap = {};
|
|
@@ -23475,7 +23470,7 @@
|
|
|
23475
23470
|
return path;
|
|
23476
23471
|
}
|
|
23477
23472
|
clone() {
|
|
23478
|
-
return new Line({
|
|
23473
|
+
return new Line(Object.assign({}, this.attribute));
|
|
23479
23474
|
}
|
|
23480
23475
|
};
|
|
23481
23476
|
|
|
@@ -23543,7 +23538,7 @@
|
|
|
23543
23538
|
return path;
|
|
23544
23539
|
}
|
|
23545
23540
|
clone() {
|
|
23546
|
-
return new Rect({
|
|
23541
|
+
return new Rect(Object.assign({}, this.attribute));
|
|
23547
23542
|
}
|
|
23548
23543
|
}
|
|
23549
23544
|
|
|
@@ -23755,7 +23750,7 @@
|
|
|
23755
23750
|
this.currentStates = [];
|
|
23756
23751
|
}
|
|
23757
23752
|
clone() {
|
|
23758
|
-
const glyph = new Glyph({
|
|
23753
|
+
const glyph = new Glyph(Object.assign({}, this.attribute));
|
|
23759
23754
|
glyph.setSubGraphic(this.subGraphic.map(g => g.clone()));
|
|
23760
23755
|
return glyph;
|
|
23761
23756
|
}
|
|
@@ -24309,7 +24304,7 @@
|
|
|
24309
24304
|
return false;
|
|
24310
24305
|
}
|
|
24311
24306
|
clone() {
|
|
24312
|
-
return new Image({
|
|
24307
|
+
return new Image(Object.assign({}, this.attribute));
|
|
24313
24308
|
}
|
|
24314
24309
|
}
|
|
24315
24310
|
|
|
@@ -24333,7 +24328,7 @@
|
|
|
24333
24328
|
}
|
|
24334
24329
|
}
|
|
24335
24330
|
this.onBeforeAttributeUpdate = (val, attributes, key) => {
|
|
24336
|
-
if ((isArray(key) && key.indexOf('margin') !== -1) || key === 'margin') {
|
|
24331
|
+
if ((isArray$1(key) && key.indexOf('margin') !== -1) || key === 'margin') {
|
|
24337
24332
|
if (attributes.margin) {
|
|
24338
24333
|
const marginArray = parsePadding(attributes.margin);
|
|
24339
24334
|
if (typeof marginArray === 'number') {
|
|
@@ -24867,7 +24862,7 @@
|
|
|
24867
24862
|
this._frameCache = frame;
|
|
24868
24863
|
}
|
|
24869
24864
|
clone() {
|
|
24870
|
-
return new RichText({
|
|
24865
|
+
return new RichText(Object.assign({}, this.attribute));
|
|
24871
24866
|
}
|
|
24872
24867
|
setStage(stage, layer) {
|
|
24873
24868
|
super.setStage(stage, layer);
|
|
@@ -24948,7 +24943,7 @@
|
|
|
24948
24943
|
if (attribute.path instanceof CustomPath2D) {
|
|
24949
24944
|
return attribute.path;
|
|
24950
24945
|
}
|
|
24951
|
-
if (isNil(this.cache)) {
|
|
24946
|
+
if (isNil$1(this.cache)) {
|
|
24952
24947
|
this.doUpdatePathShape();
|
|
24953
24948
|
}
|
|
24954
24949
|
if (this.cache instanceof CustomPath2D) {
|
|
@@ -24972,7 +24967,7 @@
|
|
|
24972
24967
|
}
|
|
24973
24968
|
doUpdatePathShape() {
|
|
24974
24969
|
const attribute = this.attribute;
|
|
24975
|
-
if (isString(attribute.path, true)) {
|
|
24970
|
+
if (isString$1(attribute.path, true)) {
|
|
24976
24971
|
this.cache = new CustomPath2D().fromString(attribute.path);
|
|
24977
24972
|
}
|
|
24978
24973
|
else if (attribute.customPath) {
|
|
@@ -25011,7 +25006,7 @@
|
|
|
25011
25006
|
return new CustomPath2D().fromCustomPath2D(this.getParsedPathShape(), x, y);
|
|
25012
25007
|
}
|
|
25013
25008
|
clone() {
|
|
25014
|
-
return new Path({
|
|
25009
|
+
return new Path(Object.assign({}, this.attribute));
|
|
25015
25010
|
}
|
|
25016
25011
|
}
|
|
25017
25012
|
|
|
@@ -25125,7 +25120,7 @@
|
|
|
25125
25120
|
return path;
|
|
25126
25121
|
}
|
|
25127
25122
|
clone() {
|
|
25128
|
-
return new Area({
|
|
25123
|
+
return new Area(Object.assign({}, this.attribute));
|
|
25129
25124
|
}
|
|
25130
25125
|
}
|
|
25131
25126
|
|
|
@@ -25163,7 +25158,7 @@
|
|
|
25163
25158
|
return 0;
|
|
25164
25159
|
}
|
|
25165
25160
|
const deltaRadius = Math.abs(outerRadius - innerRadius);
|
|
25166
|
-
return Math.min(isNumber(cornerRadius, true)
|
|
25161
|
+
return Math.min(isNumber$2(cornerRadius, true)
|
|
25167
25162
|
? cornerRadius
|
|
25168
25163
|
: (deltaRadius * parseFloat(cornerRadius)) / 100, deltaRadius / 2);
|
|
25169
25164
|
}
|
|
@@ -25188,7 +25183,9 @@
|
|
|
25188
25183
|
if (capWidth > epsilon && outerRadius > epsilon) {
|
|
25189
25184
|
return {
|
|
25190
25185
|
startAngle: startAngle - sign * capAngle * startCap,
|
|
25191
|
-
endAngle: endAngle + sign * capAngle * endCap
|
|
25186
|
+
endAngle: endAngle + sign * capAngle * endCap,
|
|
25187
|
+
sc: sign * capAngle * startCap,
|
|
25188
|
+
ec: sign * capAngle * endCap
|
|
25192
25189
|
};
|
|
25193
25190
|
}
|
|
25194
25191
|
}
|
|
@@ -25327,7 +25324,7 @@
|
|
|
25327
25324
|
return path;
|
|
25328
25325
|
}
|
|
25329
25326
|
clone() {
|
|
25330
|
-
return new Arc({
|
|
25327
|
+
return new Arc(Object.assign({}, this.attribute));
|
|
25331
25328
|
}
|
|
25332
25329
|
}
|
|
25333
25330
|
|
|
@@ -25424,7 +25421,7 @@
|
|
|
25424
25421
|
return path;
|
|
25425
25422
|
}
|
|
25426
25423
|
clone() {
|
|
25427
|
-
return new Polygon({
|
|
25424
|
+
return new Polygon(Object.assign({}, this.attribute));
|
|
25428
25425
|
}
|
|
25429
25426
|
}
|
|
25430
25427
|
|
|
@@ -25583,6 +25580,8 @@
|
|
|
25583
25580
|
injectable()
|
|
25584
25581
|
], DefaultPathOuterBorderBoundsContribution);
|
|
25585
25582
|
|
|
25583
|
+
const MatrixAllocate = Symbol.for('MatrixAllocate');
|
|
25584
|
+
const Mat4Allocate = Symbol.for('Mat4Allocate');
|
|
25586
25585
|
function createMat4() {
|
|
25587
25586
|
return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
25588
25587
|
}
|
|
@@ -26562,7 +26561,7 @@
|
|
|
26562
26561
|
}
|
|
26563
26562
|
updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds, graphic) {
|
|
26564
26563
|
const { size = symbolTheme.size } = attribute;
|
|
26565
|
-
if (isArray(size)) {
|
|
26564
|
+
if (isArray$1(size)) {
|
|
26566
26565
|
aabbBounds.set(-size[0] / 2, -size[1] / 2, size[0] / 2, size[1] / 2);
|
|
26567
26566
|
}
|
|
26568
26567
|
else {
|
|
@@ -27122,7 +27121,7 @@
|
|
|
27122
27121
|
offsetY,
|
|
27123
27122
|
offsetZ: z
|
|
27124
27123
|
});
|
|
27125
|
-
if (line.cache && !isArray(line.cache) && line.attribute.curveType && line.attribute.curveType.includes('Closed')) {
|
|
27124
|
+
if (line.cache && !isArray$1(line.cache) && line.attribute.curveType && line.attribute.curveType.includes('Closed')) {
|
|
27126
27125
|
context.closePath();
|
|
27127
27126
|
}
|
|
27128
27127
|
context.setShadowStyle && context.setShadowStyle(line, attribute, defaultAttribute);
|
|
@@ -27147,7 +27146,7 @@
|
|
|
27147
27146
|
}
|
|
27148
27147
|
}
|
|
27149
27148
|
let { connectedType, connectedX, connectedY, connectedStyle } = attribute;
|
|
27150
|
-
if (isArray(defaultAttribute)) {
|
|
27149
|
+
if (isArray$1(defaultAttribute)) {
|
|
27151
27150
|
connectedType = (_b = connectedType !== null && connectedType !== void 0 ? connectedType : defaultAttribute[0].connectedType) !== null && _b !== void 0 ? _b : defaultAttribute[1].connectedType;
|
|
27152
27151
|
connectedX = (_c = connectedX !== null && connectedX !== void 0 ? connectedX : defaultAttribute[0].connectedX) !== null && _c !== void 0 ? _c : defaultAttribute[1].connectedX;
|
|
27153
27152
|
connectedY = (_d = connectedY !== null && connectedY !== void 0 ? connectedY : defaultAttribute[0].connectedY) !== null && _d !== void 0 ? _d : defaultAttribute[1].connectedY;
|
|
@@ -27174,7 +27173,7 @@
|
|
|
27174
27173
|
zeroY: connectedY
|
|
27175
27174
|
});
|
|
27176
27175
|
const da = [];
|
|
27177
|
-
if (isArray(defaultAttribute)) {
|
|
27176
|
+
if (isArray$1(defaultAttribute)) {
|
|
27178
27177
|
defaultAttribute.forEach(i => da.push(i));
|
|
27179
27178
|
}
|
|
27180
27179
|
else {
|
|
@@ -27219,12 +27218,28 @@
|
|
|
27219
27218
|
return;
|
|
27220
27219
|
}
|
|
27221
27220
|
if (line.shouldUpdateShape()) {
|
|
27222
|
-
const { points, segments,
|
|
27221
|
+
const { points, segments, closePath } = line.attribute;
|
|
27222
|
+
let { curveType = lineAttribute.curveType } = line.attribute;
|
|
27223
|
+
if (closePath && curveType === 'linear') {
|
|
27224
|
+
curveType = 'linearClosed';
|
|
27225
|
+
}
|
|
27223
27226
|
const _points = points;
|
|
27224
27227
|
if (segments && segments.length) {
|
|
27225
27228
|
let startPoint;
|
|
27226
27229
|
let lastSeg;
|
|
27227
|
-
line.cache = segments
|
|
27230
|
+
line.cache = segments
|
|
27231
|
+
.map((seg, index) => {
|
|
27232
|
+
if (seg.points.length <= 1) {
|
|
27233
|
+
if (index === 0) {
|
|
27234
|
+
seg.points[0] &&
|
|
27235
|
+
(lastSeg = {
|
|
27236
|
+
endX: seg.points[0].x,
|
|
27237
|
+
endY: seg.points[0].y,
|
|
27238
|
+
curves: [{ defined: seg.points[0].defined !== false }]
|
|
27239
|
+
});
|
|
27240
|
+
return null;
|
|
27241
|
+
}
|
|
27242
|
+
}
|
|
27228
27243
|
if (index === 1) {
|
|
27229
27244
|
startPoint = {
|
|
27230
27245
|
x: lastSeg.endX,
|
|
@@ -27237,11 +27252,29 @@
|
|
|
27237
27252
|
startPoint.y = lastSeg.endY;
|
|
27238
27253
|
startPoint.defined = lastSeg.curves[lastSeg.curves.length - 1].defined;
|
|
27239
27254
|
}
|
|
27240
|
-
|
|
27255
|
+
const data = calcLineCache$1(seg.points, curveType, {
|
|
27241
27256
|
startPoint
|
|
27242
27257
|
});
|
|
27243
|
-
|
|
27244
|
-
|
|
27258
|
+
lastSeg = data;
|
|
27259
|
+
return data;
|
|
27260
|
+
})
|
|
27261
|
+
.filter(item => !!item);
|
|
27262
|
+
if (curveType === 'linearClosed') {
|
|
27263
|
+
let startP;
|
|
27264
|
+
for (let i = 0; i < line.cache.length; i++) {
|
|
27265
|
+
const cacheItem = line.cache[i];
|
|
27266
|
+
for (let i = 0; i < cacheItem.curves.length; i++) {
|
|
27267
|
+
if (cacheItem.curves[i].defined) {
|
|
27268
|
+
startP = cacheItem.curves[i].p0;
|
|
27269
|
+
break;
|
|
27270
|
+
}
|
|
27271
|
+
}
|
|
27272
|
+
if (startP) {
|
|
27273
|
+
break;
|
|
27274
|
+
}
|
|
27275
|
+
}
|
|
27276
|
+
line.cache[line.cache.length - 1] && line.cache[line.cache.length - 1].lineTo(startP.x, startP.y, true);
|
|
27277
|
+
}
|
|
27245
27278
|
}
|
|
27246
27279
|
else if (points && points.length) {
|
|
27247
27280
|
line.cache = calcLineCache$1(_points, curveType);
|
|
@@ -27255,13 +27288,17 @@
|
|
|
27255
27288
|
}
|
|
27256
27289
|
const { clipRange = lineAttribute.clipRange, clipRangeByDimension = lineAttribute.clipRangeByDimension } = line.attribute;
|
|
27257
27290
|
if (Array.isArray(line.cache)) {
|
|
27291
|
+
const segments = line.attribute.segments.filter(item => item.points.length);
|
|
27292
|
+
if (segments[0].points.length === 1) {
|
|
27293
|
+
segments.shift();
|
|
27294
|
+
}
|
|
27258
27295
|
if (clipRange === 1) {
|
|
27259
27296
|
let skip = false;
|
|
27260
27297
|
line.cache.forEach((cache, index) => {
|
|
27261
27298
|
if (skip) {
|
|
27262
27299
|
return;
|
|
27263
27300
|
}
|
|
27264
|
-
skip = this.drawSegmentItem(context, cache, !!fill, !!stroke, fillOpacity, strokeOpacity,
|
|
27301
|
+
skip = this.drawSegmentItem(context, cache, !!fill, !!stroke, fillOpacity, strokeOpacity, segments[index], [lineAttribute, line.attribute], clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
|
|
27265
27302
|
});
|
|
27266
27303
|
}
|
|
27267
27304
|
else {
|
|
@@ -27277,7 +27314,7 @@
|
|
|
27277
27314
|
const _cr = (totalDrawLength - drawedLengthUntilLast) / curSegLength;
|
|
27278
27315
|
drawedLengthUntilLast += curSegLength;
|
|
27279
27316
|
if (_cr > 0) {
|
|
27280
|
-
skip = this.drawSegmentItem(context, cache, !!fill, !!stroke, fillOpacity, strokeOpacity,
|
|
27317
|
+
skip = this.drawSegmentItem(context, cache, !!fill, !!stroke, fillOpacity, strokeOpacity, segments[index], [lineAttribute, line.attribute], min(_cr, 1), clipRangeByDimension, x, y, line, fillCb, strokeCb);
|
|
27281
27318
|
}
|
|
27282
27319
|
});
|
|
27283
27320
|
}
|
|
@@ -27646,7 +27683,14 @@
|
|
|
27646
27683
|
if (segments && segments.length) {
|
|
27647
27684
|
let startPoint;
|
|
27648
27685
|
let lastTopSeg;
|
|
27649
|
-
const topCaches = segments
|
|
27686
|
+
const topCaches = segments
|
|
27687
|
+
.map((seg, index) => {
|
|
27688
|
+
if (seg.points.length <= 1) {
|
|
27689
|
+
if (index === 0) {
|
|
27690
|
+
seg.points[0] && (lastTopSeg = { endX: seg.points[0].x, endY: seg.points[0].y });
|
|
27691
|
+
return null;
|
|
27692
|
+
}
|
|
27693
|
+
}
|
|
27650
27694
|
if (index === 1) {
|
|
27651
27695
|
startPoint = { x: lastTopSeg.endX, y: lastTopSeg.endY };
|
|
27652
27696
|
}
|
|
@@ -27654,11 +27698,13 @@
|
|
|
27654
27698
|
startPoint.x = lastTopSeg.endX;
|
|
27655
27699
|
startPoint.y = lastTopSeg.endY;
|
|
27656
27700
|
}
|
|
27657
|
-
|
|
27701
|
+
const data = calcLineCache(seg.points, curveType, {
|
|
27658
27702
|
startPoint
|
|
27659
27703
|
});
|
|
27660
|
-
|
|
27661
|
-
|
|
27704
|
+
lastTopSeg = data;
|
|
27705
|
+
return data;
|
|
27706
|
+
})
|
|
27707
|
+
.filter(item => !!item);
|
|
27662
27708
|
let lastBottomSeg;
|
|
27663
27709
|
const bottomCaches = [];
|
|
27664
27710
|
for (let i = segments.length - 1; i >= 0; i--) {
|
|
@@ -27708,13 +27754,17 @@
|
|
|
27708
27754
|
area.clearUpdateShapeTag();
|
|
27709
27755
|
}
|
|
27710
27756
|
if (Array.isArray(area.cacheArea)) {
|
|
27757
|
+
const segments = area.attribute.segments.filter(item => item.points.length);
|
|
27758
|
+
if (segments[0].points.length === 1) {
|
|
27759
|
+
segments.shift();
|
|
27760
|
+
}
|
|
27711
27761
|
if (clipRange === 1) {
|
|
27712
27762
|
let skip = false;
|
|
27713
27763
|
area.cacheArea.forEach((cache, index) => {
|
|
27714
27764
|
if (skip) {
|
|
27715
27765
|
return;
|
|
27716
27766
|
}
|
|
27717
|
-
skip = this.drawSegmentItem(context, cache, doFill, fillOpacity, doStroke, strokeOpacity,
|
|
27767
|
+
skip = this.drawSegmentItem(context, cache, doFill, fillOpacity, doStroke, strokeOpacity, segments[index], [areaAttribute, area.attribute], clipRange, x, y, z, area, drawContext, fillCb, strokeCb);
|
|
27718
27768
|
});
|
|
27719
27769
|
}
|
|
27720
27770
|
else {
|
|
@@ -27730,7 +27780,7 @@
|
|
|
27730
27780
|
const _cr = (totalDrawLength - drawedLengthUntilLast) / curSegLength;
|
|
27731
27781
|
drawedLengthUntilLast += curSegLength;
|
|
27732
27782
|
if (_cr > 0) {
|
|
27733
|
-
skip = this.drawSegmentItem(context, cache, doFill, fillOpacity, doStroke, strokeOpacity,
|
|
27783
|
+
skip = this.drawSegmentItem(context, cache, doFill, fillOpacity, doStroke, strokeOpacity, segments[index], [areaAttribute, area.attribute], min(_cr, 1), x, y, z, area, drawContext, fillCb, strokeCb);
|
|
27734
27784
|
}
|
|
27735
27785
|
});
|
|
27736
27786
|
}
|
|
@@ -27777,7 +27827,7 @@
|
|
|
27777
27827
|
let { connectedType, connectedX, connectedY, connectedStyle } = attribute;
|
|
27778
27828
|
const da = [];
|
|
27779
27829
|
if (connect) {
|
|
27780
|
-
if (isArray(defaultAttribute)) {
|
|
27830
|
+
if (isArray$1(defaultAttribute)) {
|
|
27781
27831
|
connectedType = (_a = connectedType !== null && connectedType !== void 0 ? connectedType : defaultAttribute[0].connectedType) !== null && _a !== void 0 ? _a : defaultAttribute[1].connectedType;
|
|
27782
27832
|
connectedX = (_b = connectedX !== null && connectedX !== void 0 ? connectedX : defaultAttribute[0].connectedX) !== null && _b !== void 0 ? _b : defaultAttribute[1].connectedX;
|
|
27783
27833
|
connectedY = (_c = connectedY !== null && connectedY !== void 0 ? connectedY : defaultAttribute[0].connectedY) !== null && _c !== void 0 ? _c : defaultAttribute[1].connectedY;
|
|
@@ -27792,7 +27842,7 @@
|
|
|
27792
27842
|
if (connectedType !== 'connect' && connectedType !== 'zero') {
|
|
27793
27843
|
connectedType = 'none';
|
|
27794
27844
|
}
|
|
27795
|
-
if (isArray(defaultAttribute)) {
|
|
27845
|
+
if (isArray$1(defaultAttribute)) {
|
|
27796
27846
|
defaultAttribute.forEach(i => da.push(i));
|
|
27797
27847
|
}
|
|
27798
27848
|
else {
|
|
@@ -27868,8 +27918,8 @@
|
|
|
27868
27918
|
strokeCb(context, attribute, defaultAttribute);
|
|
27869
27919
|
}
|
|
27870
27920
|
else {
|
|
27871
|
-
const { stroke } = attribute;
|
|
27872
|
-
if (isArray(stroke) && (stroke[0] || stroke[2]) && stroke[1] === false) {
|
|
27921
|
+
const { stroke = defaultAttribute && defaultAttribute[1] && defaultAttribute[1].stroke } = attribute;
|
|
27922
|
+
if (isArray$1(stroke) && (stroke[0] || stroke[2]) && stroke[1] === false) {
|
|
27873
27923
|
context.beginPath();
|
|
27874
27924
|
drawSegments(context.camera ? context : context.nativeContext, stroke[0] ? cache.top : cache.bottom, clipRange, direction === exports.Direction.ROW ? 'x' : 'y', {
|
|
27875
27925
|
offsetX,
|
|
@@ -27994,7 +28044,7 @@
|
|
|
27994
28044
|
const halfPi = pi / 2;
|
|
27995
28045
|
function createRectPath(path, x, y, width, height, rectCornerRadius) {
|
|
27996
28046
|
let cornerRadius;
|
|
27997
|
-
if (isNumber(rectCornerRadius, true)) {
|
|
28047
|
+
if (isNumber$2(rectCornerRadius, true)) {
|
|
27998
28048
|
cornerRadius = [
|
|
27999
28049
|
rectCornerRadius,
|
|
28000
28050
|
rectCornerRadius,
|
|
@@ -28100,7 +28150,7 @@
|
|
|
28100
28150
|
if (!(fVisible || sVisible || fillCb || strokeCb || background)) {
|
|
28101
28151
|
return;
|
|
28102
28152
|
}
|
|
28103
|
-
if (cornerRadius === 0 || (isArray(cornerRadius) && cornerRadius.every(num => num === 0))) {
|
|
28153
|
+
if (cornerRadius === 0 || (isArray$1(cornerRadius) && cornerRadius.every(num => num === 0))) {
|
|
28104
28154
|
context.beginPath();
|
|
28105
28155
|
context.rect(x, y, width, height);
|
|
28106
28156
|
}
|
|
@@ -28711,7 +28761,7 @@
|
|
|
28711
28761
|
return;
|
|
28712
28762
|
}
|
|
28713
28763
|
context.beginPath();
|
|
28714
|
-
if (cornerRadius <= 0 || (isArray(cornerRadius) && cornerRadius.every(num => num === 0))) {
|
|
28764
|
+
if (cornerRadius <= 0 || (isArray$1(cornerRadius) && cornerRadius.every(num => num === 0))) {
|
|
28715
28765
|
drawPolygon(context.camera ? context : context.nativeContext, points, x, y);
|
|
28716
28766
|
}
|
|
28717
28767
|
else {
|
|
@@ -28794,7 +28844,7 @@
|
|
|
28794
28844
|
}
|
|
28795
28845
|
drawShape(image, context, x, y, drawContext, params, fillCb) {
|
|
28796
28846
|
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;
|
|
28847
|
+
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
28848
|
const fVisible = fillVisible(opacity, fillOpacity, fill);
|
|
28799
28849
|
const doFill = runFill(fill);
|
|
28800
28850
|
if (!(image.valid && visible)) {
|
|
@@ -28827,6 +28877,15 @@
|
|
|
28827
28877
|
if (res.state !== 'success') {
|
|
28828
28878
|
return;
|
|
28829
28879
|
}
|
|
28880
|
+
let needRestore = false;
|
|
28881
|
+
if (cornerRadius === 0 || (isArray$1(cornerRadius) && cornerRadius.every(num => num === 0))) ;
|
|
28882
|
+
else {
|
|
28883
|
+
context.beginPath();
|
|
28884
|
+
createRectPath(context, x, y, width, height, cornerRadius);
|
|
28885
|
+
context.save();
|
|
28886
|
+
context.clip();
|
|
28887
|
+
needRestore = true;
|
|
28888
|
+
}
|
|
28830
28889
|
context.setCommonStyle(image, image.attribute, x, y, imageAttribute);
|
|
28831
28890
|
let repeat = 0;
|
|
28832
28891
|
if (repeatX === 'repeat') {
|
|
@@ -28843,6 +28902,9 @@
|
|
|
28843
28902
|
else {
|
|
28844
28903
|
context.drawImage(res.data, x, y, width, height);
|
|
28845
28904
|
}
|
|
28905
|
+
if (needRestore) {
|
|
28906
|
+
context.restore();
|
|
28907
|
+
}
|
|
28846
28908
|
}
|
|
28847
28909
|
}
|
|
28848
28910
|
this._imageRenderContribitions.forEach(c => {
|
|
@@ -28927,7 +28989,7 @@
|
|
|
28927
28989
|
}
|
|
28928
28990
|
let result;
|
|
28929
28991
|
let color;
|
|
28930
|
-
if (isArray(c)) {
|
|
28992
|
+
if (isArray$1(c)) {
|
|
28931
28993
|
for (let i = 0; i < c.length; i++) {
|
|
28932
28994
|
color = c[i];
|
|
28933
28995
|
if (color) {
|
|
@@ -29038,10 +29100,7 @@
|
|
|
29038
29100
|
}
|
|
29039
29101
|
allocate(data) {
|
|
29040
29102
|
if (!this.pools.length) {
|
|
29041
|
-
return wrapCanvas({
|
|
29042
|
-
nativeCanvas: application.global.createCanvas(data),
|
|
29043
|
-
...data
|
|
29044
|
-
});
|
|
29103
|
+
return wrapCanvas(Object.assign({ nativeCanvas: application.global.createCanvas(data) }, data));
|
|
29045
29104
|
}
|
|
29046
29105
|
const m = this.pools.pop();
|
|
29047
29106
|
m.resize(data.width, data.height);
|
|
@@ -29055,10 +29114,7 @@
|
|
|
29055
29114
|
height: canvas.height / canvas.dpr,
|
|
29056
29115
|
dpr: canvas.dpr
|
|
29057
29116
|
};
|
|
29058
|
-
return wrapCanvas({
|
|
29059
|
-
nativeCanvas: application.global.createCanvas(data),
|
|
29060
|
-
...data
|
|
29061
|
-
});
|
|
29117
|
+
return wrapCanvas(Object.assign({ nativeCanvas: application.global.createCanvas(data) }, data));
|
|
29062
29118
|
}
|
|
29063
29119
|
const m = this.pools.pop();
|
|
29064
29120
|
m.width = canvas.width;
|
|
@@ -29305,8 +29361,16 @@
|
|
|
29305
29361
|
this.order = 0;
|
|
29306
29362
|
}
|
|
29307
29363
|
drawShape(arc, context, x, y, doFill, doStroke, fVisible, sVisible, arcAttribute, drawContext, fillCb, strokeCb) {
|
|
29308
|
-
const {
|
|
29309
|
-
|
|
29364
|
+
const { outerBorder, innerBorder } = arc.attribute;
|
|
29365
|
+
const doOuterBorder = outerBorder && outerBorder.visible !== false;
|
|
29366
|
+
const doInnerBorder = innerBorder && innerBorder.visible !== false;
|
|
29367
|
+
if (!(doOuterBorder || doInnerBorder)) {
|
|
29368
|
+
return;
|
|
29369
|
+
}
|
|
29370
|
+
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;
|
|
29371
|
+
const doStrokeOuter = !!(outerBorder && outerBorder.stroke);
|
|
29372
|
+
const doStrokeInner = !!(innerBorder && innerBorder.stroke);
|
|
29373
|
+
if (doOuterBorder) {
|
|
29310
29374
|
const { distance = arcAttribute.outerBorder.distance } = outerBorder;
|
|
29311
29375
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29312
29376
|
const deltaAngle = distance / outerRadius;
|
|
@@ -29322,15 +29386,15 @@
|
|
|
29322
29386
|
if (strokeCb) {
|
|
29323
29387
|
strokeCb(context, outerBorder, arcAttribute.outerBorder);
|
|
29324
29388
|
}
|
|
29325
|
-
else if (
|
|
29389
|
+
else if (doStrokeOuter) {
|
|
29326
29390
|
const lastOpacity = arcAttribute.outerBorder.opacity;
|
|
29327
29391
|
arcAttribute.outerBorder.opacity = opacity;
|
|
29328
|
-
context.setStrokeStyle(arc, outerBorder, x, y, arcAttribute.outerBorder);
|
|
29392
|
+
context.setStrokeStyle(arc, outerBorder, (originX - x) / scaleX, (originY - y) / scaleY, arcAttribute.outerBorder);
|
|
29329
29393
|
arcAttribute.outerBorder.opacity = lastOpacity;
|
|
29330
29394
|
context.stroke();
|
|
29331
29395
|
}
|
|
29332
29396
|
}
|
|
29333
|
-
if (
|
|
29397
|
+
if (doInnerBorder) {
|
|
29334
29398
|
const { distance = arcAttribute.innerBorder.distance } = innerBorder;
|
|
29335
29399
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29336
29400
|
const deltaAngle = distance / outerRadius;
|
|
@@ -29346,10 +29410,10 @@
|
|
|
29346
29410
|
if (strokeCb) {
|
|
29347
29411
|
strokeCb(context, innerBorder, arcAttribute.innerBorder);
|
|
29348
29412
|
}
|
|
29349
|
-
else if (
|
|
29413
|
+
else if (doStrokeInner) {
|
|
29350
29414
|
const lastOpacity = arcAttribute.innerBorder.opacity;
|
|
29351
29415
|
arcAttribute.innerBorder.opacity = opacity;
|
|
29352
|
-
context.setStrokeStyle(arc, innerBorder, x, y, arcAttribute.innerBorder);
|
|
29416
|
+
context.setStrokeStyle(arc, innerBorder, (originX - x) / scaleX, (originY - y) / scaleY, arcAttribute.innerBorder);
|
|
29353
29417
|
arcAttribute.innerBorder.opacity = lastOpacity;
|
|
29354
29418
|
context.stroke();
|
|
29355
29419
|
}
|
|
@@ -29386,8 +29450,16 @@
|
|
|
29386
29450
|
this.order = 0;
|
|
29387
29451
|
}
|
|
29388
29452
|
drawShape(circle, context, x, y, doFill, doStroke, fVisible, sVisible, circleAttribute, drawContext, fillCb, strokeCb) {
|
|
29389
|
-
const {
|
|
29390
|
-
|
|
29453
|
+
const { outerBorder, innerBorder } = circle.attribute;
|
|
29454
|
+
const doOuterBorder = outerBorder && outerBorder.visible !== false;
|
|
29455
|
+
const doInnerBorder = innerBorder && innerBorder.visible !== false;
|
|
29456
|
+
if (!(doOuterBorder || doInnerBorder)) {
|
|
29457
|
+
return;
|
|
29458
|
+
}
|
|
29459
|
+
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;
|
|
29460
|
+
const doStrokeOuter = !!(outerBorder && outerBorder.stroke);
|
|
29461
|
+
const doStrokeInner = !!(innerBorder && innerBorder.stroke);
|
|
29462
|
+
if (doOuterBorder) {
|
|
29391
29463
|
const { distance = circleAttribute.outerBorder.distance } = outerBorder;
|
|
29392
29464
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29393
29465
|
const dw = d;
|
|
@@ -29398,15 +29470,15 @@
|
|
|
29398
29470
|
if (strokeCb) {
|
|
29399
29471
|
strokeCb(context, outerBorder, circleAttribute.outerBorder);
|
|
29400
29472
|
}
|
|
29401
|
-
else if (
|
|
29473
|
+
else if (doStrokeOuter) {
|
|
29402
29474
|
const lastOpacity = circleAttribute.outerBorder.opacity;
|
|
29403
29475
|
circleAttribute.outerBorder.opacity = opacity;
|
|
29404
|
-
context.setStrokeStyle(circle, outerBorder, x, y, circleAttribute.outerBorder);
|
|
29476
|
+
context.setStrokeStyle(circle, outerBorder, (originX - x) / scaleX, (originY - y) / scaleY, circleAttribute.outerBorder);
|
|
29405
29477
|
circleAttribute.outerBorder.opacity = lastOpacity;
|
|
29406
29478
|
context.stroke();
|
|
29407
29479
|
}
|
|
29408
29480
|
}
|
|
29409
|
-
if (
|
|
29481
|
+
if (doInnerBorder) {
|
|
29410
29482
|
const { distance = circleAttribute.innerBorder.distance } = innerBorder;
|
|
29411
29483
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29412
29484
|
const dw = d;
|
|
@@ -29417,10 +29489,10 @@
|
|
|
29417
29489
|
if (strokeCb) {
|
|
29418
29490
|
strokeCb(context, innerBorder, circleAttribute.innerBorder);
|
|
29419
29491
|
}
|
|
29420
|
-
else if (
|
|
29492
|
+
else if (doStrokeInner) {
|
|
29421
29493
|
const lastOpacity = circleAttribute.innerBorder.opacity;
|
|
29422
29494
|
circleAttribute.innerBorder.opacity = opacity;
|
|
29423
|
-
context.setStrokeStyle(circle, innerBorder, x, y, circleAttribute.innerBorder);
|
|
29495
|
+
context.setStrokeStyle(circle, innerBorder, (originX - x) / scaleX, (originY - y) / scaleY, circleAttribute.innerBorder);
|
|
29424
29496
|
circleAttribute.innerBorder.opacity = lastOpacity;
|
|
29425
29497
|
context.stroke();
|
|
29426
29498
|
}
|
|
@@ -29494,12 +29566,38 @@
|
|
|
29494
29566
|
return;
|
|
29495
29567
|
}
|
|
29496
29568
|
if (!graphic.backgroundImg) {
|
|
29497
|
-
|
|
29498
|
-
|
|
29499
|
-
|
|
29500
|
-
|
|
29501
|
-
|
|
29502
|
-
|
|
29569
|
+
if (isObject$1(background)) {
|
|
29570
|
+
const { stroke, fill, lineWidth = 1, cornerRadius = 0, expandX = 0, expandY = 0 } = background;
|
|
29571
|
+
if (!stroke && !fill) {
|
|
29572
|
+
return;
|
|
29573
|
+
}
|
|
29574
|
+
context.beginPath();
|
|
29575
|
+
const { x, y, width, height } = getActualPosition(graphic);
|
|
29576
|
+
if (cornerRadius) {
|
|
29577
|
+
createRectPath(context, x - expandX, y - expandY, width + expandX * 2, height + expandY * 2, cornerRadius);
|
|
29578
|
+
}
|
|
29579
|
+
else {
|
|
29580
|
+
context.rect(x - expandX, y - expandY, width + expandX * 2, height + expandY * 2);
|
|
29581
|
+
}
|
|
29582
|
+
context.globalAlpha = 1;
|
|
29583
|
+
if (fill) {
|
|
29584
|
+
context.fillStyle = fill;
|
|
29585
|
+
context.fill();
|
|
29586
|
+
}
|
|
29587
|
+
if (stroke && lineWidth > 0) {
|
|
29588
|
+
context.lineWidth = lineWidth;
|
|
29589
|
+
context.strokeStyle = stroke;
|
|
29590
|
+
context.stroke();
|
|
29591
|
+
}
|
|
29592
|
+
}
|
|
29593
|
+
else {
|
|
29594
|
+
context.beginPath();
|
|
29595
|
+
const b = graphic.AABBBounds;
|
|
29596
|
+
context.rect(x, y, b.width(), b.height());
|
|
29597
|
+
context.fillStyle = background;
|
|
29598
|
+
context.globalAlpha = 1;
|
|
29599
|
+
context.fill();
|
|
29600
|
+
}
|
|
29503
29601
|
}
|
|
29504
29602
|
else {
|
|
29505
29603
|
const res = graphic.resources.get(background);
|
|
@@ -29525,6 +29623,32 @@
|
|
|
29525
29623
|
exports.DefaultImageBackgroundRenderContribution = __decorate([
|
|
29526
29624
|
injectable()
|
|
29527
29625
|
], exports.DefaultImageBackgroundRenderContribution);
|
|
29626
|
+
function getActualPosition(graphic) {
|
|
29627
|
+
const boundsPadding = parsePadding(graphic.attribute.boundsPadding);
|
|
29628
|
+
const bounds = graphic.AABBBounds;
|
|
29629
|
+
let x = bounds.x1;
|
|
29630
|
+
let y = bounds.y1;
|
|
29631
|
+
let width = bounds.width();
|
|
29632
|
+
let height = bounds.height();
|
|
29633
|
+
if (isNumber$2(boundsPadding)) {
|
|
29634
|
+
x += boundsPadding;
|
|
29635
|
+
y += boundsPadding;
|
|
29636
|
+
width -= boundsPadding * 2;
|
|
29637
|
+
height -= boundsPadding * 2;
|
|
29638
|
+
}
|
|
29639
|
+
else {
|
|
29640
|
+
x += boundsPadding[3];
|
|
29641
|
+
y += boundsPadding[0];
|
|
29642
|
+
width -= boundsPadding[1] + boundsPadding[3];
|
|
29643
|
+
height -= boundsPadding[0] + boundsPadding[2];
|
|
29644
|
+
}
|
|
29645
|
+
return {
|
|
29646
|
+
x,
|
|
29647
|
+
y,
|
|
29648
|
+
width,
|
|
29649
|
+
height
|
|
29650
|
+
};
|
|
29651
|
+
}
|
|
29528
29652
|
|
|
29529
29653
|
exports.DefaultRectRenderContribution = class DefaultRectRenderContribution {
|
|
29530
29654
|
constructor() {
|
|
@@ -29533,14 +29657,22 @@
|
|
|
29533
29657
|
this.order = 0;
|
|
29534
29658
|
}
|
|
29535
29659
|
drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
|
|
29536
|
-
const {
|
|
29537
|
-
|
|
29660
|
+
const { outerBorder, innerBorder } = rect.attribute;
|
|
29661
|
+
const doOuterBorder = outerBorder && outerBorder.visible !== false;
|
|
29662
|
+
const doInnerBorder = innerBorder && innerBorder.visible !== false;
|
|
29663
|
+
if (!(doOuterBorder || doInnerBorder)) {
|
|
29664
|
+
return;
|
|
29665
|
+
}
|
|
29666
|
+
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;
|
|
29667
|
+
const doStrokeOuter = !!(outerBorder && outerBorder.stroke);
|
|
29668
|
+
const doStrokeInner = !!(innerBorder && innerBorder.stroke);
|
|
29669
|
+
if (doOuterBorder) {
|
|
29538
29670
|
const { distance = rectAttribute.outerBorder.distance } = outerBorder;
|
|
29539
29671
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29540
29672
|
const nextX = x - d;
|
|
29541
29673
|
const nextY = y - d;
|
|
29542
29674
|
const dw = d * 2;
|
|
29543
|
-
if (cornerRadius === 0 || (isArray(cornerRadius) && cornerRadius.every(num => num === 0))) {
|
|
29675
|
+
if (cornerRadius === 0 || (isArray$1(cornerRadius) && cornerRadius.every(num => num === 0))) {
|
|
29544
29676
|
context.beginPath();
|
|
29545
29677
|
context.rect(nextX, nextY, width + dw, height + dw);
|
|
29546
29678
|
}
|
|
@@ -29552,21 +29684,21 @@
|
|
|
29552
29684
|
if (strokeCb) {
|
|
29553
29685
|
strokeCb(context, outerBorder, rectAttribute.outerBorder);
|
|
29554
29686
|
}
|
|
29555
|
-
else if (
|
|
29687
|
+
else if (doStrokeOuter) {
|
|
29556
29688
|
const lastOpacity = rectAttribute.outerBorder.opacity;
|
|
29557
29689
|
rectAttribute.outerBorder.opacity = opacity;
|
|
29558
|
-
context.setStrokeStyle(rect, outerBorder, x, y, rectAttribute.outerBorder);
|
|
29690
|
+
context.setStrokeStyle(rect, outerBorder, (originX - x) / scaleX, (originY - y) / scaleY, rectAttribute.outerBorder);
|
|
29559
29691
|
rectAttribute.outerBorder.opacity = lastOpacity;
|
|
29560
29692
|
context.stroke();
|
|
29561
29693
|
}
|
|
29562
29694
|
}
|
|
29563
|
-
if (
|
|
29695
|
+
if (doInnerBorder) {
|
|
29564
29696
|
const { distance = rectAttribute.innerBorder.distance } = innerBorder;
|
|
29565
29697
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29566
29698
|
const nextX = x + d;
|
|
29567
29699
|
const nextY = y + d;
|
|
29568
29700
|
const dw = d * 2;
|
|
29569
|
-
if (cornerRadius === 0 || (isArray(cornerRadius) && cornerRadius.every(num => num === 0))) {
|
|
29701
|
+
if (cornerRadius === 0 || (isArray$1(cornerRadius) && cornerRadius.every(num => num === 0))) {
|
|
29570
29702
|
context.beginPath();
|
|
29571
29703
|
context.rect(nextX, nextY, width - dw, height - dw);
|
|
29572
29704
|
}
|
|
@@ -29578,10 +29710,10 @@
|
|
|
29578
29710
|
if (strokeCb) {
|
|
29579
29711
|
strokeCb(context, innerBorder, rectAttribute.innerBorder);
|
|
29580
29712
|
}
|
|
29581
|
-
else if (
|
|
29713
|
+
else if (doStrokeInner) {
|
|
29582
29714
|
const lastOpacity = rectAttribute.innerBorder.opacity;
|
|
29583
29715
|
rectAttribute.innerBorder.opacity = opacity;
|
|
29584
|
-
context.setStrokeStyle(rect, innerBorder, x, y, rectAttribute.innerBorder);
|
|
29716
|
+
context.setStrokeStyle(rect, innerBorder, (originX - x) / scaleX, (originY - y) / scaleY, rectAttribute.innerBorder);
|
|
29585
29717
|
rectAttribute.innerBorder.opacity = lastOpacity;
|
|
29586
29718
|
context.stroke();
|
|
29587
29719
|
}
|
|
@@ -29678,12 +29810,20 @@
|
|
|
29678
29810
|
this.order = 0;
|
|
29679
29811
|
}
|
|
29680
29812
|
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
29813
|
const parsedPath = symbol.getParsedPath();
|
|
29683
29814
|
if (!parsedPath) {
|
|
29684
29815
|
return;
|
|
29685
29816
|
}
|
|
29686
|
-
|
|
29817
|
+
const { outerBorder, innerBorder } = symbol.attribute;
|
|
29818
|
+
const doOuterBorder = outerBorder && outerBorder.visible !== false;
|
|
29819
|
+
const doInnerBorder = innerBorder && innerBorder.visible !== false;
|
|
29820
|
+
if (!(doOuterBorder || doInnerBorder)) {
|
|
29821
|
+
return;
|
|
29822
|
+
}
|
|
29823
|
+
const { size = symbolAttribute.size, opacity = symbolAttribute.opacity, x: originX = symbolAttribute.x, y: originY = symbolAttribute.y, scaleX = symbolAttribute.scaleX, scaleY = symbolAttribute.scaleY } = symbol.attribute;
|
|
29824
|
+
const doStrokeOuter = !!(outerBorder && outerBorder.stroke);
|
|
29825
|
+
const doStrokeInner = !!(innerBorder && innerBorder.stroke);
|
|
29826
|
+
if (doOuterBorder) {
|
|
29687
29827
|
const { distance = symbolAttribute.outerBorder.distance } = outerBorder;
|
|
29688
29828
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29689
29829
|
context.beginPath();
|
|
@@ -29694,15 +29834,15 @@
|
|
|
29694
29834
|
if (strokeCb) {
|
|
29695
29835
|
strokeCb(context, outerBorder, symbolAttribute.outerBorder);
|
|
29696
29836
|
}
|
|
29697
|
-
else if (
|
|
29837
|
+
else if (doStrokeOuter) {
|
|
29698
29838
|
const lastOpacity = symbolAttribute.outerBorder.opacity;
|
|
29699
29839
|
symbolAttribute.outerBorder.opacity = opacity;
|
|
29700
|
-
context.setStrokeStyle(symbol, outerBorder, x, y, symbolAttribute.outerBorder);
|
|
29840
|
+
context.setStrokeStyle(symbol, outerBorder, (originX - x) / scaleX, (originY - y) / scaleY, symbolAttribute.outerBorder);
|
|
29701
29841
|
symbolAttribute.outerBorder.opacity = lastOpacity;
|
|
29702
29842
|
context.stroke();
|
|
29703
29843
|
}
|
|
29704
29844
|
}
|
|
29705
|
-
if (
|
|
29845
|
+
if (doInnerBorder) {
|
|
29706
29846
|
const { distance = symbolAttribute.innerBorder.distance } = innerBorder;
|
|
29707
29847
|
const d = getScaledStroke(context, distance, context.dpr);
|
|
29708
29848
|
context.beginPath();
|
|
@@ -29713,10 +29853,10 @@
|
|
|
29713
29853
|
if (strokeCb) {
|
|
29714
29854
|
strokeCb(context, innerBorder, symbolAttribute.innerBorder);
|
|
29715
29855
|
}
|
|
29716
|
-
else if (
|
|
29856
|
+
else if (doStrokeInner) {
|
|
29717
29857
|
const lastOpacity = symbolAttribute.innerBorder.opacity;
|
|
29718
29858
|
symbolAttribute.innerBorder.opacity = opacity;
|
|
29719
|
-
context.setStrokeStyle(symbol, innerBorder, x, y, symbolAttribute.innerBorder);
|
|
29859
|
+
context.setStrokeStyle(symbol, innerBorder, (originX - x) / scaleX, (originY - y) / scaleY, symbolAttribute.innerBorder);
|
|
29720
29860
|
symbolAttribute.innerBorder.opacity = lastOpacity;
|
|
29721
29861
|
context.stroke();
|
|
29722
29862
|
}
|
|
@@ -29764,10 +29904,10 @@
|
|
|
29764
29904
|
return;
|
|
29765
29905
|
}
|
|
29766
29906
|
draw(params) {
|
|
29767
|
-
this.drawContribution.draw(this, {
|
|
29907
|
+
this.drawContribution.draw(this, Object.assign({}, this.drawParams));
|
|
29768
29908
|
}
|
|
29769
29909
|
afterDraw(params) {
|
|
29770
|
-
this.drawContribution.afterDraw && this.drawContribution.afterDraw(this, {
|
|
29910
|
+
this.drawContribution.afterDraw && this.drawContribution.afterDraw(this, Object.assign({}, this.drawParams));
|
|
29771
29911
|
return;
|
|
29772
29912
|
}
|
|
29773
29913
|
render(groups, params) {
|
|
@@ -29850,8 +29990,10 @@
|
|
|
29850
29990
|
graphic.forEachChildren(cb, reverse);
|
|
29851
29991
|
}
|
|
29852
29992
|
}
|
|
29853
|
-
|
|
29854
|
-
|
|
29993
|
+
function foreachAsync(graphic, defaultZIndex, cb, reverse = false) {
|
|
29994
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29995
|
+
yield graphic.forEachChildrenAsync(cb, reverse);
|
|
29996
|
+
});
|
|
29855
29997
|
}
|
|
29856
29998
|
function findNextGraphic(graphic, id, defaultZIndex, reverse = false) {
|
|
29857
29999
|
const childMap = {};
|
|
@@ -29917,6 +30059,46 @@
|
|
|
29917
30059
|
}
|
|
29918
30060
|
|
|
29919
30061
|
const PickItemInterceptor = Symbol.for('PickItemInterceptor');
|
|
30062
|
+
let ShadowRootPickItemInterceptorContribution = class ShadowRootPickItemInterceptorContribution {
|
|
30063
|
+
constructor() {
|
|
30064
|
+
this.order = 1;
|
|
30065
|
+
}
|
|
30066
|
+
afterPickItem(graphic, pickerService, point, pickParams, params) {
|
|
30067
|
+
if (graphic.attribute.shadowRootIdx > 0 || !graphic.attribute.shadowRootIdx) {
|
|
30068
|
+
return this._pickItem(graphic, pickerService, point, pickParams, params);
|
|
30069
|
+
}
|
|
30070
|
+
return false;
|
|
30071
|
+
}
|
|
30072
|
+
beforePickItem(graphic, pickerService, point, pickParams, params) {
|
|
30073
|
+
if (graphic.attribute.shadowRootIdx < 0) {
|
|
30074
|
+
return this._pickItem(graphic, pickerService, point, pickParams, params);
|
|
30075
|
+
}
|
|
30076
|
+
return false;
|
|
30077
|
+
}
|
|
30078
|
+
_pickItem(graphic, pickerService, point, pickParams, params) {
|
|
30079
|
+
if (!graphic.shadowRoot) {
|
|
30080
|
+
return false;
|
|
30081
|
+
}
|
|
30082
|
+
const { parentMatrix } = params || {};
|
|
30083
|
+
if (!parentMatrix) {
|
|
30084
|
+
return false;
|
|
30085
|
+
}
|
|
30086
|
+
const context = pickerService.pickContext;
|
|
30087
|
+
context.highPerformanceSave();
|
|
30088
|
+
const g = graphic.shadowRoot;
|
|
30089
|
+
const currentGroupMatrix = matrixAllocate.allocateByObj(parentMatrix);
|
|
30090
|
+
const newPoint = new Point(point.x, point.y);
|
|
30091
|
+
parentMatrix.transformPoint(newPoint, newPoint);
|
|
30092
|
+
const transMatrix = graphic.transMatrix;
|
|
30093
|
+
currentGroupMatrix.multiply(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f);
|
|
30094
|
+
const result = pickerService.pickGroup(g, newPoint.clone(), currentGroupMatrix, pickParams);
|
|
30095
|
+
context.highPerformanceRestore();
|
|
30096
|
+
return result;
|
|
30097
|
+
}
|
|
30098
|
+
};
|
|
30099
|
+
ShadowRootPickItemInterceptorContribution = __decorate([
|
|
30100
|
+
injectable()
|
|
30101
|
+
], ShadowRootPickItemInterceptorContribution);
|
|
29920
30102
|
let Canvas3DPickItemInterceptor = class Canvas3DPickItemInterceptor {
|
|
29921
30103
|
constructor() {
|
|
29922
30104
|
this.order = 1;
|
|
@@ -30083,7 +30265,7 @@
|
|
|
30083
30265
|
result = this.pickGroup(graphics[i], point, parentMatrix, params);
|
|
30084
30266
|
}
|
|
30085
30267
|
else {
|
|
30086
|
-
result.graphic = this.pickItem(graphics[i], point, params);
|
|
30268
|
+
result.graphic = this.pickItem(graphics[i], point, parentMatrix, params);
|
|
30087
30269
|
}
|
|
30088
30270
|
if (result.graphic) {
|
|
30089
30271
|
break;
|
|
@@ -30098,10 +30280,22 @@
|
|
|
30098
30280
|
if (this.pickContext) {
|
|
30099
30281
|
this.pickContext.inuse = false;
|
|
30100
30282
|
}
|
|
30283
|
+
if (result.graphic) {
|
|
30284
|
+
let g = result.graphic;
|
|
30285
|
+
while (g.parent) {
|
|
30286
|
+
g = g.parent;
|
|
30287
|
+
}
|
|
30288
|
+
if (g.shadowHost) {
|
|
30289
|
+
result.params = {
|
|
30290
|
+
shadowTarget: result.graphic
|
|
30291
|
+
};
|
|
30292
|
+
result.graphic = g.shadowHost;
|
|
30293
|
+
}
|
|
30294
|
+
}
|
|
30101
30295
|
return result;
|
|
30102
30296
|
}
|
|
30103
30297
|
containsPoint(graphic, point, params) {
|
|
30104
|
-
return !!this.pickItem(graphic, point, params);
|
|
30298
|
+
return !!this.pickItem(graphic, point, null, params);
|
|
30105
30299
|
}
|
|
30106
30300
|
pickGroup(group, point, parentMatrix, params) {
|
|
30107
30301
|
let result = {
|
|
@@ -30152,9 +30346,13 @@
|
|
|
30152
30346
|
if (!insideGroup && !group.stage.camera) {
|
|
30153
30347
|
return result;
|
|
30154
30348
|
}
|
|
30349
|
+
const pickedItem = this.pickItem(group, newPoint.clone(), parentMatrix, params);
|
|
30350
|
+
if (pickedItem) {
|
|
30351
|
+
result.graphic = pickedItem;
|
|
30352
|
+
}
|
|
30155
30353
|
const groupPicked = group.attribute.pickable !== false && insideGroup;
|
|
30156
30354
|
currentGroupMatrix.multiply(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f);
|
|
30157
|
-
if (group.attribute.childrenPickable !== false) {
|
|
30355
|
+
if (group.attribute.childrenPickable !== false && !pickedItem) {
|
|
30158
30356
|
foreach(group, DefaultAttribute.zIndex, (graphic) => {
|
|
30159
30357
|
if (graphic.isContainer) {
|
|
30160
30358
|
const newPoint = new Point(point.x, point.y);
|
|
@@ -30171,7 +30369,7 @@
|
|
|
30171
30369
|
const { scrollX = theme.scrollX, scrollY = theme.scrollY } = group.attribute;
|
|
30172
30370
|
newPoint.x -= scrollX;
|
|
30173
30371
|
newPoint.y -= scrollY;
|
|
30174
|
-
const pickedItem = this.pickItem(graphic, newPoint, params);
|
|
30372
|
+
const pickedItem = this.pickItem(graphic, newPoint, parentMatrix, params);
|
|
30175
30373
|
result.graphic = pickedItem;
|
|
30176
30374
|
}
|
|
30177
30375
|
return !!result.graphic || !!result.group;
|
|
@@ -30227,7 +30425,7 @@
|
|
|
30227
30425
|
result = this.pickGroup(graphics[i], point, parentMatrix, params);
|
|
30228
30426
|
}
|
|
30229
30427
|
else {
|
|
30230
|
-
result.graphic = this.pickItem(graphics[i], point, params);
|
|
30428
|
+
result.graphic = this.pickItem(graphics[i], point, parentMatrix, params);
|
|
30231
30429
|
}
|
|
30232
30430
|
if (result.graphic) {
|
|
30233
30431
|
break;
|
|
@@ -30239,10 +30437,22 @@
|
|
|
30239
30437
|
if (!result.graphic) {
|
|
30240
30438
|
result.group = group;
|
|
30241
30439
|
}
|
|
30440
|
+
if (result.graphic) {
|
|
30441
|
+
let g = result.graphic;
|
|
30442
|
+
while (g.parent) {
|
|
30443
|
+
g = g.parent;
|
|
30444
|
+
}
|
|
30445
|
+
if (g.shadowHost) {
|
|
30446
|
+
result.params = {
|
|
30447
|
+
shadowTarget: result.graphic
|
|
30448
|
+
};
|
|
30449
|
+
result.graphic = g.shadowHost;
|
|
30450
|
+
}
|
|
30451
|
+
}
|
|
30242
30452
|
return result;
|
|
30243
30453
|
}
|
|
30244
30454
|
containsPoint(graphic, point, params) {
|
|
30245
|
-
return !!this.pickItem(graphic, point, params);
|
|
30455
|
+
return !!this.pickItem(graphic, point, null, params);
|
|
30246
30456
|
}
|
|
30247
30457
|
pickGroup(group, point, parentMatrix, params) {
|
|
30248
30458
|
let result = {
|
|
@@ -30269,7 +30479,7 @@
|
|
|
30269
30479
|
else {
|
|
30270
30480
|
const newPoint = new Point(point.x, point.y);
|
|
30271
30481
|
parentMatrix.transformPoint(newPoint, newPoint);
|
|
30272
|
-
result.graphic = this.pickItem(graphic, newPoint, params);
|
|
30482
|
+
result.graphic = this.pickItem(graphic, newPoint, parentMatrix, params);
|
|
30273
30483
|
}
|
|
30274
30484
|
return !!result.graphic || !!result.group;
|
|
30275
30485
|
});
|
|
@@ -30279,7 +30489,7 @@
|
|
|
30279
30489
|
}
|
|
30280
30490
|
return result;
|
|
30281
30491
|
}
|
|
30282
|
-
pickItem(graphic, point, params) {
|
|
30492
|
+
pickItem(graphic, point, parentMatrix, params) {
|
|
30283
30493
|
if (graphic.attribute.pickable === false) {
|
|
30284
30494
|
return null;
|
|
30285
30495
|
}
|
|
@@ -30459,12 +30669,12 @@
|
|
|
30459
30669
|
}
|
|
30460
30670
|
class OrthoCamera {
|
|
30461
30671
|
set params(params) {
|
|
30462
|
-
this._params = {
|
|
30672
|
+
this._params = Object.assign({}, params);
|
|
30463
30673
|
this._projectionMatrixCached = this.forceGetProjectionMatrix();
|
|
30464
30674
|
this._viewMatrixCached = this.forceGetViewMatrix();
|
|
30465
30675
|
}
|
|
30466
30676
|
get params() {
|
|
30467
|
-
return {
|
|
30677
|
+
return Object.assign({}, this._params);
|
|
30468
30678
|
}
|
|
30469
30679
|
constructor(params) {
|
|
30470
30680
|
this.params = params;
|
|
@@ -30678,9 +30888,9 @@
|
|
|
30678
30888
|
}
|
|
30679
30889
|
}
|
|
30680
30890
|
constructor(canvas, dpr) {
|
|
30681
|
-
this.fillAttributes = {
|
|
30682
|
-
this.strokeAttributes = {
|
|
30683
|
-
this.textAttributes = {
|
|
30891
|
+
this.fillAttributes = Object.assign(Object.assign({}, DefaultFillStyle), { opacity: 1 });
|
|
30892
|
+
this.strokeAttributes = Object.assign(Object.assign({}, DefaultStrokeStyle), { opacity: 1 });
|
|
30893
|
+
this.textAttributes = Object.assign(Object.assign({}, DefaultTextStyle), { opacity: 1 });
|
|
30684
30894
|
this._clearShadowStyle = false;
|
|
30685
30895
|
this._clearFilterStyle = false;
|
|
30686
30896
|
const context = canvas.nativeCanvas.getContext('2d');
|
|
@@ -31350,7 +31560,7 @@
|
|
|
31350
31560
|
}
|
|
31351
31561
|
set dpr(dpr) {
|
|
31352
31562
|
this._dpr = dpr;
|
|
31353
|
-
this.resize(this.
|
|
31563
|
+
this.resize(this._displayWidth, this._displayHeight);
|
|
31354
31564
|
}
|
|
31355
31565
|
constructor(params) {
|
|
31356
31566
|
const { nativeCanvas, width = DefaultConfig$6.WIDTH, height = DefaultConfig$6.HEIGHT, dpr = DefaultConfig$6.DPR, container, x, y, canvasControled = true } = params;
|
|
@@ -31505,6 +31715,7 @@
|
|
|
31505
31715
|
const CanvasPyramid3dPicker = Symbol.for('CanvasPyramid3dPicker');
|
|
31506
31716
|
const CanvasRichTextPicker = Symbol.for('CanvasRichTextPicker');
|
|
31507
31717
|
const CanvasGlyphPicker = Symbol.for('CanvasGlyphPicker');
|
|
31718
|
+
const CanvasGroupPicker = Symbol.for('CanvasGroupPicker');
|
|
31508
31719
|
const CanvasPickerContribution = Symbol.for('CanvasPickerContribution');
|
|
31509
31720
|
const MathArcPicker = Symbol.for('MathArcPicker');
|
|
31510
31721
|
const MathAreaPicker = Symbol.for('MathAreaPicker');
|
|
@@ -31558,7 +31769,7 @@
|
|
|
31558
31769
|
this.pickCanvas = new exports.BrowserCanvas(options);
|
|
31559
31770
|
this.pickContext = this.pickCanvas.getContext('2d');
|
|
31560
31771
|
}
|
|
31561
|
-
pickItem(graphic, point, params) {
|
|
31772
|
+
pickItem(graphic, point, parentMatrix, params) {
|
|
31562
31773
|
if (graphic.attribute.pickable === false) {
|
|
31563
31774
|
return null;
|
|
31564
31775
|
}
|
|
@@ -31566,8 +31777,9 @@
|
|
|
31566
31777
|
for (let i = 0; i < this.InterceptorContributions.length; i++) {
|
|
31567
31778
|
const drawContribution = this.InterceptorContributions[i];
|
|
31568
31779
|
if (drawContribution.beforePickItem) {
|
|
31569
|
-
|
|
31570
|
-
|
|
31780
|
+
const ret = drawContribution.beforePickItem(graphic, this, point, params, { parentMatrix });
|
|
31781
|
+
if (ret) {
|
|
31782
|
+
return ret === true ? graphic : ret.graphic;
|
|
31571
31783
|
}
|
|
31572
31784
|
}
|
|
31573
31785
|
}
|
|
@@ -31576,7 +31788,22 @@
|
|
|
31576
31788
|
if (!picker) {
|
|
31577
31789
|
return null;
|
|
31578
31790
|
}
|
|
31579
|
-
|
|
31791
|
+
const data = picker.contains(graphic, point, params) ? graphic : null;
|
|
31792
|
+
if (data) {
|
|
31793
|
+
return data;
|
|
31794
|
+
}
|
|
31795
|
+
if (this.InterceptorContributions.length) {
|
|
31796
|
+
for (let i = 0; i < this.InterceptorContributions.length; i++) {
|
|
31797
|
+
const drawContribution = this.InterceptorContributions[i];
|
|
31798
|
+
if (drawContribution.afterPickItem) {
|
|
31799
|
+
const ret = drawContribution.afterPickItem(graphic, this, point, params, { parentMatrix });
|
|
31800
|
+
if (ret) {
|
|
31801
|
+
return ret === true ? graphic : ret.graphic;
|
|
31802
|
+
}
|
|
31803
|
+
}
|
|
31804
|
+
}
|
|
31805
|
+
}
|
|
31806
|
+
return data;
|
|
31580
31807
|
}
|
|
31581
31808
|
};
|
|
31582
31809
|
__decorate([
|
|
@@ -31881,7 +32108,7 @@
|
|
|
31881
32108
|
configure(global, env) {
|
|
31882
32109
|
this.pickContext = new exports.EmptyContext2d(null, 1);
|
|
31883
32110
|
}
|
|
31884
|
-
pickItem(graphic, point, params) {
|
|
32111
|
+
pickItem(graphic, point, parentMatrix, params) {
|
|
31885
32112
|
if (graphic.attribute.pickable === false) {
|
|
31886
32113
|
return null;
|
|
31887
32114
|
}
|
|
@@ -31916,6 +32143,8 @@
|
|
|
31916
32143
|
bind(GlobalPickerService).toService(exports.DefaultGlobalPickerService);
|
|
31917
32144
|
bind(Canvas3DPickItemInterceptor).toSelf().inSingletonScope();
|
|
31918
32145
|
bind(PickItemInterceptor).toService(Canvas3DPickItemInterceptor);
|
|
32146
|
+
bind(ShadowRootPickItemInterceptorContribution).toSelf().inSingletonScope();
|
|
32147
|
+
bind(PickItemInterceptor).toService(ShadowRootPickItemInterceptorContribution);
|
|
31919
32148
|
bindContributionProvider(bind, PickItemInterceptor);
|
|
31920
32149
|
});
|
|
31921
32150
|
|
|
@@ -32006,7 +32235,7 @@
|
|
|
32006
32235
|
var pluginModule = new ContainerModule(bind => {
|
|
32007
32236
|
bind(DefaultPluginService).toSelf();
|
|
32008
32237
|
bind(PluginService).toService(DefaultPluginService);
|
|
32009
|
-
|
|
32238
|
+
bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
32010
32239
|
});
|
|
32011
32240
|
|
|
32012
32241
|
exports.BaseEnvContribution = class BaseEnvContribution {
|
|
@@ -32085,6 +32314,15 @@
|
|
|
32085
32314
|
};
|
|
32086
32315
|
});
|
|
32087
32316
|
}
|
|
32317
|
+
getElementTop(dom, baseWindow) {
|
|
32318
|
+
return 0;
|
|
32319
|
+
}
|
|
32320
|
+
getElementLeft(dom, baseWindow) {
|
|
32321
|
+
return 0;
|
|
32322
|
+
}
|
|
32323
|
+
getElementTopLeft(dom, baseWindow) {
|
|
32324
|
+
return { top: 0, left: 0 };
|
|
32325
|
+
}
|
|
32088
32326
|
};
|
|
32089
32327
|
exports.BaseEnvContribution = __decorate([
|
|
32090
32328
|
injectable()
|
|
@@ -32164,8 +32402,8 @@
|
|
|
32164
32402
|
scaleY = rect.height / nativeCanvas.offsetHeight;
|
|
32165
32403
|
}
|
|
32166
32404
|
return {
|
|
32167
|
-
x: (x - rect.left) / (isValidNumber(scaleX) ? scaleX : 1),
|
|
32168
|
-
y: (y - rect.top) / (isValidNumber(scaleY) ? scaleX : 1)
|
|
32405
|
+
x: (x - rect.left) / (isValidNumber$1(scaleX) ? scaleX : 1),
|
|
32406
|
+
y: (y - rect.top) / (isValidNumber$1(scaleY) ? scaleX : 1)
|
|
32169
32407
|
};
|
|
32170
32408
|
}
|
|
32171
32409
|
return {
|
|
@@ -32192,7 +32430,7 @@
|
|
|
32192
32430
|
const { tagName = 'div', width, height, style, parent } = params;
|
|
32193
32431
|
const element = document.createElement(tagName);
|
|
32194
32432
|
if (style) {
|
|
32195
|
-
if (isString(style)) {
|
|
32433
|
+
if (isString$1(style)) {
|
|
32196
32434
|
element.setAttribute('style', style);
|
|
32197
32435
|
}
|
|
32198
32436
|
else {
|
|
@@ -32208,7 +32446,7 @@
|
|
|
32208
32446
|
element.style.height = `${height}px`;
|
|
32209
32447
|
}
|
|
32210
32448
|
if (parent) {
|
|
32211
|
-
const pd = isString(parent) ? this.getElementById(parent) : parent;
|
|
32449
|
+
const pd = isString$1(parent) ? this.getElementById(parent) : parent;
|
|
32212
32450
|
if (pd && pd.appendChild) {
|
|
32213
32451
|
pd.appendChild(element);
|
|
32214
32452
|
}
|
|
@@ -32311,6 +32549,38 @@
|
|
|
32311
32549
|
release(...params) {
|
|
32312
32550
|
return;
|
|
32313
32551
|
}
|
|
32552
|
+
getElementTop(element, baseWindow) {
|
|
32553
|
+
let actualTop = element.offsetTop;
|
|
32554
|
+
let current = element.offsetParent;
|
|
32555
|
+
while (current !== null) {
|
|
32556
|
+
actualTop += current.offsetTop;
|
|
32557
|
+
current = current.offsetParent;
|
|
32558
|
+
}
|
|
32559
|
+
return actualTop;
|
|
32560
|
+
}
|
|
32561
|
+
getElementLeft(element, baseWindow) {
|
|
32562
|
+
let actualLeft = element.offsetLeft;
|
|
32563
|
+
let current = element.offsetParent;
|
|
32564
|
+
while (current !== null) {
|
|
32565
|
+
actualLeft += current.offsetLeft;
|
|
32566
|
+
current = current.offsetParent;
|
|
32567
|
+
}
|
|
32568
|
+
return actualLeft;
|
|
32569
|
+
}
|
|
32570
|
+
getElementTopLeft(element, baseWindow) {
|
|
32571
|
+
let actualTop = element.offsetTop;
|
|
32572
|
+
let actualLeft = element.offsetLeft;
|
|
32573
|
+
let current = element.offsetParent;
|
|
32574
|
+
while (current !== null) {
|
|
32575
|
+
actualTop += current.offsetTop;
|
|
32576
|
+
actualLeft += current.offsetLeft;
|
|
32577
|
+
current = current.offsetParent;
|
|
32578
|
+
}
|
|
32579
|
+
return {
|
|
32580
|
+
top: actualTop,
|
|
32581
|
+
left: actualLeft
|
|
32582
|
+
};
|
|
32583
|
+
}
|
|
32314
32584
|
};
|
|
32315
32585
|
BrowserEnvContribution = __decorate([
|
|
32316
32586
|
injectable(),
|
|
@@ -32885,28 +33155,37 @@
|
|
|
32885
33155
|
injectable()
|
|
32886
33156
|
], NodeEnvContribution);
|
|
32887
33157
|
|
|
32888
|
-
|
|
32889
|
-
|
|
32890
|
-
|
|
32891
|
-
|
|
32892
|
-
|
|
32893
|
-
|
|
32894
|
-
.
|
|
32895
|
-
|
|
32896
|
-
|
|
32897
|
-
|
|
32898
|
-
|
|
32899
|
-
|
|
32900
|
-
|
|
32901
|
-
|
|
32902
|
-
|
|
32903
|
-
|
|
32904
|
-
|
|
32905
|
-
|
|
32906
|
-
|
|
33158
|
+
function makeUpCanvas(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, compoient) {
|
|
33159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33160
|
+
const dpr = wx.getSystemInfoSync().pixelRatio;
|
|
33161
|
+
for (let i = 0; i < canvasIdLists.length; i++) {
|
|
33162
|
+
const id = canvasIdLists[i];
|
|
33163
|
+
yield new Promise(resolve => {
|
|
33164
|
+
let data = wx.createSelectorQuery();
|
|
33165
|
+
if (compoient) {
|
|
33166
|
+
data = data.in(compoient);
|
|
33167
|
+
}
|
|
33168
|
+
data
|
|
33169
|
+
.select(`#${id}`)
|
|
33170
|
+
.fields({ node: true, size: true })
|
|
33171
|
+
.exec((res) => {
|
|
33172
|
+
if (!res[0]) {
|
|
33173
|
+
return;
|
|
33174
|
+
}
|
|
33175
|
+
const canvas = res[0].node;
|
|
33176
|
+
const width = res[0].width;
|
|
33177
|
+
const height = res[0].height;
|
|
33178
|
+
canvas.width = width * dpr;
|
|
33179
|
+
canvas.height = height * dpr;
|
|
33180
|
+
canvasMap.set(id, canvas);
|
|
33181
|
+
if (i >= freeCanvasIdx) {
|
|
33182
|
+
freeCanvasList.push(canvas);
|
|
33183
|
+
}
|
|
33184
|
+
resolve(null);
|
|
33185
|
+
});
|
|
32907
33186
|
});
|
|
32908
|
-
}
|
|
32909
|
-
}
|
|
33187
|
+
}
|
|
33188
|
+
});
|
|
32910
33189
|
}
|
|
32911
33190
|
let WxEnvContribution = class WxEnvContribution extends exports.BaseEnvContribution {
|
|
32912
33191
|
constructor() {
|
|
@@ -32930,7 +33209,7 @@
|
|
|
32930
33209
|
configure(service, params) {
|
|
32931
33210
|
if (service.env === this.type) {
|
|
32932
33211
|
service.setActiveEnvContribution(this);
|
|
32933
|
-
return makeUpCanvas(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList).then(() => {
|
|
33212
|
+
return makeUpCanvas(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.compoient).then(() => {
|
|
32934
33213
|
loadFeishuContributions();
|
|
32935
33214
|
});
|
|
32936
33215
|
}
|
|
@@ -33033,6 +33312,18 @@
|
|
|
33033
33312
|
release(...params) {
|
|
33034
33313
|
this.releaseWindow();
|
|
33035
33314
|
}
|
|
33315
|
+
isVisible(bbox) {
|
|
33316
|
+
return true;
|
|
33317
|
+
}
|
|
33318
|
+
onVisibleChange(cb) {
|
|
33319
|
+
return;
|
|
33320
|
+
}
|
|
33321
|
+
getTopLeft(baseWindow) {
|
|
33322
|
+
return {
|
|
33323
|
+
top: 0,
|
|
33324
|
+
left: 0
|
|
33325
|
+
};
|
|
33326
|
+
}
|
|
33036
33327
|
};
|
|
33037
33328
|
exports.BaseWindowHandlerContribution = __decorate([
|
|
33038
33329
|
injectable(),
|
|
@@ -33047,6 +33338,7 @@
|
|
|
33047
33338
|
super();
|
|
33048
33339
|
this.global = global;
|
|
33049
33340
|
this.type = 'browser';
|
|
33341
|
+
this._canvasIsIntersecting = true;
|
|
33050
33342
|
}
|
|
33051
33343
|
getTitle() {
|
|
33052
33344
|
return this.canvas.id.toString();
|
|
@@ -33067,6 +33359,42 @@
|
|
|
33067
33359
|
else {
|
|
33068
33360
|
this.createWindowByCanvas(params);
|
|
33069
33361
|
}
|
|
33362
|
+
this.postInit();
|
|
33363
|
+
}
|
|
33364
|
+
postInit() {
|
|
33365
|
+
try {
|
|
33366
|
+
this.observerCanvas();
|
|
33367
|
+
}
|
|
33368
|
+
catch (err) {
|
|
33369
|
+
console.error('发生错误,该环境不存在IntersectionObserver');
|
|
33370
|
+
}
|
|
33371
|
+
}
|
|
33372
|
+
isElementVisible(el) {
|
|
33373
|
+
const rect = el.getBoundingClientRect();
|
|
33374
|
+
const vWidth = window.innerWidth || document.documentElement.clientWidth;
|
|
33375
|
+
const vHeight = window.innerHeight || document.documentElement.clientHeight;
|
|
33376
|
+
if (rect.right < 0 || rect.bottom < 0 || rect.left > vWidth || rect.top > vHeight) {
|
|
33377
|
+
return false;
|
|
33378
|
+
}
|
|
33379
|
+
return true;
|
|
33380
|
+
}
|
|
33381
|
+
observerCanvas() {
|
|
33382
|
+
this._canvasIsIntersecting = this.isElementVisible(this.canvas.nativeCanvas);
|
|
33383
|
+
const observer = new IntersectionObserver((entries, observer) => {
|
|
33384
|
+
entries.forEach(entry => {
|
|
33385
|
+
if (this._canvasIsIntersecting !== entry.isIntersecting) {
|
|
33386
|
+
this._canvasIsIntersecting = entry.isIntersecting;
|
|
33387
|
+
this._onVisibleChangeCb && this._onVisibleChangeCb(entry.isIntersecting);
|
|
33388
|
+
}
|
|
33389
|
+
else {
|
|
33390
|
+
this._canvasIsIntersecting = entry.isIntersecting;
|
|
33391
|
+
}
|
|
33392
|
+
});
|
|
33393
|
+
});
|
|
33394
|
+
if (!observer) {
|
|
33395
|
+
return;
|
|
33396
|
+
}
|
|
33397
|
+
observer.observe(this.canvas.nativeCanvas);
|
|
33070
33398
|
}
|
|
33071
33399
|
createWindowByConfig(params) {
|
|
33072
33400
|
const nativeCanvas = this.global.createCanvas({
|
|
@@ -33206,6 +33534,15 @@
|
|
|
33206
33534
|
}
|
|
33207
33535
|
context.nativeContext.restore();
|
|
33208
33536
|
}
|
|
33537
|
+
isVisible(bbox) {
|
|
33538
|
+
return this._canvasIsIntersecting;
|
|
33539
|
+
}
|
|
33540
|
+
onVisibleChange(cb) {
|
|
33541
|
+
this._onVisibleChangeCb = cb;
|
|
33542
|
+
}
|
|
33543
|
+
getTopLeft(baseWindow) {
|
|
33544
|
+
return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
|
|
33545
|
+
}
|
|
33209
33546
|
};
|
|
33210
33547
|
BrowserWindowHandlerContribution.env = 'browser';
|
|
33211
33548
|
BrowserWindowHandlerContribution = __decorate([
|
|
@@ -33902,22 +34239,14 @@
|
|
|
33902
34239
|
}
|
|
33903
34240
|
if (event.changedTouches.length > 0) {
|
|
33904
34241
|
event.changedTouches.forEach((d, i) => {
|
|
33905
|
-
event.changedTouches[i] = {
|
|
33906
|
-
...event.changedTouches[i],
|
|
33907
|
-
offsetX: d.x,
|
|
33908
|
-
offsetY: d.y
|
|
33909
|
-
};
|
|
34242
|
+
event.changedTouches[i] = Object.assign(Object.assign({}, event.changedTouches[i]), { offsetX: d.x, offsetY: d.y });
|
|
33910
34243
|
});
|
|
33911
34244
|
event.offsetX = event.changedTouches[0].offsetX;
|
|
33912
34245
|
event.offsetY = event.changedTouches[0].offsetY;
|
|
33913
34246
|
}
|
|
33914
34247
|
if (event.touches.length > 0) {
|
|
33915
34248
|
event.touches.forEach((d, i) => {
|
|
33916
|
-
event.touches[i] = {
|
|
33917
|
-
...event.touches[i],
|
|
33918
|
-
offsetX: d.x,
|
|
33919
|
-
offsetY: d.y
|
|
33920
|
-
};
|
|
34249
|
+
event.touches[i] = Object.assign(Object.assign({}, event.touches[i]), { offsetX: d.x, offsetY: d.y });
|
|
33921
34250
|
});
|
|
33922
34251
|
}
|
|
33923
34252
|
event.preventDefault = () => {
|
|
@@ -34474,7 +34803,7 @@
|
|
|
34474
34803
|
throw new Error('暂未实现');
|
|
34475
34804
|
}
|
|
34476
34805
|
release(...params) {
|
|
34477
|
-
if (this._nativeCanvas.release && isFunction(this._nativeCanvas.release)) {
|
|
34806
|
+
if (this._nativeCanvas.release && isFunction$1(this._nativeCanvas.release)) {
|
|
34478
34807
|
this._nativeCanvas.release();
|
|
34479
34808
|
}
|
|
34480
34809
|
}
|
|
@@ -34953,6 +35282,10 @@
|
|
|
34953
35282
|
this.global = global;
|
|
34954
35283
|
this.offscreen = false;
|
|
34955
35284
|
}
|
|
35285
|
+
setDpr(dpr) {
|
|
35286
|
+
this.canvas.dpr = dpr;
|
|
35287
|
+
return;
|
|
35288
|
+
}
|
|
34956
35289
|
init(layer, window, params) {
|
|
34957
35290
|
this.layer = layer;
|
|
34958
35291
|
this.window = window;
|
|
@@ -35011,12 +35344,7 @@
|
|
|
35011
35344
|
this.canvas.applyPosition();
|
|
35012
35345
|
}
|
|
35013
35346
|
}
|
|
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
|
-
});
|
|
35347
|
+
params.renderService.render(group, Object.assign(Object.assign({ context: this.context, clear: (_a = params.background) !== null && _a !== void 0 ? _a : '#ffffff' }, params), userParams));
|
|
35020
35348
|
}
|
|
35021
35349
|
merge(layerHandlers) {
|
|
35022
35350
|
layerHandlers.forEach(l => {
|
|
@@ -35031,11 +35359,7 @@
|
|
|
35031
35359
|
drawTo(target, group, params) {
|
|
35032
35360
|
var _a;
|
|
35033
35361
|
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
|
-
});
|
|
35362
|
+
params.renderService.render(group, Object.assign(Object.assign({ context }, params), { clear: params.clear ? (_a = params.background) !== null && _a !== void 0 ? _a : '#fff' : undefined }));
|
|
35039
35363
|
return;
|
|
35040
35364
|
}
|
|
35041
35365
|
getContext() {
|
|
@@ -35056,6 +35380,10 @@
|
|
|
35056
35380
|
this.global = global;
|
|
35057
35381
|
this.offscreen = true;
|
|
35058
35382
|
}
|
|
35383
|
+
setDpr(dpr) {
|
|
35384
|
+
this.canvas.dpr = dpr;
|
|
35385
|
+
return;
|
|
35386
|
+
}
|
|
35059
35387
|
init(layer, window, params) {
|
|
35060
35388
|
this.layer = layer;
|
|
35061
35389
|
const nativeCanvas = this.global.createOffscreenCanvas({
|
|
@@ -35083,13 +35411,7 @@
|
|
|
35083
35411
|
}
|
|
35084
35412
|
render(group, params) {
|
|
35085
35413
|
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
|
-
});
|
|
35414
|
+
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
35415
|
}
|
|
35094
35416
|
prepare(dirtyBounds, params) {
|
|
35095
35417
|
return;
|
|
@@ -35142,6 +35464,18 @@
|
|
|
35142
35464
|
this.order = 1;
|
|
35143
35465
|
}
|
|
35144
35466
|
afterDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
35467
|
+
if (graphic.attribute.shadowRootIdx > 0 || !graphic.attribute.shadowRootIdx) {
|
|
35468
|
+
this.drawItem(graphic, renderService, drawContext, drawContribution, params);
|
|
35469
|
+
}
|
|
35470
|
+
return false;
|
|
35471
|
+
}
|
|
35472
|
+
beforeDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
35473
|
+
if (graphic.attribute.shadowRootIdx < 0) {
|
|
35474
|
+
this.drawItem(graphic, renderService, drawContext, drawContribution, params);
|
|
35475
|
+
}
|
|
35476
|
+
return false;
|
|
35477
|
+
}
|
|
35478
|
+
drawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
35145
35479
|
if (!graphic.shadowRoot) {
|
|
35146
35480
|
return false;
|
|
35147
35481
|
}
|
|
@@ -35460,15 +35794,7 @@
|
|
|
35460
35794
|
const idc = incrementalLayer.drawContribution || container.get(IncrementalDrawContribution);
|
|
35461
35795
|
idc.dirtyBounds.setValue(-Infinity, -Infinity, Infinity, Infinity);
|
|
35462
35796
|
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
|
-
});
|
|
35797
|
+
idc.draw(this.currentRenderService, Object.assign(Object.assign({}, drawContext), { drawContribution: idc, clear: 'transparent', layer: incrementalLayer.layer, context: incrementalContext, startAtId: group._uid, break: false }));
|
|
35472
35798
|
incrementalLayer.drawContribution = idc;
|
|
35473
35799
|
const nextGraphic = this._findNextGraphic(group);
|
|
35474
35800
|
if (nextGraphic) {
|
|
@@ -35485,15 +35811,7 @@
|
|
|
35485
35811
|
subLayers.set(nextGraphic._uid, afterLayer);
|
|
35486
35812
|
}
|
|
35487
35813
|
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
|
-
});
|
|
35814
|
+
this.draw(this.currentRenderService, Object.assign(Object.assign({}, drawContext), { drawContribution: idc, clear: 'transparent', layer: afterLayer.layer, context: afterContext, startAtId: nextGraphic._uid, break: false }));
|
|
35497
35815
|
}
|
|
35498
35816
|
}
|
|
35499
35817
|
}
|
|
@@ -35639,7 +35957,7 @@
|
|
|
35639
35957
|
context.disableStroke = disableStroke;
|
|
35640
35958
|
context.disableBeginPath = disableBeginPath;
|
|
35641
35959
|
}
|
|
35642
|
-
else if (cornerRadius === 0 || (isArray(cornerRadius) && cornerRadius.every(num => num === 0))) {
|
|
35960
|
+
else if (cornerRadius === 0 || (isArray$1(cornerRadius) && cornerRadius.every(num => num === 0))) {
|
|
35643
35961
|
context.beginPath();
|
|
35644
35962
|
context.rect(x, y, width, height);
|
|
35645
35963
|
}
|
|
@@ -35895,164 +36213,178 @@
|
|
|
35895
36213
|
this.defaultRenderMap.set(this.lineRender.numberType, this.lineRender);
|
|
35896
36214
|
this.defaultRenderMap.set(this.areaRender.numberType, this.areaRender);
|
|
35897
36215
|
}
|
|
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
|
-
|
|
36216
|
+
draw(renderService, drawContext) {
|
|
36217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36218
|
+
if (this.checkingForDrawPromise) {
|
|
36219
|
+
return;
|
|
36220
|
+
}
|
|
36221
|
+
this.lastRenderService = renderService;
|
|
36222
|
+
this.lastDrawContext = drawContext;
|
|
36223
|
+
this.checkingForDrawPromise = this.checkForDraw(drawContext);
|
|
36224
|
+
const skipDraw = yield this.checkingForDrawPromise;
|
|
36225
|
+
this.checkingForDrawPromise = null;
|
|
36226
|
+
if (skipDraw) {
|
|
36227
|
+
return;
|
|
36228
|
+
}
|
|
36229
|
+
this.currentRenderService = renderService;
|
|
36230
|
+
const { context, x = 0, y = 0 } = drawContext;
|
|
36231
|
+
if (!context) {
|
|
36232
|
+
return;
|
|
36233
|
+
}
|
|
36234
|
+
context.inuse = true;
|
|
36235
|
+
context.clearMatrix();
|
|
36236
|
+
context.setTransformForCurrent(true);
|
|
36237
|
+
context.save();
|
|
36238
|
+
drawContext.restartIncremental && this.clearScreen(this.currentRenderService, context, drawContext);
|
|
36239
|
+
context.translate(x, y, true);
|
|
36240
|
+
context.save();
|
|
36241
|
+
renderService.renderTreeRoots
|
|
36242
|
+
.sort((a, b) => {
|
|
36243
|
+
var _a, _b;
|
|
36244
|
+
return ((_a = a.attribute.zIndex) !== null && _a !== void 0 ? _a : DefaultAttribute.zIndex) - ((_b = b.attribute.zIndex) !== null && _b !== void 0 ? _b : DefaultAttribute.zIndex);
|
|
36245
|
+
})
|
|
36246
|
+
.forEach(group => {
|
|
36247
|
+
this.renderGroup(group, drawContext);
|
|
36248
|
+
});
|
|
36249
|
+
this.hooks.completeDraw.tap('top-draw', () => {
|
|
36250
|
+
context.restore();
|
|
36251
|
+
context.restore();
|
|
36252
|
+
context.draw();
|
|
36253
|
+
context.inuse = false;
|
|
36254
|
+
this.rendering = false;
|
|
36255
|
+
});
|
|
35936
36256
|
});
|
|
35937
36257
|
}
|
|
35938
|
-
|
|
35939
|
-
this
|
|
35940
|
-
|
|
35941
|
-
|
|
36258
|
+
_increaseRender(group, drawContext) {
|
|
36259
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36260
|
+
this.rendering = true;
|
|
36261
|
+
yield this._renderIncrementalGroup(group, drawContext);
|
|
36262
|
+
return;
|
|
36263
|
+
});
|
|
35942
36264
|
}
|
|
35943
|
-
|
|
35944
|
-
this
|
|
35945
|
-
|
|
35946
|
-
|
|
35947
|
-
|
|
35948
|
-
|
|
35949
|
-
|
|
35950
|
-
|
|
35951
|
-
if (
|
|
35952
|
-
graphic.incrementalAt
|
|
36265
|
+
_renderIncrementalGroup(group, drawContext) {
|
|
36266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36267
|
+
this.count = group.count;
|
|
36268
|
+
yield new Promise(resolve => {
|
|
36269
|
+
this.renderItem(group, drawContext, {
|
|
36270
|
+
drawingCb: () => __awaiter(this, void 0, void 0, function* () {
|
|
36271
|
+
if (group.count === 2) {
|
|
36272
|
+
const graphic = group.getChildAt(0);
|
|
36273
|
+
if (graphic.incremental && graphic.attribute.segments) {
|
|
36274
|
+
if (!graphic.incrementalAt) {
|
|
36275
|
+
graphic.incrementalAt = 0;
|
|
36276
|
+
}
|
|
36277
|
+
while (graphic.incrementalAt < graphic.attribute.segments.length) {
|
|
36278
|
+
drawContext.multiGraphicOptions = {
|
|
36279
|
+
startAtIdx: graphic.incrementalAt,
|
|
36280
|
+
length: graphic.incremental
|
|
36281
|
+
};
|
|
36282
|
+
this.renderItem(graphic, drawContext);
|
|
36283
|
+
graphic.incrementalAt += graphic.incremental;
|
|
36284
|
+
yield this.waitToNextFrame();
|
|
36285
|
+
}
|
|
35953
36286
|
}
|
|
35954
|
-
|
|
35955
|
-
drawContext.multiGraphicOptions = {
|
|
35956
|
-
startAtIdx: graphic.incrementalAt,
|
|
35957
|
-
length: graphic.incremental
|
|
35958
|
-
};
|
|
36287
|
+
else {
|
|
35959
36288
|
this.renderItem(graphic, drawContext);
|
|
35960
|
-
graphic.incrementalAt += graphic.incremental;
|
|
35961
|
-
await this.waitToNextFrame();
|
|
35962
36289
|
}
|
|
36290
|
+
resolve(false);
|
|
36291
|
+
return;
|
|
35963
36292
|
}
|
|
35964
|
-
|
|
35965
|
-
this.
|
|
35966
|
-
|
|
35967
|
-
|
|
35968
|
-
|
|
35969
|
-
|
|
35970
|
-
|
|
35971
|
-
|
|
35972
|
-
|
|
35973
|
-
|
|
35974
|
-
|
|
35975
|
-
|
|
35976
|
-
|
|
35977
|
-
|
|
36293
|
+
yield foreachAsync(group, DefaultAttribute.zIndex, (item, i) => {
|
|
36294
|
+
if (this.status === STATUS.STOP) {
|
|
36295
|
+
return true;
|
|
36296
|
+
}
|
|
36297
|
+
if (item.isContainer) {
|
|
36298
|
+
return false;
|
|
36299
|
+
}
|
|
36300
|
+
if (i < this.currentIdx) {
|
|
36301
|
+
return false;
|
|
36302
|
+
}
|
|
36303
|
+
const frameTail = this.currFrameStartAt + group.incremental;
|
|
36304
|
+
if (i < frameTail) {
|
|
36305
|
+
this.currentIdx = i + 1;
|
|
36306
|
+
this.renderItem(item, drawContext);
|
|
36307
|
+
}
|
|
36308
|
+
if (i === frameTail - 1) {
|
|
36309
|
+
this.currFrameStartAt = this.currentIdx;
|
|
36310
|
+
return this.waitToNextFrame();
|
|
36311
|
+
}
|
|
35978
36312
|
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
|
-
}
|
|
36313
|
+
});
|
|
36314
|
+
resolve(false);
|
|
36315
|
+
})
|
|
36316
|
+
});
|
|
35993
36317
|
});
|
|
36318
|
+
this.hooks.completeDraw.call();
|
|
35994
36319
|
});
|
|
35995
|
-
this.hooks.completeDraw.call();
|
|
35996
36320
|
}
|
|
35997
|
-
|
|
35998
|
-
return
|
|
35999
|
-
|
|
36000
|
-
|
|
36321
|
+
waitToNextFrame() {
|
|
36322
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36323
|
+
return new Promise(resolve => {
|
|
36324
|
+
this.global.getRequestAnimationFrame()(() => {
|
|
36325
|
+
resolve(false);
|
|
36326
|
+
});
|
|
36001
36327
|
});
|
|
36002
36328
|
});
|
|
36003
36329
|
}
|
|
36004
|
-
|
|
36005
|
-
|
|
36006
|
-
|
|
36007
|
-
|
|
36008
|
-
|
|
36009
|
-
|
|
36010
|
-
|
|
36011
|
-
|
|
36330
|
+
checkForDraw(drawContext) {
|
|
36331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36332
|
+
let skip = this.rendering;
|
|
36333
|
+
if (drawContext.restartIncremental) {
|
|
36334
|
+
skip = false;
|
|
36335
|
+
yield this.forceStop();
|
|
36336
|
+
this.resetToInit();
|
|
36337
|
+
}
|
|
36338
|
+
return skip;
|
|
36339
|
+
});
|
|
36012
36340
|
}
|
|
36013
|
-
|
|
36014
|
-
|
|
36015
|
-
this.
|
|
36016
|
-
|
|
36017
|
-
|
|
36018
|
-
this.
|
|
36019
|
-
|
|
36020
|
-
|
|
36341
|
+
forceStop() {
|
|
36342
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36343
|
+
if (this.rendering) {
|
|
36344
|
+
this.status = STATUS.STOP;
|
|
36345
|
+
yield new Promise(resolve => {
|
|
36346
|
+
this.hooks.completeDraw.tap('stopCb', () => {
|
|
36347
|
+
this.status = STATUS.NORMAL;
|
|
36348
|
+
this.hooks.completeDraw.taps = this.hooks.completeDraw.taps.filter(item => {
|
|
36349
|
+
return item.name !== 'stopCb';
|
|
36350
|
+
});
|
|
36351
|
+
resolve(false);
|
|
36021
36352
|
});
|
|
36022
|
-
resolve(false);
|
|
36023
36353
|
});
|
|
36024
|
-
}
|
|
36025
|
-
}
|
|
36354
|
+
}
|
|
36355
|
+
});
|
|
36026
36356
|
}
|
|
36027
36357
|
resetToInit() {
|
|
36028
36358
|
this.currFrameStartAt = 0;
|
|
36029
36359
|
this.currentIdx = 0;
|
|
36030
36360
|
}
|
|
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
|
-
|
|
36361
|
+
renderGroup(group, drawContext) {
|
|
36362
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36363
|
+
if (drawContext.break || group.attribute.visibleAll === false) {
|
|
36364
|
+
return;
|
|
36365
|
+
}
|
|
36366
|
+
if (group.incremental && drawContext.startAtId === group._uid) {
|
|
36367
|
+
yield this._increaseRender(group, drawContext);
|
|
36368
|
+
drawContext.break = true;
|
|
36369
|
+
return;
|
|
36370
|
+
}
|
|
36371
|
+
yield new Promise(resolve => {
|
|
36372
|
+
this.renderItem(group, drawContext, {
|
|
36373
|
+
drawingCb: () => __awaiter(this, void 0, void 0, function* () {
|
|
36374
|
+
yield foreachAsync(group, DefaultAttribute.zIndex, (item) => __awaiter(this, void 0, void 0, function* () {
|
|
36375
|
+
if (drawContext.break) {
|
|
36376
|
+
return;
|
|
36377
|
+
}
|
|
36378
|
+
if (item.isContainer) {
|
|
36379
|
+
yield this.renderGroup(item, drawContext);
|
|
36380
|
+
}
|
|
36381
|
+
else {
|
|
36382
|
+
return;
|
|
36383
|
+
}
|
|
36384
|
+
}));
|
|
36385
|
+
resolve(false);
|
|
36386
|
+
})
|
|
36387
|
+
});
|
|
36056
36388
|
});
|
|
36057
36389
|
});
|
|
36058
36390
|
}
|
|
@@ -37031,8 +37363,8 @@
|
|
|
37031
37363
|
}
|
|
37032
37364
|
let picked = true;
|
|
37033
37365
|
if (!onlyTranslate ||
|
|
37034
|
-
(isNumber(cornerRadius, true) && cornerRadius !== 0) ||
|
|
37035
|
-
(isArray(cornerRadius) && cornerRadius.some(num => num !== 0))) {
|
|
37366
|
+
(isNumber$2(cornerRadius, true) && cornerRadius !== 0) ||
|
|
37367
|
+
(isArray$1(cornerRadius) && cornerRadius.some(num => num !== 0))) {
|
|
37036
37368
|
picked = false;
|
|
37037
37369
|
this.canvasRenderer.drawShape(rect, pickContext, x, y, {}, null, (context, rectAttribute, themeAttribute) => {
|
|
37038
37370
|
if (picked) {
|
|
@@ -37554,7 +37886,7 @@
|
|
|
37554
37886
|
if (picked) {
|
|
37555
37887
|
return;
|
|
37556
37888
|
}
|
|
37557
|
-
picked = !!pickerService.pickItem(g, point, params);
|
|
37889
|
+
picked = !!pickerService.pickItem(g, point, null, params);
|
|
37558
37890
|
});
|
|
37559
37891
|
return picked;
|
|
37560
37892
|
}
|
|
@@ -37713,6 +38045,19 @@
|
|
|
37713
38045
|
__metadata("design:paramtypes", [Object])
|
|
37714
38046
|
], DefaultCanvasArc3dPicker);
|
|
37715
38047
|
|
|
38048
|
+
let DefaultCanvasGroupPicker = class DefaultCanvasGroupPicker {
|
|
38049
|
+
constructor() {
|
|
38050
|
+
this.type = 'group';
|
|
38051
|
+
this.numberType = GROUP_NUMBER_TYPE;
|
|
38052
|
+
}
|
|
38053
|
+
contains(group, point, params) {
|
|
38054
|
+
return false;
|
|
38055
|
+
}
|
|
38056
|
+
};
|
|
38057
|
+
DefaultCanvasGroupPicker = __decorate([
|
|
38058
|
+
injectable()
|
|
38059
|
+
], DefaultCanvasGroupPicker);
|
|
38060
|
+
|
|
37716
38061
|
var canvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
37717
38062
|
bind(DefaultCanvasCirclePicker).toSelf().inSingletonScope();
|
|
37718
38063
|
bind(CanvasCirclePicker).toService(DefaultCanvasCirclePicker);
|
|
@@ -37759,6 +38104,9 @@
|
|
|
37759
38104
|
bind(DefaultCanvasGlyphPicker).toSelf().inSingletonScope();
|
|
37760
38105
|
bind(CanvasGlyphPicker).toService(DefaultCanvasGlyphPicker);
|
|
37761
38106
|
bind(CanvasPickerContribution).toService(CanvasGlyphPicker);
|
|
38107
|
+
bind(DefaultCanvasGroupPicker).toSelf().inSingletonScope();
|
|
38108
|
+
bind(CanvasGroupPicker).toService(DefaultCanvasGroupPicker);
|
|
38109
|
+
bind(CanvasPickerContribution).toService(CanvasGroupPicker);
|
|
37762
38110
|
bindContributionProvider(bind, CanvasPickerContribution);
|
|
37763
38111
|
});
|
|
37764
38112
|
|
|
@@ -37913,8 +38261,8 @@
|
|
|
37913
38261
|
}
|
|
37914
38262
|
let picked = true;
|
|
37915
38263
|
if (!onlyTranslate ||
|
|
37916
|
-
(isNumber(cornerRadius, true) && cornerRadius !== 0) ||
|
|
37917
|
-
(isArray(cornerRadius) && cornerRadius.some(num => num !== 0))) {
|
|
38264
|
+
(isNumber$2(cornerRadius, true) && cornerRadius !== 0) ||
|
|
38265
|
+
(isArray$1(cornerRadius) && cornerRadius.some(num => num !== 0))) {
|
|
37918
38266
|
picked = false;
|
|
37919
38267
|
this.canvasRenderer.drawShape(rect, pickContext, x, y, {}, null, (context, rectAttribute, themeAttribute) => {
|
|
37920
38268
|
if (picked) {
|
|
@@ -38268,7 +38616,7 @@
|
|
|
38268
38616
|
if (picked) {
|
|
38269
38617
|
return;
|
|
38270
38618
|
}
|
|
38271
|
-
picked = !!pickerService.pickItem(g, point, params);
|
|
38619
|
+
picked = !!pickerService.pickItem(g, point, null, params);
|
|
38272
38620
|
});
|
|
38273
38621
|
return picked;
|
|
38274
38622
|
}
|
|
@@ -38597,20 +38945,8 @@
|
|
|
38597
38945
|
if (!subLayer || !subLayer.drawContribution) {
|
|
38598
38946
|
return;
|
|
38599
38947
|
}
|
|
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
|
-
});
|
|
38948
|
+
subLayer.drawContribution.draw(stage.renderService, Object.assign({ x: stage.x, y: stage.y, width: layer.viewWidth, height: layer.viewHeight, stage,
|
|
38949
|
+
layer, clear: 'transparent', renderService: stage.renderService, updateBounds: false, startAtId: group._uid, context: subLayer.layer.getNativeHandler().getContext() }, this.nextUserParams));
|
|
38614
38950
|
});
|
|
38615
38951
|
this.nextUserParams = {};
|
|
38616
38952
|
this.nextFrameRenderGroupSet.clear();
|
|
@@ -38654,12 +38990,23 @@
|
|
|
38654
38990
|
renderGroupHTML(group) {
|
|
38655
38991
|
this.renderGraphicHTML(group);
|
|
38656
38992
|
group.forEachChildren((g) => {
|
|
38657
|
-
|
|
38993
|
+
if (g.isContainer) {
|
|
38994
|
+
this.renderGroupHTML(g);
|
|
38995
|
+
}
|
|
38996
|
+
else {
|
|
38997
|
+
this.renderGraphicHTML(g);
|
|
38998
|
+
}
|
|
38658
38999
|
});
|
|
38659
39000
|
}
|
|
38660
39001
|
renderGraphicHTML(graphic) {
|
|
38661
39002
|
const { html } = graphic.attribute;
|
|
38662
39003
|
if (!html) {
|
|
39004
|
+
if (graphic.bindDom && graphic.bindDom.size) {
|
|
39005
|
+
graphic.bindDom.forEach(item => {
|
|
39006
|
+
item.dom && item.dom.parentElement.removeChild(item.dom);
|
|
39007
|
+
});
|
|
39008
|
+
graphic.bindDom.clear();
|
|
39009
|
+
}
|
|
38663
39010
|
return;
|
|
38664
39011
|
}
|
|
38665
39012
|
const stage = graphic.stage;
|
|
@@ -38705,6 +39052,7 @@
|
|
|
38705
39052
|
wrapGroup.style.pointerEvents = 'none';
|
|
38706
39053
|
if (!wrapGroup.style.position) {
|
|
38707
39054
|
wrapGroup.style.position = 'absolute';
|
|
39055
|
+
nativeContainer.style.position = 'relative';
|
|
38708
39056
|
}
|
|
38709
39057
|
let left = 0;
|
|
38710
39058
|
let top = 0;
|
|
@@ -38718,8 +39066,12 @@
|
|
|
38718
39066
|
left = b.x1;
|
|
38719
39067
|
top = b.y1;
|
|
38720
39068
|
}
|
|
38721
|
-
|
|
38722
|
-
|
|
39069
|
+
const containerTL = application.global.getElementTopLeft(nativeContainer, false);
|
|
39070
|
+
const windowTL = stage.window.getTopLeft(false);
|
|
39071
|
+
const offsetX = left + windowTL.left - containerTL.left;
|
|
39072
|
+
const offsetTop = top + windowTL.top - containerTL.top;
|
|
39073
|
+
wrapGroup.style.left = `${offsetX}px`;
|
|
39074
|
+
wrapGroup.style.top = `${offsetTop}px`;
|
|
38723
39075
|
}
|
|
38724
39076
|
}
|
|
38725
39077
|
|
|
@@ -38797,10 +39149,11 @@
|
|
|
38797
39149
|
this.activeEvent = 'onRegister';
|
|
38798
39150
|
this.id = Generator.GenAutoIncrementId();
|
|
38799
39151
|
this.key = this.name + this.id;
|
|
39152
|
+
this.tempBounds = new AABBBounds();
|
|
38800
39153
|
}
|
|
38801
39154
|
tryLayout(graphic) {
|
|
38802
39155
|
const p = graphic.parent;
|
|
38803
|
-
if (!p) {
|
|
39156
|
+
if (!p || !graphic.needUpdateLayout()) {
|
|
38804
39157
|
return;
|
|
38805
39158
|
}
|
|
38806
39159
|
const theme = getTheme(p).group;
|
|
@@ -38808,10 +39161,37 @@
|
|
|
38808
39161
|
if (display !== 'flex') {
|
|
38809
39162
|
return;
|
|
38810
39163
|
}
|
|
38811
|
-
const {
|
|
38812
|
-
|
|
39164
|
+
const { flexDirection = theme.flexDirection, flexWrap = theme.flexWrap, justifyContent = theme.justifyContent, alignItems = theme.alignItems, alignContent = theme.alignContent, clip = theme.clip } = p.attribute;
|
|
39165
|
+
let childrenWidth = 0;
|
|
39166
|
+
let childrenHeight = 0;
|
|
39167
|
+
let boundsLegal = 0;
|
|
39168
|
+
p.forEachChildren((child) => {
|
|
39169
|
+
const bounds = child.AABBBounds;
|
|
39170
|
+
if (flexDirection === 'column' || flexDirection === 'column-reverse') {
|
|
39171
|
+
childrenHeight += bounds.height();
|
|
39172
|
+
childrenWidth = Math.max(childrenWidth, bounds.width());
|
|
39173
|
+
}
|
|
39174
|
+
else {
|
|
39175
|
+
childrenWidth += bounds.width();
|
|
39176
|
+
childrenHeight = Math.max(childrenHeight, bounds.height());
|
|
39177
|
+
}
|
|
39178
|
+
boundsLegal += bounds.x1;
|
|
39179
|
+
boundsLegal += bounds.y1;
|
|
39180
|
+
boundsLegal += bounds.x2;
|
|
39181
|
+
boundsLegal += bounds.y2;
|
|
39182
|
+
});
|
|
39183
|
+
if (!isFinite(boundsLegal)) {
|
|
38813
39184
|
return;
|
|
38814
39185
|
}
|
|
39186
|
+
const width = p.attribute.width || childrenWidth;
|
|
39187
|
+
const height = p.attribute.height || childrenHeight;
|
|
39188
|
+
if (!p.attribute.width) {
|
|
39189
|
+
p.attribute.width = 0;
|
|
39190
|
+
}
|
|
39191
|
+
if (!p.attribute.height) {
|
|
39192
|
+
p.attribute.height = 0;
|
|
39193
|
+
}
|
|
39194
|
+
this.tempBounds.copy(p._AABBBounds);
|
|
38815
39195
|
const result = {
|
|
38816
39196
|
main: { len: width, field: 'x' },
|
|
38817
39197
|
cross: { len: height, field: 'y' },
|
|
@@ -38889,6 +39269,11 @@
|
|
|
38889
39269
|
const anchorPos = cross.len / 2;
|
|
38890
39270
|
this.layoutCross(children, alignItems, cross, anchorPos, mianLenArray, mainList[0], 0);
|
|
38891
39271
|
}
|
|
39272
|
+
else {
|
|
39273
|
+
children.forEach(child => {
|
|
39274
|
+
child.attribute[cross.field] = getPadding(child, cross.field);
|
|
39275
|
+
});
|
|
39276
|
+
}
|
|
38892
39277
|
}
|
|
38893
39278
|
else {
|
|
38894
39279
|
if (alignContent === 'flex-start') {
|
|
@@ -38931,12 +39316,21 @@
|
|
|
38931
39316
|
});
|
|
38932
39317
|
}
|
|
38933
39318
|
}
|
|
39319
|
+
children.forEach((child, idx) => {
|
|
39320
|
+
child.addUpdateBoundTag();
|
|
39321
|
+
child.addUpdatePositionTag();
|
|
39322
|
+
child.clearUpdateLayoutTag();
|
|
39323
|
+
});
|
|
39324
|
+
p.addUpdateLayoutTag();
|
|
39325
|
+
if (!clip && !this.tempBounds.equals(p.AABBBounds)) {
|
|
39326
|
+
this.tryLayout(p);
|
|
39327
|
+
}
|
|
38934
39328
|
}
|
|
38935
39329
|
layoutMain(p, children, justifyContent, main, mianLenArray, lastIdx, currSeg) {
|
|
38936
39330
|
if (justifyContent === 'flex-start') {
|
|
38937
39331
|
let pos = 0;
|
|
38938
39332
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38939
|
-
children[i].attribute[main.field] = pos;
|
|
39333
|
+
children[i].attribute[main.field] = pos + getPadding(children[i], main.field);
|
|
38940
39334
|
pos += mianLenArray[i].mainLen;
|
|
38941
39335
|
}
|
|
38942
39336
|
}
|
|
@@ -38944,14 +39338,14 @@
|
|
|
38944
39338
|
let pos = main.len;
|
|
38945
39339
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38946
39340
|
pos -= mianLenArray[i].mainLen;
|
|
38947
|
-
children[i].attribute[main.field] = pos;
|
|
39341
|
+
children[i].attribute[main.field] = pos + getPadding(children[i], main.field);
|
|
38948
39342
|
}
|
|
38949
39343
|
}
|
|
38950
39344
|
else if (justifyContent === 'space-around') {
|
|
38951
39345
|
if (currSeg.mainLen >= main.len) {
|
|
38952
39346
|
let pos = 0;
|
|
38953
39347
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38954
|
-
children[i].attribute[main.field] = pos;
|
|
39348
|
+
children[i].attribute[main.field] = pos + getPadding(children[i], main.field);
|
|
38955
39349
|
pos += mianLenArray[i].mainLen;
|
|
38956
39350
|
}
|
|
38957
39351
|
}
|
|
@@ -38960,7 +39354,7 @@
|
|
|
38960
39354
|
const padding = (main.len - currSeg.mainLen) / size / 2;
|
|
38961
39355
|
let pos = padding;
|
|
38962
39356
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38963
|
-
children[i].attribute[main.field] = pos;
|
|
39357
|
+
children[i].attribute[main.field] = pos + getPadding(children[i], main.field);
|
|
38964
39358
|
pos += mianLenArray[i].mainLen + padding * 2;
|
|
38965
39359
|
}
|
|
38966
39360
|
}
|
|
@@ -38969,7 +39363,7 @@
|
|
|
38969
39363
|
if (currSeg.mainLen >= main.len) {
|
|
38970
39364
|
let pos = 0;
|
|
38971
39365
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38972
|
-
children[i].attribute[main.field] = pos;
|
|
39366
|
+
children[i].attribute[main.field] = pos + getPadding(children[i], main.field);
|
|
38973
39367
|
pos += mianLenArray[i].mainLen;
|
|
38974
39368
|
}
|
|
38975
39369
|
}
|
|
@@ -38978,7 +39372,7 @@
|
|
|
38978
39372
|
const padding = (main.len - currSeg.mainLen) / (size * 2 - 2);
|
|
38979
39373
|
let pos = 0;
|
|
38980
39374
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38981
|
-
children[i].attribute[main.field] = pos;
|
|
39375
|
+
children[i].attribute[main.field] = pos + getPadding(children[i], main.field);
|
|
38982
39376
|
pos += mianLenArray[i].mainLen + padding * 2;
|
|
38983
39377
|
}
|
|
38984
39378
|
}
|
|
@@ -38987,17 +39381,18 @@
|
|
|
38987
39381
|
layoutCross(children, alignItem, cross, anchorPos, lenArray, currSeg, lastIdx) {
|
|
38988
39382
|
if (alignItem === 'flex-end') {
|
|
38989
39383
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38990
|
-
children[i].attribute[cross.field] = anchorPos - lenArray[i].crossLen;
|
|
39384
|
+
children[i].attribute[cross.field] = anchorPos - lenArray[i].crossLen + getPadding(children[i], cross.field);
|
|
38991
39385
|
}
|
|
38992
39386
|
}
|
|
38993
39387
|
else if (alignItem === 'center') {
|
|
38994
39388
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
38995
|
-
children[i].attribute[cross.field] =
|
|
39389
|
+
children[i].attribute[cross.field] =
|
|
39390
|
+
anchorPos - lenArray[i].crossLen / 2 + getPadding(children[i], cross.field);
|
|
38996
39391
|
}
|
|
38997
39392
|
}
|
|
38998
39393
|
else {
|
|
38999
39394
|
for (let i = lastIdx; i <= currSeg.idx; i++) {
|
|
39000
|
-
children[i].attribute[cross.field] = anchorPos;
|
|
39395
|
+
children[i].attribute[cross.field] = anchorPos + getPadding(children[i], cross.field);
|
|
39001
39396
|
}
|
|
39002
39397
|
}
|
|
39003
39398
|
}
|
|
@@ -39025,11 +39420,30 @@
|
|
|
39025
39420
|
});
|
|
39026
39421
|
}
|
|
39027
39422
|
}
|
|
39423
|
+
function getPadding(graphic, field) {
|
|
39424
|
+
if (!graphic.attribute.boundsPadding) {
|
|
39425
|
+
return 0;
|
|
39426
|
+
}
|
|
39427
|
+
else if (isNumber(graphic.attribute.boundsPadding)) {
|
|
39428
|
+
return graphic.attribute.boundsPadding;
|
|
39429
|
+
}
|
|
39430
|
+
else if (isArray$1(graphic.attribute.boundsPadding) && graphic.attribute.boundsPadding.length === 1) {
|
|
39431
|
+
return graphic.attribute.boundsPadding[0];
|
|
39432
|
+
}
|
|
39433
|
+
const paddingArray = parsePadding(graphic.attribute.boundsPadding);
|
|
39434
|
+
if (field === 'x') {
|
|
39435
|
+
return paddingArray[3];
|
|
39436
|
+
}
|
|
39437
|
+
else if (field === 'y') {
|
|
39438
|
+
return paddingArray[0];
|
|
39439
|
+
}
|
|
39440
|
+
return 0;
|
|
39441
|
+
}
|
|
39028
39442
|
|
|
39029
39443
|
const defaultTicker = new DefaultTicker();
|
|
39030
39444
|
defaultTicker.addTimeline(defaultTimeline);
|
|
39031
|
-
const
|
|
39032
|
-
defaultTicker.setFPS(
|
|
39445
|
+
const TICKER_FPS = 60;
|
|
39446
|
+
defaultTicker.setFPS(TICKER_FPS);
|
|
39033
39447
|
|
|
39034
39448
|
class DirectionalLight {
|
|
39035
39449
|
constructor(dir, color, ambient = 0.8) {
|
|
@@ -39048,7 +39462,7 @@
|
|
|
39048
39462
|
const brightness = min(max((normal[0] * lightDir[0] + normal[1] * lightDir[1] + normal[2] * lightDir[2]) * (1 - this.ambient / 2), 0) +
|
|
39049
39463
|
this.ambient, 1);
|
|
39050
39464
|
let colorArray;
|
|
39051
|
-
if (isString(color)) {
|
|
39465
|
+
if (isString$1(color)) {
|
|
39052
39466
|
const result = colorString.get(color);
|
|
39053
39467
|
colorArray = result.value;
|
|
39054
39468
|
}
|
|
@@ -39214,19 +39628,46 @@
|
|
|
39214
39628
|
this._afterRender = params.afterRender;
|
|
39215
39629
|
this.ticker = params.ticker || defaultTicker;
|
|
39216
39630
|
this.supportInteractiveLayer = params.interactiveLayer !== false;
|
|
39631
|
+
this.timeline = new DefaultTimeline();
|
|
39632
|
+
this.ticker.addTimeline(this.timeline);
|
|
39633
|
+
this.timeline.pause();
|
|
39634
|
+
this.optmize(params.optimize);
|
|
39635
|
+
}
|
|
39636
|
+
optmize(params) {
|
|
39637
|
+
this.optmizeRender(params === null || params === void 0 ? void 0 : params.skipRenderWithOutRange);
|
|
39638
|
+
}
|
|
39639
|
+
optmizeRender(skipRenderWithOutRange = true) {
|
|
39640
|
+
if (!skipRenderWithOutRange) {
|
|
39641
|
+
return;
|
|
39642
|
+
}
|
|
39643
|
+
this._skipRender = this.window.isVisible() ? 0 : 1;
|
|
39644
|
+
this.window.onVisibleChange(visible => {
|
|
39645
|
+
if (visible) {
|
|
39646
|
+
if (this.dirtyBounds) {
|
|
39647
|
+
this.dirtyBounds.setValue(0, 0, this._viewBox.width(), this._viewBox.height());
|
|
39648
|
+
}
|
|
39649
|
+
if (this._skipRender > 1) {
|
|
39650
|
+
this.renderNextFrame();
|
|
39651
|
+
}
|
|
39652
|
+
this._skipRender = 0;
|
|
39653
|
+
}
|
|
39654
|
+
else {
|
|
39655
|
+
this._skipRender = 1;
|
|
39656
|
+
}
|
|
39657
|
+
});
|
|
39658
|
+
}
|
|
39659
|
+
getTimeline() {
|
|
39660
|
+
return this.timeline;
|
|
39217
39661
|
}
|
|
39218
39662
|
get3dOptions(options) {
|
|
39219
39663
|
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,
|
|
39664
|
+
return Object.assign(Object.assign({}, options), { center,
|
|
39223
39665
|
light,
|
|
39224
39666
|
alpha,
|
|
39225
39667
|
beta,
|
|
39226
39668
|
camera,
|
|
39227
39669
|
fieldRatio,
|
|
39228
|
-
fieldDepth
|
|
39229
|
-
};
|
|
39670
|
+
fieldDepth });
|
|
39230
39671
|
}
|
|
39231
39672
|
set3dOptions(options) {
|
|
39232
39673
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -39415,6 +39856,7 @@
|
|
|
39415
39856
|
if (this.supportInteractiveLayer && !this.interactiveLayer) {
|
|
39416
39857
|
this.interactiveLayer = this.createLayer();
|
|
39417
39858
|
this.interactiveLayer.name = '_builtin_interactive';
|
|
39859
|
+
this.nextFrameRenderLayerSet.add(this.interactiveLayer);
|
|
39418
39860
|
}
|
|
39419
39861
|
}
|
|
39420
39862
|
clearViewBox(color) {
|
|
@@ -39422,18 +39864,22 @@
|
|
|
39422
39864
|
}
|
|
39423
39865
|
render(layers, params) {
|
|
39424
39866
|
this.ticker.start();
|
|
39425
|
-
this.
|
|
39426
|
-
this.
|
|
39427
|
-
|
|
39428
|
-
|
|
39429
|
-
|
|
39430
|
-
|
|
39431
|
-
|
|
39432
|
-
|
|
39433
|
-
|
|
39434
|
-
|
|
39435
|
-
|
|
39436
|
-
|
|
39867
|
+
this.timeline.resume();
|
|
39868
|
+
if (!this._skipRender) {
|
|
39869
|
+
this.lastRenderparams = params;
|
|
39870
|
+
this.hooks.beforeRender.call(this);
|
|
39871
|
+
(layers || this).forEach((layer, i) => {
|
|
39872
|
+
layer.render({
|
|
39873
|
+
renderService: this.renderService,
|
|
39874
|
+
background: layer === this.defaultLayer ? this.background : undefined,
|
|
39875
|
+
updateBounds: !!this.dirtyBounds
|
|
39876
|
+
}, Object.assign({ renderStyle: this.renderStyle }, params));
|
|
39877
|
+
});
|
|
39878
|
+
this.combineLayersToWindow();
|
|
39879
|
+
this.nextFrameRenderLayerSet.clear();
|
|
39880
|
+
this.hooks.afterRender.call(this);
|
|
39881
|
+
}
|
|
39882
|
+
this._skipRender && this._skipRender++;
|
|
39437
39883
|
}
|
|
39438
39884
|
combineLayersToWindow() {
|
|
39439
39885
|
this.forEach((layer, i) => {
|
|
@@ -39463,8 +39909,9 @@
|
|
|
39463
39909
|
}
|
|
39464
39910
|
}
|
|
39465
39911
|
_doRenderInThisFrame() {
|
|
39466
|
-
|
|
39467
|
-
|
|
39912
|
+
this.timeline.resume();
|
|
39913
|
+
this.ticker.start();
|
|
39914
|
+
if (this.nextFrameRenderLayerSet.size && !this._skipRender) {
|
|
39468
39915
|
this.hooks.beforeRender.call(this);
|
|
39469
39916
|
this.forEach((layer) => {
|
|
39470
39917
|
if (this.nextFrameRenderLayerSet.has(layer)) {
|
|
@@ -39472,13 +39919,14 @@
|
|
|
39472
39919
|
renderService: this.renderService,
|
|
39473
39920
|
background: layer === this.defaultLayer ? this.background : undefined,
|
|
39474
39921
|
updateBounds: !!this.dirtyBounds
|
|
39475
|
-
}, { renderStyle: this.renderStyle,
|
|
39922
|
+
}, Object.assign({ renderStyle: this.renderStyle }, (this.lastRenderparams || {})));
|
|
39476
39923
|
}
|
|
39477
39924
|
});
|
|
39478
39925
|
this.combineLayersToWindow();
|
|
39479
39926
|
this.hooks.afterRender.call(this);
|
|
39480
39927
|
this.nextFrameRenderLayerSet.clear();
|
|
39481
39928
|
}
|
|
39929
|
+
this._skipRender && this._skipRender++;
|
|
39482
39930
|
}
|
|
39483
39931
|
resizeWindow(w, h, rerender = true) {
|
|
39484
39932
|
this.window.resize(w, h);
|
|
@@ -39500,7 +39948,7 @@
|
|
|
39500
39948
|
this.forEachChildren(c => {
|
|
39501
39949
|
c.resizeView(w, h);
|
|
39502
39950
|
});
|
|
39503
|
-
this.camera && (this.camera.params = {
|
|
39951
|
+
this.camera && (this.camera.params = Object.assign(Object.assign({}, this.camera.params), { right: this.width, bottom: this.height }));
|
|
39504
39952
|
rerender && this.render();
|
|
39505
39953
|
}
|
|
39506
39954
|
setViewBox(x, y, w, h, rerender) {
|
|
@@ -39522,10 +39970,11 @@
|
|
|
39522
39970
|
});
|
|
39523
39971
|
isRerender && this.render();
|
|
39524
39972
|
}
|
|
39525
|
-
setDpr(dpr) {
|
|
39973
|
+
setDpr(dpr, rerender = true) {
|
|
39526
39974
|
this.forEachChildren(c => {
|
|
39527
39975
|
c.setDpr(dpr);
|
|
39528
39976
|
});
|
|
39977
|
+
rerender && this.render();
|
|
39529
39978
|
}
|
|
39530
39979
|
setOrigin(x, y) {
|
|
39531
39980
|
throw new Error('暂不支持');
|
|
@@ -39576,13 +40025,7 @@
|
|
|
39576
40025
|
}
|
|
39577
40026
|
renderTo(window, params) {
|
|
39578
40027
|
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
|
-
});
|
|
40028
|
+
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
40029
|
});
|
|
39587
40030
|
}
|
|
39588
40031
|
renderToNewWindow(fullImage = true, viewBox) {
|
|
@@ -39614,8 +40057,8 @@
|
|
|
39614
40057
|
this.renderTo(window, {
|
|
39615
40058
|
x,
|
|
39616
40059
|
y,
|
|
39617
|
-
width: window.width,
|
|
39618
|
-
height: window.height
|
|
40060
|
+
width: viewBox ? viewBox.x2 : window.width,
|
|
40061
|
+
height: viewBox ? viewBox.y2 : window.height
|
|
39619
40062
|
});
|
|
39620
40063
|
return window;
|
|
39621
40064
|
}
|
|
@@ -39756,37 +40199,33 @@
|
|
|
39756
40199
|
return createRichText(params ? params.attribute : {});
|
|
39757
40200
|
}
|
|
39758
40201
|
VRichText.Text = function (params) {
|
|
39759
|
-
return {
|
|
39760
|
-
type: 'rich/text',
|
|
39761
|
-
...params
|
|
39762
|
-
};
|
|
40202
|
+
return Object.assign({ type: 'rich/text' }, params);
|
|
39763
40203
|
};
|
|
39764
40204
|
VRichText.Image = function (params) {
|
|
39765
|
-
return {
|
|
39766
|
-
type: 'rich/image',
|
|
39767
|
-
...params
|
|
39768
|
-
};
|
|
40205
|
+
return Object.assign({ type: 'rich/image' }, params);
|
|
39769
40206
|
};
|
|
39770
40207
|
|
|
39771
40208
|
function flatten(list, out) {
|
|
39772
|
-
if (isArray(list)) {
|
|
40209
|
+
if (isArray$1(list)) {
|
|
39773
40210
|
return list.forEach(i => flatten(i, out));
|
|
39774
40211
|
}
|
|
39775
40212
|
out.push(list);
|
|
39776
40213
|
}
|
|
39777
40214
|
function jsx(type, config, ...children) {
|
|
39778
|
-
const { key, attribute,
|
|
40215
|
+
const _a = config || {}, { key, attribute, stateProxy } = _a, props = __rest(_a, ["key", "attribute", "stateProxy"]);
|
|
39779
40216
|
let c = type;
|
|
39780
|
-
if (isString(type)) {
|
|
40217
|
+
if (isString$1(type)) {
|
|
39781
40218
|
c = graphicCreator[type];
|
|
39782
40219
|
}
|
|
39783
40220
|
const childrenList = [];
|
|
39784
40221
|
if (children.length) {
|
|
39785
40222
|
flatten(children.length === 1 ? children[0] : children, childrenList);
|
|
39786
40223
|
}
|
|
39787
|
-
|
|
39788
|
-
const g = c.prototype.type ? new c(attribute) : c(config);
|
|
40224
|
+
const g = c.name === 'Group' ? new c(attribute) : c(config);
|
|
39789
40225
|
parseToGraphic(g, childrenList, props);
|
|
40226
|
+
if (stateProxy) {
|
|
40227
|
+
g.stateProxy = stateProxy;
|
|
40228
|
+
}
|
|
39790
40229
|
return g;
|
|
39791
40230
|
}
|
|
39792
40231
|
function parseToGraphic(g, childrenList, props) {
|
|
@@ -39806,7 +40245,7 @@
|
|
|
39806
40245
|
}
|
|
39807
40246
|
if (isGraphic) {
|
|
39808
40247
|
childrenList.forEach((c) => {
|
|
39809
|
-
g.add(c);
|
|
40248
|
+
c && g.add(c);
|
|
39810
40249
|
});
|
|
39811
40250
|
Object.keys(props).forEach(k => {
|
|
39812
40251
|
const en = REACT_TO_CANOPUS_EVENTS[k];
|
|
@@ -39821,16 +40260,9 @@
|
|
|
39821
40260
|
}
|
|
39822
40261
|
}
|
|
39823
40262
|
}
|
|
39824
|
-
|
|
39825
|
-
constructor() {
|
|
39826
|
-
this.children = [];
|
|
39827
|
-
}
|
|
39828
|
-
add(g) {
|
|
39829
|
-
this.children.push(g);
|
|
39830
|
-
}
|
|
39831
|
-
}
|
|
40263
|
+
const Fragment = Group;
|
|
39832
40264
|
|
|
39833
|
-
const version = "0.15.0-alpha.
|
|
40265
|
+
const version = "0.15.0-alpha.21";
|
|
39834
40266
|
|
|
39835
40267
|
exports.ACustomAnimate = ACustomAnimate;
|
|
39836
40268
|
exports.ARC3D_NUMBER_TYPE = ARC3D_NUMBER_TYPE;
|
|
@@ -39882,6 +40314,8 @@
|
|
|
39882
40314
|
exports.DefaultImageAttribute = DefaultImageAttribute;
|
|
39883
40315
|
exports.DefaultLayout = DefaultLayout;
|
|
39884
40316
|
exports.DefaultLineAttribute = DefaultLineAttribute;
|
|
40317
|
+
exports.DefaultMat4Allocate = DefaultMat4Allocate;
|
|
40318
|
+
exports.DefaultMatrixAllocate = DefaultMatrixAllocate;
|
|
39885
40319
|
exports.DefaultMorphingAnimateConfig = DefaultMorphingAnimateConfig;
|
|
39886
40320
|
exports.DefaultPathAttribute = DefaultPathAttribute;
|
|
39887
40321
|
exports.DefaultPolygonAttribute = DefaultPolygonAttribute;
|
|
@@ -39949,6 +40383,8 @@
|
|
|
39949
40383
|
exports.LinearClosed = LinearClosed;
|
|
39950
40384
|
exports.ManualTickHandler = ManualTickHandler;
|
|
39951
40385
|
exports.ManualTicker = ManualTicker;
|
|
40386
|
+
exports.Mat4Allocate = Mat4Allocate;
|
|
40387
|
+
exports.MatrixAllocate = MatrixAllocate;
|
|
39952
40388
|
exports.Meteor = Meteor;
|
|
39953
40389
|
exports.MonotoneX = MonotoneX;
|
|
39954
40390
|
exports.MonotoneY = MonotoneY;
|
|
@@ -40038,6 +40474,7 @@
|
|
|
40038
40474
|
exports.bezierCurversToPath = bezierCurversToPath;
|
|
40039
40475
|
exports.binarySplitPolygon = binarySplitPolygon;
|
|
40040
40476
|
exports.bindContributionProvider = bindContributionProvider;
|
|
40477
|
+
exports.bindContributionProviderNoSingletonScope = bindContributionProviderNoSingletonScope;
|
|
40041
40478
|
exports.boundStroke = boundStroke;
|
|
40042
40479
|
exports.builtinSymbols = builtinSymbols;
|
|
40043
40480
|
exports.builtinSymbolsMap = builtinSymbolsMap;
|
|
@@ -40057,6 +40494,7 @@
|
|
|
40057
40494
|
exports.createGroup = createGroup;
|
|
40058
40495
|
exports.createImage = createImage;
|
|
40059
40496
|
exports.createLine = createLine;
|
|
40497
|
+
exports.createMat4 = createMat4;
|
|
40060
40498
|
exports.createPath = createPath;
|
|
40061
40499
|
exports.createPolygon = createPolygon;
|
|
40062
40500
|
exports.createPyramid3d = createPyramid3d;
|
|
@@ -40123,6 +40561,8 @@
|
|
|
40123
40561
|
exports.loadFeishuContributions = loadFeishuContributions;
|
|
40124
40562
|
exports.loadTaroContributions = loadTaroContributions;
|
|
40125
40563
|
exports.mat3Tomat4 = mat3Tomat4;
|
|
40564
|
+
exports.mat4Allocate = mat4Allocate;
|
|
40565
|
+
exports.matrixAllocate = matrixAllocate;
|
|
40126
40566
|
exports.morphPath = morphPath;
|
|
40127
40567
|
exports.multiToOneMorph = multiToOneMorph;
|
|
40128
40568
|
exports.multiplyMat4Mat3 = multiplyMat4Mat3;
|