@visactor/vrender 0.15.0-alpha.15 → 0.15.0-alpha.16
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/animate/animate.d.ts +0 -1
- package/cjs/animate/animate.js +0 -3
- package/cjs/animate/animate.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/canvas/contributions/browser/context.d.ts +0 -1
- package/cjs/common/contribution-provider.d.ts +0 -1
- package/cjs/common/contribution-provider.js +2 -7
- package/cjs/common/contribution-provider.js.map +1 -1
- package/cjs/common/enums.d.ts +2 -4
- package/cjs/common/enums.js +2 -3
- package/cjs/common/enums.js.map +1 -1
- package/cjs/core/contributions/env/base-contribution.d.ts +1 -11
- package/cjs/core/contributions/env/base-contribution.js +1 -22
- package/cjs/core/contributions/env/base-contribution.js.map +1 -1
- package/cjs/core/contributions/env/browser-contribution.d.ts +2 -11
- package/cjs/core/contributions/env/browser-contribution.js +0 -66
- package/cjs/core/contributions/env/browser-contribution.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/window/base-contribution.d.ts +5 -11
- package/cjs/core/contributions/window/base-contribution.js +0 -10
- package/cjs/core/contributions/window/base-contribution.js.map +1 -1
- package/cjs/core/contributions/window/browser-contribution.d.ts +0 -11
- package/cjs/core/contributions/window/browser-contribution.js +2 -33
- package/cjs/core/contributions/window/browser-contribution.js.map +1 -1
- package/cjs/core/global.d.ts +1 -11
- package/cjs/core/global.js +0 -18
- package/cjs/core/global.js.map +1 -1
- package/cjs/core/graphic-utils.d.ts +0 -2
- package/cjs/core/graphic-utils.js +0 -13
- package/cjs/core/graphic-utils.js.map +1 -1
- package/cjs/core/layer.js +6 -6
- package/cjs/core/layer.js.map +1 -1
- package/cjs/core/stage.d.ts +4 -13
- package/cjs/core/stage.js +25 -54
- package/cjs/core/stage.js.map +1 -1
- package/cjs/core/window.d.ts +0 -6
- package/cjs/core/window.js +1 -10
- package/cjs/core/window.js.map +1 -1
- package/cjs/event/event-manager.js +8 -8
- package/cjs/event/event-manager.js.map +1 -1
- package/cjs/event/event-system.js.map +1 -1
- package/cjs/event/federated-event/pointer-event.d.ts +0 -1
- package/cjs/event/federated-event/pointer-event.js.map +1 -1
- package/cjs/graphic/builtin-symbol/arrow2-left.js +1 -1
- package/cjs/graphic/builtin-symbol/arrow2-left.js.map +1 -1
- package/cjs/graphic/builtin-symbol/arrow2-right.js +1 -1
- package/cjs/graphic/builtin-symbol/arrow2-right.js.map +1 -1
- package/cjs/graphic/builtin-symbol/index.d.ts +1 -1
- package/cjs/graphic/builtin-symbol/index.js +2 -2
- package/cjs/graphic/builtin-symbol/index.js.map +1 -1
- package/cjs/graphic/builtin-symbol/utils.d.ts +5 -13
- package/cjs/graphic/builtin-symbol/utils.js +9 -23
- package/cjs/graphic/builtin-symbol/utils.js.map +1 -1
- package/cjs/graphic/config.js +7 -9
- package/cjs/graphic/config.js.map +1 -1
- package/cjs/graphic/constants.d.ts +0 -22
- package/cjs/graphic/constants.js +2 -20
- package/cjs/graphic/constants.js.map +1 -1
- package/cjs/graphic/graphic.d.ts +1 -4
- package/cjs/graphic/graphic.js +30 -51
- 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/index.d.ts +0 -1
- package/cjs/graphic/index.js +13 -13
- package/cjs/graphic/index.js.map +1 -1
- package/cjs/graphic/richtext/utils.d.ts +1 -1
- package/cjs/graphic/richtext/utils.js +1 -1
- package/cjs/graphic/richtext/utils.js.map +1 -1
- package/cjs/graphic/symbol.d.ts +1 -2
- package/cjs/graphic/symbol.js +4 -27
- package/cjs/graphic/symbol.js.map +1 -1
- package/cjs/graphic/text.js +23 -33
- package/cjs/graphic/text.js.map +1 -1
- package/cjs/graphic/tools.d.ts +2 -3
- package/cjs/graphic/tools.js +3 -58
- package/cjs/graphic/tools.js.map +1 -1
- package/cjs/graphic/wrap-text.js +8 -10
- package/cjs/graphic/wrap-text.js.map +1 -1
- package/cjs/index.d.ts +1 -3
- package/cjs/index.js +3 -3
- package/cjs/index.js.map +1 -1
- package/cjs/interface/animate.d.ts +1 -3
- package/cjs/interface/animate.js.map +1 -1
- package/cjs/interface/core.d.ts +0 -1
- package/cjs/interface/core.js.map +1 -1
- package/cjs/interface/global.d.ts +1 -25
- package/cjs/interface/global.js.map +1 -1
- package/cjs/interface/graphic/image.d.ts +0 -1
- package/cjs/interface/graphic/image.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/symbol.d.ts +2 -3
- package/cjs/interface/graphic/symbol.js.map +1 -1
- package/cjs/interface/graphic/text.d.ts +0 -1
- package/cjs/interface/graphic/text.js.map +1 -1
- package/cjs/interface/graphic.d.ts +4 -27
- package/cjs/interface/graphic.js.map +1 -1
- package/cjs/interface/picker.d.ts +1 -9
- package/cjs/interface/picker.js.map +1 -1
- package/cjs/interface/render.d.ts +0 -1
- package/cjs/interface/render.js.map +1 -1
- package/cjs/interface/stage.d.ts +3 -10
- package/cjs/interface/stage.js.map +1 -1
- package/cjs/interface/window.d.ts +0 -12
- package/cjs/interface/window.js.map +1 -1
- package/cjs/picker/canvas-picker-service.d.ts +2 -2
- package/cjs/picker/canvas-picker-service.js +3 -20
- package/cjs/picker/canvas-picker-service.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/module.js +1 -3
- package/cjs/picker/contributions/canvas-picker/module.js.map +1 -1
- package/cjs/picker/contributions/canvas-picker/symbol-picker.js +2 -4
- package/cjs/picker/contributions/canvas-picker/symbol-picker.js.map +1 -1
- package/cjs/picker/contributions/constants.d.ts +0 -1
- package/cjs/picker/contributions/constants.js +8 -9
- package/cjs/picker/contributions/constants.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/global-picker-service.d.ts +1 -1
- package/cjs/picker/global-picker-service.js +5 -12
- package/cjs/picker/global-picker-service.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 +0 -12
- package/cjs/picker/pick-interceptor.js +5 -32
- package/cjs/picker/pick-interceptor.js.map +1 -1
- package/cjs/picker/pick-modules.js +0 -2
- package/cjs/picker/pick-modules.js.map +1 -1
- package/cjs/picker/picker-service.d.ts +1 -1
- package/cjs/picker/picker-service.js +6 -15
- package/cjs/picker/picker-service.js.map +1 -1
- package/cjs/plugins/builtin-plugin/flex-layout-plugin.d.ts +0 -2
- package/cjs/plugins/builtin-plugin/flex-layout-plugin.js +21 -42
- package/cjs/plugins/builtin-plugin/flex-layout-plugin.js.map +1 -1
- package/cjs/plugins/plugin-modules.js +1 -1
- package/cjs/plugins/plugin-modules.js.map +1 -1
- package/cjs/render/contributions/render/area-render.js +31 -21
- package/cjs/render/contributions/render/area-render.js.map +1 -1
- package/cjs/render/contributions/render/contributions/image-contribution-render.js +1 -23
- package/cjs/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
- package/cjs/render/contributions/render/draw-contribution.d.ts +1 -3
- package/cjs/render/contributions/render/draw-contribution.js +1 -3
- package/cjs/render/contributions/render/draw-contribution.js.map +1 -1
- package/cjs/render/contributions/render/draw-interceptor.d.ts +0 -2
- package/cjs/render/contributions/render/draw-interceptor.js +0 -8
- package/cjs/render/contributions/render/draw-interceptor.js.map +1 -1
- package/cjs/render/contributions/render/image-render.js +3 -7
- package/cjs/render/contributions/render/image-render.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/symbol-render.js +5 -12
- package/cjs/render/contributions/render/symbol-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/render-service.js +1 -3
- package/cjs/render/render-service.js.map +1 -1
- package/dist/index.js +346 -3537
- package/dist/index.min.js +1 -1
- package/es/animate/animate.d.ts +0 -1
- package/es/animate/animate.js +0 -3
- package/es/animate/animate.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/canvas/contributions/browser/context.d.ts +0 -1
- package/es/common/contribution-provider.d.ts +0 -1
- package/es/common/contribution-provider.js +0 -4
- package/es/common/contribution-provider.js.map +1 -1
- package/es/common/enums.d.ts +2 -4
- package/es/common/enums.js +2 -3
- package/es/common/enums.js.map +1 -1
- package/es/core/contributions/env/base-contribution.d.ts +1 -11
- package/es/core/contributions/env/base-contribution.js +0 -23
- package/es/core/contributions/env/base-contribution.js.map +1 -1
- package/es/core/contributions/env/browser-contribution.d.ts +2 -11
- package/es/core/contributions/env/browser-contribution.js +1 -67
- package/es/core/contributions/env/browser-contribution.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/window/base-contribution.d.ts +5 -11
- package/es/core/contributions/window/base-contribution.js +0 -10
- package/es/core/contributions/window/base-contribution.js.map +1 -1
- package/es/core/contributions/window/browser-contribution.d.ts +0 -11
- package/es/core/contributions/window/browser-contribution.js +2 -33
- package/es/core/contributions/window/browser-contribution.js.map +1 -1
- package/es/core/global.d.ts +1 -11
- package/es/core/global.js +0 -18
- package/es/core/global.js.map +1 -1
- package/es/core/graphic-utils.d.ts +0 -2
- package/es/core/graphic-utils.js +0 -13
- package/es/core/graphic-utils.js.map +1 -1
- package/es/core/layer.js +6 -6
- package/es/core/layer.js.map +1 -1
- package/es/core/stage.d.ts +4 -13
- package/es/core/stage.js +24 -57
- package/es/core/stage.js.map +1 -1
- package/es/core/window.d.ts +0 -6
- package/es/core/window.js +1 -10
- package/es/core/window.js.map +1 -1
- package/es/event/event-manager.js +8 -8
- package/es/event/event-manager.js.map +1 -1
- package/es/event/event-system.js.map +1 -1
- package/es/event/federated-event/pointer-event.d.ts +0 -1
- package/es/event/federated-event/pointer-event.js.map +1 -1
- package/es/graphic/builtin-symbol/arrow2-left.js +1 -1
- package/es/graphic/builtin-symbol/arrow2-left.js.map +1 -1
- package/es/graphic/builtin-symbol/arrow2-right.js +1 -1
- package/es/graphic/builtin-symbol/arrow2-right.js.map +1 -1
- package/es/graphic/builtin-symbol/index.d.ts +1 -1
- package/es/graphic/builtin-symbol/index.js +1 -11
- package/es/graphic/builtin-symbol/index.js.map +1 -1
- package/es/graphic/builtin-symbol/utils.d.ts +5 -13
- package/es/graphic/builtin-symbol/utils.js +7 -25
- package/es/graphic/builtin-symbol/utils.js.map +1 -1
- package/es/graphic/config.js +7 -9
- package/es/graphic/config.js.map +1 -1
- package/es/graphic/constants.d.ts +0 -22
- package/es/graphic/constants.js +0 -26
- package/es/graphic/constants.js.map +1 -1
- package/es/graphic/graphic.d.ts +1 -4
- package/es/graphic/graphic.js +30 -50
- 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/index.d.ts +0 -1
- package/es/graphic/index.js +0 -2
- package/es/graphic/index.js.map +1 -1
- package/es/graphic/richtext/utils.d.ts +1 -1
- package/es/graphic/richtext/utils.js +1 -1
- package/es/graphic/richtext/utils.js.map +1 -1
- package/es/graphic/symbol.d.ts +1 -2
- package/es/graphic/symbol.js +1 -28
- package/es/graphic/symbol.js.map +1 -1
- package/es/graphic/text.js +23 -33
- package/es/graphic/text.js.map +1 -1
- package/es/graphic/tools.d.ts +2 -3
- package/es/graphic/tools.js +0 -59
- package/es/graphic/tools.js.map +1 -1
- package/es/graphic/wrap-text.js +8 -10
- package/es/graphic/wrap-text.js.map +1 -1
- package/es/index.d.ts +1 -3
- package/es/index.js +1 -5
- package/es/index.js.map +1 -1
- package/es/interface/animate.d.ts +1 -3
- package/es/interface/animate.js.map +1 -1
- package/es/interface/core.d.ts +0 -1
- package/es/interface/core.js.map +1 -1
- package/es/interface/global.d.ts +1 -25
- package/es/interface/global.js.map +1 -1
- package/es/interface/graphic/image.d.ts +0 -1
- package/es/interface/graphic/image.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/symbol.d.ts +2 -3
- package/es/interface/graphic/symbol.js.map +1 -1
- package/es/interface/graphic/text.d.ts +0 -1
- package/es/interface/graphic/text.js.map +1 -1
- package/es/interface/graphic.d.ts +4 -27
- package/es/interface/graphic.js.map +1 -1
- package/es/interface/picker.d.ts +1 -9
- package/es/interface/picker.js.map +1 -1
- package/es/interface/render.d.ts +0 -1
- package/es/interface/render.js.map +1 -1
- package/es/interface/stage.d.ts +3 -10
- package/es/interface/stage.js.map +1 -1
- package/es/interface/window.d.ts +0 -12
- package/es/interface/window.js.map +1 -1
- package/es/picker/canvas-picker-service.d.ts +2 -2
- package/es/picker/canvas-picker-service.js +3 -20
- package/es/picker/canvas-picker-service.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/module.js +2 -6
- package/es/picker/contributions/canvas-picker/module.js.map +1 -1
- package/es/picker/contributions/canvas-picker/symbol-picker.js +1 -6
- package/es/picker/contributions/canvas-picker/symbol-picker.js.map +1 -1
- package/es/picker/contributions/constants.d.ts +0 -1
- package/es/picker/contributions/constants.js +0 -2
- package/es/picker/contributions/constants.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/global-picker-service.d.ts +1 -1
- package/es/picker/global-picker-service.js +5 -12
- package/es/picker/global-picker-service.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 +0 -12
- package/es/picker/pick-interceptor.js +4 -34
- package/es/picker/pick-interceptor.js.map +1 -1
- package/es/picker/pick-modules.js +2 -4
- package/es/picker/pick-modules.js.map +1 -1
- package/es/picker/picker-service.d.ts +1 -1
- package/es/picker/picker-service.js +6 -15
- package/es/picker/picker-service.js.map +1 -1
- package/es/plugins/builtin-plugin/flex-layout-plugin.d.ts +0 -2
- package/es/plugins/builtin-plugin/flex-layout-plugin.js +20 -47
- package/es/plugins/builtin-plugin/flex-layout-plugin.js.map +1 -1
- package/es/plugins/plugin-modules.js +2 -2
- package/es/plugins/plugin-modules.js.map +1 -1
- package/es/render/contributions/render/area-render.js +30 -20
- package/es/render/contributions/render/area-render.js.map +1 -1
- package/es/render/contributions/render/contributions/image-contribution-render.js +0 -27
- package/es/render/contributions/render/contributions/image-contribution-render.js.map +1 -1
- package/es/render/contributions/render/draw-contribution.d.ts +1 -3
- package/es/render/contributions/render/draw-contribution.js +0 -4
- package/es/render/contributions/render/draw-contribution.js.map +1 -1
- package/es/render/contributions/render/draw-interceptor.d.ts +0 -2
- package/es/render/contributions/render/draw-interceptor.js +0 -8
- package/es/render/contributions/render/draw-interceptor.js.map +1 -1
- package/es/render/contributions/render/image-render.js +2 -10
- package/es/render/contributions/render/image-render.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/symbol-render.js +5 -12
- package/es/render/contributions/render/symbol-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/render-service.js +1 -3
- package/es/render/render-service.js.map +1 -1
- package/package.json +13 -10
- package/cjs/graphic/builtin-symbol/arrow2-down.d.ts +0 -12
- package/cjs/graphic/builtin-symbol/arrow2-down.js +0 -30
- package/cjs/graphic/builtin-symbol/arrow2-down.js.map +0 -1
- package/cjs/graphic/builtin-symbol/arrow2-up.d.ts +0 -12
- package/cjs/graphic/builtin-symbol/arrow2-up.js +0 -30
- package/cjs/graphic/builtin-symbol/arrow2-up.js.map +0 -1
- package/cjs/graphic/builtin-symbol/close.d.ts +0 -13
- package/cjs/graphic/builtin-symbol/close.js +0 -33
- package/cjs/graphic/builtin-symbol/close.js.map +0 -1
- package/cjs/graphic/builtin-symbol/line-h.d.ts +0 -13
- package/cjs/graphic/builtin-symbol/line-h.js +0 -32
- package/cjs/graphic/builtin-symbol/line-h.js.map +0 -1
- package/cjs/graphic/builtin-symbol/line-v.d.ts +0 -13
- package/cjs/graphic/builtin-symbol/line-v.js +0 -32
- package/cjs/graphic/builtin-symbol/line-v.js.map +0 -1
- package/cjs/jsx/graphicType.d.ts +0 -172
- package/cjs/jsx/graphicType.js +0 -133
- package/cjs/jsx/graphicType.js.map +0 -1
- package/cjs/jsx/index.d.ts +0 -2
- package/cjs/jsx/index.js +0 -21
- package/cjs/jsx/index.js.map +0 -1
- package/cjs/jsx/jsx-classic.d.ts +0 -3
- package/cjs/jsx/jsx-classic.js +0 -58
- package/cjs/jsx/jsx-classic.js.map +0 -1
- package/cjs/picker/contributions/canvas-picker/group-picker.d.ts +0 -7
- package/cjs/picker/contributions/canvas-picker/group-picker.js +0 -26
- package/cjs/picker/contributions/canvas-picker/group-picker.js.map +0 -1
- package/cjs/plugins/builtin-plugin/html-attribute-plugin.d.ts +0 -13
- package/cjs/plugins/builtin-plugin/html-attribute-plugin.js +0 -79
- package/cjs/plugins/builtin-plugin/html-attribute-plugin.js.map +0 -1
- package/es/graphic/builtin-symbol/arrow2-down.d.ts +0 -12
- package/es/graphic/builtin-symbol/arrow2-down.js +0 -24
- package/es/graphic/builtin-symbol/arrow2-down.js.map +0 -1
- package/es/graphic/builtin-symbol/arrow2-up.d.ts +0 -12
- package/es/graphic/builtin-symbol/arrow2-up.js +0 -24
- package/es/graphic/builtin-symbol/arrow2-up.js.map +0 -1
- package/es/graphic/builtin-symbol/close.d.ts +0 -13
- package/es/graphic/builtin-symbol/close.js +0 -27
- package/es/graphic/builtin-symbol/close.js.map +0 -1
- package/es/graphic/builtin-symbol/line-h.d.ts +0 -13
- package/es/graphic/builtin-symbol/line-h.js +0 -26
- package/es/graphic/builtin-symbol/line-h.js.map +0 -1
- package/es/graphic/builtin-symbol/line-v.d.ts +0 -13
- package/es/graphic/builtin-symbol/line-v.js +0 -26
- package/es/graphic/builtin-symbol/line-v.js.map +0 -1
- package/es/jsx/graphicType.d.ts +0 -172
- package/es/jsx/graphicType.js +0 -126
- package/es/jsx/graphicType.js.map +0 -1
- package/es/jsx/index.d.ts +0 -2
- package/es/jsx/index.js +0 -4
- package/es/jsx/index.js.map +0 -1
- package/es/jsx/jsx-classic.d.ts +0 -3
- package/es/jsx/jsx-classic.js +0 -56
- package/es/jsx/jsx-classic.js.map +0 -1
- package/es/picker/contributions/canvas-picker/group-picker.d.ts +0 -7
- package/es/picker/contributions/canvas-picker/group-picker.js +0 -23
- package/es/picker/contributions/canvas-picker/group-picker.js.map +0 -1
- package/es/plugins/builtin-plugin/html-attribute-plugin.d.ts +0 -13
- package/es/plugins/builtin-plugin/html-attribute-plugin.js +0 -75
- package/es/plugins/builtin-plugin/html-attribute-plugin.js.map +0 -1
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export function arrow2Up(ctx, r, transX, transY) {
|
|
2
|
-
const r2 = 2 * r;
|
|
3
|
-
return ctx.moveTo(transX - r2, transY + r), ctx.lineTo(transX, transY - r), ctx.lineTo(transX + r2, transY + r),
|
|
4
|
-
!0;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export class Arrow2UpSymbol {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.type = "arrow2Up", this.pathStr = "M -0.5 0.25 L 0 -0.25 l 0.5 0.25";
|
|
10
|
-
}
|
|
11
|
-
draw(ctx, size, transX, transY) {
|
|
12
|
-
return arrow2Up(ctx, size / 4, transX, transY);
|
|
13
|
-
}
|
|
14
|
-
drawOffset(ctx, size, transX, transY, offset) {
|
|
15
|
-
return arrow2Up(ctx, size / 4 + offset, transX, transY);
|
|
16
|
-
}
|
|
17
|
-
bounds(size, bounds) {
|
|
18
|
-
const r = size / 2;
|
|
19
|
-
bounds.x1 = -r, bounds.x2 = r, bounds.y1 = -r, bounds.y2 = r;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export default new Arrow2UpSymbol;
|
|
24
|
-
//# sourceMappingURL=arrow2-up.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graphic/builtin-symbol/arrow2-up.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,QAAQ,CAAC,GAAe,EAAE,CAAS,EAAE,MAAc,EAAE,MAAc;IACjF,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,EAAE,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;IACpC,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;IAC/B,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,EAAE,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;IAEpC,OAAO,IAAI,CAAC;AACd,CAAC;AAGD,MAAM,OAAO,cAAc;IAA3B;QACE,SAAI,GAAe,UAAU,CAAC;QAE9B,YAAO,GAAW,kCAAkC,CAAC;IAmBvD,CAAC;IAjBC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,MAAc,EAAE,MAAc;QAChE,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,MAAc,EAAE,MAAc,EAAE,MAAc;QACtF,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC;QAC5B,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,IAAY,EAAE,MAAe;QAClC,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;IAChB,CAAC;CACF;AAED,eAAe,IAAI,cAAc,EAAE,CAAC","file":"arrow2-up.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass } from '../../interface';\n\nexport function arrow2Up(ctx: IContext2d, r: number, transX: number, transY: number) {\n const r2 = r * 2;\n ctx.moveTo(transX - r2, transY + r);\n ctx.lineTo(transX, transY - r);\n ctx.lineTo(transX + r2, transY + r);\n\n return true;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class Arrow2UpSymbol implements ISymbolClass {\n type: SymbolType = 'arrow2Up';\n /* eslint-disable max-len */\n pathStr: string = 'M -0.5 0.25 L 0 -0.25 l 0.5 0.25';\n\n draw(ctx: IContext2d, size: number, transX: number, transY: number) {\n const r = size / 4;\n return arrow2Up(ctx, r, transX, transY);\n }\n\n drawOffset(ctx: IContext2d, size: number, transX: number, transY: number, offset: number) {\n const r = size / 4 + offset;\n return arrow2Up(ctx, r, transX, transY);\n }\n\n bounds(size: number, bounds: IBounds) {\n const r = size / 2;\n bounds.x1 = -r;\n bounds.x2 = r;\n bounds.y1 = -r;\n bounds.y2 = r;\n }\n}\n\nexport default new Arrow2UpSymbol();\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { IBounds } from '@visactor/vutils';
|
|
2
|
-
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
3
|
-
export declare function close(ctx: IContext2d, r: number, x: number, y: number, z?: number): boolean;
|
|
4
|
-
export declare class CloseSymbol implements ISymbolClass {
|
|
5
|
-
type: SymbolType;
|
|
6
|
-
pathStr: string;
|
|
7
|
-
draw(ctx: IContext2d, size: number, x: number, y: number, z?: number): boolean;
|
|
8
|
-
drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number, z?: number): boolean;
|
|
9
|
-
drawToSvgPath(size: number, x: number, y: number, z?: number): string;
|
|
10
|
-
bounds(size: number, bounds: IBounds): void;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: CloseSymbol;
|
|
13
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export function close(ctx, r, x, y, z) {
|
|
2
|
-
return ctx.moveTo(x - r, y - r), ctx.lineTo(x + r, y + r), ctx.moveTo(x + r, y - r),
|
|
3
|
-
ctx.lineTo(x - r, y + r), !0;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export class CloseSymbol {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.type = "close", this.pathStr = "M-0.5,-0.5L0.5,0.5,M0.5,-0.5L-0.5,0.5";
|
|
9
|
-
}
|
|
10
|
-
draw(ctx, size, x, y, z) {
|
|
11
|
-
return close(ctx, size / 2, x, y, z);
|
|
12
|
-
}
|
|
13
|
-
drawOffset(ctx, size, x, y, offset, z) {
|
|
14
|
-
return close(ctx, size / 2 + offset, x, y, z);
|
|
15
|
-
}
|
|
16
|
-
drawToSvgPath(size, x, y, z) {
|
|
17
|
-
const r = size / 2;
|
|
18
|
-
return `M ${x - r}, ${y - r} L ${x + r},${y + r} M ${x + r}, ${y - r} L ${x - r},${y + r}`;
|
|
19
|
-
}
|
|
20
|
-
bounds(size, bounds) {
|
|
21
|
-
const r = size / 2;
|
|
22
|
-
bounds.x1 = -r, bounds.x2 = r, bounds.y1 = -r, bounds.y2 = r;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export default new CloseSymbol;
|
|
27
|
-
//# sourceMappingURL=close.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graphic/builtin-symbol/close.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,KAAK,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;IAChF,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEzB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,OAAO,IAAI,CAAC;AACd,CAAC;AAGD,MAAM,OAAO,WAAW;IAAxB;QACE,SAAI,GAAe,OAAO,CAAC;QAC3B,YAAO,GAAW,uCAAuC,CAAC;IAwB5D,CAAC;IAtBC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;QAClE,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc,EAAE,CAAU;QACxF,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC;QAC5B,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,aAAa,CAAC,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;QAC1D,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IAC7F,CAAC;IAED,MAAM,CAAC,IAAY,EAAE,MAAe;QAClC,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;IAChB,CAAC;CACF;AAED,eAAe,IAAI,WAAW,EAAE,CAAC","file":"close.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport { tau } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass, IPath2D } from '../../interface';\n\nexport function close(ctx: IContext2d, r: number, x: number, y: number, z?: number) {\n ctx.moveTo(x - r, y - r);\n ctx.lineTo(x + r, y + r);\n\n ctx.moveTo(x + r, y - r);\n ctx.lineTo(x - r, y + r);\n return true;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class CloseSymbol implements ISymbolClass {\n type: SymbolType = 'close';\n pathStr: string = 'M-0.5,-0.5L0.5,0.5,M0.5,-0.5L-0.5,0.5';\n\n draw(ctx: IContext2d, size: number, x: number, y: number, z?: number) {\n const r = size / 2;\n return close(ctx, r, x, y, z);\n }\n\n drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number, z?: number) {\n const r = size / 2 + offset;\n return close(ctx, r, x, y, z);\n }\n\n drawToSvgPath(size: number, x: number, y: number, z?: number): string {\n const r = size / 2;\n return `M ${x - r}, ${y - r} L ${x + r},${y + r} M ${x + r}, ${y - r} L ${x - r},${y + r}`;\n }\n\n bounds(size: number, bounds: IBounds) {\n const r = size / 2;\n bounds.x1 = -r;\n bounds.x2 = r;\n bounds.y1 = -r;\n bounds.y2 = r;\n }\n}\n\nexport default new CloseSymbol();\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { IBounds } from '@visactor/vutils';
|
|
2
|
-
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
3
|
-
export declare function lineH(ctx: IContext2d, r: number, x: number, y: number, z?: number): boolean;
|
|
4
|
-
export declare class LineHSymbol implements ISymbolClass {
|
|
5
|
-
type: SymbolType;
|
|
6
|
-
pathStr: string;
|
|
7
|
-
draw(ctx: IContext2d, size: number, x: number, y: number, z?: number): boolean;
|
|
8
|
-
drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number, z?: number): boolean;
|
|
9
|
-
drawToSvgPath(size: number, x: number, y: number, z?: number): string;
|
|
10
|
-
bounds(size: number, bounds: IBounds): void;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: LineHSymbol;
|
|
13
|
-
export default _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export function lineH(ctx, r, x, y, z) {
|
|
2
|
-
return ctx.moveTo(x - r, y), ctx.lineTo(x + r, y), !0;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export class LineHSymbol {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.type = "lineH", this.pathStr = "M-0.5,0L0.5,0";
|
|
8
|
-
}
|
|
9
|
-
draw(ctx, size, x, y, z) {
|
|
10
|
-
return lineH(ctx, size / 2, x, y, z);
|
|
11
|
-
}
|
|
12
|
-
drawOffset(ctx, size, x, y, offset, z) {
|
|
13
|
-
return lineH(ctx, size / 2 + offset, x, y, z);
|
|
14
|
-
}
|
|
15
|
-
drawToSvgPath(size, x, y, z) {
|
|
16
|
-
const r = size / 2;
|
|
17
|
-
return `M ${x - r}, ${y} L ${x + r},${y}`;
|
|
18
|
-
}
|
|
19
|
-
bounds(size, bounds) {
|
|
20
|
-
const r = size / 2;
|
|
21
|
-
bounds.x1 = -r, bounds.x2 = r, bounds.y1 = -r, bounds.y2 = r;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export default new LineHSymbol;
|
|
26
|
-
//# sourceMappingURL=line-h.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graphic/builtin-symbol/line-h.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,KAAK,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;IAChF,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACrB,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACrB,OAAO,IAAI,CAAC;AACd,CAAC;AAGD,MAAM,OAAO,WAAW;IAAxB;QACE,SAAI,GAAe,OAAO,CAAC;QAC3B,YAAO,GAAW,eAAe,CAAC;IAwBpC,CAAC;IAtBC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;QAClE,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc,EAAE,CAAU;QACxF,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC;QAC5B,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,aAAa,CAAC,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;QAC1D,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;IAC5C,CAAC;IAED,MAAM,CAAC,IAAY,EAAE,MAAe;QAClC,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;IAChB,CAAC;CACF;AAED,eAAe,IAAI,WAAW,EAAE,CAAC","file":"line-h.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport { tau } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass, IPath2D } from '../../interface';\n\nexport function lineH(ctx: IContext2d, r: number, x: number, y: number, z?: number) {\n ctx.moveTo(x - r, y);\n ctx.lineTo(x + r, y);\n return true;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class LineHSymbol implements ISymbolClass {\n type: SymbolType = 'lineH';\n pathStr: string = 'M-0.5,0L0.5,0';\n\n draw(ctx: IContext2d, size: number, x: number, y: number, z?: number) {\n const r = size / 2;\n return lineH(ctx, r, x, y, z);\n }\n\n drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number, z?: number) {\n const r = size / 2 + offset;\n return lineH(ctx, r, x, y, z);\n }\n\n drawToSvgPath(size: number, x: number, y: number, z?: number): string {\n const r = size / 2;\n return `M ${x - r}, ${y} L ${x + r},${y}`;\n }\n\n bounds(size: number, bounds: IBounds) {\n const r = size / 2;\n bounds.x1 = -r;\n bounds.x2 = r;\n bounds.y1 = -r;\n bounds.y2 = r;\n }\n}\n\nexport default new LineHSymbol();\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { IBounds } from '@visactor/vutils';
|
|
2
|
-
import type { IContext2d, SymbolType, ISymbolClass } from '../../interface';
|
|
3
|
-
export declare function lineV(ctx: IContext2d, r: number, x: number, y: number, z?: number): boolean;
|
|
4
|
-
export declare class LineVSymbol implements ISymbolClass {
|
|
5
|
-
type: SymbolType;
|
|
6
|
-
pathStr: string;
|
|
7
|
-
draw(ctx: IContext2d, size: number, x: number, y: number, z?: number): boolean;
|
|
8
|
-
drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number, z?: number): boolean;
|
|
9
|
-
drawToSvgPath(size: number, x: number, y: number, z?: number): string;
|
|
10
|
-
bounds(size: number, bounds: IBounds): void;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: LineVSymbol;
|
|
13
|
-
export default _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export function lineV(ctx, r, x, y, z) {
|
|
2
|
-
return ctx.moveTo(x, y - r), ctx.lineTo(x, y + r), !0;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export class LineVSymbol {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.type = "lineV", this.pathStr = "M0,-0.5L0,0.5";
|
|
8
|
-
}
|
|
9
|
-
draw(ctx, size, x, y, z) {
|
|
10
|
-
return lineV(ctx, size / 2, x, y, z);
|
|
11
|
-
}
|
|
12
|
-
drawOffset(ctx, size, x, y, offset, z) {
|
|
13
|
-
return lineV(ctx, size / 2 + offset, x, y, z);
|
|
14
|
-
}
|
|
15
|
-
drawToSvgPath(size, x, y, z) {
|
|
16
|
-
const r = size / 2;
|
|
17
|
-
return `M ${x}, ${y - r} L ${x},${y + r}`;
|
|
18
|
-
}
|
|
19
|
-
bounds(size, bounds) {
|
|
20
|
-
const r = size / 2;
|
|
21
|
-
bounds.x1 = -r, bounds.x2 = r, bounds.y1 = -r, bounds.y2 = r;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export default new LineVSymbol;
|
|
26
|
-
//# sourceMappingURL=line-v.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graphic/builtin-symbol/line-v.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,KAAK,CAAC,GAAe,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;IAChF,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,OAAO,IAAI,CAAC;AACd,CAAC;AAGD,MAAM,OAAO,WAAW;IAAxB;QACE,SAAI,GAAe,OAAO,CAAC;QAC3B,YAAO,GAAW,eAAe,CAAC;IAwBpC,CAAC;IAtBC,IAAI,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;QAClE,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,UAAU,CAAC,GAAe,EAAE,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,MAAc,EAAE,CAAU;QACxF,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC;QAC5B,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,aAAa,CAAC,IAAY,EAAE,CAAS,EAAE,CAAS,EAAE,CAAU;QAC1D,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IAC5C,CAAC;IAED,MAAM,CAAC,IAAY,EAAE,MAAe;QAClC,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACnB,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;IAChB,CAAC;CACF;AAED,eAAe,IAAI,WAAW,EAAE,CAAC","file":"line-v.js","sourcesContent":["import type { IBounds } from '@visactor/vutils';\nimport { tau } from '@visactor/vutils';\nimport type { IContext2d, SymbolType, ISymbolClass, IPath2D } from '../../interface';\n\nexport function lineV(ctx: IContext2d, r: number, x: number, y: number, z?: number) {\n ctx.moveTo(x, y - r);\n ctx.lineTo(x, y + r);\n return true;\n}\n\n// 以中心为锚点,size为circle外接正方形的面积\nexport class LineVSymbol implements ISymbolClass {\n type: SymbolType = 'lineV';\n pathStr: string = 'M0,-0.5L0,0.5';\n\n draw(ctx: IContext2d, size: number, x: number, y: number, z?: number) {\n const r = size / 2;\n return lineV(ctx, r, x, y, z);\n }\n\n drawOffset(ctx: IContext2d, size: number, x: number, y: number, offset: number, z?: number) {\n const r = size / 2 + offset;\n return lineV(ctx, r, x, y, z);\n }\n\n drawToSvgPath(size: number, x: number, y: number, z?: number): string {\n const r = size / 2;\n return `M ${x}, ${y - r} L ${x},${y + r}`;\n }\n\n bounds(size: number, bounds: IBounds) {\n const r = size / 2;\n bounds.x1 = -r;\n bounds.x2 = r;\n bounds.y1 = -r;\n bounds.y2 = r;\n }\n}\n\nexport default new LineVSymbol();\n"]}
|
package/es/jsx/graphicType.d.ts
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import type { IArc3dGraphicAttribute, IArcGraphicAttribute, IAreaGraphicAttribute, ICircleGraphicAttribute, IGlyphGraphicAttribute, IGroupGraphicAttribute, IImageGraphicAttribute, ILineGraphicAttribute, IPathGraphicAttribute, IPolygonGraphicAttribute, IPyramid3dGraphicAttribute, IRect3dGraphicAttribute, IRectGraphicAttribute, IRichTextCharacter, IRichTextGraphicAttribute, IRichTextImageCharacter, ISymbolGraphicAttribute, ITextGraphicAttribute } from '../interface';
|
|
2
|
-
import { IGroup, ISymbol } from '../interface';
|
|
3
|
-
export declare const REACT_TO_CANOPUS_EVENTS: {
|
|
4
|
-
onPointerDown: string;
|
|
5
|
-
onPointerUp: string;
|
|
6
|
-
onPointerUpOutside: string;
|
|
7
|
-
onPointerTap: string;
|
|
8
|
-
onPointerOver: string;
|
|
9
|
-
onPointerMove: string;
|
|
10
|
-
onPointerEnter: string;
|
|
11
|
-
onPointerLeave: string;
|
|
12
|
-
onPointerOut: string;
|
|
13
|
-
onMouseDown: string;
|
|
14
|
-
onMouseUp: string;
|
|
15
|
-
onMouseUpOutside: string;
|
|
16
|
-
onMouseMove: string;
|
|
17
|
-
onMouseOver: string;
|
|
18
|
-
onMouseOut: string;
|
|
19
|
-
onMouseEnter: string;
|
|
20
|
-
onMouseLeave: string;
|
|
21
|
-
onPinch: string;
|
|
22
|
-
onPinchStart: string;
|
|
23
|
-
onPinchEnd: string;
|
|
24
|
-
onPan: string;
|
|
25
|
-
onPanStart: string;
|
|
26
|
-
onPanEnd: string;
|
|
27
|
-
onDrag: string;
|
|
28
|
-
onDragStart: string;
|
|
29
|
-
onDragEnter: string;
|
|
30
|
-
onDragLeave: string;
|
|
31
|
-
onDragOver: string;
|
|
32
|
-
onDragEnd: string;
|
|
33
|
-
onRightDown: string;
|
|
34
|
-
onRightUp: string;
|
|
35
|
-
onRightUpOutside: string;
|
|
36
|
-
onTouchStart: string;
|
|
37
|
-
onTouchEnd: string;
|
|
38
|
-
onTouchEndOutside: string;
|
|
39
|
-
onTouchMove: string;
|
|
40
|
-
onTouchCancel: string;
|
|
41
|
-
onPress: string;
|
|
42
|
-
onPressUp: string;
|
|
43
|
-
onPressEnd: string;
|
|
44
|
-
onSwipe: string;
|
|
45
|
-
onDrop: string;
|
|
46
|
-
onWeel: string;
|
|
47
|
-
onClick: string;
|
|
48
|
-
onDblClick: string;
|
|
49
|
-
};
|
|
50
|
-
export declare const REACT_TO_CANOPUS_EVENTS_LIST: string[];
|
|
51
|
-
export type IEventParamsType = {
|
|
52
|
-
[t in keyof typeof REACT_TO_CANOPUS_EVENTS]?: (d: any) => void;
|
|
53
|
-
};
|
|
54
|
-
export type IDefaultGraphicParamsType<T> = {
|
|
55
|
-
attribute?: T;
|
|
56
|
-
} & IEventParamsType;
|
|
57
|
-
export declare function VArc(params: IDefaultGraphicParamsType<IArcGraphicAttribute>): import("../interface").IArc;
|
|
58
|
-
export declare function VArc3d(params: IDefaultGraphicParamsType<IArc3dGraphicAttribute>): import("../interface").IArc;
|
|
59
|
-
export declare function VArea(params: IDefaultGraphicParamsType<IAreaGraphicAttribute>): import("../interface").IArea;
|
|
60
|
-
export declare function VCircle(params: IDefaultGraphicParamsType<ICircleGraphicAttribute>): import("../interface").ICircle;
|
|
61
|
-
export declare function VGroup(params: IDefaultGraphicParamsType<IGroupGraphicAttribute>): IGroup;
|
|
62
|
-
export declare function VGlyph(params: IDefaultGraphicParamsType<IGlyphGraphicAttribute>): import("../interface").IGlyph<Partial<import("../interface").IGraphicAttribute>>;
|
|
63
|
-
export declare function VImage(params: IDefaultGraphicParamsType<IImageGraphicAttribute>): import("../interface").IImage;
|
|
64
|
-
export declare function VLine(params: IDefaultGraphicParamsType<ILineGraphicAttribute>): import("../interface").ILine;
|
|
65
|
-
export declare function VPath(params: IDefaultGraphicParamsType<IPathGraphicAttribute>): import("../interface").IPath;
|
|
66
|
-
export declare function VPolygon(params: IDefaultGraphicParamsType<IPolygonGraphicAttribute>): import("../interface").IPolygon;
|
|
67
|
-
export declare function VPyramid3d(params: IDefaultGraphicParamsType<IPyramid3dGraphicAttribute>): import("../interface").IPyramid3d;
|
|
68
|
-
export declare function VRect(params: IDefaultGraphicParamsType<IRectGraphicAttribute>): import("../interface").IRect;
|
|
69
|
-
export declare function VRect3d(params: IDefaultGraphicParamsType<IRect3dGraphicAttribute>): import("../interface").IRect3d;
|
|
70
|
-
export declare function VSymbol(params: IDefaultGraphicParamsType<ISymbolGraphicAttribute>): ISymbol;
|
|
71
|
-
export declare function VText(params: IDefaultGraphicParamsType<ITextGraphicAttribute>): import("../interface").IText;
|
|
72
|
-
export declare function VRichText(params: IDefaultGraphicParamsType<IRichTextGraphicAttribute>): import("../interface").IRichText;
|
|
73
|
-
export declare namespace VRichText {
|
|
74
|
-
var Text: (params: IDefaultGraphicParamsType<IRichTextCharacter>) => {
|
|
75
|
-
attribute?: IRichTextCharacter;
|
|
76
|
-
onPointerDown?: (d: any) => void;
|
|
77
|
-
onPointerUp?: (d: any) => void;
|
|
78
|
-
onPointerUpOutside?: (d: any) => void;
|
|
79
|
-
onPointerTap?: (d: any) => void;
|
|
80
|
-
onPointerOver?: (d: any) => void;
|
|
81
|
-
onPointerMove?: (d: any) => void;
|
|
82
|
-
onPointerEnter?: (d: any) => void;
|
|
83
|
-
onPointerLeave?: (d: any) => void;
|
|
84
|
-
onPointerOut?: (d: any) => void;
|
|
85
|
-
onMouseDown?: (d: any) => void;
|
|
86
|
-
onMouseUp?: (d: any) => void;
|
|
87
|
-
onMouseUpOutside?: (d: any) => void;
|
|
88
|
-
onMouseMove?: (d: any) => void;
|
|
89
|
-
onMouseOver?: (d: any) => void;
|
|
90
|
-
onMouseOut?: (d: any) => void;
|
|
91
|
-
onMouseEnter?: (d: any) => void;
|
|
92
|
-
onMouseLeave?: (d: any) => void;
|
|
93
|
-
onPinch?: (d: any) => void;
|
|
94
|
-
onPinchStart?: (d: any) => void;
|
|
95
|
-
onPinchEnd?: (d: any) => void;
|
|
96
|
-
onPan?: (d: any) => void;
|
|
97
|
-
onPanStart?: (d: any) => void;
|
|
98
|
-
onPanEnd?: (d: any) => void;
|
|
99
|
-
onDrag?: (d: any) => void;
|
|
100
|
-
onDragStart?: (d: any) => void;
|
|
101
|
-
onDragEnter?: (d: any) => void;
|
|
102
|
-
onDragLeave?: (d: any) => void;
|
|
103
|
-
onDragOver?: (d: any) => void;
|
|
104
|
-
onDragEnd?: (d: any) => void;
|
|
105
|
-
onRightDown?: (d: any) => void;
|
|
106
|
-
onRightUp?: (d: any) => void;
|
|
107
|
-
onRightUpOutside?: (d: any) => void;
|
|
108
|
-
onTouchStart?: (d: any) => void;
|
|
109
|
-
onTouchEnd?: (d: any) => void;
|
|
110
|
-
onTouchEndOutside?: (d: any) => void;
|
|
111
|
-
onTouchMove?: (d: any) => void;
|
|
112
|
-
onTouchCancel?: (d: any) => void;
|
|
113
|
-
onPress?: (d: any) => void;
|
|
114
|
-
onPressUp?: (d: any) => void;
|
|
115
|
-
onPressEnd?: (d: any) => void;
|
|
116
|
-
onSwipe?: (d: any) => void;
|
|
117
|
-
onDrop?: (d: any) => void;
|
|
118
|
-
onWeel?: (d: any) => void;
|
|
119
|
-
onClick?: (d: any) => void;
|
|
120
|
-
onDblClick?: (d: any) => void;
|
|
121
|
-
type: string;
|
|
122
|
-
};
|
|
123
|
-
var Image: (params: IDefaultGraphicParamsType<IRichTextImageCharacter>) => {
|
|
124
|
-
attribute?: IRichTextImageCharacter;
|
|
125
|
-
onPointerDown?: (d: any) => void;
|
|
126
|
-
onPointerUp?: (d: any) => void;
|
|
127
|
-
onPointerUpOutside?: (d: any) => void;
|
|
128
|
-
onPointerTap?: (d: any) => void;
|
|
129
|
-
onPointerOver?: (d: any) => void;
|
|
130
|
-
onPointerMove?: (d: any) => void;
|
|
131
|
-
onPointerEnter?: (d: any) => void;
|
|
132
|
-
onPointerLeave?: (d: any) => void;
|
|
133
|
-
onPointerOut?: (d: any) => void;
|
|
134
|
-
onMouseDown?: (d: any) => void;
|
|
135
|
-
onMouseUp?: (d: any) => void;
|
|
136
|
-
onMouseUpOutside?: (d: any) => void;
|
|
137
|
-
onMouseMove?: (d: any) => void;
|
|
138
|
-
onMouseOver?: (d: any) => void;
|
|
139
|
-
onMouseOut?: (d: any) => void;
|
|
140
|
-
onMouseEnter?: (d: any) => void;
|
|
141
|
-
onMouseLeave?: (d: any) => void;
|
|
142
|
-
onPinch?: (d: any) => void;
|
|
143
|
-
onPinchStart?: (d: any) => void;
|
|
144
|
-
onPinchEnd?: (d: any) => void;
|
|
145
|
-
onPan?: (d: any) => void;
|
|
146
|
-
onPanStart?: (d: any) => void;
|
|
147
|
-
onPanEnd?: (d: any) => void;
|
|
148
|
-
onDrag?: (d: any) => void;
|
|
149
|
-
onDragStart?: (d: any) => void;
|
|
150
|
-
onDragEnter?: (d: any) => void;
|
|
151
|
-
onDragLeave?: (d: any) => void;
|
|
152
|
-
onDragOver?: (d: any) => void;
|
|
153
|
-
onDragEnd?: (d: any) => void;
|
|
154
|
-
onRightDown?: (d: any) => void;
|
|
155
|
-
onRightUp?: (d: any) => void;
|
|
156
|
-
onRightUpOutside?: (d: any) => void;
|
|
157
|
-
onTouchStart?: (d: any) => void;
|
|
158
|
-
onTouchEnd?: (d: any) => void;
|
|
159
|
-
onTouchEndOutside?: (d: any) => void;
|
|
160
|
-
onTouchMove?: (d: any) => void;
|
|
161
|
-
onTouchCancel?: (d: any) => void;
|
|
162
|
-
onPress?: (d: any) => void;
|
|
163
|
-
onPressUp?: (d: any) => void;
|
|
164
|
-
onPressEnd?: (d: any) => void;
|
|
165
|
-
onSwipe?: (d: any) => void;
|
|
166
|
-
onDrop?: (d: any) => void;
|
|
167
|
-
onWeel?: (d: any) => void;
|
|
168
|
-
onClick?: (d: any) => void;
|
|
169
|
-
onDblClick?: (d: any) => void;
|
|
170
|
-
type: string;
|
|
171
|
-
};
|
|
172
|
-
}
|
package/es/jsx/graphicType.js
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { createArc, createArc3d, createArea, createCircle, createGlyph, createGroup, createImage, createLine, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRichText, createSymbol, createText } from "../graphic";
|
|
2
|
-
|
|
3
|
-
export const REACT_TO_CANOPUS_EVENTS = {
|
|
4
|
-
onPointerDown: "pointerdown",
|
|
5
|
-
onPointerUp: "pointerup",
|
|
6
|
-
onPointerUpOutside: "pointerupoutside",
|
|
7
|
-
onPointerTap: "pointertap",
|
|
8
|
-
onPointerOver: "pointerover",
|
|
9
|
-
onPointerMove: "pointermove",
|
|
10
|
-
onPointerEnter: "pointerenter",
|
|
11
|
-
onPointerLeave: "pointerleave",
|
|
12
|
-
onPointerOut: "pointerout",
|
|
13
|
-
onMouseDown: "mousedown",
|
|
14
|
-
onMouseUp: "mouseup",
|
|
15
|
-
onMouseUpOutside: "mouseupoutside",
|
|
16
|
-
onMouseMove: "mousemove",
|
|
17
|
-
onMouseOver: "mouseover",
|
|
18
|
-
onMouseOut: "mouseout",
|
|
19
|
-
onMouseEnter: "mouseenter",
|
|
20
|
-
onMouseLeave: "mouseleave",
|
|
21
|
-
onPinch: "pinch",
|
|
22
|
-
onPinchStart: "pinchstart",
|
|
23
|
-
onPinchEnd: "pinchend",
|
|
24
|
-
onPan: "pan",
|
|
25
|
-
onPanStart: "panstart",
|
|
26
|
-
onPanEnd: "panend",
|
|
27
|
-
onDrag: "drag",
|
|
28
|
-
onDragStart: "dragstart",
|
|
29
|
-
onDragEnter: "dragenter",
|
|
30
|
-
onDragLeave: "dragleave",
|
|
31
|
-
onDragOver: "dragover",
|
|
32
|
-
onDragEnd: "dragend",
|
|
33
|
-
onRightDown: "rightdown",
|
|
34
|
-
onRightUp: "rightup",
|
|
35
|
-
onRightUpOutside: "rightupoutside",
|
|
36
|
-
onTouchStart: "touchstart",
|
|
37
|
-
onTouchEnd: "touchend",
|
|
38
|
-
onTouchEndOutside: "touchendoutside",
|
|
39
|
-
onTouchMove: "touchmove",
|
|
40
|
-
onTouchCancel: "touchcancel",
|
|
41
|
-
onPress: "press",
|
|
42
|
-
onPressUp: "pressup",
|
|
43
|
-
onPressEnd: "pressend",
|
|
44
|
-
onSwipe: "swipe",
|
|
45
|
-
onDrop: "drop",
|
|
46
|
-
onWeel: "wheel",
|
|
47
|
-
onClick: "click",
|
|
48
|
-
onDblClick: "dblclick"
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const REACT_TO_CANOPUS_EVENTS_LIST = Object.keys(REACT_TO_CANOPUS_EVENTS);
|
|
52
|
-
|
|
53
|
-
export function VArc(params) {
|
|
54
|
-
return createArc(params ? params.attribute : {});
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function VArc3d(params) {
|
|
58
|
-
return createArc3d(params ? params.attribute : {});
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function VArea(params) {
|
|
62
|
-
return createArea(params ? params.attribute : {});
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function VCircle(params) {
|
|
66
|
-
return createCircle(params ? params.attribute : {});
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function VGroup(params) {
|
|
70
|
-
return createGroup(params ? params.attribute : {});
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function VGlyph(params) {
|
|
74
|
-
return createGlyph(params ? params.attribute : {});
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function VImage(params) {
|
|
78
|
-
return createImage(params ? params.attribute : {});
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function VLine(params) {
|
|
82
|
-
return createLine(params ? params.attribute : {});
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function VPath(params) {
|
|
86
|
-
return createPath(params ? params.attribute : {});
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export function VPolygon(params) {
|
|
90
|
-
return createPolygon(params ? params.attribute : {});
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function VPyramid3d(params) {
|
|
94
|
-
return createPyramid3d(params ? params.attribute : {});
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export function VRect(params) {
|
|
98
|
-
return createRect(params ? params.attribute : {});
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export function VRect3d(params) {
|
|
102
|
-
return createRect3d(params ? params.attribute : {});
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export function VSymbol(params) {
|
|
106
|
-
return createSymbol(params ? params.attribute : {});
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export function VText(params) {
|
|
110
|
-
return createText(params ? params.attribute : {});
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export function VRichText(params) {
|
|
114
|
-
return createRichText(params ? params.attribute : {});
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
VRichText.Text = function(params) {
|
|
118
|
-
return Object.assign({
|
|
119
|
-
type: "rich/text"
|
|
120
|
-
}, params);
|
|
121
|
-
}, VRichText.Image = function(params) {
|
|
122
|
-
return Object.assign({
|
|
123
|
-
type: "rich/image"
|
|
124
|
-
}, params);
|
|
125
|
-
};
|
|
126
|
-
//# sourceMappingURL=graphicType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/jsx/graphicType.ts"],"names":[],"mappings":"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","file":"graphicType.js","sourcesContent":["import {\n createArc,\n createArc3d,\n createArea,\n createCircle,\n createGlyph,\n createGroup,\n createImage,\n createLine,\n createPath,\n createPolygon,\n createPyramid3d,\n createRect,\n createRect3d,\n createRichText,\n createSymbol,\n createText\n} from '../graphic';\nimport type {\n IArc3dGraphicAttribute,\n IArcGraphicAttribute,\n IAreaGraphicAttribute,\n ICircleGraphicAttribute,\n IGlyphGraphicAttribute,\n IGroupGraphicAttribute,\n IImageGraphicAttribute,\n ILineGraphicAttribute,\n IPathGraphicAttribute,\n IPolygonGraphicAttribute,\n IPyramid3dGraphicAttribute,\n IRect3dGraphicAttribute,\n IRectGraphicAttribute,\n IRichTextCharacter,\n IRichTextGraphicAttribute,\n IRichTextImageCharacter,\n ISymbolGraphicAttribute,\n ITextGraphicAttribute\n} from '../interface';\nimport { IArcAttribute, IGraphic, IGroup, ISymbol, ISymbolAttribute } from '../interface';\n\nexport const REACT_TO_CANOPUS_EVENTS = {\n onPointerDown: 'pointerdown',\n onPointerUp: 'pointerup',\n onPointerUpOutside: 'pointerupoutside',\n onPointerTap: 'pointertap',\n onPointerOver: 'pointerover',\n onPointerMove: 'pointermove',\n onPointerEnter: 'pointerenter',\n onPointerLeave: 'pointerleave',\n onPointerOut: 'pointerout',\n onMouseDown: 'mousedown',\n onMouseUp: 'mouseup',\n onMouseUpOutside: 'mouseupoutside',\n onMouseMove: 'mousemove',\n onMouseOver: 'mouseover',\n onMouseOut: 'mouseout',\n onMouseEnter: 'mouseenter',\n onMouseLeave: 'mouseleave',\n onPinch: 'pinch',\n onPinchStart: 'pinchstart',\n onPinchEnd: 'pinchend',\n onPan: 'pan',\n onPanStart: 'panstart',\n onPanEnd: 'panend',\n onDrag: 'drag',\n onDragStart: 'dragstart',\n onDragEnter: 'dragenter',\n onDragLeave: 'dragleave',\n onDragOver: 'dragover',\n onDragEnd: 'dragend',\n onRightDown: 'rightdown',\n onRightUp: 'rightup',\n onRightUpOutside: 'rightupoutside',\n onTouchStart: 'touchstart',\n onTouchEnd: 'touchend',\n onTouchEndOutside: 'touchendoutside',\n onTouchMove: 'touchmove',\n onTouchCancel: 'touchcancel',\n onPress: 'press',\n onPressUp: 'pressup',\n onPressEnd: 'pressend',\n onSwipe: 'swipe',\n onDrop: 'drop',\n onWeel: 'wheel',\n onClick: 'click',\n onDblClick: 'dblclick'\n};\n\nexport const REACT_TO_CANOPUS_EVENTS_LIST = Object.keys(REACT_TO_CANOPUS_EVENTS);\n\nexport type IEventParamsType = {\n [t in keyof typeof REACT_TO_CANOPUS_EVENTS]?: (d: any) => void;\n};\n\nexport type IDefaultGraphicParamsType<T> = {\n attribute?: T;\n} & IEventParamsType;\n\nexport function VArc(params: IDefaultGraphicParamsType<IArcGraphicAttribute>) {\n return createArc(params ? params.attribute : {});\n}\nexport function VArc3d(params: IDefaultGraphicParamsType<IArc3dGraphicAttribute>) {\n return createArc3d(params ? params.attribute : {});\n}\nexport function VArea(params: IDefaultGraphicParamsType<IAreaGraphicAttribute>) {\n return createArea(params ? params.attribute : {});\n}\nexport function VCircle(params: IDefaultGraphicParamsType<ICircleGraphicAttribute>) {\n return createCircle(params ? params.attribute : {});\n}\nexport function VGroup(params: IDefaultGraphicParamsType<IGroupGraphicAttribute>) {\n return createGroup(params ? params.attribute : {});\n}\nexport function VGlyph(params: IDefaultGraphicParamsType<IGlyphGraphicAttribute>) {\n return createGlyph(params ? params.attribute : {});\n}\nexport function VImage(params: IDefaultGraphicParamsType<IImageGraphicAttribute>) {\n return createImage(params ? params.attribute : {});\n}\nexport function VLine(params: IDefaultGraphicParamsType<ILineGraphicAttribute>) {\n return createLine(params ? params.attribute : {});\n}\nexport function VPath(params: IDefaultGraphicParamsType<IPathGraphicAttribute>) {\n return createPath(params ? params.attribute : {});\n}\nexport function VPolygon(params: IDefaultGraphicParamsType<IPolygonGraphicAttribute>) {\n return createPolygon(params ? params.attribute : {});\n}\nexport function VPyramid3d(params: IDefaultGraphicParamsType<IPyramid3dGraphicAttribute>) {\n return createPyramid3d(params ? params.attribute : {});\n}\nexport function VRect(params: IDefaultGraphicParamsType<IRectGraphicAttribute>) {\n return createRect(params ? params.attribute : {});\n}\nexport function VRect3d(params: IDefaultGraphicParamsType<IRect3dGraphicAttribute>) {\n return createRect3d(params ? params.attribute : {});\n}\nexport function VSymbol(params: IDefaultGraphicParamsType<ISymbolGraphicAttribute>) {\n return createSymbol(params ? params.attribute : {});\n}\nexport function VText(params: IDefaultGraphicParamsType<ITextGraphicAttribute>) {\n return createText(params ? params.attribute : {});\n}\nexport function VRichText(params: IDefaultGraphicParamsType<IRichTextGraphicAttribute>) {\n return createRichText(params ? params.attribute : {});\n}\n\nVRichText.Text = function (params: IDefaultGraphicParamsType<IRichTextCharacter>) {\n return {\n type: 'rich/text',\n ...params\n };\n};\n\nVRichText.Image = function (params: IDefaultGraphicParamsType<IRichTextImageCharacter>) {\n return {\n type: 'rich/image',\n ...params\n };\n};\n"]}
|
package/es/jsx/index.d.ts
DELETED
package/es/jsx/index.js
DELETED
package/es/jsx/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/jsx/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC","file":"index.js","sourcesContent":["export * from './jsx-classic';\nexport * from './graphicType';\n"]}
|
package/es/jsx/jsx-classic.d.ts
DELETED
package/es/jsx/jsx-classic.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
var __rest = this && this.__rest || function(s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
4
|
-
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
5
|
-
var i = 0;
|
|
6
|
-
for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
import { isArray, isString } from "@visactor/vutils";
|
|
12
|
-
|
|
13
|
-
import { Group, graphicCreator } from "../graphic";
|
|
14
|
-
|
|
15
|
-
import { REACT_TO_CANOPUS_EVENTS } from "./graphicType";
|
|
16
|
-
|
|
17
|
-
function flatten(list, out) {
|
|
18
|
-
if (isArray(list)) return list.forEach((i => flatten(i, out)));
|
|
19
|
-
out.push(list);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export function jsx(type, config, ...children) {
|
|
23
|
-
const _a = config || {}, {key: key, attribute: attribute, stateProxy: stateProxy} = _a, props = __rest(_a, [ "key", "attribute", "stateProxy" ]);
|
|
24
|
-
let c = type;
|
|
25
|
-
isString(type) && (c = graphicCreator[type]);
|
|
26
|
-
const childrenList = [];
|
|
27
|
-
children.length && flatten(1 === children.length ? children[0] : children, childrenList);
|
|
28
|
-
const g = "Group" === c.name ? new c(attribute) : c(config);
|
|
29
|
-
return parseToGraphic(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy),
|
|
30
|
-
g;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function parseToGraphic(g, childrenList, props) {
|
|
34
|
-
let out, isGraphic = !1;
|
|
35
|
-
switch (g.type) {
|
|
36
|
-
case "richtext":
|
|
37
|
-
case "rich/image":
|
|
38
|
-
break;
|
|
39
|
-
|
|
40
|
-
case "rich/text":
|
|
41
|
-
out = g.attribute || {}, childrenList[0] && (out.text = childrenList[0]);
|
|
42
|
-
break;
|
|
43
|
-
|
|
44
|
-
default:
|
|
45
|
-
isGraphic = !0;
|
|
46
|
-
}
|
|
47
|
-
isGraphic ? (childrenList.forEach((c => {
|
|
48
|
-
c && g.add(c);
|
|
49
|
-
})), Object.keys(props).forEach((k => {
|
|
50
|
-
const en = REACT_TO_CANOPUS_EVENTS[k];
|
|
51
|
-
en && g.on(en, props[k]);
|
|
52
|
-
}))) : "richtext" === g.type && (g.attribute.textConfig = childrenList.map((item => item.attribute)).filter((item => item)));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export const Fragment = Group;
|
|
56
|
-
//# sourceMappingURL=jsx-classic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/jsx/jsx-classic.ts"],"names":[],"mappings":"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","file":"jsx-classic.js","sourcesContent":["import { isArray, isString } from '@visactor/vutils';\nimport { Group, graphicCreator } from '../graphic';\nimport { REACT_TO_CANOPUS_EVENTS } from './graphicType';\n\nfunction flatten(list: any, out: any[]): void {\n if (isArray(list)) {\n return list.forEach(i => flatten(i, out));\n }\n out.push(list);\n}\n\nexport function jsx(type: string | any, config: Record<string, any>, ...children: any) {\n const { key, attribute, stateProxy, ...props } = config || {};\n\n let c = type;\n if (isString(type)) {\n c = graphicCreator[type];\n }\n\n const childrenList: any[] = [];\n if (children.length) {\n flatten(children.length === 1 ? children[0] : children, childrenList);\n }\n\n const g = c.name === 'Group' ? new c(attribute) : c(config);\n parseToGraphic(g, childrenList, props);\n\n if (stateProxy) {\n g.stateProxy = stateProxy;\n }\n\n return g;\n}\n\nfunction parseToGraphic(g: any, childrenList: any[], props: any) {\n let isGraphic: boolean = false;\n let out: any;\n switch (g.type) {\n case 'richtext':\n break;\n case 'rich/text':\n out = g.attribute || {};\n childrenList[0] && (out.text = childrenList[0]);\n break;\n case 'rich/image':\n break;\n default:\n isGraphic = true;\n }\n\n if (isGraphic) {\n childrenList.forEach((c: any) => {\n c && g.add(c);\n });\n\n Object.keys(props).forEach(k => {\n const en = REACT_TO_CANOPUS_EVENTS[k];\n if (en) {\n g.on(en, props[k]);\n }\n });\n } else {\n if (g.type === 'richtext') {\n g.attribute.textConfig = childrenList.map(item => item.attribute).filter(item => item);\n }\n }\n}\n\nexport const Fragment = Group;\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { IPoint } from '@visactor/vutils';
|
|
2
|
-
import type { IGraphicPicker, IPickParams, IGroup } from '../../../interface';
|
|
3
|
-
export declare class DefaultCanvasGroupPicker implements IGraphicPicker {
|
|
4
|
-
type: string;
|
|
5
|
-
numberType: number;
|
|
6
|
-
contains(group: IGroup, point: IPoint, params?: IPickParams): boolean;
|
|
7
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
|
|
2
|
-
var d, c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
3
|
-
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
4
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
import { injectable } from "inversify";
|
|
8
|
-
|
|
9
|
-
import { GROUP_NUMBER_TYPE } from "../../../graphic/constants";
|
|
10
|
-
|
|
11
|
-
let DefaultCanvasGroupPicker = class {
|
|
12
|
-
constructor() {
|
|
13
|
-
this.type = "group", this.numberType = GROUP_NUMBER_TYPE;
|
|
14
|
-
}
|
|
15
|
-
contains(group, point, params) {
|
|
16
|
-
return !1;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
DefaultCanvasGroupPicker = __decorate([ injectable() ], DefaultCanvasGroupPicker);
|
|
21
|
-
|
|
22
|
-
export { DefaultCanvasGroupPicker };
|
|
23
|
-
//# sourceMappingURL=group-picker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/picker/contributions/canvas-picker/group-picker.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAU,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAGxD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAA9B;QACL,SAAI,GAAW,OAAO,CAAC;QACvB,eAAU,GAAW,iBAAiB,CAAC;IAYzC,CAAC;IARC,QAAQ,CAAC,KAAa,EAAE,KAAa,EAAE,MAAoB;QAGzD,OAAO,KAAK,CAAC;IAIf,CAAC;CACF,CAAA;AAdY,wBAAwB;IADpC,UAAU,EAAE;GACA,wBAAwB,CAcpC;SAdY,wBAAwB","file":"group-picker.js","sourcesContent":["import type { IPoint } from '@visactor/vutils';\nimport { inject, injectable } from 'inversify';\nimport type { IGraphicPicker, IGraphicRender, IPickParams, IGroup } from '../../../interface';\nimport { GROUP_NUMBER_TYPE } from '../../../graphic/constants';\n\n@injectable()\nexport class DefaultCanvasGroupPicker implements IGraphicPicker {\n type: string = 'group';\n numberType: number = GROUP_NUMBER_TYPE;\n\n // constructor(@inject(RectRender) public readonly canvasRenderer: IGraphicRender) {}\n\n contains(group: IGroup, point: IPoint, params?: IPickParams): boolean {\n // Group作为特殊节点,本身不支持被pick\n // 存在shadowDOM的group,它的shadow可以被pick,但是不会冒泡到场景树中\n return false;\n // if (group.attribute.pickMode === 'imprecise') {\n // return true;\n // }\n }\n}\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { IGraphic, IPlugin, IPluginService, IRenderService, IGroup } from '../../interface';
|
|
2
|
-
export declare class HtmlAttributePlugin implements IPlugin {
|
|
3
|
-
name: 'HtmlAttributePlugin';
|
|
4
|
-
activeEvent: 'onRegister';
|
|
5
|
-
pluginService: IPluginService;
|
|
6
|
-
_uid: number;
|
|
7
|
-
key: string;
|
|
8
|
-
activate(context: IPluginService): void;
|
|
9
|
-
deactivate(context: IPluginService): void;
|
|
10
|
-
protected drawHTML(renderService: IRenderService): void;
|
|
11
|
-
renderGroupHTML(group: IGroup): void;
|
|
12
|
-
renderGraphicHTML(graphic: IGraphic): void;
|
|
13
|
-
}
|