@asyra/core 0.2.5 → 0.5.1
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/LICENSE +21 -0
- package/README.md +52 -0
- package/dist/apis/create-apis.d.ts +8 -0
- package/dist/apis/create-apis.d.ts.map +1 -0
- package/dist/apis/create-apis.js +272 -0
- package/dist/apis/create-apis.js.map +1 -0
- package/dist/apis/element-properties.d.ts +10 -0
- package/dist/apis/element-properties.d.ts.map +1 -0
- package/dist/apis/element-properties.js +33 -0
- package/dist/apis/element-properties.js.map +1 -0
- package/dist/apis/element-selection.d.ts +4 -2
- package/dist/apis/element-selection.d.ts.map +1 -1
- package/dist/apis/element-selection.js +155 -6
- package/dist/apis/element-selection.js.map +1 -1
- package/dist/apis/feature-system.d.ts +11 -0
- package/dist/apis/feature-system.d.ts.map +1 -0
- package/dist/apis/feature-system.js +9 -0
- package/dist/apis/feature-system.js.map +1 -0
- package/dist/apis/index.d.ts +1 -2
- package/dist/apis/index.d.ts.map +1 -1
- package/dist/apis/index.js +1 -24
- package/dist/apis/index.js.map +1 -1
- package/dist/apis/input-system.d.ts +1 -1
- package/dist/apis/input-system.d.ts.map +1 -1
- package/dist/apis/props.d.ts +18 -2
- package/dist/apis/props.d.ts.map +1 -1
- package/dist/apis/props.js +28 -9
- package/dist/apis/props.js.map +1 -1
- package/dist/apis/render.d.ts +39 -2
- package/dist/apis/render.d.ts.map +1 -1
- package/dist/apis/render.js +35 -2
- package/dist/apis/render.js.map +1 -1
- package/dist/apis/scene-bounds.d.ts +4 -0
- package/dist/apis/scene-bounds.d.ts.map +1 -0
- package/dist/apis/scene-bounds.js +112 -0
- package/dist/apis/scene-bounds.js.map +1 -0
- package/dist/apis/scene-tree.d.ts +24 -2
- package/dist/apis/scene-tree.d.ts.map +1 -1
- package/dist/apis/scene-tree.js +116 -25
- package/dist/apis/scene-tree.js.map +1 -1
- package/dist/apis/system-properties.d.ts +18 -0
- package/dist/apis/system-properties.d.ts.map +1 -0
- package/dist/apis/system-properties.js +21 -0
- package/dist/apis/system-properties.js.map +1 -0
- package/dist/apis/ui-context.d.ts +10 -0
- package/dist/apis/ui-context.d.ts.map +1 -0
- package/dist/apis/ui-context.js +22 -0
- package/dist/apis/ui-context.js.map +1 -0
- package/dist/canvas-pipeline-debugger/debugger.d.ts +29 -0
- package/dist/canvas-pipeline-debugger/debugger.d.ts.map +1 -0
- package/dist/canvas-pipeline-debugger/debugger.js +251 -0
- package/dist/canvas-pipeline-debugger/debugger.js.map +1 -0
- package/dist/canvas-pipeline-debugger/index.d.ts +2 -0
- package/dist/canvas-pipeline-debugger/index.d.ts.map +1 -0
- package/dist/canvas-pipeline-debugger/index.js +2 -0
- package/dist/canvas-pipeline-debugger/index.js.map +1 -0
- package/dist/contracts/index.d.ts +4 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +2 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/core.d.ts +264 -40
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +1278 -40
- package/dist/core.js.map +1 -1
- package/dist/data-channel-observer.d.ts +35 -0
- package/dist/data-channel-observer.d.ts.map +1 -0
- package/dist/data-channel-observer.js +77 -0
- package/dist/data-channel-observer.js.map +1 -0
- package/dist/define-component.d.ts +102 -0
- package/dist/define-component.d.ts.map +1 -0
- package/dist/define-component.js +429 -0
- package/dist/define-component.js.map +1 -0
- package/dist/define-property-component.d.ts +29 -0
- package/dist/define-property-component.d.ts.map +1 -0
- package/dist/define-property-component.js +140 -0
- package/dist/define-property-component.js.map +1 -0
- package/dist/feature-integration.d.ts +16 -0
- package/dist/feature-integration.d.ts.map +1 -0
- package/dist/feature-integration.js +19 -0
- package/dist/feature-integration.js.map +1 -0
- package/dist/index.d.ts +45 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/types/app-runtime.d.ts +21 -0
- package/dist/types/app-runtime.d.ts.map +1 -0
- package/dist/types/app-runtime.js +2 -0
- package/dist/types/app-runtime.js.map +1 -0
- package/dist/types/canonical-changes.d.ts +39 -0
- package/dist/types/canonical-changes.d.ts.map +1 -0
- package/dist/types/canonical-changes.js +2 -0
- package/dist/types/canonical-changes.js.map +1 -0
- package/dist/types/deps.d.ts +0 -2
- package/dist/types/deps.d.ts.map +1 -1
- package/dist/types/element-properties.d.ts +24 -0
- package/dist/types/element-properties.d.ts.map +1 -0
- package/dist/types/element-properties.js +2 -0
- package/dist/types/element-properties.js.map +1 -0
- package/dist/types/element-selection.d.ts +5 -1
- package/dist/types/element-selection.d.ts.map +1 -1
- package/dist/types/feature-system.d.ts +5 -0
- package/dist/types/feature-system.d.ts.map +1 -0
- package/dist/types/feature-system.js +2 -0
- package/dist/types/feature-system.js.map +1 -0
- package/dist/types/index.d.ts +19 -14
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/load-migration.d.ts +12 -0
- package/dist/types/load-migration.d.ts.map +1 -0
- package/dist/types/load-migration.js +16 -0
- package/dist/types/load-migration.js.map +1 -0
- package/dist/types/load-validation.d.ts +12 -0
- package/dist/types/load-validation.d.ts.map +1 -0
- package/dist/types/load-validation.js +2 -0
- package/dist/types/load-validation.js.map +1 -0
- package/dist/types/props.d.ts +8 -1
- package/dist/types/props.d.ts.map +1 -1
- package/dist/types/render.d.ts +20 -1
- package/dist/types/render.d.ts.map +1 -1
- package/dist/types/scene-tree.d.ts +21 -9
- package/dist/types/scene-tree.d.ts.map +1 -1
- package/dist/types/system-properties.d.ts +19 -0
- package/dist/types/system-properties.d.ts.map +1 -0
- package/dist/types/system-properties.js +2 -0
- package/dist/types/system-properties.js.map +1 -0
- package/dist/types/ui-context.d.ts +11 -0
- package/dist/types/ui-context.d.ts.map +1 -0
- package/dist/types/ui-context.js +2 -0
- package/dist/types/ui-context.js.map +1 -0
- package/dist/types/vector.d.ts +131 -0
- package/dist/types/vector.d.ts.map +1 -0
- package/dist/types/vector.js +83 -0
- package/dist/types/vector.js.map +1 -0
- package/package.json +44 -12
- package/.turbo/turbo-test$colon$ci.log +0 -132
- package/.turbo/turbo-test$colon$local.log +0 -21
- package/.turbo/turbo-test.log +0 -0
- package/CHANGELOG.md +0 -86
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/clover.xml +0 -991
- package/coverage/coverage-final.json +0 -14952
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -236
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/coverage/src/apis/element-selection.ts.html +0 -133
- package/coverage/src/apis/index.html +0 -266
- package/coverage/src/apis/index.ts.html +0 -175
- package/coverage/src/apis/input-system.ts.html +0 -121
- package/coverage/src/apis/interaction-core.ts.html +0 -190
- package/coverage/src/apis/props.ts.html +0 -124
- package/coverage/src/apis/render.ts.html +0 -130
- package/coverage/src/apis/scene-tree.ts.html +0 -292
- package/coverage/src/apis/system-context.ts.html +0 -154
- package/coverage/src/apis/transaction.ts.html +0 -124
- package/coverage/src/apis/undo.ts.html +0 -124
- package/coverage/src/apis/viewport.ts.html +0 -193
- package/coverage/src/combinations.ts.html +0 -223
- package/coverage/src/core.ts.html +0 -559
- package/coverage/src/index.html +0 -146
- package/coverage/src/index.ts.html +0 -97
- package/coverage/src/requests/factory.ts.html +0 -127
- package/coverage/src/requests/index.html +0 -206
- package/coverage/src/requests/index.ts.html +0 -154
- package/coverage/src/requests/props.ts.html +0 -133
- package/coverage/src/requests/render.ts.html +0 -187
- package/coverage/src/requests/scene-tree.ts.html +0 -163
- package/coverage/src/requests/selection.ts.html +0 -127
- package/coverage/src/requests/system-context.ts.html +0 -130
- package/coverage/src/subscribes/index.html +0 -116
- package/coverage/src/subscribes/index.ts.html +0 -109
- package/coverage/src/subscribes/input-system/index.html +0 -176
- package/coverage/src/subscribes/input-system/index.ts.html +0 -226
- package/coverage/src/subscribes/input-system/primary-tool.ts.html +0 -160
- package/coverage/src/subscribes/input-system/render.ts.html +0 -484
- package/coverage/src/subscribes/input-system/undo.ts.html +0 -172
- package/coverage/src/subscribes/input-system/viewport.ts.html +0 -259
- package/coverage/src/subscribes/interaction-core/create-element.ts.html +0 -151
- package/coverage/src/subscribes/interaction-core/index.html +0 -236
- package/coverage/src/subscribes/interaction-core/index.ts.html +0 -289
- package/coverage/src/subscribes/interaction-core/primary-tool.ts.html +0 -109
- package/coverage/src/subscribes/interaction-core/reset-element-size.ts.html +0 -127
- package/coverage/src/subscribes/interaction-core/resize-element.ts.html +0 -181
- package/coverage/src/subscribes/interaction-core/select-elements.ts.html +0 -109
- package/coverage/src/subscribes/interaction-core/transaction.ts.html +0 -130
- package/coverage/src/subscribes/interaction-core/undoredo.ts.html +0 -133
- package/coverage/src/subscribes/interaction-core/viewport.ts.html +0 -193
- package/coverage/src/types/deps.ts.html +0 -118
- package/coverage/src/types/element-selection.ts.html +0 -100
- package/coverage/src/types/index.html +0 -266
- package/coverage/src/types/index.ts.html +0 -385
- package/coverage/src/types/input-system.ts.html +0 -100
- package/coverage/src/types/interaction-core.ts.html +0 -127
- package/coverage/src/types/props.ts.html +0 -109
- package/coverage/src/types/render.ts.html +0 -106
- package/coverage/src/types/requests/factory.ts.html +0 -127
- package/coverage/src/types/requests/index.html +0 -206
- package/coverage/src/types/requests/index.ts.html +0 -214
- package/coverage/src/types/requests/props.ts.html +0 -133
- package/coverage/src/types/requests/render.ts.html +0 -139
- package/coverage/src/types/requests/scene-tree.ts.html +0 -133
- package/coverage/src/types/requests/selection.ts.html +0 -127
- package/coverage/src/types/requests/system-context.ts.html +0 -142
- package/coverage/src/types/scene-tree.ts.html +0 -178
- package/coverage/src/types/system-context/index.html +0 -161
- package/coverage/src/types/system-context/index.ts.html +0 -112
- package/coverage/src/types/system-context/key-state.ts.html +0 -106
- package/coverage/src/types/system-context/mouse-state.ts.html +0 -106
- package/coverage/src/types/system-context/primary-tool.ts.html +0 -112
- package/coverage/src/types/transaction.ts.html +0 -103
- package/coverage/src/types/undo.ts.html +0 -103
- package/coverage/src/types/viewport.ts.html +0 -127
- package/dist/__tests__/core.test.d.ts +0 -2
- package/dist/__tests__/core.test.d.ts.map +0 -1
- package/dist/__tests__/core.test.js +0 -122
- package/dist/__tests__/core.test.js.map +0 -1
- package/dist/apis/interaction-core.d.ts +0 -3
- package/dist/apis/interaction-core.d.ts.map +0 -1
- package/dist/apis/interaction-core.js +0 -22
- package/dist/apis/interaction-core.js.map +0 -1
- package/dist/apis/system-context.d.ts +0 -3
- package/dist/apis/system-context.d.ts.map +0 -1
- package/dist/apis/system-context.js +0 -16
- package/dist/apis/system-context.js.map +0 -1
- package/dist/apis/transaction.d.ts +0 -3
- package/dist/apis/transaction.d.ts.map +0 -1
- package/dist/apis/transaction.js +0 -12
- package/dist/apis/transaction.js.map +0 -1
- package/dist/apis/undo.d.ts +0 -3
- package/dist/apis/undo.d.ts.map +0 -1
- package/dist/apis/undo.js +0 -12
- package/dist/apis/undo.js.map +0 -1
- package/dist/apis/viewport.d.ts +0 -4
- package/dist/apis/viewport.d.ts.map +0 -1
- package/dist/apis/viewport.js +0 -27
- package/dist/apis/viewport.js.map +0 -1
- package/dist/combinations.d.ts +0 -4
- package/dist/combinations.d.ts.map +0 -1
- package/dist/combinations.js +0 -42
- package/dist/combinations.js.map +0 -1
- package/dist/requests/factory copy.d.ts +0 -7
- package/dist/requests/factory copy.d.ts.map +0 -1
- package/dist/requests/factory copy.js +0 -10
- package/dist/requests/factory copy.js.map +0 -1
- package/dist/requests/factory.d.ts +0 -7
- package/dist/requests/factory.d.ts.map +0 -1
- package/dist/requests/factory.js +0 -10
- package/dist/requests/factory.js.map +0 -1
- package/dist/requests/index.d.ts +0 -3
- package/dist/requests/index.d.ts.map +0 -1
- package/dist/requests/index.js +0 -21
- package/dist/requests/index.js.map +0 -1
- package/dist/requests/primary-tool.d.ts +0 -7
- package/dist/requests/primary-tool.d.ts.map +0 -1
- package/dist/requests/primary-tool.js +0 -13
- package/dist/requests/primary-tool.js.map +0 -1
- package/dist/requests/props copy.d.ts +0 -7
- package/dist/requests/props copy.d.ts.map +0 -1
- package/dist/requests/props copy.js +0 -13
- package/dist/requests/props copy.js.map +0 -1
- package/dist/requests/props.d.ts +0 -7
- package/dist/requests/props.d.ts.map +0 -1
- package/dist/requests/props.js +0 -13
- package/dist/requests/props.js.map +0 -1
- package/dist/requests/render.d.ts +0 -3
- package/dist/requests/render.d.ts.map +0 -1
- package/dist/requests/render.js +0 -22
- package/dist/requests/render.js.map +0 -1
- package/dist/requests/scene-tree.d.ts +0 -7
- package/dist/requests/scene-tree.d.ts.map +0 -1
- package/dist/requests/scene-tree.js +0 -17
- package/dist/requests/scene-tree.js.map +0 -1
- package/dist/requests/selection.d.ts +0 -7
- package/dist/requests/selection.d.ts.map +0 -1
- package/dist/requests/selection.js +0 -10
- package/dist/requests/selection.js.map +0 -1
- package/dist/requests/system-context copy.d.ts +0 -7
- package/dist/requests/system-context copy.d.ts.map +0 -1
- package/dist/requests/system-context copy.js +0 -19
- package/dist/requests/system-context copy.js.map +0 -1
- package/dist/requests/system-context.d.ts +0 -7
- package/dist/requests/system-context.d.ts.map +0 -1
- package/dist/requests/system-context.js +0 -10
- package/dist/requests/system-context.js.map +0 -1
- package/dist/requests/types.d.ts +0 -7
- package/dist/requests/types.d.ts.map +0 -1
- package/dist/requests/types.js +0 -4
- package/dist/requests/types.js.map +0 -1
- package/dist/requests/viewport.d.ts +0 -19
- package/dist/requests/viewport.d.ts.map +0 -1
- package/dist/requests/viewport.js +0 -6
- package/dist/requests/viewport.js.map +0 -1
- package/dist/subscribes/index.d.ts +0 -3
- package/dist/subscribes/index.d.ts.map +0 -1
- package/dist/subscribes/index.js +0 -7
- package/dist/subscribes/index.js.map +0 -1
- package/dist/subscribes/input-system/index.d.ts +0 -3
- package/dist/subscribes/input-system/index.d.ts.map +0 -1
- package/dist/subscribes/input-system/index.js +0 -26
- package/dist/subscribes/input-system/index.js.map +0 -1
- package/dist/subscribes/input-system/primary-tool.d.ts +0 -10
- package/dist/subscribes/input-system/primary-tool.d.ts.map +0 -1
- package/dist/subscribes/input-system/primary-tool.js +0 -15
- package/dist/subscribes/input-system/primary-tool.js.map +0 -1
- package/dist/subscribes/input-system/render.d.ts +0 -16
- package/dist/subscribes/input-system/render.d.ts.map +0 -1
- package/dist/subscribes/input-system/render.js +0 -97
- package/dist/subscribes/input-system/render.js.map +0 -1
- package/dist/subscribes/input-system/undo.d.ts +0 -10
- package/dist/subscribes/input-system/undo.d.ts.map +0 -1
- package/dist/subscribes/input-system/undo.js +0 -18
- package/dist/subscribes/input-system/undo.js.map +0 -1
- package/dist/subscribes/input-system/viewport.d.ts +0 -11
- package/dist/subscribes/input-system/viewport.d.ts.map +0 -1
- package/dist/subscribes/input-system/viewport.js +0 -36
- package/dist/subscribes/input-system/viewport.js.map +0 -1
- package/dist/subscribes/interaction-core/create-and-resize.d.ts +0 -5
- package/dist/subscribes/interaction-core/create-and-resize.d.ts.map +0 -1
- package/dist/subscribes/interaction-core/create-and-resize.js +0 -86
- package/dist/subscribes/interaction-core/create-and-resize.js.map +0 -1
- package/dist/subscribes/interaction-core/create-element copy.d.ts +0 -3
- package/dist/subscribes/interaction-core/create-element copy.d.ts.map +0 -1
- package/dist/subscribes/interaction-core/create-element copy.js +0 -17
- package/dist/subscribes/interaction-core/create-element copy.js.map +0 -1
- package/dist/subscribes/interaction-core/create-element.d.ts +0 -3
- package/dist/subscribes/interaction-core/create-element.d.ts.map +0 -1
- package/dist/subscribes/interaction-core/create-element.js +0 -17
- package/dist/subscribes/interaction-core/create-element.js.map +0 -1
- package/dist/subscribes/interaction-core/index.d.ts +0 -3
- package/dist/subscribes/interaction-core/index.d.ts.map +0 -1
- package/dist/subscribes/interaction-core/index.js +0 -42
- package/dist/subscribes/interaction-core/index.js.map +0 -1
- package/dist/subscribes/interaction-core/input-to-decision.d.ts +0 -5
- package/dist/subscribes/interaction-core/input-to-decision.d.ts.map +0 -1
- package/dist/subscribes/interaction-core/input-to-decision.js +0 -48
- package/dist/subscribes/interaction-core/input-to-decision.js.map +0 -1
- package/dist/subscribes/interaction-core/primary-tool.d.ts +0 -3
- package/dist/subscribes/interaction-core/primary-tool.d.ts.map +0 -1
- package/dist/subscribes/interaction-core/primary-tool.js +0 -7
- package/dist/subscribes/interaction-core/primary-tool.js.map +0 -1
- package/dist/subscribes/interaction-core/reset-element-size.d.ts +0 -5
- package/dist/subscribes/interaction-core/reset-element-size.d.ts.map +0 -1
- package/dist/subscribes/interaction-core/reset-element-size.js +0 -9
- package/dist/subscribes/interaction-core/reset-element-size.js.map +0 -1
- package/dist/subscribes/interaction-core/resize-element.d.ts +0 -3
- package/dist/subscribes/interaction-core/resize-element.d.ts.map +0 -1
- package/dist/subscribes/interaction-core/resize-element.js +0 -24
- package/dist/subscribes/interaction-core/resize-element.js.map +0 -1
- package/dist/subscribes/interaction-core/select-elements.d.ts +0 -3
- package/dist/subscribes/interaction-core/select-elements.d.ts.map +0 -1
- package/dist/subscribes/interaction-core/select-elements.js +0 -7
- package/dist/subscribes/interaction-core/select-elements.js.map +0 -1
- package/dist/subscribes/interaction-core/transaction.d.ts +0 -3
- package/dist/subscribes/interaction-core/transaction.d.ts.map +0 -1
- package/dist/subscribes/interaction-core/transaction.js +0 -10
- package/dist/subscribes/interaction-core/transaction.js.map +0 -1
- package/dist/subscribes/interaction-core/undoredo.d.ts +0 -3
- package/dist/subscribes/interaction-core/undoredo.d.ts.map +0 -1
- package/dist/subscribes/interaction-core/undoredo.js +0 -15
- package/dist/subscribes/interaction-core/undoredo.js.map +0 -1
- package/dist/subscribes/interaction-core/viewport.d.ts +0 -3
- package/dist/subscribes/interaction-core/viewport.d.ts.map +0 -1
- package/dist/subscribes/interaction-core/viewport.js +0 -29
- package/dist/subscribes/interaction-core/viewport.js.map +0 -1
- package/dist/subscribes/render.d.ts +0 -6
- package/dist/subscribes/render.d.ts.map +0 -1
- package/dist/subscribes/render.js +0 -28
- package/dist/subscribes/render.js.map +0 -1
- package/dist/types/interaction-core.d.ts +0 -11
- package/dist/types/interaction-core.d.ts.map +0 -1
- package/dist/types/interaction-core.js +0 -2
- package/dist/types/interaction-core.js.map +0 -1
- package/dist/types/requests/factory copy.d.ts +0 -12
- package/dist/types/requests/factory copy.d.ts.map +0 -1
- package/dist/types/requests/factory copy.js +0 -2
- package/dist/types/requests/factory copy.js.map +0 -1
- package/dist/types/requests/factory.d.ts +0 -12
- package/dist/types/requests/factory.d.ts.map +0 -1
- package/dist/types/requests/factory.js +0 -2
- package/dist/types/requests/factory.js.map +0 -1
- package/dist/types/requests/index.d.ts +0 -17
- package/dist/types/requests/index.d.ts.map +0 -1
- package/dist/types/requests/index.js +0 -4
- package/dist/types/requests/index.js.map +0 -1
- package/dist/types/requests/primary-tool.d.ts +0 -13
- package/dist/types/requests/primary-tool.d.ts.map +0 -1
- package/dist/types/requests/primary-tool.js +0 -2
- package/dist/types/requests/primary-tool.js.map +0 -1
- package/dist/types/requests/props copy.d.ts +0 -14
- package/dist/types/requests/props copy.d.ts.map +0 -1
- package/dist/types/requests/props copy.js +0 -2
- package/dist/types/requests/props copy.js.map +0 -1
- package/dist/types/requests/props.d.ts +0 -14
- package/dist/types/requests/props.d.ts.map +0 -1
- package/dist/types/requests/props.js +0 -2
- package/dist/types/requests/props.js.map +0 -1
- package/dist/types/requests/render.d.ts +0 -15
- package/dist/types/requests/render.d.ts.map +0 -1
- package/dist/types/requests/render.js +0 -2
- package/dist/types/requests/render.js.map +0 -1
- package/dist/types/requests/scene-tree.d.ts +0 -14
- package/dist/types/requests/scene-tree.d.ts.map +0 -1
- package/dist/types/requests/scene-tree.js +0 -2
- package/dist/types/requests/scene-tree.js.map +0 -1
- package/dist/types/requests/selection.d.ts +0 -12
- package/dist/types/requests/selection.d.ts.map +0 -1
- package/dist/types/requests/selection.js +0 -2
- package/dist/types/requests/selection.js.map +0 -1
- package/dist/types/requests/system-context.d.ts +0 -17
- package/dist/types/requests/system-context.d.ts.map +0 -1
- package/dist/types/requests/system-context.js +0 -2
- package/dist/types/requests/system-context.js.map +0 -1
- package/dist/types/requests/system.d.ts +0 -13
- package/dist/types/requests/system.d.ts.map +0 -1
- package/dist/types/requests/system.js +0 -2
- package/dist/types/requests/system.js.map +0 -1
- package/dist/types/requests/viewport.d.ts +0 -20
- package/dist/types/requests/viewport.d.ts.map +0 -1
- package/dist/types/requests/viewport.js +0 -6
- package/dist/types/requests/viewport.js.map +0 -1
- package/dist/types/requests.d.ts +0 -8
- package/dist/types/requests.d.ts.map +0 -1
- package/dist/types/requests.js +0 -2
- package/dist/types/requests.js.map +0 -1
- package/dist/types/system-context/index.d.ts +0 -8
- package/dist/types/system-context/index.d.ts.map +0 -1
- package/dist/types/system-context/index.js +0 -4
- package/dist/types/system-context/index.js.map +0 -1
- package/dist/types/system-context/key-state.d.ts +0 -6
- package/dist/types/system-context/key-state.d.ts.map +0 -1
- package/dist/types/system-context/key-state.js +0 -2
- package/dist/types/system-context/key-state.js.map +0 -1
- package/dist/types/system-context/mouse-state.d.ts +0 -6
- package/dist/types/system-context/mouse-state.d.ts.map +0 -1
- package/dist/types/system-context/mouse-state.js +0 -2
- package/dist/types/system-context/mouse-state.js.map +0 -1
- package/dist/types/system-context/primary-tool.d.ts +0 -8
- package/dist/types/system-context/primary-tool.d.ts.map +0 -1
- package/dist/types/system-context/primary-tool.js +0 -2
- package/dist/types/system-context/primary-tool.js.map +0 -1
- package/dist/types/transaction.d.ts +0 -6
- package/dist/types/transaction.d.ts.map +0 -1
- package/dist/types/transaction.js +0 -2
- package/dist/types/transaction.js.map +0 -1
- package/dist/types/undo.d.ts +0 -6
- package/dist/types/undo.d.ts.map +0 -1
- package/dist/types/undo.js +0 -2
- package/dist/types/undo.js.map +0 -1
- package/dist/types/viewport.d.ts +0 -12
- package/dist/types/viewport.d.ts.map +0 -1
- package/dist/types/viewport.js +0 -2
- package/dist/types/viewport.js.map +0 -1
- package/src/__tests__/core.test.ts +0 -153
- package/src/apis/element-selection.ts +0 -16
- package/src/apis/index.ts +0 -30
- package/src/apis/input-system.ts +0 -12
- package/src/apis/interaction-core.ts +0 -35
- package/src/apis/props.ts +0 -13
- package/src/apis/render.ts +0 -15
- package/src/apis/scene-tree.ts +0 -69
- package/src/apis/system-context.ts +0 -23
- package/src/apis/transaction.ts +0 -13
- package/src/apis/undo.ts +0 -13
- package/src/apis/viewport.ts +0 -36
- package/src/combinations.ts +0 -46
- package/src/core.ts +0 -158
- package/src/index.ts +0 -4
- package/src/requests/factory.ts +0 -14
- package/src/requests/index.ts +0 -23
- package/src/requests/props.ts +0 -16
- package/src/requests/render.ts +0 -34
- package/src/requests/scene-tree.ts +0 -26
- package/src/requests/selection.ts +0 -14
- package/src/requests/system-context.ts +0 -15
- package/src/subscribes/index.ts +0 -8
- package/src/subscribes/input-system/index.ts +0 -47
- package/src/subscribes/input-system/primary-tool.ts +0 -25
- package/src/subscribes/input-system/render.ts +0 -133
- package/src/subscribes/input-system/undo.ts +0 -29
- package/src/subscribes/input-system/viewport.ts +0 -58
- package/src/subscribes/interaction-core/create-element.ts +0 -22
- package/src/subscribes/interaction-core/index.ts +0 -68
- package/src/subscribes/interaction-core/primary-tool.ts +0 -8
- package/src/subscribes/interaction-core/reset-element-size.ts +0 -12
- package/src/subscribes/interaction-core/resize-element.ts +0 -31
- package/src/subscribes/interaction-core/select-elements.ts +0 -8
- package/src/subscribes/interaction-core/transaction.ts +0 -15
- package/src/subscribes/interaction-core/undoredo.ts +0 -16
- package/src/subscribes/interaction-core/viewport.ts +0 -35
- package/src/types/deps.ts +0 -11
- package/src/types/element-selection.ts +0 -5
- package/src/types/index.ts +0 -100
- package/src/types/input-system.ts +0 -5
- package/src/types/interaction-core.ts +0 -14
- package/src/types/props.ts +0 -8
- package/src/types/render.ts +0 -7
- package/src/types/requests/factory.ts +0 -14
- package/src/types/requests/index.ts +0 -43
- package/src/types/requests/props.ts +0 -16
- package/src/types/requests/render.ts +0 -18
- package/src/types/requests/scene-tree.ts +0 -16
- package/src/types/requests/selection.ts +0 -14
- package/src/types/requests/system-context.ts +0 -19
- package/src/types/scene-tree.ts +0 -31
- package/src/types/system-context/index.ts +0 -9
- package/src/types/system-context/key-state.ts +0 -7
- package/src/types/system-context/mouse-state.ts +0 -7
- package/src/types/system-context/primary-tool.ts +0 -9
- package/src/types/transaction.ts +0 -6
- package/src/types/undo.ts +0 -6
- package/src/types/viewport.ts +0 -14
- package/test-setup.ts +0 -6
- package/tsconfig.json +0 -22
- package/vitest.config.ts +0 -8
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { subscribeToDecideToCreateElement } from '@asyra/reactive-events';
|
|
2
|
-
import { PrimaryToolType } from '@asyra/utils';
|
|
3
|
-
export const initCreateElementHandlers = (render, apis) => {
|
|
4
|
-
subscribeToDecideToCreateElement(({ payload }) => {
|
|
5
|
-
const { position, elementType } = payload;
|
|
6
|
-
const pos = render.getMousePosInWorkspace({
|
|
7
|
-
clientX: position.x,
|
|
8
|
-
clientY: position.y
|
|
9
|
-
});
|
|
10
|
-
switch (elementType) {
|
|
11
|
-
case PrimaryToolType.RECTANGLE:
|
|
12
|
-
apis.addRectangle(pos);
|
|
13
|
-
break;
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=create-element.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-element.js","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/create-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,MAA6B,EAC7B,IAA0B,EAC1B,EAAE;IACF,gCAAgC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QAC/C,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,OAAO,CAAA;QACzC,MAAM,GAAG,GAAG,MAAM,CAAC,sBAAsB,CAAC;YACxC,OAAO,EAAE,QAAQ,CAAC,CAAC;YACnB,OAAO,EAAE,QAAQ,CAAC,CAAC;SACpB,CAAC,CAAA;QAEF,QAAQ,WAAW,EAAE,CAAC;YACpB,KAAK,eAAe,CAAC,SAAS;gBAC5B,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;gBACtB,MAAK;QACT,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAMnD,eAAO,MAAM,2BAA2B,GACtC,MAAM,WAAW,EACjB,MAAM,QAAQ,SAgDf,CAAA"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { initTransactionHandlers } from './transaction';
|
|
2
|
-
import { initPrimaryToolHandlers } from './primary-tool';
|
|
3
|
-
import { initCreateElementHandlers } from './create-element';
|
|
4
|
-
import { initUndoRedoHandlers } from './undoredo';
|
|
5
|
-
import { initViewportHandlers } from './viewport';
|
|
6
|
-
import { initResizeElementHandlers } from './resize-element';
|
|
7
|
-
import { initResetElementSizeSubscriber } from './reset-element-size';
|
|
8
|
-
import { initSelectElementHandlers } from './select-elements';
|
|
9
|
-
export const initInteractionCoreHandlers = (deps, apis) => {
|
|
10
|
-
initTransactionHandlers({
|
|
11
|
-
startTransaction: () => apis.startTransaction(),
|
|
12
|
-
endTransaction: () => apis.endTransaction()
|
|
13
|
-
});
|
|
14
|
-
initPrimaryToolHandlers({
|
|
15
|
-
switchPrimaryTool: (primaryTool) => apis.switchPrimaryTool(primaryTool)
|
|
16
|
-
});
|
|
17
|
-
initCreateElementHandlers(deps.render, {
|
|
18
|
-
addRectangle: (pos) => apis.addRectangle(pos)
|
|
19
|
-
});
|
|
20
|
-
initResizeElementHandlers(deps.render, {
|
|
21
|
-
changeComputedData: (key, data) => apis.changeComputedData(key, data),
|
|
22
|
-
resizeElement: (pos, dimension, options) => apis.resizeElement(pos, dimension, options)
|
|
23
|
-
});
|
|
24
|
-
initResetElementSizeSubscriber({
|
|
25
|
-
changeComputedData: (key, data) => apis.changeComputedData(key, data)
|
|
26
|
-
});
|
|
27
|
-
initUndoRedoHandlers({
|
|
28
|
-
undo: () => apis.undo(),
|
|
29
|
-
redo: () => apis.redo()
|
|
30
|
-
});
|
|
31
|
-
initViewportHandlers({
|
|
32
|
-
getViewportPosition: () => apis.getViewportPosition(),
|
|
33
|
-
getViewportScale: () => apis.getViewportScale(),
|
|
34
|
-
zoomFit: () => apis.zoomFit(),
|
|
35
|
-
panTo: (x, y) => apis.panTo(x, y),
|
|
36
|
-
zoomToCenter: (scale, centerX, centerY) => apis.zoomToCenter(scale, centerX, centerY)
|
|
37
|
-
});
|
|
38
|
-
initSelectElementHandlers({
|
|
39
|
-
selectElements: (elementIds) => apis.selectElements(elementIds)
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,IAAiB,EACjB,IAAc,EACd,EAAE;IACF,uBAAuB,CAAC;QACtB,gBAAgB,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE;QAC/C,cAAc,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE;KAC5C,CAAC,CAAA;IAEF,uBAAuB,CAAC;QACtB,iBAAiB,EAAE,CAAC,WAA4B,EAAE,EAAE,CAClD,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC;KACtC,CAAC,CAAA;IAEF,yBAAyB,CAAC,IAAI,CAAC,MAAM,EAAE;QACrC,YAAY,EAAE,CAAC,GAAiB,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC;KAC5D,CAAC,CAAA;IAEF,yBAAyB,CAAC,IAAI,CAAC,MAAM,EAAE;QACrC,kBAAkB,EAAE,CAAC,GAAW,EAAE,IAAe,EAAE,EAAE,CACnD,IAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,IAAI,CAAC;QACpC,aAAa,EAAE,CACb,GAAiB,EACjB,SAAwB,EACxB,OAAuB,EACvB,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC;KACjD,CAAC,CAAA;IAEF,8BAA8B,CAAC;QAC7B,kBAAkB,EAAE,CAAC,GAAW,EAAE,IAAe,EAAE,EAAE,CACnD,IAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,IAAI,CAAC;KACrC,CAAC,CAAA;IAEF,oBAAoB,CAAC;QACnB,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE;QACvB,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE;KACxB,CAAC,CAAA;IAEF,oBAAoB,CAAC;QACnB,mBAAmB,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE;QACrD,gBAAgB,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE;QAC/C,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE;QAC7B,KAAK,EAAE,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;QACjD,YAAY,EAAE,CAAC,KAAa,EAAE,OAAe,EAAE,OAAe,EAAE,EAAE,CAChE,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC;KAC7C,CAAC,CAAA;IAEF,yBAAyB,CAAC;QACxB,cAAc,EAAE,CAAC,UAAoB,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC;KAC1E,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-to-decision.d.ts","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/input-to-decision.ts"],"names":[],"mappings":"AAgBA;;GAEG;AACH,eAAO,MAAM,2BAA2B,YAmDvC,CAAA"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { subscribeToExecuteAction } from '@asyra/reactive-events';
|
|
2
|
-
import { InputSystemEvents, UNDO, PanZoom } from '@asyra/utils';
|
|
3
|
-
import { decideToUndoRedo, decideToPanZoom } from '@asyra/reactive-events';
|
|
4
|
-
/**
|
|
5
|
-
* Initialize handlers that connect input events to decision events
|
|
6
|
-
*/
|
|
7
|
-
export const initInputToDecisionHandlers = () => {
|
|
8
|
-
// Handle undo/redo keyboard shortcuts
|
|
9
|
-
subscribeToExecuteAction(({ payload }) => {
|
|
10
|
-
if (payload.eventName === InputSystemEvents.INPUT_SHORTCUT_UNDOREDO) {
|
|
11
|
-
// Check if Meta key is pressed
|
|
12
|
-
const hasMeta = payload.detail?.modifiers?.meta;
|
|
13
|
-
if (hasMeta) {
|
|
14
|
-
// Check if Shift is also pressed (for redo)
|
|
15
|
-
const hasShift = payload.detail?.modifiers?.shift;
|
|
16
|
-
if (hasShift) {
|
|
17
|
-
decideToUndoRedo(UNDO.REDO);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
decideToUndoRedo(UNDO.UNDO);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
// Handle wheel scroll for zoom/pan
|
|
26
|
-
subscribeToExecuteAction(({ payload }) => {
|
|
27
|
-
if (payload.eventName === InputSystemEvents.INPUT_WHEEL_SCROLL) {
|
|
28
|
-
const detail = payload.detail;
|
|
29
|
-
// Check if Meta key is pressed for zoom
|
|
30
|
-
const hasMeta = detail?.modifiers?.meta;
|
|
31
|
-
if (hasMeta) {
|
|
32
|
-
// Handle zoom
|
|
33
|
-
decideToPanZoom(PanZoom.ZOOM, {
|
|
34
|
-
x: detail?.pointer?.clientX || 0,
|
|
35
|
-
y: detail?.pointer?.clientY || 0
|
|
36
|
-
}, { x: detail?.pointer?.deltaX || 0, y: detail?.pointer?.deltaY || 0 });
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
// Handle pan
|
|
40
|
-
decideToPanZoom(PanZoom.PAN, {
|
|
41
|
-
x: detail?.pointer?.clientX || 0,
|
|
42
|
-
y: detail?.pointer?.clientY || 0
|
|
43
|
-
}, { x: detail?.pointer?.deltaX || 0, y: detail?.pointer?.deltaY || 0 });
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=input-to-decision.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-to-decision.js","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/input-to-decision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EAIzB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,iBAAiB,EACjB,IAAI,EACJ,OAAO,EAIR,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEzE;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,EAAE;IAC9C,sCAAsC;IACtC,wBAAwB,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QACvC,IAAI,OAAO,CAAC,SAAS,KAAK,iBAAiB,CAAC,uBAAuB,EAAE,CAAC;YACpE,+BAA+B;YAC/B,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAA;YAE/C,IAAI,OAAO,EAAE,CAAC;gBACZ,4CAA4C;gBAC5C,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAA;gBAEjD,IAAI,QAAQ,EAAE,CAAC;oBACb,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;gBAC7B,CAAC;qBAAM,CAAC;oBACN,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;gBAC7B,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,mCAAmC;IACnC,wBAAwB,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QACvC,IAAI,OAAO,CAAC,SAAS,KAAK,iBAAiB,CAAC,kBAAkB,EAAE,CAAC;YAC/D,MAAM,MAAM,GAAG,OAAO,CAAC,MAAuB,CAAA;YAE9C,wCAAwC;YACxC,MAAM,OAAO,GAAG,MAAM,EAAE,SAAS,EAAE,IAAI,CAAA;YAEvC,IAAI,OAAO,EAAE,CAAC;gBACZ,cAAc;gBACd,eAAe,CACb,OAAO,CAAC,IAAI,EACZ;oBACE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,IAAI,CAAC;oBAChC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,IAAI,CAAC;iBACjC,EACD,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,CACrE,CAAA;YACH,CAAC;iBAAM,CAAC;gBACN,aAAa;gBACb,eAAe,CACb,OAAO,CAAC,GAAG,EACX;oBACE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,IAAI,CAAC;oBAChC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,IAAI,CAAC;iBACjC,EACD,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,CACrE,CAAA;YACH,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primary-tool.d.ts","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/primary-tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAEnD,eAAO,MAAM,uBAAuB,GAAI,MAAM,qBAAqB,SAIlE,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { subscribeToDecideToSwitchPrimaryTool } from '@asyra/reactive-events';
|
|
2
|
-
export const initPrimaryToolHandlers = (apis) => {
|
|
3
|
-
subscribeToDecideToSwitchPrimaryTool(({ payload }) => {
|
|
4
|
-
apis.switchPrimaryTool(payload.primaryTool);
|
|
5
|
-
});
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=primary-tool.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primary-tool.js","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/primary-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wBAAwB,CAAA;AAG7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,IAA2B,EAAE,EAAE;IACrE,oCAAoC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QACnD,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IAC7C,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reset-element-size.d.ts","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/reset-element-size.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,eAAO,MAAM,8BAA8B,GAAI,MAAM;IACnD,kBAAkB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAA;CAC3D,SAMA,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { subscribeToDecideToResetElementSize } from '@asyra/reactive-events';
|
|
2
|
-
export const initResetElementSizeSubscriber = (deps) => {
|
|
3
|
-
subscribeToDecideToResetElementSize((event) => {
|
|
4
|
-
const { dimension } = event.payload;
|
|
5
|
-
deps.changeComputedData('width', dimension.width);
|
|
6
|
-
deps.changeComputedData('height', dimension.height);
|
|
7
|
-
});
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=reset-element-size.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reset-element-size.js","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/reset-element-size.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,wBAAwB,CAAA;AAG5E,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,IAE9C,EAAE,EAAE;IACH,mCAAmC,CAAC,CAAC,KAAK,EAAE,EAAE;QAC5C,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC,OAAO,CAAA;QACnC,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,CAAA;QACjD,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;IACrD,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resize-element.d.ts","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/resize-element.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAE9D,eAAO,MAAM,yBAAyB,GACpC,QAAQ,WAAW,CAAC,QAAQ,CAAC,EAC7B,MAAM,mBAAmB,SAyB1B,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { subscribeToDecideToResizeElement } from '@asyra/reactive-events';
|
|
2
|
-
export const initResizeElementHandlers = (render, apis) => {
|
|
3
|
-
subscribeToDecideToResizeElement(({ payload, options }) => {
|
|
4
|
-
const { dragStart, position } = payload;
|
|
5
|
-
const oldPos = render.getMousePosInWorkspace({
|
|
6
|
-
clientX: dragStart.x,
|
|
7
|
-
clientY: dragStart.y
|
|
8
|
-
});
|
|
9
|
-
const newPos = render.getMousePosInWorkspace({
|
|
10
|
-
clientX: position.x,
|
|
11
|
-
clientY: position.y
|
|
12
|
-
});
|
|
13
|
-
const pos = {
|
|
14
|
-
x: Math.min(oldPos.x, newPos.x),
|
|
15
|
-
y: Math.min(oldPos.y, newPos.y)
|
|
16
|
-
};
|
|
17
|
-
const dimension = {
|
|
18
|
-
width: Math.abs(newPos.x - oldPos.x),
|
|
19
|
-
height: Math.abs(newPos.y - oldPos.y)
|
|
20
|
-
};
|
|
21
|
-
apis.resizeElement(pos, dimension, options);
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=resize-element.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resize-element.js","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/resize-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AAGzE,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,MAA6B,EAC7B,IAAyB,EACzB,EAAE;IACF,gCAAgC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE;QACxD,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAA;QAEvC,MAAM,MAAM,GAAG,MAAM,CAAC,sBAAsB,CAAC;YAC3C,OAAO,EAAE,SAAS,CAAC,CAAC;YACpB,OAAO,EAAE,SAAS,CAAC,CAAC;SACrB,CAAC,CAAA;QACF,MAAM,MAAM,GAAG,MAAM,CAAC,sBAAsB,CAAC;YAC3C,OAAO,EAAE,QAAQ,CAAC,CAAC;YACnB,OAAO,EAAE,QAAQ,CAAC,CAAC;SACpB,CAAC,CAAA;QAEF,MAAM,GAAG,GAAG;YACV,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;YAC/B,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;SAChC,CAAA;QACD,MAAM,SAAS,GAAG;YAChB,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;YACpC,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;SACtC,CAAA;QAED,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;IAC7C,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select-elements.d.ts","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/select-elements.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAExD,eAAO,MAAM,yBAAyB,GAAI,MAAM,0BAA0B,SAIzE,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { subscribeToDecideToSelectElements } from '@asyra/reactive-events';
|
|
2
|
-
export const initSelectElementHandlers = (apis) => {
|
|
3
|
-
subscribeToDecideToSelectElements(({ payload }) => {
|
|
4
|
-
apis.selectElements(payload.elementIds);
|
|
5
|
-
});
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=select-elements.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select-elements.js","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/select-elements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAA;AAG1E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,IAAgC,EAAE,EAAE;IAC5E,iCAAiC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IACzC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/transaction.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAEnD,eAAO,MAAM,uBAAuB,GAAI,MAAM,qBAAqB,SAQlE,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { subscribeToDecideToEndTransaction, subscribeToDecideToStartTransaction } from '@asyra/reactive-events';
|
|
2
|
-
export const initTransactionHandlers = (apis) => {
|
|
3
|
-
subscribeToDecideToStartTransaction(() => {
|
|
4
|
-
apis.startTransaction();
|
|
5
|
-
});
|
|
6
|
-
subscribeToDecideToEndTransaction(() => {
|
|
7
|
-
apis.endTransaction();
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=transaction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,mCAAmC,EACpC,MAAM,wBAAwB,CAAA;AAG/B,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,IAA2B,EAAE,EAAE;IACrE,mCAAmC,CAAC,GAAG,EAAE;QACvC,IAAI,CAAC,gBAAgB,EAAE,CAAA;IACzB,CAAC,CAAC,CAAA;IAEF,iCAAiC,CAAC,GAAG,EAAE;QACrC,IAAI,CAAC,cAAc,EAAE,CAAA;IACvB,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"undoredo.d.ts","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/undoredo.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,eAAO,MAAM,oBAAoB,GAAI,MAAM,cAAc,SAWxD,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { subscribeToDecideToUndoRedo } from '@asyra/reactive-events';
|
|
2
|
-
import { UNDO } from '@asyra/utils';
|
|
3
|
-
export const initUndoRedoHandlers = (apis) => {
|
|
4
|
-
subscribeToDecideToUndoRedo(({ payload }) => {
|
|
5
|
-
switch (payload.undoredo) {
|
|
6
|
-
case UNDO.UNDO:
|
|
7
|
-
apis.undo();
|
|
8
|
-
break;
|
|
9
|
-
case UNDO.REDO:
|
|
10
|
-
apis.redo();
|
|
11
|
-
break;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=undoredo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"undoredo.js","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/undoredo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAGnC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAoB,EAAE,EAAE;IAC3D,2BAA2B,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,QAAQ,OAAO,CAAC,QAAQ,EAAE,CAAC;YACzB,KAAK,IAAI,CAAC,IAAI;gBACZ,IAAI,CAAC,IAAI,EAAE,CAAA;gBACX,MAAK;YACP,KAAK,IAAI,CAAC,IAAI;gBACZ,IAAI,CAAC,IAAI,EAAE,CAAA;gBACX,MAAK;QACT,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viewport.d.ts","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/viewport.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG1C,eAAO,MAAM,oBAAoB,GAAI,MAAM,YAAY,SA2BtD,CAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { subscribeToDecideToPanZoom, subscribeToDecideToZoomFit } from '@asyra/reactive-events';
|
|
2
|
-
import { PanZoom, ZOOM_SMOOTH_RATIO } from '@asyra/utils';
|
|
3
|
-
export const initViewportHandlers = (apis) => {
|
|
4
|
-
subscribeToDecideToZoomFit(() => {
|
|
5
|
-
apis.zoomFit();
|
|
6
|
-
});
|
|
7
|
-
subscribeToDecideToPanZoom(({ payload }) => {
|
|
8
|
-
switch (payload.panzoom) {
|
|
9
|
-
case PanZoom.PAN: {
|
|
10
|
-
const { x, y } = payload.wheel;
|
|
11
|
-
const currentPosition = apis.getViewportPosition();
|
|
12
|
-
apis.panTo(currentPosition.x - x, currentPosition.y - y);
|
|
13
|
-
break;
|
|
14
|
-
}
|
|
15
|
-
case PanZoom.ZOOM: {
|
|
16
|
-
const { x: clientX, y: clientY } = payload.mouse;
|
|
17
|
-
const { y: deltaY } = payload.wheel;
|
|
18
|
-
const currentScale = apis.getViewportScale();
|
|
19
|
-
// Adjust zoom scale based on wheel direction. deltaY < 0 means scrolling up (zoom in)
|
|
20
|
-
// Using a smaller scale factor (1.05) for smoother zooming
|
|
21
|
-
const newScale = currentScale *
|
|
22
|
-
(deltaY < 0 ? 1 + ZOOM_SMOOTH_RATIO : 1 - ZOOM_SMOOTH_RATIO);
|
|
23
|
-
apis.zoomToCenter(newScale, clientX, clientY);
|
|
24
|
-
break;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=viewport.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viewport.js","sourceRoot":"","sources":["../../../src/subscribes/interaction-core/viewport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEzD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAkB,EAAE,EAAE;IACzD,0BAA0B,CAAC,GAAG,EAAE;QAC9B,IAAI,CAAC,OAAO,EAAE,CAAA;IAChB,CAAC,CAAC,CAAA;IAEF,0BAA0B,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QACzC,QAAQ,OAAO,CAAC,OAAO,EAAE,CAAC;YACxB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;gBACjB,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;gBAC9B,MAAM,eAAe,GAAG,IAAI,CAAC,mBAAmB,EAAE,CAAA;gBAClD,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,EAAE,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA;gBACxD,MAAK;YACP,CAAC;YACD,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;gBAClB,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;gBAChD,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;gBACnC,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAA;gBAC5C,sFAAsF;gBACtF,2DAA2D;gBAC3D,MAAM,QAAQ,GACZ,YAAY;oBACZ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAA;gBAC9D,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;gBAC7C,MAAK;YACP,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/subscribes/render.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAErD;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,UAAU,EAAE,MAAM,WAAW,SA0BrE,CAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { subscribeToZoomToCenter, subscribeToRequestRenderZoom, subscribeToEmitZoomFit } from '@asyra/reactive-events';
|
|
2
|
-
/**
|
|
3
|
-
* Initialize render event handlers that update UI context
|
|
4
|
-
*/
|
|
5
|
-
export const initRenderHandlers = (apis, deps) => {
|
|
6
|
-
// Handle zoom to center events
|
|
7
|
-
subscribeToZoomToCenter(({ payload }) => {
|
|
8
|
-
// Update UI context with new zoom level
|
|
9
|
-
const newZoom = payload.scale;
|
|
10
|
-
deps.uiContext.updateZoom(newZoom);
|
|
11
|
-
});
|
|
12
|
-
// Handle emit zoom fit events
|
|
13
|
-
subscribeToEmitZoomFit(() => {
|
|
14
|
-
// Get current zoom and update UI context
|
|
15
|
-
const currentZoom = deps.uiContext.zoom.getValue();
|
|
16
|
-
deps.uiContext.updateZoom(currentZoom);
|
|
17
|
-
});
|
|
18
|
-
// Handle render zoom requests
|
|
19
|
-
subscribeToRequestRenderZoom(({ payload }) => {
|
|
20
|
-
const currentZoom = deps.uiContext.zoom.getValue();
|
|
21
|
-
// Find the request handler and resolve it
|
|
22
|
-
const requestHandler = deps.render.requests.find((req) => req.requestId === payload.requestId);
|
|
23
|
-
if (requestHandler && requestHandler.resolve) {
|
|
24
|
-
requestHandler.resolve(currentZoom);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=render.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sourceRoot":"","sources":["../../src/subscribes/render.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,uBAAuB,CAAA;AAG9B;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAgB,EAAE,IAAiB,EAAE,EAAE;IACxE,+BAA+B;IAC/B,uBAAuB,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QACtC,wCAAwC;QACxC,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,CAAA;QAC7B,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;IACpC,CAAC,CAAC,CAAA;IAEF,8BAA8B;IAC9B,sBAAsB,CAAC,GAAG,EAAE;QAC1B,yCAAyC;QACzC,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAA;QAClD,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;IACxC,CAAC,CAAC,CAAA;IAEF,8BAA8B;IAC9B,4BAA4B,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QAC3C,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAA;QAClD,0CAA0C;QAC1C,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAC9C,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,KAAK,OAAO,CAAC,SAAS,CAC7C,CAAA;QACD,IAAI,cAAc,IAAI,cAAc,CAAC,OAAO,EAAE,CAAC;YAC7C,cAAc,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;QACrC,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DetailType, InputSystemEvents } from '@asyra/utils';
|
|
2
|
-
export interface InteractionCoreActionAPIs {
|
|
3
|
-
executeAction: (eventName: InputSystemEvents, detail?: DetailType) => void;
|
|
4
|
-
}
|
|
5
|
-
export interface InteractionCoreSessionAPIs {
|
|
6
|
-
startSession: (eventName: InputSystemEvents, detail?: DetailType) => void;
|
|
7
|
-
updateSession: (eventName: InputSystemEvents, detail?: DetailType) => void;
|
|
8
|
-
endSession: (eventName: InputSystemEvents, detail?: DetailType) => void;
|
|
9
|
-
}
|
|
10
|
-
export type InteractionCoreAPIs = InteractionCoreActionAPIs & InteractionCoreSessionAPIs;
|
|
11
|
-
//# sourceMappingURL=interaction-core.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interaction-core.d.ts","sourceRoot":"","sources":["../../src/types/interaction-core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAE5D,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,CAAC,SAAS,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;CAC3E;AAED,MAAM,WAAW,0BAA0B;IACzC,YAAY,EAAE,CAAC,SAAS,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IACzE,aAAa,EAAE,CAAC,SAAS,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC1E,UAAU,EAAE,CAAC,SAAS,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;CACxE;AAED,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,GACzD,0BAA0B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interaction-core.js","sourceRoot":"","sources":["../../src/types/interaction-core.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Factory } from '@asyra/factory';
|
|
2
|
-
/**
|
|
3
|
-
* Request API for Factory data
|
|
4
|
-
* Provides synchronous access to factory state
|
|
5
|
-
*/
|
|
6
|
-
export interface FactoryRequests {
|
|
7
|
-
isInUndoRedo: () => boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface FactoryRequestDeps {
|
|
10
|
-
factory: Factory;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=factory%20copy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"factory copy.d.ts","sourceRoot":"","sources":["../../../src/types/requests/factory copy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC;;;GAGG;AAEH,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,OAAO,CAAA;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAA;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"factory copy.js","sourceRoot":"","sources":["../../../src/types/requests/factory copy.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Factory } from '@asyra/factory';
|
|
2
|
-
/**
|
|
3
|
-
* Request API for Factory data
|
|
4
|
-
* Provides synchronous access to factory state
|
|
5
|
-
*/
|
|
6
|
-
export interface FactoryRequests {
|
|
7
|
-
isInUndoRedo: () => boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface FactoryRequestDeps {
|
|
10
|
-
factory: Factory;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/types/requests/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC;;;GAGG;AAEH,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,OAAO,CAAA;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAA;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../src/types/requests/factory.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SystemContextRequests, SystemContextRequestsDeps } from './system-context';
|
|
2
|
-
import { PropsRequests, PropsRequestDeps } from './props';
|
|
3
|
-
import { SceneTreeRequestDeps, SceneTreeRequests } from './scene-tree';
|
|
4
|
-
import { FactoryRequests, FactoryRequestDeps } from './factory';
|
|
5
|
-
import { RenderRequestDeps, RenderRequests } from './render';
|
|
6
|
-
import { SelectionRequestDeps, SelectionRequests } from './selection';
|
|
7
|
-
export { SystemContextRequests, SystemContextRequestsDeps, PropsRequests, PropsRequestDeps, SceneTreeRequests, SceneTreeRequestDeps, FactoryRequests, FactoryRequestDeps, RenderRequests, RenderRequestDeps, SelectionRequests, SelectionRequestDeps };
|
|
8
|
-
export type RequestsDeps = SystemContextRequestsDeps & PropsRequestDeps & SceneTreeRequestDeps & FactoryRequestDeps & RenderRequestDeps & SelectionRequestDeps;
|
|
9
|
-
export interface Requests {
|
|
10
|
-
systemContextRequests: SystemContextRequests;
|
|
11
|
-
propsRequests: PropsRequests;
|
|
12
|
-
sceneTreeRequests: SceneTreeRequests;
|
|
13
|
-
factoryRequests: FactoryRequests;
|
|
14
|
-
renderRequests: RenderRequests;
|
|
15
|
-
selectionRequests: SelectionRequests;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/requests/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AACzD,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACtE,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC5D,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAErE,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACrB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,yBAAyB,GAClD,gBAAgB,GAChB,oBAAoB,GACpB,kBAAkB,GAClB,iBAAiB,GACjB,oBAAoB,CAAA;AAEtB,MAAM,WAAW,QAAQ;IACvB,qBAAqB,EAAE,qBAAqB,CAAA;IAC5C,aAAa,EAAE,aAAa,CAAA;IAC5B,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,eAAe,EAAE,eAAe,CAAA;IAChC,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,iBAAiB,CAAA;CACrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/requests/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,qDAAqD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PrimaryToolManager } from '@asyra/primary-tool-manager';
|
|
2
|
-
import { PrimaryToolType } from '@asyra/utils';
|
|
3
|
-
/**
|
|
4
|
-
* Request API for PrimaryTool data
|
|
5
|
-
* Provides synchronous access to primary tool manager state
|
|
6
|
-
*/
|
|
7
|
-
export interface PrimaryToolRequests {
|
|
8
|
-
switchPrimaryTool: (toolType: PrimaryToolType) => void;
|
|
9
|
-
}
|
|
10
|
-
export interface PrimaryToolRequestDeps {
|
|
11
|
-
primaryTool: PrimaryToolManager;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=primary-tool.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primary-tool.d.ts","sourceRoot":"","sources":["../../../src/types/requests/primary-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C;;;GAGG;AAEH,MAAM,WAAW,mBAAmB;IAClC,iBAAiB,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAA;CACvD;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,kBAAkB,CAAA;CAChC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primary-tool.js","sourceRoot":"","sources":["../../../src/types/requests/primary-tool.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PropsManager } from '@asyra/props-manager';
|
|
2
|
-
import { PropsComponentRawData } from '@asyra/utils';
|
|
3
|
-
/**
|
|
4
|
-
* Request API for Props data
|
|
5
|
-
* Provides synchronous access to props manager state
|
|
6
|
-
*/
|
|
7
|
-
export interface PropsRequests {
|
|
8
|
-
propsLoadData: (data: PropsComponentRawData) => void;
|
|
9
|
-
propsSaveData: () => PropsComponentRawData;
|
|
10
|
-
}
|
|
11
|
-
export interface PropsRequestDeps {
|
|
12
|
-
props: PropsManager;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=props%20copy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"props copy.d.ts","sourceRoot":"","sources":["../../../src/types/requests/props copy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAEnD;;;GAGG;AAEH,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAA;IACpD,aAAa,EAAE,MAAM,qBAAqB,CAAA;CAC3C;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,YAAY,CAAA;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"props copy.js","sourceRoot":"","sources":["../../../src/types/requests/props copy.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PropsManager } from '@asyra/props-manager';
|
|
2
|
-
import { PropsComponentRawData } from '@asyra/utils';
|
|
3
|
-
/**
|
|
4
|
-
* Request API for Props data
|
|
5
|
-
* Provides synchronous access to props manager state
|
|
6
|
-
*/
|
|
7
|
-
export interface PropsRequests {
|
|
8
|
-
propsLoadData: (data: PropsComponentRawData) => void;
|
|
9
|
-
propsSaveData: () => PropsComponentRawData;
|
|
10
|
-
}
|
|
11
|
-
export interface PropsRequestDeps {
|
|
12
|
-
props: PropsManager;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/types/requests/props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEpD;;;GAGG;AAEH,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAA;IACpD,aAAa,EAAE,MAAM,qBAAqB,CAAA;CAC3C;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,YAAY,CAAA;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","sourceRoot":"","sources":["../../../src/types/requests/props.ts"],"names":[],"mappings":""}
|