@asyra/preset 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +14 -0
- package/dist/catalog.d.ts +3 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/catalog.js +61 -0
- package/dist/catalog.js.map +1 -0
- package/dist/cleanup-reporter.d.ts +6 -0
- package/dist/cleanup-reporter.d.ts.map +1 -0
- package/dist/cleanup-reporter.js +14 -0
- package/dist/cleanup-reporter.js.map +1 -0
- package/dist/components/fills.d.ts +28 -0
- package/dist/components/fills.d.ts.map +1 -0
- package/dist/components/fills.js +180 -0
- package/dist/components/fills.js.map +1 -0
- package/dist/components/frame.d.ts +4 -0
- package/dist/components/frame.d.ts.map +1 -0
- package/dist/components/frame.js +44 -0
- package/dist/components/frame.js.map +1 -0
- package/dist/components/group.d.ts +72 -0
- package/dist/components/group.d.ts.map +1 -0
- package/dist/components/group.js +491 -0
- package/dist/components/group.js.map +1 -0
- package/dist/components/index.d.ts +24 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +65 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/oval.d.ts +4 -0
- package/dist/components/oval.d.ts.map +1 -0
- package/dist/components/oval.js +56 -0
- package/dist/components/oval.js.map +1 -0
- package/dist/components/rectangle.d.ts +4 -0
- package/dist/components/rectangle.d.ts.map +1 -0
- package/dist/components/rectangle.js +54 -0
- package/dist/components/rectangle.js.map +1 -0
- package/dist/components/shape-hit-area.d.ts +8 -0
- package/dist/components/shape-hit-area.d.ts.map +1 -0
- package/dist/components/shape-hit-area.js +30 -0
- package/dist/components/shape-hit-area.js.map +1 -0
- package/dist/components/stroke-defaults.d.ts +5 -0
- package/dist/components/stroke-defaults.d.ts.map +1 -0
- package/dist/components/stroke-defaults.js +4 -0
- package/dist/components/stroke-defaults.js.map +1 -0
- package/dist/components/vector.d.ts +7 -0
- package/dist/components/vector.d.ts.map +1 -0
- package/dist/components/vector.js +961 -0
- package/dist/components/vector.js.map +1 -0
- package/dist/composition/error.d.ts +16 -0
- package/dist/composition/error.d.ts.map +1 -0
- package/dist/composition/error.js +12 -0
- package/dist/composition/error.js.map +1 -0
- package/dist/composition/profile-provider.d.ts +7 -0
- package/dist/composition/profile-provider.d.ts.map +1 -0
- package/dist/composition/profile-provider.js +24 -0
- package/dist/composition/profile-provider.js.map +1 -0
- package/dist/composition/resolve.d.ts +11 -0
- package/dist/composition/resolve.d.ts.map +1 -0
- package/dist/composition/resolve.js +96 -0
- package/dist/composition/resolve.js.map +1 -0
- package/dist/composition/result.d.ts +3 -0
- package/dist/composition/result.d.ts.map +1 -0
- package/dist/composition/result.js +7 -0
- package/dist/composition/result.js.map +1 -0
- package/dist/constants.d.ts +30 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +30 -0
- package/dist/constants.js.map +1 -0
- package/dist/defaults/install.d.ts +16 -0
- package/dist/defaults/install.d.ts.map +1 -0
- package/dist/defaults/install.js +51 -0
- package/dist/defaults/install.js.map +1 -0
- package/dist/defaults/installation.d.ts +14 -0
- package/dist/defaults/installation.d.ts.map +1 -0
- package/dist/defaults/installation.js +85 -0
- package/dist/defaults/installation.js.map +1 -0
- package/dist/defaults/modules/basic-shapes.d.ts +3 -0
- package/dist/defaults/modules/basic-shapes.d.ts.map +1 -0
- package/dist/defaults/modules/basic-shapes.js +9 -0
- package/dist/defaults/modules/basic-shapes.js.map +1 -0
- package/dist/defaults/modules/containers.d.ts +3 -0
- package/dist/defaults/modules/containers.d.ts.map +1 -0
- package/dist/defaults/modules/containers.js +9 -0
- package/dist/defaults/modules/containers.js.map +1 -0
- package/dist/defaults/modules/input.d.ts +3 -0
- package/dist/defaults/modules/input.d.ts.map +1 -0
- package/dist/defaults/modules/input.js +7 -0
- package/dist/defaults/modules/input.js.map +1 -0
- package/dist/defaults/modules/selection.d.ts +3 -0
- package/dist/defaults/modules/selection.d.ts.map +1 -0
- package/dist/defaults/modules/selection.js +20 -0
- package/dist/defaults/modules/selection.js.map +1 -0
- package/dist/defaults/modules/ui-context.d.ts +3 -0
- package/dist/defaults/modules/ui-context.d.ts.map +1 -0
- package/dist/defaults/modules/ui-context.js +9 -0
- package/dist/defaults/modules/ui-context.js.map +1 -0
- package/dist/defaults/modules/vector-editing.d.ts +3 -0
- package/dist/defaults/modules/vector-editing.d.ts.map +1 -0
- package/dist/defaults/modules/vector-editing.js +22 -0
- package/dist/defaults/modules/vector-editing.js.map +1 -0
- package/dist/defaults/modules/vector.d.ts +3 -0
- package/dist/defaults/modules/vector.d.ts.map +1 -0
- package/dist/defaults/modules/vector.js +9 -0
- package/dist/defaults/modules/vector.js.map +1 -0
- package/dist/defaults/modules/viewport.d.ts +3 -0
- package/dist/defaults/modules/viewport.d.ts.map +1 -0
- package/dist/defaults/modules/viewport.js +7 -0
- package/dist/defaults/modules/viewport.js.map +1 -0
- package/dist/defaults/owned-state.d.ts +3 -0
- package/dist/defaults/owned-state.d.ts.map +1 -0
- package/dist/defaults/owned-state.js +72 -0
- package/dist/defaults/owned-state.js.map +1 -0
- package/dist/defaults/private-manager.d.ts +3 -0
- package/dist/defaults/private-manager.d.ts.map +1 -0
- package/dist/defaults/private-manager.js +15 -0
- package/dist/defaults/private-manager.js.map +1 -0
- package/dist/defaults/types.d.ts +12 -0
- package/dist/defaults/types.d.ts.map +1 -0
- package/dist/defaults/types.js +2 -0
- package/dist/defaults/types.js.map +1 -0
- package/dist/events/index.d.ts +3 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +3 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/input-events.d.ts +19 -0
- package/dist/events/input-events.d.ts.map +1 -0
- package/dist/events/input-events.js +18 -0
- package/dist/events/input-events.js.map +1 -0
- package/dist/events/preset-event-names.d.ts +136 -0
- package/dist/events/preset-event-names.d.ts.map +1 -0
- package/dist/events/preset-event-names.js +18 -0
- package/dist/events/preset-event-names.js.map +1 -0
- package/dist/events/register-events.d.ts +4 -0
- package/dist/events/register-events.d.ts.map +1 -0
- package/dist/events/register-events.js +30 -0
- package/dist/events/register-events.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/preset.d.ts +3 -0
- package/dist/preset.d.ts.map +1 -0
- package/dist/preset.js +86 -0
- package/dist/preset.js.map +1 -0
- package/dist/props/components/anchor-point-component.d.ts +3 -0
- package/dist/props/components/anchor-point-component.d.ts.map +1 -0
- package/dist/props/components/anchor-point-component.js +6 -0
- package/dist/props/components/anchor-point-component.js.map +1 -0
- package/dist/props/components/anchor-points-component.d.ts +3 -0
- package/dist/props/components/anchor-points-component.d.ts.map +1 -0
- package/dist/props/components/anchor-points-component.js +43 -0
- package/dist/props/components/anchor-points-component.js.map +1 -0
- package/dist/props/components/children-map-property-component.d.ts +15 -0
- package/dist/props/components/children-map-property-component.d.ts.map +1 -0
- package/dist/props/components/children-map-property-component.js +205 -0
- package/dist/props/components/children-map-property-component.js.map +1 -0
- package/dist/props/components/custom-component.d.ts +3 -0
- package/dist/props/components/custom-component.d.ts.map +1 -0
- package/dist/props/components/custom-component.js +6 -0
- package/dist/props/components/custom-component.js.map +1 -0
- package/dist/props/components/dimension-component.d.ts +3 -0
- package/dist/props/components/dimension-component.d.ts.map +1 -0
- package/dist/props/components/dimension-component.js +6 -0
- package/dist/props/components/dimension-component.js.map +1 -0
- package/dist/props/components/fill-component.d.ts +3 -0
- package/dist/props/components/fill-component.d.ts.map +1 -0
- package/dist/props/components/fill-component.js +25 -0
- package/dist/props/components/fill-component.js.map +1 -0
- package/dist/props/components/fills-component.d.ts +3 -0
- package/dist/props/components/fills-component.d.ts.map +1 -0
- package/dist/props/components/fills-component.js +33 -0
- package/dist/props/components/fills-component.js.map +1 -0
- package/dist/props/components/index.d.ts +7 -0
- package/dist/props/components/index.d.ts.map +1 -0
- package/dist/props/components/index.js +51 -0
- package/dist/props/components/index.js.map +1 -0
- package/dist/props/components/number-value.d.ts +2 -0
- package/dist/props/components/number-value.d.ts.map +1 -0
- package/dist/props/components/number-value.js +2 -0
- package/dist/props/components/number-value.js.map +1 -0
- package/dist/props/components/position-component.d.ts +3 -0
- package/dist/props/components/position-component.d.ts.map +1 -0
- package/dist/props/components/position-component.js +6 -0
- package/dist/props/components/position-component.js.map +1 -0
- package/dist/props/components/stroke-component.d.ts +3 -0
- package/dist/props/components/stroke-component.d.ts.map +1 -0
- package/dist/props/components/stroke-component.js +29 -0
- package/dist/props/components/stroke-component.js.map +1 -0
- package/dist/props/components/strokes-component.d.ts +3 -0
- package/dist/props/components/strokes-component.d.ts.map +1 -0
- package/dist/props/components/strokes-component.js +44 -0
- package/dist/props/components/strokes-component.js.map +1 -0
- package/dist/props/components/vector-network-component.d.ts +3 -0
- package/dist/props/components/vector-network-component.d.ts.map +1 -0
- package/dist/props/components/vector-network-component.js +10 -0
- package/dist/props/components/vector-network-component.js.map +1 -0
- package/dist/props/components/vector-networks-component.d.ts +2 -0
- package/dist/props/components/vector-networks-component.d.ts.map +1 -0
- package/dist/props/components/vector-networks-component.js +28 -0
- package/dist/props/components/vector-networks-component.js.map +1 -0
- package/dist/props/components/vector-point-component.d.ts +3 -0
- package/dist/props/components/vector-point-component.d.ts.map +1 -0
- package/dist/props/components/vector-point-component.js +15 -0
- package/dist/props/components/vector-point-component.js.map +1 -0
- package/dist/props/components/vector-points-component.d.ts +2 -0
- package/dist/props/components/vector-points-component.d.ts.map +1 -0
- package/dist/props/components/vector-points-component.js +66 -0
- package/dist/props/components/vector-points-component.js.map +1 -0
- package/dist/props/components/vector-segment-component.d.ts +3 -0
- package/dist/props/components/vector-segment-component.d.ts.map +1 -0
- package/dist/props/components/vector-segment-component.js +11 -0
- package/dist/props/components/vector-segment-component.js.map +1 -0
- package/dist/props/components/vector-segments-component.d.ts +2 -0
- package/dist/props/components/vector-segments-component.d.ts.map +1 -0
- package/dist/props/components/vector-segments-component.js +25 -0
- package/dist/props/components/vector-segments-component.js.map +1 -0
- package/dist/props/register-property-schemas.d.ts +7 -0
- package/dist/props/register-property-schemas.d.ts.map +1 -0
- package/dist/props/register-property-schemas.js +475 -0
- package/dist/props/register-property-schemas.js.map +1 -0
- package/dist/registration.d.ts +6 -0
- package/dist/registration.d.ts.map +1 -0
- package/dist/registration.js +15 -0
- package/dist/registration.js.map +1 -0
- package/dist/render-layers/index.d.ts +3 -0
- package/dist/render-layers/index.d.ts.map +1 -0
- package/dist/render-layers/index.js +3 -0
- package/dist/render-layers/index.js.map +1 -0
- package/dist/render-layers/selection-overlay-render-layer.d.ts +15 -0
- package/dist/render-layers/selection-overlay-render-layer.d.ts.map +1 -0
- package/dist/render-layers/selection-overlay-render-layer.js +393 -0
- package/dist/render-layers/selection-overlay-render-layer.js.map +1 -0
- package/dist/render-layers/vector-path-editing-render-layer.d.ts +31 -0
- package/dist/render-layers/vector-path-editing-render-layer.d.ts.map +1 -0
- package/dist/render-layers/vector-path-editing-render-layer.js +815 -0
- package/dist/render-layers/vector-path-editing-render-layer.js.map +1 -0
- package/dist/selection/channels.d.ts +23 -0
- package/dist/selection/channels.d.ts.map +1 -0
- package/dist/selection/channels.js +25 -0
- package/dist/selection/channels.js.map +1 -0
- package/dist/selection/ids.d.ts +8 -0
- package/dist/selection/ids.d.ts.map +1 -0
- package/dist/selection/ids.js +49 -0
- package/dist/selection/ids.js.map +1 -0
- package/dist/selection/register-default-selections.d.ts +6 -0
- package/dist/selection/register-default-selections.d.ts.map +1 -0
- package/dist/selection/register-default-selections.js +52 -0
- package/dist/selection/register-default-selections.js.map +1 -0
- package/dist/subscriptions/data-channel.d.ts +12 -0
- package/dist/subscriptions/data-channel.d.ts.map +1 -0
- package/dist/subscriptions/data-channel.js +1366 -0
- package/dist/subscriptions/data-channel.js.map +1 -0
- package/dist/subscriptions/index.d.ts +4 -0
- package/dist/subscriptions/index.d.ts.map +1 -0
- package/dist/subscriptions/index.js +4 -0
- package/dist/subscriptions/index.js.map +1 -0
- package/dist/subscriptions/render-system.d.ts +3 -0
- package/dist/subscriptions/render-system.d.ts.map +1 -0
- package/dist/subscriptions/render-system.js +41 -0
- package/dist/subscriptions/render-system.js.map +1 -0
- package/dist/subscriptions/shared-channels.d.ts +7 -0
- package/dist/subscriptions/shared-channels.d.ts.map +1 -0
- package/dist/subscriptions/shared-channels.js +67 -0
- package/dist/subscriptions/shared-channels.js.map +1 -0
- package/dist/system-property-keys.d.ts +69 -0
- package/dist/system-property-keys.d.ts.map +1 -0
- package/dist/system-property-keys.js +44 -0
- package/dist/system-property-keys.js.map +1 -0
- package/dist/types.d.ts +32 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/ui/register-properties.d.ts +12 -0
- package/dist/ui/register-properties.d.ts.map +1 -0
- package/dist/ui/register-properties.js +318 -0
- package/dist/ui/register-properties.js.map +1 -0
- package/dist/vector/synthetic-handle.d.ts +3 -0
- package/dist/vector/synthetic-handle.d.ts.map +1 -0
- package/dist/vector/synthetic-handle.js +38 -0
- package/dist/vector/synthetic-handle.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containers.d.ts","sourceRoot":"","sources":["../../../src/defaults/modules/containers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAQ9D,eAAO,MAAM,wBAAwB,GACnC,SAAS,2BAA2B,KACnC,IASF,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CONTAINER_COMPONENT_DEFINITIONS, CONTAINER_RENDER_STRATEGY_REGISTRATIONS } from '../../components/index.js';
|
|
2
|
+
import { acquireBaseProperties, acquireFrameworkEvents, acquireRenderSceneProjection, installComponentsAndStrategies } from '../installation.js';
|
|
3
|
+
export const installContainersDefault = (context) => {
|
|
4
|
+
acquireFrameworkEvents(context);
|
|
5
|
+
acquireBaseProperties(context);
|
|
6
|
+
installComponentsAndStrategies(context, CONTAINER_COMPONENT_DEFINITIONS, CONTAINER_RENDER_STRATEGY_REGISTRATIONS);
|
|
7
|
+
acquireRenderSceneProjection(context);
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=containers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containers.js","sourceRoot":"","sources":["../../../src/defaults/modules/containers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/B,uCAAuC,EACxC,MAAM,2BAA2B,CAAA;AAElC,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,4BAA4B,EAC5B,8BAA8B,EAC/B,MAAM,oBAAoB,CAAA;AAE3B,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,OAAoC,EAC9B,EAAE;IACR,sBAAsB,CAAC,OAAO,CAAC,CAAA;IAC/B,qBAAqB,CAAC,OAAO,CAAC,CAAA;IAC9B,8BAA8B,CAC5B,OAAO,EACP,+BAA+B,EAC/B,uCAAuC,CACxC,CAAA;IACD,4BAA4B,CAAC,OAAO,CAAC,CAAA;AACvC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/defaults/modules/input.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAG9D,eAAO,MAAM,mBAAmB,GAC9B,SAAS,2BAA2B,KACnC,IAGF,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { registerInputProperties } from '../../ui/register-properties.js';
|
|
2
|
+
import { acquireInputEvents } from '../installation.js';
|
|
3
|
+
export const installInputDefault = (context) => {
|
|
4
|
+
acquireInputEvents(context);
|
|
5
|
+
registerInputProperties(context.core);
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/defaults/modules/input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAEvD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,OAAoC,EAC9B,EAAE;IACR,kBAAkB,CAAC,OAAO,CAAC,CAAA;IAC3B,uBAAuB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AACvC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../src/defaults/modules/selection.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAO9D,eAAO,MAAM,uBAAuB,GAClC,SAAS,2BAA2B,KACnC,IAiBF,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { registerSelectionOverlayRenderLayer } from '../../render-layers/index.js';
|
|
2
|
+
import { SelectionChannels } from '../../selection/channels.js';
|
|
3
|
+
import { registerSelections } from '../../selection/register-default-selections.js';
|
|
4
|
+
import { registerSelectionProperties } from '../../ui/register-properties.js';
|
|
5
|
+
import { acquireFrameworkEvents, acquireSelectionProjection, registerTrackedRenderLayer } from '../installation.js';
|
|
6
|
+
export const installSelectionDefault = (context) => {
|
|
7
|
+
acquireFrameworkEvents(context);
|
|
8
|
+
context.privatePrerequisites.acquire('selection:element', () => registerSelections(context.core, undefined, [SelectionChannels.ELEMENT]));
|
|
9
|
+
registerSelectionProperties(context.core);
|
|
10
|
+
acquireSelectionProjection(context);
|
|
11
|
+
context.privatePrerequisites.acquire('render-layer:selection-overlay', () => registerTrackedRenderLayer(context, (register) => {
|
|
12
|
+
registerSelectionOverlayRenderLayer(register, {
|
|
13
|
+
render: context.dependencies.render,
|
|
14
|
+
sceneTree: context.dependencies.sceneTree,
|
|
15
|
+
systemContext: context.dependencies.systemContext,
|
|
16
|
+
getSelection: (type) => context.core.getSelection(type)
|
|
17
|
+
});
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=selection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.js","sourceRoot":"","sources":["../../../src/defaults/modules/selection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,8BAA8B,CAAA;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAA;AACnF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAA;AAE7E,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,OAAoC,EAC9B,EAAE;IACR,sBAAsB,CAAC,OAAO,CAAC,CAAA;IAC/B,OAAO,CAAC,oBAAoB,CAAC,OAAO,CAAC,mBAAmB,EAAE,GAAG,EAAE,CAC7D,kBAAkB,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CACzE,CAAA;IACD,2BAA2B,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACzC,0BAA0B,CAAC,OAAO,CAAC,CAAA;IACnC,OAAO,CAAC,oBAAoB,CAAC,OAAO,CAAC,gCAAgC,EAAE,GAAG,EAAE,CAC1E,0BAA0B,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE;QAC/C,mCAAmC,CAAC,QAAQ,EAAE;YAC5C,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,MAAM;YACnC,SAAS,EAAE,OAAO,CAAC,YAAY,CAAC,SAAS;YACzC,aAAa,EAAE,OAAO,CAAC,YAAY,CAAC,aAAa;YACjD,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;SACxD,CAAC,CAAA;IACJ,CAAC,CAAC,CACH,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-context.d.ts","sourceRoot":"","sources":["../../../src/defaults/modules/ui-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAO9D,eAAO,MAAM,uBAAuB,GAClC,SAAS,2BAA2B,KACnC,IAKF,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { registerUIContextProperties } from '../../ui/register-properties.js';
|
|
2
|
+
import { acquireBaseProperties, acquireFrameworkEvents, acquireUIContextProjection } from '../installation.js';
|
|
3
|
+
export const installUIContextDefault = (context) => {
|
|
4
|
+
acquireBaseProperties(context);
|
|
5
|
+
acquireFrameworkEvents(context);
|
|
6
|
+
registerUIContextProperties(context.core);
|
|
7
|
+
acquireUIContextProjection(context);
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=ui-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-context.js","sourceRoot":"","sources":["../../../src/defaults/modules/ui-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAA;AAE7E,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,OAAoC,EAC9B,EAAE;IACR,qBAAqB,CAAC,OAAO,CAAC,CAAA;IAC9B,sBAAsB,CAAC,OAAO,CAAC,CAAA;IAC/B,2BAA2B,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACzC,0BAA0B,CAAC,OAAO,CAAC,CAAA;AACrC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vector-editing.d.ts","sourceRoot":"","sources":["../../../src/defaults/modules/vector-editing.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAM9D,eAAO,MAAM,2BAA2B,GACtC,SAAS,2BAA2B,KACnC,IAmBF,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { registerVectorPathEditingRenderLayer } from '../../render-layers/index.js';
|
|
2
|
+
import { SelectionChannels } from '../../selection/channels.js';
|
|
3
|
+
import { registerSelections } from '../../selection/register-default-selections.js';
|
|
4
|
+
import { registerVectorEditingProperties } from '../../ui/register-properties.js';
|
|
5
|
+
import { acquireVectorEditingProjection, registerTrackedRenderLayer } from '../installation.js';
|
|
6
|
+
export const installVectorEditingDefault = (context) => {
|
|
7
|
+
context.privatePrerequisites.acquire('selection:vector-editing', () => registerSelections(context.core, undefined, [
|
|
8
|
+
SelectionChannels.VECTOR_POINT,
|
|
9
|
+
SelectionChannels.VECTOR_SEGMENT
|
|
10
|
+
]));
|
|
11
|
+
registerVectorEditingProperties(context.core);
|
|
12
|
+
acquireVectorEditingProjection(context);
|
|
13
|
+
context.privatePrerequisites.acquire('render-layer:vector-path-editing', () => registerTrackedRenderLayer(context, (register) => {
|
|
14
|
+
registerVectorPathEditingRenderLayer(register, {
|
|
15
|
+
getSelection: (type) => context.core.getSelection(type),
|
|
16
|
+
render: context.dependencies.render,
|
|
17
|
+
sceneTree: context.dependencies.sceneTree,
|
|
18
|
+
systemContext: context.dependencies.systemContext
|
|
19
|
+
});
|
|
20
|
+
}));
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=vector-editing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vector-editing.js","sourceRoot":"","sources":["../../../src/defaults/modules/vector-editing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,8BAA8B,CAAA;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAA;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAA;AAEjF,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,OAAoC,EAC9B,EAAE;IACR,OAAO,CAAC,oBAAoB,CAAC,OAAO,CAAC,0BAA0B,EAAE,GAAG,EAAE,CACpE,kBAAkB,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE;QAC1C,iBAAiB,CAAC,YAAY;QAC9B,iBAAiB,CAAC,cAAc;KACjC,CAAC,CACH,CAAA;IACD,+BAA+B,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IAC7C,8BAA8B,CAAC,OAAO,CAAC,CAAA;IACvC,OAAO,CAAC,oBAAoB,CAAC,OAAO,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAC5E,0BAA0B,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE;QAC/C,oCAAoC,CAAC,QAAQ,EAAE;YAC7C,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;YACvD,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,MAAM;YACnC,SAAS,EAAE,OAAO,CAAC,YAAY,CAAC,SAAS;YACzC,aAAa,EAAE,OAAO,CAAC,YAAY,CAAC,aAAa;SAClD,CAAC,CAAA;IACJ,CAAC,CAAC,CACH,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vector.d.ts","sourceRoot":"","sources":["../../../src/defaults/modules/vector.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAQ9D,eAAO,MAAM,oBAAoB,GAC/B,SAAS,2BAA2B,KACnC,IASF,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VECTOR_COMPONENT_DEFINITIONS, VECTOR_RENDER_STRATEGY_REGISTRATIONS } from '../../components/index.js';
|
|
2
|
+
import { acquireFrameworkEvents, acquireRenderSceneProjection, acquireVectorProperties, installComponentsAndStrategies } from '../installation.js';
|
|
3
|
+
export const installVectorDefault = (context) => {
|
|
4
|
+
acquireFrameworkEvents(context);
|
|
5
|
+
acquireVectorProperties(context);
|
|
6
|
+
installComponentsAndStrategies(context, VECTOR_COMPONENT_DEFINITIONS, VECTOR_RENDER_STRATEGY_REGISTRATIONS);
|
|
7
|
+
acquireRenderSceneProjection(context);
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=vector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vector.js","sourceRoot":"","sources":["../../../src/defaults/modules/vector.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,oCAAoC,EACrC,MAAM,2BAA2B,CAAA;AAElC,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,uBAAuB,EACvB,8BAA8B,EAC/B,MAAM,oBAAoB,CAAA;AAE3B,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,OAAoC,EAC9B,EAAE;IACR,sBAAsB,CAAC,OAAO,CAAC,CAAA;IAC/B,uBAAuB,CAAC,OAAO,CAAC,CAAA;IAChC,8BAA8B,CAC5B,OAAO,EACP,4BAA4B,EAC5B,oCAAoC,CACrC,CAAA;IACD,4BAA4B,CAAC,OAAO,CAAC,CAAA;AACvC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewport.d.ts","sourceRoot":"","sources":["../../../src/defaults/modules/viewport.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAE9D,eAAO,MAAM,sBAAsB,GACjC,SAAS,2BAA2B,KACnC,IAKF,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { registerDefaultRenderSystemSubscriptions } from '../../subscriptions/index.js';
|
|
2
|
+
import { registerViewportProperties } from '../../ui/register-properties.js';
|
|
3
|
+
export const installViewportDefault = (context) => {
|
|
4
|
+
registerViewportProperties(context.core);
|
|
5
|
+
context.privatePrerequisites.acquire('subscriptions:viewport', () => registerDefaultRenderSystemSubscriptions(context.core, context.dependencies));
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=viewport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewport.js","sourceRoot":"","sources":["../../../src/defaults/modules/viewport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wCAAwC,EAAE,MAAM,8BAA8B,CAAA;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAG5E,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,OAAoC,EAC9B,EAAE;IACR,0BAA0B,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACxC,OAAO,CAAC,oBAAoB,CAAC,OAAO,CAAC,wBAAwB,EAAE,GAAG,EAAE,CAClE,wCAAwC,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,CAC7E,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"owned-state.d.ts","sourceRoot":"","sources":["../../src/defaults/owned-state.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AA6BjD,eAAO,MAAM,uBAAuB,GAAI,MAAM,cAAc,KAAG,CAAC,MAAM,IAAI,CA0DzE,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { getRegistrationRefKey } from '@asyra/utils';
|
|
2
|
+
import { PRESET_REGISTRATION_OWNER } from '../registration.js';
|
|
3
|
+
import { PRESET_SYSTEM_PROPERTY_KEYS } from '../system-property-keys.js';
|
|
4
|
+
const unregisterRegistration = (core, ref) => {
|
|
5
|
+
switch (ref.kind) {
|
|
6
|
+
case 'component':
|
|
7
|
+
core.unregisterComponent(ref.key);
|
|
8
|
+
return;
|
|
9
|
+
case 'feature':
|
|
10
|
+
core.unregisterFeature(ref.key);
|
|
11
|
+
return;
|
|
12
|
+
case 'property':
|
|
13
|
+
core.unregisterPropertyType(ref.key);
|
|
14
|
+
return;
|
|
15
|
+
case 'render-strategy':
|
|
16
|
+
core.unregisterRenderStrategy(ref.key);
|
|
17
|
+
return;
|
|
18
|
+
case 'ui-property':
|
|
19
|
+
core.unregisterUIProperty(ref.key);
|
|
20
|
+
return;
|
|
21
|
+
default:
|
|
22
|
+
throw new Error(`Preset registration "${ref.kind}:${ref.key}" has no cleanup owner`);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export const createOwnedStateCleanup = (core) => {
|
|
26
|
+
const registrationsBefore = new Set(core.getRegistrations().map(({ ref }) => getRegistrationRefKey(ref)));
|
|
27
|
+
const systemPropertiesBefore = new Set(PRESET_SYSTEM_PROPERTY_KEYS.filter((key) => core.hasSystemProperty(key)));
|
|
28
|
+
let pendingRegistrations = null;
|
|
29
|
+
let pendingSystemProperties = null;
|
|
30
|
+
return () => {
|
|
31
|
+
pendingRegistrations ?? (pendingRegistrations = core
|
|
32
|
+
.getRegistrations()
|
|
33
|
+
.filter(({ ref, owner }) => !registrationsBefore.has(getRegistrationRefKey(ref)) &&
|
|
34
|
+
owner.packageName === PRESET_REGISTRATION_OWNER.packageName &&
|
|
35
|
+
owner.name === PRESET_REGISTRATION_OWNER.name)
|
|
36
|
+
.map(({ ref }) => ref));
|
|
37
|
+
pendingSystemProperties ?? (pendingSystemProperties = PRESET_SYSTEM_PROPERTY_KEYS.filter((key) => !systemPropertiesBefore.has(key) && core.hasSystemProperty(key)));
|
|
38
|
+
const failures = [];
|
|
39
|
+
for (let index = pendingRegistrations.length - 1; index >= 0; index--) {
|
|
40
|
+
const ref = pendingRegistrations[index];
|
|
41
|
+
try {
|
|
42
|
+
const registration = core.getRegistration(ref);
|
|
43
|
+
if (registration &&
|
|
44
|
+
registration.owner.packageName ===
|
|
45
|
+
PRESET_REGISTRATION_OWNER.packageName &&
|
|
46
|
+
registration.owner.name === PRESET_REGISTRATION_OWNER.name) {
|
|
47
|
+
unregisterRegistration(core, ref);
|
|
48
|
+
}
|
|
49
|
+
pendingRegistrations.splice(index, 1);
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
failures.push(error);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
for (let index = pendingSystemProperties.length - 1; index >= 0; index--) {
|
|
56
|
+
const key = pendingSystemProperties[index];
|
|
57
|
+
try {
|
|
58
|
+
if (core.hasSystemProperty(key)) {
|
|
59
|
+
core.unregisterSystemProperty(key);
|
|
60
|
+
}
|
|
61
|
+
pendingSystemProperties.splice(index, 1);
|
|
62
|
+
}
|
|
63
|
+
catch (error) {
|
|
64
|
+
failures.push(error);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (failures.length > 0) {
|
|
68
|
+
throw failures[0];
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=owned-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"owned-state.js","sourceRoot":"","sources":["../../src/defaults/owned-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAwB,MAAM,cAAc,CAAA;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAA;AAGxE,MAAM,sBAAsB,GAAG,CAC7B,IAAoB,EACpB,GAAoB,EACd,EAAE;IACR,QAAQ,GAAG,CAAC,IAAI,EAAE,CAAC;QACjB,KAAK,WAAW;YACd,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YACjC,OAAM;QACR,KAAK,SAAS;YACZ,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YAC/B,OAAM;QACR,KAAK,UAAU;YACb,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YACpC,OAAM;QACR,KAAK,iBAAiB;YACpB,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YACtC,OAAM;QACR,KAAK,aAAa;YAChB,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YAClC,OAAM;QACR;YACE,MAAM,IAAI,KAAK,CACb,wBAAwB,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,GAAG,wBAAwB,CACpE,CAAA;IACL,CAAC;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,IAAoB,EAAgB,EAAE;IAC5E,MAAM,mBAAmB,GAAG,IAAI,GAAG,CACjC,IAAI,CAAC,gBAAgB,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CACrE,CAAA;IACD,MAAM,sBAAsB,GAAG,IAAI,GAAG,CACpC,2BAA2B,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CACzE,CAAA;IACD,IAAI,oBAAoB,GAA6B,IAAI,CAAA;IACzD,IAAI,uBAAuB,GAAoB,IAAI,CAAA;IAEnD,OAAO,GAAG,EAAE;QACV,oBAAoB,KAApB,oBAAoB,GAAK,IAAI;aAC1B,gBAAgB,EAAE;aAClB,MAAM,CACL,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,CACjB,CAAC,mBAAmB,CAAC,GAAG,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC;YACpD,KAAK,CAAC,WAAW,KAAK,yBAAyB,CAAC,WAAW;YAC3D,KAAK,CAAC,IAAI,KAAK,yBAAyB,CAAC,IAAI,CAChD;aACA,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,EAAA;QACxB,uBAAuB,KAAvB,uBAAuB,GAAK,2BAA2B,CAAC,MAAM,CAC5D,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,sBAAsB,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,CACzE,EAAA;QAED,MAAM,QAAQ,GAAc,EAAE,CAAA;QAC9B,KAAK,IAAI,KAAK,GAAG,oBAAoB,CAAC,MAAM,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;YACtE,MAAM,GAAG,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAA;YACvC,IAAI,CAAC;gBACH,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAA;gBAC9C,IACE,YAAY;oBACZ,YAAY,CAAC,KAAK,CAAC,WAAW;wBAC5B,yBAAyB,CAAC,WAAW;oBACvC,YAAY,CAAC,KAAK,CAAC,IAAI,KAAK,yBAAyB,CAAC,IAAI,EAC1D,CAAC;oBACD,sBAAsB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;gBACnC,CAAC;gBACD,oBAAoB,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;YACvC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YACtB,CAAC;QACH,CAAC;QACD,KAAK,IAAI,KAAK,GAAG,uBAAuB,CAAC,MAAM,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;YACzE,MAAM,GAAG,GAAG,uBAAuB,CAAC,KAAK,CAAC,CAAA;YAC1C,IAAI,CAAC;gBACH,IAAI,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;oBAChC,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAA;gBACpC,CAAC;gBACD,uBAAuB,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;YAC1C,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YACtB,CAAC;QACH,CAAC;QAED,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACxB,MAAM,QAAQ,CAAC,CAAC,CAAC,CAAA;QACnB,CAAC;IACH,CAAC,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private-manager.d.ts","sourceRoot":"","sources":["../../src/defaults/private-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,YAAY,CAAA;AAEnB,eAAO,MAAM,gCAAgC,GAC3C,iBAAiB,qBAAqB,KACrC,0BAaF,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const createPrivatePrerequisiteManager = (registerCleanup) => {
|
|
2
|
+
const acquired = new Set();
|
|
3
|
+
return {
|
|
4
|
+
acquire(key, install) {
|
|
5
|
+
if (acquired.has(key))
|
|
6
|
+
return;
|
|
7
|
+
const cleanup = install();
|
|
8
|
+
acquired.add(key);
|
|
9
|
+
if (typeof cleanup === 'function') {
|
|
10
|
+
registerCleanup(`private:${key}`, cleanup);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=private-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private-manager.js","sourceRoot":"","sources":["../../src/defaults/private-manager.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAC9C,eAAsC,EACV,EAAE;IAC9B,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAU,CAAA;IAElC,OAAO;QACL,OAAO,CAAC,GAAG,EAAE,OAAO;YAClB,IAAI,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC;gBAAE,OAAM;YAC7B,MAAM,OAAO,GAAG,OAAO,EAAE,CAAA;YACzB,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YACjB,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE,CAAC;gBAClC,eAAe,CAAC,WAAW,GAAG,EAAE,EAAE,OAAO,CAAC,CAAA;YAC5C,CAAC;QACH,CAAC;KACF,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PresetCoreAPIs, PresetDependencies } from '../types.js';
|
|
2
|
+
export type RegisterPresetCleanup = (key: string, dispose: () => void) => void;
|
|
3
|
+
export type PrivatePrerequisiteInstaller = () => (() => void) | undefined;
|
|
4
|
+
export interface PrivatePrerequisiteManager {
|
|
5
|
+
acquire(key: string, install: PrivatePrerequisiteInstaller): void;
|
|
6
|
+
}
|
|
7
|
+
export interface PresetDefaultInstallContext {
|
|
8
|
+
readonly core: PresetCoreAPIs;
|
|
9
|
+
readonly dependencies: PresetDependencies;
|
|
10
|
+
readonly privatePrerequisites: PrivatePrerequisiteManager;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/defaults/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAErE,MAAM,MAAM,qBAAqB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK,IAAI,CAAA;AAE9E,MAAM,MAAM,4BAA4B,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;AAEzE,MAAM,WAAW,0BAA0B;IACzC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,4BAA4B,GAAG,IAAI,CAAA;CAClE;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAA;IAC7B,QAAQ,CAAC,YAAY,EAAE,kBAAkB,CAAA;IACzC,QAAQ,CAAC,oBAAoB,EAAE,0BAA0B,CAAA;CAC1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/defaults/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const InputSystemEvents: {
|
|
2
|
+
readonly INPUT_DRAG: "input.drag";
|
|
3
|
+
readonly INPUT_DRAG_START: "input.drag.start";
|
|
4
|
+
readonly INPUT_DRAG_UPDATE: "input.drag.update";
|
|
5
|
+
readonly INPUT_DRAG_END: "input.drag.end";
|
|
6
|
+
readonly INPUT_DOUBLE_CLICK: "input.double.click";
|
|
7
|
+
readonly INPUT_MOUSE_MOVE: "input.mouse.move";
|
|
8
|
+
readonly INPUT_WHEEL_SCROLL: "input.wheel.scroll";
|
|
9
|
+
readonly INPUT_SHORTCUT_ARROW: "input.shortcut.arrow";
|
|
10
|
+
readonly INPUT_SHORTCUT_UNDOREDO: "input.shortcut.undoredo";
|
|
11
|
+
readonly INPUT_SHORTCUT_ZOOM_PRESET: "input.shortcut.zoomPreset";
|
|
12
|
+
readonly INPUT_SHORTCUT_SWITCH_PRIMARY_TOOL: "input.shortcut.switchPrimaryTool";
|
|
13
|
+
readonly INPUT_SHORTCUT_ENTER: "input.shortcut.enter";
|
|
14
|
+
readonly INPUT_SHORTCUT_CANCEL: "input.shortcut.cancel";
|
|
15
|
+
readonly INPUT_SHORTCUT_DELETE: "input.shortcut.delete";
|
|
16
|
+
readonly INPUT_SHORTCUT_SELECT_ELEMENTS: "input.shortcut.selectElements";
|
|
17
|
+
};
|
|
18
|
+
export type InputSystemEventName = (typeof InputSystemEvents)[keyof typeof InputSystemEvents];
|
|
19
|
+
//# sourceMappingURL=input-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-events.d.ts","sourceRoot":"","sources":["../../src/events/input-events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;CAgBpB,CAAA;AAEV,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const InputSystemEvents = {
|
|
2
|
+
INPUT_DRAG: 'input.drag',
|
|
3
|
+
INPUT_DRAG_START: 'input.drag.start',
|
|
4
|
+
INPUT_DRAG_UPDATE: 'input.drag.update',
|
|
5
|
+
INPUT_DRAG_END: 'input.drag.end',
|
|
6
|
+
INPUT_DOUBLE_CLICK: 'input.double.click',
|
|
7
|
+
INPUT_MOUSE_MOVE: 'input.mouse.move',
|
|
8
|
+
INPUT_WHEEL_SCROLL: 'input.wheel.scroll',
|
|
9
|
+
INPUT_SHORTCUT_ARROW: 'input.shortcut.arrow',
|
|
10
|
+
INPUT_SHORTCUT_UNDOREDO: 'input.shortcut.undoredo',
|
|
11
|
+
INPUT_SHORTCUT_ZOOM_PRESET: 'input.shortcut.zoomPreset',
|
|
12
|
+
INPUT_SHORTCUT_SWITCH_PRIMARY_TOOL: 'input.shortcut.switchPrimaryTool',
|
|
13
|
+
INPUT_SHORTCUT_ENTER: 'input.shortcut.enter',
|
|
14
|
+
INPUT_SHORTCUT_CANCEL: 'input.shortcut.cancel',
|
|
15
|
+
INPUT_SHORTCUT_DELETE: 'input.shortcut.delete',
|
|
16
|
+
INPUT_SHORTCUT_SELECT_ELEMENTS: 'input.shortcut.selectElements'
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=input-events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-events.js","sourceRoot":"","sources":["../../src/events/input-events.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,UAAU,EAAE,YAAY;IACxB,gBAAgB,EAAE,kBAAkB;IACpC,iBAAiB,EAAE,mBAAmB;IACtC,cAAc,EAAE,gBAAgB;IAChC,kBAAkB,EAAE,oBAAoB;IACxC,gBAAgB,EAAE,kBAAkB;IACpC,kBAAkB,EAAE,oBAAoB;IACxC,oBAAoB,EAAE,sBAAsB;IAC5C,uBAAuB,EAAE,yBAAyB;IAClD,0BAA0B,EAAE,2BAA2B;IACvD,kCAAkC,EAAE,kCAAkC;IACtE,oBAAoB,EAAE,sBAAsB;IAC5C,qBAAqB,EAAE,uBAAuB;IAC9C,qBAAqB,EAAE,uBAAuB;IAC9C,8BAA8B,EAAE,+BAA+B;CACvD,CAAA"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { type EventDefinition } from '@asyra/core';
|
|
2
|
+
type EventNamesMap = Record<string, string>;
|
|
3
|
+
type DefinitionsFromNames<TNames extends EventNamesMap> = {
|
|
4
|
+
[K in keyof TNames]: EventDefinition<unknown, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const PresetEventNames: {
|
|
7
|
+
readonly INPUT_DRAG: "input.drag";
|
|
8
|
+
readonly INPUT_DRAG_START: "input.drag.start";
|
|
9
|
+
readonly INPUT_DRAG_UPDATE: "input.drag.update";
|
|
10
|
+
readonly INPUT_DRAG_END: "input.drag.end";
|
|
11
|
+
readonly INPUT_DOUBLE_CLICK: "input.double.click";
|
|
12
|
+
readonly INPUT_MOUSE_MOVE: "input.mouse.move";
|
|
13
|
+
readonly INPUT_WHEEL_SCROLL: "input.wheel.scroll";
|
|
14
|
+
readonly INPUT_SHORTCUT_ARROW: "input.shortcut.arrow";
|
|
15
|
+
readonly INPUT_SHORTCUT_UNDOREDO: "input.shortcut.undoredo";
|
|
16
|
+
readonly INPUT_SHORTCUT_ZOOM_PRESET: "input.shortcut.zoomPreset";
|
|
17
|
+
readonly INPUT_SHORTCUT_SWITCH_PRIMARY_TOOL: "input.shortcut.switchPrimaryTool";
|
|
18
|
+
readonly INPUT_SHORTCUT_ENTER: "input.shortcut.enter";
|
|
19
|
+
readonly INPUT_SHORTCUT_CANCEL: "input.shortcut.cancel";
|
|
20
|
+
readonly INPUT_SHORTCUT_DELETE: "input.shortcut.delete";
|
|
21
|
+
readonly INPUT_SHORTCUT_SELECT_ELEMENTS: "input.shortcut.selectElements";
|
|
22
|
+
readonly POINTER_HOVER: import("@asyra/reactive-events").RendererEventTypes.POINTER_HOVER;
|
|
23
|
+
readonly POINTER_LEAVE: import("@asyra/reactive-events").RendererEventTypes.POINTER_LEAVE;
|
|
24
|
+
readonly POINTER_DOWN: import("@asyra/reactive-events").RendererEventTypes.POINTER_DOWN;
|
|
25
|
+
readonly POINTER_MOVE: import("@asyra/reactive-events").RendererEventTypes.POINTER_MOVE;
|
|
26
|
+
readonly POINTER_UP: import("@asyra/reactive-events").RendererEventTypes.POINTER_UP;
|
|
27
|
+
readonly POINTER_CAPTURE_START: import("@asyra/reactive-events").RendererEventTypes.POINTER_CAPTURE_START;
|
|
28
|
+
readonly POINTER_CAPTURE_END: import("@asyra/reactive-events").RendererEventTypes.POINTER_CAPTURE_END;
|
|
29
|
+
readonly SWITCH_INPUT_SYSTEM_WATCHED_ELEMENT: import("@asyra/reactive-events").InputSystemEventTypes.SWITCH_INPUT_SYSTEM_WATCHED_ELEMENT;
|
|
30
|
+
readonly PROPS_LOAD_DATA: import("@asyra/reactive-events").PropsEventTypes.PROPS_LOAD_DATA;
|
|
31
|
+
readonly PROPS_SAVE_DATA: import("@asyra/reactive-events").PropsEventTypes.PROPS_SAVE_DATA;
|
|
32
|
+
readonly FINISH_PROPS_SAVE_DATA: import("@asyra/reactive-events").PropsEventTypes.FINISH_PROPS_SAVE_DATA;
|
|
33
|
+
readonly ADD_PROPERTY: import("@asyra/reactive-events").PropsEventTypes.ADD_PROPERTY;
|
|
34
|
+
readonly REMOVE_PROPERTY: import("@asyra/reactive-events").PropsEventTypes.REMOVE_PROPERTY;
|
|
35
|
+
readonly UPDATE_PROPERTY: import("@asyra/reactive-events").PropsEventTypes.UPDATE_PROPERTY;
|
|
36
|
+
readonly START_TRANSACTION: import("@asyra/reactive-events").TransactionEventTypes.START_TRANSACTION;
|
|
37
|
+
readonly UPDATE_TRANSACTION: import("@asyra/reactive-events").TransactionEventTypes.UPDATE_TRANSACTION;
|
|
38
|
+
readonly END_TRANSACTION: import("@asyra/reactive-events").TransactionEventTypes.END_TRANSACTION;
|
|
39
|
+
readonly USER_ACTION_COMPLETED: import("@asyra/reactive-events").TransactionEventTypes.USER_ACTION_COMPLETED;
|
|
40
|
+
readonly TRANSACTION_STATUS_CHANGED: import("@asyra/reactive-events").TransactionEventTypes.TRANSACTION_STATUS_CHANGED;
|
|
41
|
+
readonly UNDO: import("@asyra/reactive-events").UndoRedoEventTypes.UNDO;
|
|
42
|
+
readonly REDO: import("@asyra/reactive-events").UndoRedoEventTypes.REDO;
|
|
43
|
+
readonly UPDATE_UNDOREDO_STATUS: import("@asyra/reactive-events").UndoRedoEventTypes.UPDATE_UNDOREDO_STATUS;
|
|
44
|
+
readonly SELECT_ELEMENTS: import("@asyra/reactive-events").SelectionEventTypes.SELECT_ELEMENTS;
|
|
45
|
+
readonly SELECT_VECTOR_POINTS: import("@asyra/reactive-events").SelectionEventTypes.SELECT_VECTOR_POINTS;
|
|
46
|
+
readonly SELECT_VECTOR_SEGMENTS: import("@asyra/reactive-events").SelectionEventTypes.SELECT_VECTOR_SEGMENTS;
|
|
47
|
+
readonly ADD_ELEMENT: import("@asyra/reactive-events").ElementEventTypes.ADD_ELEMENT;
|
|
48
|
+
readonly ADD_ELEMENTS: import("@asyra/reactive-events").ElementEventTypes.ADD_ELEMENTS;
|
|
49
|
+
readonly FINISH_ADD_ELEMENT: import("@asyra/reactive-events").ElementEventTypes.FINISH_ADD_ELEMENT;
|
|
50
|
+
readonly REMOVE_ELEMENT: import("@asyra/reactive-events").ElementEventTypes.REMOVE_ELEMENT;
|
|
51
|
+
readonly REMOVE_ELEMENTS: import("@asyra/reactive-events").ElementEventTypes.REMOVE_ELEMENTS;
|
|
52
|
+
readonly MOVE_ELEMENTS: import("@asyra/reactive-events").ElementEventTypes.MOVE_ELEMENTS;
|
|
53
|
+
readonly CHANGE_SUBTREE: import("@asyra/reactive-events").ElementEventTypes.CHANGE_SUBTREE;
|
|
54
|
+
readonly UPDATE_ELEMENT_DATA: import("@asyra/reactive-events").ElementEventTypes.UPDATE_ELEMENT_DATA;
|
|
55
|
+
readonly UPDATE_COMPUTED_DATA: import("@asyra/reactive-events").ElementEventTypes.UPDATE_COMPUTED_DATA;
|
|
56
|
+
readonly UPDATE_COMPUTED_DATA_PATCH: import("@asyra/reactive-events").ElementEventTypes.UPDATE_COMPUTED_DATA_PATCH;
|
|
57
|
+
readonly SCENE_TREE_INIT: import("@asyra/reactive-events").SceneTreeEventTypes.SCENE_TREE_INIT;
|
|
58
|
+
readonly SCENE_TREE_LOAD_DATA: import("@asyra/reactive-events").SceneTreeEventTypes.SCENE_TREE_LOAD_DATA;
|
|
59
|
+
readonly SCENE_TREE_LOAD_COMPLETE: import("@asyra/reactive-events").SceneTreeEventTypes.SCENE_TREE_LOAD_COMPLETE;
|
|
60
|
+
readonly SCENE_TREE_SAVE_DATA: import("@asyra/reactive-events").SceneTreeEventTypes.SCENE_TREE_SAVE_DATA;
|
|
61
|
+
readonly FINISH_SCENE_TREE_SAVE_DATA: import("@asyra/reactive-events").SceneTreeEventTypes.FINISH_SCENE_TREE_SAVE_DATA;
|
|
62
|
+
readonly SCENE_TREE_CHANGED: import("@asyra/reactive-events").SceneTreeEventTypes.SCENE_TREE_CHANGED;
|
|
63
|
+
readonly FILE_LOAD_COMPLETE: import("@asyra/reactive-events").FileEventTypes.FILE_LOAD_COMPLETE;
|
|
64
|
+
readonly INIT_RENDER: import("@asyra/reactive-events").RenderEventTypes.INIT_RENDER;
|
|
65
|
+
readonly EMIT_INIT_RENDER: import("@asyra/reactive-events").RenderEventTypes.EMIT_INIT_RENDER;
|
|
66
|
+
readonly RENDER_IS_READY: import("@asyra/reactive-events").RenderEventTypes.RENDER_IS_READY;
|
|
67
|
+
};
|
|
68
|
+
export type PresetEventName = (typeof PresetEventNames)[keyof typeof PresetEventNames];
|
|
69
|
+
export type PresetEventDefinitions = DefinitionsFromNames<typeof PresetEventNames>;
|
|
70
|
+
export declare const FrameworkEventDefinitions: DefinitionsFromNames<{
|
|
71
|
+
readonly POINTER_HOVER: import("@asyra/reactive-events").RendererEventTypes.POINTER_HOVER;
|
|
72
|
+
readonly POINTER_LEAVE: import("@asyra/reactive-events").RendererEventTypes.POINTER_LEAVE;
|
|
73
|
+
readonly POINTER_DOWN: import("@asyra/reactive-events").RendererEventTypes.POINTER_DOWN;
|
|
74
|
+
readonly POINTER_MOVE: import("@asyra/reactive-events").RendererEventTypes.POINTER_MOVE;
|
|
75
|
+
readonly POINTER_UP: import("@asyra/reactive-events").RendererEventTypes.POINTER_UP;
|
|
76
|
+
readonly POINTER_CAPTURE_START: import("@asyra/reactive-events").RendererEventTypes.POINTER_CAPTURE_START;
|
|
77
|
+
readonly POINTER_CAPTURE_END: import("@asyra/reactive-events").RendererEventTypes.POINTER_CAPTURE_END;
|
|
78
|
+
readonly SWITCH_INPUT_SYSTEM_WATCHED_ELEMENT: import("@asyra/reactive-events").InputSystemEventTypes.SWITCH_INPUT_SYSTEM_WATCHED_ELEMENT;
|
|
79
|
+
readonly PROPS_LOAD_DATA: import("@asyra/reactive-events").PropsEventTypes.PROPS_LOAD_DATA;
|
|
80
|
+
readonly PROPS_SAVE_DATA: import("@asyra/reactive-events").PropsEventTypes.PROPS_SAVE_DATA;
|
|
81
|
+
readonly FINISH_PROPS_SAVE_DATA: import("@asyra/reactive-events").PropsEventTypes.FINISH_PROPS_SAVE_DATA;
|
|
82
|
+
readonly ADD_PROPERTY: import("@asyra/reactive-events").PropsEventTypes.ADD_PROPERTY;
|
|
83
|
+
readonly REMOVE_PROPERTY: import("@asyra/reactive-events").PropsEventTypes.REMOVE_PROPERTY;
|
|
84
|
+
readonly UPDATE_PROPERTY: import("@asyra/reactive-events").PropsEventTypes.UPDATE_PROPERTY;
|
|
85
|
+
readonly START_TRANSACTION: import("@asyra/reactive-events").TransactionEventTypes.START_TRANSACTION;
|
|
86
|
+
readonly UPDATE_TRANSACTION: import("@asyra/reactive-events").TransactionEventTypes.UPDATE_TRANSACTION;
|
|
87
|
+
readonly END_TRANSACTION: import("@asyra/reactive-events").TransactionEventTypes.END_TRANSACTION;
|
|
88
|
+
readonly USER_ACTION_COMPLETED: import("@asyra/reactive-events").TransactionEventTypes.USER_ACTION_COMPLETED;
|
|
89
|
+
readonly TRANSACTION_STATUS_CHANGED: import("@asyra/reactive-events").TransactionEventTypes.TRANSACTION_STATUS_CHANGED;
|
|
90
|
+
readonly UNDO: import("@asyra/reactive-events").UndoRedoEventTypes.UNDO;
|
|
91
|
+
readonly REDO: import("@asyra/reactive-events").UndoRedoEventTypes.REDO;
|
|
92
|
+
readonly UPDATE_UNDOREDO_STATUS: import("@asyra/reactive-events").UndoRedoEventTypes.UPDATE_UNDOREDO_STATUS;
|
|
93
|
+
readonly SELECT_ELEMENTS: import("@asyra/reactive-events").SelectionEventTypes.SELECT_ELEMENTS;
|
|
94
|
+
readonly SELECT_VECTOR_POINTS: import("@asyra/reactive-events").SelectionEventTypes.SELECT_VECTOR_POINTS;
|
|
95
|
+
readonly SELECT_VECTOR_SEGMENTS: import("@asyra/reactive-events").SelectionEventTypes.SELECT_VECTOR_SEGMENTS;
|
|
96
|
+
readonly ADD_ELEMENT: import("@asyra/reactive-events").ElementEventTypes.ADD_ELEMENT;
|
|
97
|
+
readonly ADD_ELEMENTS: import("@asyra/reactive-events").ElementEventTypes.ADD_ELEMENTS;
|
|
98
|
+
readonly FINISH_ADD_ELEMENT: import("@asyra/reactive-events").ElementEventTypes.FINISH_ADD_ELEMENT;
|
|
99
|
+
readonly REMOVE_ELEMENT: import("@asyra/reactive-events").ElementEventTypes.REMOVE_ELEMENT;
|
|
100
|
+
readonly REMOVE_ELEMENTS: import("@asyra/reactive-events").ElementEventTypes.REMOVE_ELEMENTS;
|
|
101
|
+
readonly MOVE_ELEMENTS: import("@asyra/reactive-events").ElementEventTypes.MOVE_ELEMENTS;
|
|
102
|
+
readonly CHANGE_SUBTREE: import("@asyra/reactive-events").ElementEventTypes.CHANGE_SUBTREE;
|
|
103
|
+
readonly UPDATE_ELEMENT_DATA: import("@asyra/reactive-events").ElementEventTypes.UPDATE_ELEMENT_DATA;
|
|
104
|
+
readonly UPDATE_COMPUTED_DATA: import("@asyra/reactive-events").ElementEventTypes.UPDATE_COMPUTED_DATA;
|
|
105
|
+
readonly UPDATE_COMPUTED_DATA_PATCH: import("@asyra/reactive-events").ElementEventTypes.UPDATE_COMPUTED_DATA_PATCH;
|
|
106
|
+
readonly SCENE_TREE_INIT: import("@asyra/reactive-events").SceneTreeEventTypes.SCENE_TREE_INIT;
|
|
107
|
+
readonly SCENE_TREE_LOAD_DATA: import("@asyra/reactive-events").SceneTreeEventTypes.SCENE_TREE_LOAD_DATA;
|
|
108
|
+
readonly SCENE_TREE_LOAD_COMPLETE: import("@asyra/reactive-events").SceneTreeEventTypes.SCENE_TREE_LOAD_COMPLETE;
|
|
109
|
+
readonly SCENE_TREE_SAVE_DATA: import("@asyra/reactive-events").SceneTreeEventTypes.SCENE_TREE_SAVE_DATA;
|
|
110
|
+
readonly FINISH_SCENE_TREE_SAVE_DATA: import("@asyra/reactive-events").SceneTreeEventTypes.FINISH_SCENE_TREE_SAVE_DATA;
|
|
111
|
+
readonly SCENE_TREE_CHANGED: import("@asyra/reactive-events").SceneTreeEventTypes.SCENE_TREE_CHANGED;
|
|
112
|
+
readonly FILE_LOAD_COMPLETE: import("@asyra/reactive-events").FileEventTypes.FILE_LOAD_COMPLETE;
|
|
113
|
+
readonly INIT_RENDER: import("@asyra/reactive-events").RenderEventTypes.INIT_RENDER;
|
|
114
|
+
readonly EMIT_INIT_RENDER: import("@asyra/reactive-events").RenderEventTypes.EMIT_INIT_RENDER;
|
|
115
|
+
readonly RENDER_IS_READY: import("@asyra/reactive-events").RenderEventTypes.RENDER_IS_READY;
|
|
116
|
+
}>;
|
|
117
|
+
export declare const BasicInputEventDefinitions: DefinitionsFromNames<{
|
|
118
|
+
readonly INPUT_DRAG: "input.drag";
|
|
119
|
+
readonly INPUT_DRAG_START: "input.drag.start";
|
|
120
|
+
readonly INPUT_DRAG_UPDATE: "input.drag.update";
|
|
121
|
+
readonly INPUT_DRAG_END: "input.drag.end";
|
|
122
|
+
readonly INPUT_DOUBLE_CLICK: "input.double.click";
|
|
123
|
+
readonly INPUT_MOUSE_MOVE: "input.mouse.move";
|
|
124
|
+
readonly INPUT_WHEEL_SCROLL: "input.wheel.scroll";
|
|
125
|
+
readonly INPUT_SHORTCUT_ARROW: "input.shortcut.arrow";
|
|
126
|
+
readonly INPUT_SHORTCUT_UNDOREDO: "input.shortcut.undoredo";
|
|
127
|
+
readonly INPUT_SHORTCUT_ZOOM_PRESET: "input.shortcut.zoomPreset";
|
|
128
|
+
readonly INPUT_SHORTCUT_SWITCH_PRIMARY_TOOL: "input.shortcut.switchPrimaryTool";
|
|
129
|
+
readonly INPUT_SHORTCUT_ENTER: "input.shortcut.enter";
|
|
130
|
+
readonly INPUT_SHORTCUT_CANCEL: "input.shortcut.cancel";
|
|
131
|
+
readonly INPUT_SHORTCUT_DELETE: "input.shortcut.delete";
|
|
132
|
+
readonly INPUT_SHORTCUT_SELECT_ELEMENTS: "input.shortcut.selectElements";
|
|
133
|
+
}>;
|
|
134
|
+
export declare const PresetEventDefinitions: PresetEventDefinitions;
|
|
135
|
+
export {};
|
|
136
|
+
//# sourceMappingURL=preset-event-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-event-names.d.ts","sourceRoot":"","sources":["../../src/events/preset-event-names.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,eAAe,EAAE,MAAM,aAAa,CAAA;AAG3E,KAAK,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAE3C,KAAK,oBAAoB,CAAC,MAAM,SAAS,aAAa,IAAI;KACvD,CAAC,IAAI,MAAM,MAAM,GAAG,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC;CACvD,CAAA;AAcD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAA;AAEV,MAAM,MAAM,eAAe,GACzB,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAA;AAE1D,MAAM,MAAM,sBAAsB,GAAG,oBAAoB,CACvD,OAAO,gBAAgB,CACxB,CAAA;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACM,CAAA;AAC5C,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;EACG,CAAA;AAE1C,eAAO,MAAM,sBAAsB,EAAE,sBAGpC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventTypes, defineEvent } from '@asyra/core';
|
|
2
|
+
import { InputSystemEvents } from './input-events.js';
|
|
3
|
+
const defineEventsFromNames = (names) => Object.fromEntries(Object.entries(names).map(([key, eventName]) => [
|
|
4
|
+
key,
|
|
5
|
+
defineEvent(eventName)
|
|
6
|
+
]));
|
|
7
|
+
const FrameworkEventNames = EventTypes;
|
|
8
|
+
export const PresetEventNames = {
|
|
9
|
+
...FrameworkEventNames,
|
|
10
|
+
...InputSystemEvents
|
|
11
|
+
};
|
|
12
|
+
export const FrameworkEventDefinitions = defineEventsFromNames(FrameworkEventNames);
|
|
13
|
+
export const BasicInputEventDefinitions = defineEventsFromNames(InputSystemEvents);
|
|
14
|
+
export const PresetEventDefinitions = {
|
|
15
|
+
...FrameworkEventDefinitions,
|
|
16
|
+
...BasicInputEventDefinitions
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=preset-event-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-event-names.js","sourceRoot":"","sources":["../../src/events/preset-event-names.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAwB,MAAM,aAAa,CAAA;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAQrD,MAAM,qBAAqB,GAAG,CAC5B,KAAa,EACiB,EAAE,CAChC,MAAM,CAAC,WAAW,CAChB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,CAAC,EAAE,EAAE,CAAC;IAC9C,GAAG;IACH,WAAW,CAAC,SAAS,CAAC;CACvB,CAAC,CAC6B,CAAA;AAEnC,MAAM,mBAAmB,GAAG,UAAU,CAAA;AAEtC,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,mBAAmB;IACtB,GAAG,iBAAiB;CACZ,CAAA;AASV,MAAM,CAAC,MAAM,yBAAyB,GACpC,qBAAqB,CAAC,mBAAmB,CAAC,CAAA;AAC5C,MAAM,CAAC,MAAM,0BAA0B,GACrC,qBAAqB,CAAC,iBAAiB,CAAC,CAAA;AAE1C,MAAM,CAAC,MAAM,sBAAsB,GAA2B;IAC5D,GAAG,yBAAyB;IAC5B,GAAG,0BAA0B;CAC9B,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EventDefinition } from '@asyra/core';
|
|
2
|
+
import type { PresetCoreAPIs } from '../types.js';
|
|
3
|
+
export declare const registerEvents: (core: Pick<PresetCoreAPIs, "registerEvent" | "unregisterEvent">, onCleanupReady?: (dispose: () => void) => void, definitions?: readonly EventDefinition[]) => (() => void);
|
|
4
|
+
//# sourceMappingURL=register-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-events.d.ts","sourceRoot":"","sources":["../../src/events/register-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAGjD,eAAO,MAAM,cAAc,GACzB,MAAM,IAAI,CAAC,cAAc,EAAE,eAAe,GAAG,iBAAiB,CAAC,EAC/D,iBAAiB,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,IAAI,EAC9C,cAAa,SAAS,eAAe,EAEpC,KACA,CAAC,MAAM,IAAI,CA0Bb,CAAA"}
|