@fps-games/editor 0.2.1-beta.3 → 0.2.1-beta.4
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/dist/build-info.json +44 -44
- package/dist/editor-commands/capabilities/assets.d.ts +8 -0
- package/dist/editor-commands/capabilities/assets.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/capabilities/assets.js +41 -41
- package/dist/editor-commands/capabilities/assets.js.map +1 -0
- package/dist/editor-commands/capabilities/editor-state.d.ts +5 -0
- package/dist/editor-commands/capabilities/editor-state.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/capabilities/editor-state.js +22 -22
- package/dist/editor-commands/capabilities/editor-state.js.map +1 -0
- package/dist/editor-commands/capabilities/hierarchy.d.ts +4 -0
- package/dist/editor-commands/capabilities/hierarchy.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/capabilities/hierarchy.js +5 -5
- package/dist/editor-commands/capabilities/hierarchy.js.map +1 -0
- package/dist/editor-commands/capabilities/host-lifecycle.d.ts +11 -0
- package/dist/editor-commands/capabilities/host-lifecycle.d.ts.map +1 -0
- package/dist/editor-commands/capabilities/host-lifecycle.js +149 -0
- package/dist/editor-commands/capabilities/host-lifecycle.js.map +1 -0
- package/dist/editor-commands/capabilities/prefabs.d.ts +5 -0
- package/dist/editor-commands/capabilities/prefabs.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/capabilities/prefabs.js +93 -93
- package/dist/editor-commands/capabilities/prefabs.js.map +1 -0
- package/dist/editor-commands/capabilities/scene-objects.d.ts +8 -0
- package/dist/editor-commands/capabilities/scene-objects.d.ts.map +1 -0
- package/dist/editor-commands/capabilities/scene-objects.js +480 -0
- package/dist/editor-commands/capabilities/scene-objects.js.map +1 -0
- package/dist/editor-commands/capabilities/selection.d.ts +5 -0
- package/dist/editor-commands/capabilities/selection.d.ts.map +1 -0
- package/dist/editor-commands/capabilities/selection.js +60 -0
- package/dist/editor-commands/capabilities/selection.js.map +1 -0
- package/dist/editor-commands/capabilities/shadows.d.ts +5 -0
- package/dist/editor-commands/capabilities/shadows.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/capabilities/shadows.js +74 -74
- package/dist/editor-commands/capabilities/shadows.js.map +1 -0
- package/dist/editor-commands/capabilities/transform.d.ts +5 -0
- package/dist/editor-commands/capabilities/transform.d.ts.map +1 -0
- package/dist/editor-commands/capabilities/transform.js +164 -0
- package/dist/editor-commands/capabilities/transform.js.map +1 -0
- package/dist/editor-commands/capabilities/ui-regions.d.ts +4 -0
- package/dist/editor-commands/capabilities/ui-regions.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/capabilities/ui-regions.js +55 -57
- package/dist/editor-commands/capabilities/ui-regions.js.map +1 -0
- package/dist/editor-commands/capabilities/viewport.d.ts +5 -0
- package/dist/editor-commands/capabilities/viewport.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/capabilities/viewport.js +100 -100
- package/dist/editor-commands/capabilities/viewport.js.map +1 -0
- package/dist/editor-commands/command-sources.d.ts +7 -0
- package/dist/editor-commands/command-sources.d.ts.map +1 -0
- package/dist/editor-commands/command-sources.js +34 -0
- package/dist/editor-commands/command-sources.js.map +1 -0
- package/dist/editor-commands/diagnostics.d.ts +12 -0
- package/dist/editor-commands/diagnostics.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/diagnostics.js +4 -4
- package/dist/editor-commands/diagnostics.js.map +1 -0
- package/dist/{agent-bridge → editor-commands}/index.d.ts +1 -1
- package/dist/editor-commands/index.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/index.js +1 -1
- package/dist/editor-commands/index.js.map +1 -0
- package/dist/editor-commands/register.d.ts +4 -0
- package/dist/editor-commands/register.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/register.js +323 -286
- package/dist/editor-commands/register.js.map +1 -0
- package/dist/{agent-bridge → editor-commands}/shared.d.ts +80 -80
- package/dist/editor-commands/shared.d.ts.map +1 -0
- package/dist/{agent-bridge → editor-commands}/shared.js +29 -29
- package/dist/editor-commands/shared.js.map +1 -0
- package/dist/editor-commands/source-types.d.ts +110 -0
- package/dist/editor-commands/source-types.d.ts.map +1 -0
- package/dist/editor-commands/source-types.js.map +1 -0
- package/dist/editor-plugin-commands.d.ts +4 -0
- package/dist/editor-plugin-commands.d.ts.map +1 -0
- package/dist/editor-plugin-commands.js +18 -0
- package/dist/editor-plugin-commands.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/local-editor-commands.d.ts +2 -0
- package/dist/local-editor-commands.d.ts.map +1 -0
- package/dist/local-editor-commands.js +2 -0
- package/dist/local-editor-commands.js.map +1 -0
- package/dist/local-editor-harness.d.ts +35 -21
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +1721 -367
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-prefab-stage-transaction.d.ts +2 -1
- package/dist/local-editor-prefab-stage-transaction.d.ts.map +1 -1
- package/dist/local-editor-prefab-stage-transaction.js +6 -5
- package/dist/local-editor-prefab-stage-transaction.js.map +1 -1
- package/dist/local-editor-scene-view-interaction-runtime.d.ts.map +1 -1
- package/dist/local-editor-scene-view-interaction-runtime.js +2 -5
- package/dist/local-editor-scene-view-interaction-runtime.js.map +1 -1
- package/dist/playable-local-editor-entry.d.ts +10 -0
- package/dist/playable-local-editor-entry.d.ts.map +1 -1
- package/dist/playable-local-editor-entry.js +10 -2
- package/dist/playable-local-editor-entry.js.map +1 -1
- package/dist/playable-local-editor-host.d.ts +3 -32
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js +6 -70
- package/dist/playable-local-editor-host.js.map +1 -1
- package/dist/playable-product-local-editor.d.ts +1 -2
- package/dist/playable-product-local-editor.d.ts.map +1 -1
- package/dist/playable-product-local-editor.js +0 -1
- package/dist/playable-product-local-editor.js.map +1 -1
- package/dist/playable-product-projection-preview.d.ts.map +1 -1
- package/dist/playable-product-projection-preview.js +1 -1
- package/dist/playable-product-projection-preview.js.map +1 -1
- package/dist/playable-product-scene-capabilities.d.ts +0 -2
- package/dist/playable-product-scene-capabilities.d.ts.map +1 -1
- package/dist/playable-product-scene-capabilities.js +33 -6
- package/dist/playable-product-scene-capabilities.js.map +1 -1
- package/dist/playable-runtime-babylon.d.ts +4 -0
- package/dist/playable-runtime-babylon.d.ts.map +1 -1
- package/dist/playable-runtime-babylon.js +4 -0
- package/dist/playable-runtime-babylon.js.map +1 -1
- package/dist/playable-sdk.d.ts +1 -1
- package/dist/playable-sdk.d.ts.map +1 -1
- package/dist/playable-sdk.js.map +1 -1
- package/dist/playable-standard-project.d.ts +0 -2
- package/dist/playable-standard-project.d.ts.map +1 -1
- package/dist/playable-standard-project.js +1 -2
- package/dist/playable-standard-project.js.map +1 -1
- package/dist/project-service-projection.d.ts +16 -0
- package/dist/project-service-projection.d.ts.map +1 -0
- package/dist/project-service-projection.js +67 -0
- package/dist/project-service-projection.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts +18 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js +54 -18
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/package.json +9 -9
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js +127 -13
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js +66 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/package.json +6 -6
- package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.d.ts +32 -0
- package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.js +254 -0
- package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts +3 -1
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.js +2 -0
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.d.ts +68 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.js +650 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js +22 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts +8 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js +117 -6
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts +14 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js +100 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts +8 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +75 -2
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +37 -12
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +25 -2
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +332 -107
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/package.json +7 -7
- package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.d.ts +107 -0
- package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.js +1211 -0
- package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.d.ts +34 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.js +260 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.d.ts +9 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.js +14 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-observability.d.ts +18 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-observability.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-observability.js +113 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-observability.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-system.d.ts +82 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-system.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-system.js +1098 -0
- package/node_modules/@fps-games/editor-core/dist/editor-command-system.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts +6 -7
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js +62 -103
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.d.ts +30 -0
- package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.js +540 -0
- package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-session-authority.d.ts +9 -0
- package/node_modules/@fps-games/editor-core/dist/editor-session-authority.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-session-authority.js +61 -0
- package/node_modules/@fps-games/editor-core/dist/editor-session-authority.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts +55 -0
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.js +247 -6
- package/node_modules/@fps-games/editor-core/dist/editor-session.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/index.d.ts +6 -2
- package/node_modules/@fps-games/editor-core/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/index.js +6 -2
- package/node_modules/@fps-games/editor-core/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-core/package.json +6 -6
- package/node_modules/@fps-games/editor-forge-play/dist/index.d.ts +0 -1
- package/node_modules/@fps-games/editor-forge-play/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-forge-play/dist/index.js +0 -1
- package/node_modules/@fps-games/editor-forge-play/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js +41 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts +27 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js +214 -7
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js +11 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts +2 -4
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js +0 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js +77 -31
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts +8 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.d.ts +21 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.js +90 -4
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.d.ts +27 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js +161 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.d.ts +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.js +5 -92
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.js +26 -9
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.js +19 -8
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.js +16 -4
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js +12 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.js +10 -5
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts +17 -82
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js +53 -57
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-session.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-session.js +3 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-session.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.d.ts +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.js +256 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js +7 -5
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js +134 -12
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js +47 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.d.ts +27 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.js +592 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts +3 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js +61 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts +0 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js +1 -10
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js +21 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.d.ts +13 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.js +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.d.ts +28 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.js +863 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/package.json +6 -6
- package/node_modules/@fps-games/editor-protocol/dist/editor-command-capabilities.d.ts +1626 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command-capabilities.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/{agent-bridge.js → editor-command-capabilities.js} +766 -620
- package/node_modules/@fps-games/editor-protocol/dist/editor-command-capabilities.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.d.ts +69 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.js +22 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command.d.ts +136 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command.js +2 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-command.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-service.d.ts +225 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-service.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-service.js +4 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-service.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts +6 -3
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/index.js +6 -3
- package/node_modules/@fps-games/editor-protocol/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/package.json +2 -2
- package/node_modules/@fps-games/editor-tooling/package.json +3 -3
- package/node_modules/@fps-games/editor-ui/package.json +1 -1
- package/node_modules/@fps-games/playable-assets/package.json +1 -1
- package/node_modules/@fps-games/playable-contracts/package.json +1 -1
- package/node_modules/@fps-games/playable-rendering/package.json +2 -2
- package/node_modules/@fps-games/playable-runtime/package.json +12 -12
- package/node_modules/@fps-games/playable-runtime-data/package.json +4 -4
- package/node_modules/@fps-games/playable-scene/package.json +2 -2
- package/node_modules/@fps-games/plugin-api/package.json +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-assets/package.json +6 -6
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts.map +1 -1
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js +78 -4
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js.map +1 -1
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-hierarchy/package.json +5 -5
- package/node_modules/@fps-games/plugin-host/package.json +2 -2
- package/node_modules/@fps-games/plugin-markers/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-markers/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-markers/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-markers/package.json +5 -5
- package/node_modules/@fps-games/plugin-materials/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-materials/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-materials/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-materials/package.json +5 -5
- package/node_modules/@fps-games/plugin-rendering/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-rendering/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-rendering/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-rendering/package.json +5 -5
- package/node_modules/@fps-games/plugin-scene/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-scene/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-scene/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-scene/package.json +5 -5
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-shadow-map-experiment/package.json +5 -5
- package/node_modules/@fps-games/plugin-shadows/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-shadows/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-shadows/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-shadows/package.json +7 -7
- package/package.json +23 -23
- package/dist/agent-bridge/capabilities/assets.d.ts +0 -8
- package/dist/agent-bridge/capabilities/assets.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/assets.js.map +0 -1
- package/dist/agent-bridge/capabilities/editor-state.d.ts +0 -5
- package/dist/agent-bridge/capabilities/editor-state.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/editor-state.js.map +0 -1
- package/dist/agent-bridge/capabilities/hierarchy.d.ts +0 -4
- package/dist/agent-bridge/capabilities/hierarchy.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/hierarchy.js.map +0 -1
- package/dist/agent-bridge/capabilities/host-lifecycle.d.ts +0 -11
- package/dist/agent-bridge/capabilities/host-lifecycle.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/host-lifecycle.js +0 -149
- package/dist/agent-bridge/capabilities/host-lifecycle.js.map +0 -1
- package/dist/agent-bridge/capabilities/prefabs.d.ts +0 -5
- package/dist/agent-bridge/capabilities/prefabs.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/prefabs.js.map +0 -1
- package/dist/agent-bridge/capabilities/scene-objects.d.ts +0 -8
- package/dist/agent-bridge/capabilities/scene-objects.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/scene-objects.js +0 -480
- package/dist/agent-bridge/capabilities/scene-objects.js.map +0 -1
- package/dist/agent-bridge/capabilities/selection.d.ts +0 -5
- package/dist/agent-bridge/capabilities/selection.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/selection.js +0 -60
- package/dist/agent-bridge/capabilities/selection.js.map +0 -1
- package/dist/agent-bridge/capabilities/shadows.d.ts +0 -5
- package/dist/agent-bridge/capabilities/shadows.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/shadows.js.map +0 -1
- package/dist/agent-bridge/capabilities/transform.d.ts +0 -5
- package/dist/agent-bridge/capabilities/transform.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/transform.js +0 -164
- package/dist/agent-bridge/capabilities/transform.js.map +0 -1
- package/dist/agent-bridge/capabilities/ui-regions.d.ts +0 -4
- package/dist/agent-bridge/capabilities/ui-regions.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/ui-regions.js.map +0 -1
- package/dist/agent-bridge/capabilities/viewport.d.ts +0 -5
- package/dist/agent-bridge/capabilities/viewport.d.ts.map +0 -1
- package/dist/agent-bridge/capabilities/viewport.js.map +0 -1
- package/dist/agent-bridge/capability-sources.d.ts +0 -7
- package/dist/agent-bridge/capability-sources.d.ts.map +0 -1
- package/dist/agent-bridge/capability-sources.js +0 -34
- package/dist/agent-bridge/capability-sources.js.map +0 -1
- package/dist/agent-bridge/diagnostics.d.ts +0 -12
- package/dist/agent-bridge/diagnostics.d.ts.map +0 -1
- package/dist/agent-bridge/diagnostics.js.map +0 -1
- package/dist/agent-bridge/index.d.ts.map +0 -1
- package/dist/agent-bridge/index.js.map +0 -1
- package/dist/agent-bridge/register.d.ts +0 -4
- package/dist/agent-bridge/register.d.ts.map +0 -1
- package/dist/agent-bridge/register.js.map +0 -1
- package/dist/agent-bridge/shared.d.ts.map +0 -1
- package/dist/agent-bridge/shared.js.map +0 -1
- package/dist/agent-bridge/source-types.d.ts +0 -110
- package/dist/agent-bridge/source-types.d.ts.map +0 -1
- package/dist/agent-bridge/source-types.js.map +0 -1
- package/dist/editor-plugin-agent-capabilities.d.ts +0 -4
- package/dist/editor-plugin-agent-capabilities.d.ts.map +0 -1
- package/dist/editor-plugin-agent-capabilities.js +0 -64
- package/dist/editor-plugin-agent-capabilities.js.map +0 -1
- package/dist/local-editor-agent-actions.d.ts +0 -43
- package/dist/local-editor-agent-actions.d.ts.map +0 -1
- package/dist/local-editor-agent-actions.js +0 -321
- package/dist/local-editor-agent-actions.js.map +0 -1
- package/dist/local-editor-agent-bridge-transport.d.ts +0 -129
- package/dist/local-editor-agent-bridge-transport.d.ts.map +0 -1
- package/dist/local-editor-agent-bridge-transport.js +0 -403
- package/dist/local-editor-agent-bridge-transport.js.map +0 -1
- package/dist/local-editor-agent-bridge.d.ts +0 -2
- package/dist/local-editor-agent-bridge.d.ts.map +0 -1
- package/dist/local-editor-agent-bridge.js +0 -2
- package/dist/local-editor-agent-bridge.js.map +0 -1
- package/dist/local-editor-agent-context.d.ts +0 -68
- package/dist/local-editor-agent-context.d.ts.map +0 -1
- package/dist/local-editor-agent-context.js +0 -716
- package/dist/local-editor-agent-context.js.map +0 -1
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.d.ts +0 -22
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.js +0 -106
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.js.map +0 -1
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.d.ts +0 -17
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.js +0 -14
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.js.map +0 -1
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.d.ts +0 -23
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.js +0 -47
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.js.map +0 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.d.ts +0 -112
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.js +0 -159
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.js.map +0 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.d.ts +0 -15
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.js +0 -76
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.js.map +0 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts +0 -1622
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js.map +0 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.d.ts +0 -68
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.js +0 -23
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.js.map +0 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts +0 -187
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent.js +0 -5
- package/node_modules/@fps-games/editor-protocol/dist/agent.js.map +0 -1
- /package/dist/{agent-bridge → editor-commands}/source-types.js +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { claimEditorSessionWriteAuthority, releaseEditorSessionWriteAuthority, runWithEditorSessionWriteAuthority, } from '@fps-games/editor-core';
|
|
2
|
+
export function createProjectServiceProjectionSessionAuthority() {
|
|
3
|
+
const owner = Object.freeze({ kind: 'project-service-projection' });
|
|
4
|
+
let currentSession = null;
|
|
5
|
+
const replace = (session) => {
|
|
6
|
+
if (currentSession === session)
|
|
7
|
+
return;
|
|
8
|
+
if (currentSession)
|
|
9
|
+
releaseEditorSessionWriteAuthority(currentSession, owner);
|
|
10
|
+
currentSession = null;
|
|
11
|
+
if (!session)
|
|
12
|
+
return;
|
|
13
|
+
claimEditorSessionWriteAuthority(session, owner);
|
|
14
|
+
try {
|
|
15
|
+
runWithEditorSessionWriteAuthority(session, owner, () => {
|
|
16
|
+
session.detachDocumentReferencesForWriteAuthority();
|
|
17
|
+
});
|
|
18
|
+
currentSession = session;
|
|
19
|
+
}
|
|
20
|
+
catch (error) {
|
|
21
|
+
releaseEditorSessionWriteAuthority(session, owner);
|
|
22
|
+
throw error;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return Object.freeze({
|
|
26
|
+
replace,
|
|
27
|
+
run(session, mutation) {
|
|
28
|
+
if (currentSession !== session) {
|
|
29
|
+
throw new Error('Project Service projection Session is not current.');
|
|
30
|
+
}
|
|
31
|
+
return runWithEditorSessionWriteAuthority(session, owner, mutation);
|
|
32
|
+
},
|
|
33
|
+
dispose() {
|
|
34
|
+
replace(null);
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
export function classifyProjectServiceSnapshot(projectedServiceInstanceId, projectedDocumentRevision, snapshot) {
|
|
39
|
+
if (projectedServiceInstanceId !== null
|
|
40
|
+
&& projectedServiceInstanceId !== snapshot.serviceInstanceId)
|
|
41
|
+
return 'service-changed';
|
|
42
|
+
if (projectedDocumentRevision !== null
|
|
43
|
+
&& snapshot.documentRevision < projectedDocumentRevision)
|
|
44
|
+
return 'stale';
|
|
45
|
+
return 'eligible';
|
|
46
|
+
}
|
|
47
|
+
export function shouldReplacePendingProjectServiceSnapshot(pending, snapshot) {
|
|
48
|
+
return pending === null
|
|
49
|
+
|| pending.serviceInstanceId !== snapshot.serviceInstanceId
|
|
50
|
+
|| snapshot.documentRevision >= pending.documentRevision;
|
|
51
|
+
}
|
|
52
|
+
export async function waitForProjectServiceOperation(request, initialResponse, options = {}) {
|
|
53
|
+
if (!initialResponse.ok || initialResponse.kind !== 'operation')
|
|
54
|
+
return null;
|
|
55
|
+
let operation = initialResponse.operation;
|
|
56
|
+
const wait = options.wait ?? (timeoutMs => new Promise(resolve => setTimeout(resolve, timeoutMs)));
|
|
57
|
+
while (operation?.status === 'accepted' || operation?.status === 'running') {
|
|
58
|
+
await wait(Math.max(0, options.pollIntervalMs ?? 100));
|
|
59
|
+
const response = await request({ kind: 'operation.get', operationId: operation.operationId });
|
|
60
|
+
if (!response.ok || response.kind !== 'operation' || !response.operation) {
|
|
61
|
+
throw new Error(`Project Editor Service operation status is unavailable; execution may still be running: ${operation.operationId}.`);
|
|
62
|
+
}
|
|
63
|
+
operation = response.operation;
|
|
64
|
+
}
|
|
65
|
+
return operation;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=project-service-projection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-service-projection.js","sourceRoot":"","sources":["../src/project-service-projection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,kCAAkC,GAEnC,MAAM,wBAAwB,CAAC;AAiBhC,MAAM,UAAU,8CAA8C;IAE5D,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,4BAA4B,EAAE,CAAC,CAAC;IACpE,IAAI,cAAc,GAA4C,IAAI,CAAC;IACnE,MAAM,OAAO,GAAG,CAAC,OAAgD,EAAQ,EAAE;QACzE,IAAI,cAAc,KAAK,OAAO;YAAE,OAAO;QACvC,IAAI,cAAc;YAAE,kCAAkC,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QAC9E,cAAc,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,OAAO;YAAE,OAAO;QACrB,gCAAgC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACjD,IAAI,CAAC;YACH,kCAAkC,CAAC,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE;gBACtD,OAAO,CAAC,yCAAyC,EAAE,CAAC;YACtD,CAAC,CAAC,CAAC;YACH,cAAc,GAAG,OAAO,CAAC;QAC3B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,kCAAkC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YACnD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC,CAAC;IACF,OAAO,MAAM,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E,SAAS,CAAC,CAAC,CAAC,CAAC;IACnG,OAAO,SAAS,EAAE,MAAM,KAAK,UAAU,IAAI,SAAS,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;QAC3E,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,cAAc,IAAI,GAAG,CAAC,CAAC,CAAC;QACvD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC;QAC9F,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACzE,MAAM,IAAI,KAAK,CACb,2FAA2F,SAAS,CAAC,WAAW,GAAG,CACpH,CAAC;QACJ,CAAC;QACD,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC;IACjC,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["import {\n claimEditorSessionWriteAuthority,\n releaseEditorSessionWriteAuthority,\n runWithEditorSessionWriteAuthority,\n type EditorSession,\n} from '@fps-games/editor-core';\nimport type { EditorAuthoringSnapshot } from '@fps-games/editor-protocol';\nimport type {\n EditorCommandOperationSnapshot,\n EditorServiceGatewayRequest,\n EditorServiceGatewayResponse,\n} from '@fps-games/editor-protocol';\n\nexport interface ProjectServiceProjectionSessionAuthority<TDocument, TPatch> {\n replace(session: EditorSession<TDocument, TPatch> | null): void;\n run<TResult>(\n session: EditorSession<TDocument, TPatch>,\n mutation: () => TResult,\n ): TResult;\n dispose(): void;\n}\n\nexport function createProjectServiceProjectionSessionAuthority<TDocument, TPatch>():\nProjectServiceProjectionSessionAuthority<TDocument, TPatch> {\n const owner = Object.freeze({ kind: 'project-service-projection' });\n let currentSession: EditorSession<TDocument, TPatch> | null = null;\n const replace = (session: EditorSession<TDocument, TPatch> | null): void => {\n if (currentSession === session) return;\n if (currentSession) releaseEditorSessionWriteAuthority(currentSession, owner);\n currentSession = null;\n if (!session) return;\n claimEditorSessionWriteAuthority(session, owner);\n try {\n runWithEditorSessionWriteAuthority(session, owner, () => {\n session.detachDocumentReferencesForWriteAuthority();\n });\n currentSession = session;\n } catch (error) {\n releaseEditorSessionWriteAuthority(session, owner);\n throw error;\n }\n };\n return Object.freeze({\n replace,\n run<TResult>(\n session: EditorSession<TDocument, TPatch>,\n mutation: () => TResult,\n ): TResult {\n if (currentSession !== session) {\n throw new Error('Project Service projection Session is not current.');\n }\n return runWithEditorSessionWriteAuthority(session, owner, mutation);\n },\n dispose() {\n replace(null);\n },\n });\n}\n\nexport function classifyProjectServiceSnapshot(\n projectedServiceInstanceId: string | null,\n projectedDocumentRevision: number | null,\n snapshot: Pick<EditorAuthoringSnapshot, 'serviceInstanceId' | 'documentRevision'>,\n): 'service-changed' | 'stale' | 'eligible' {\n if (projectedServiceInstanceId !== null\n && projectedServiceInstanceId !== snapshot.serviceInstanceId) return 'service-changed';\n if (projectedDocumentRevision !== null\n && snapshot.documentRevision < projectedDocumentRevision) return 'stale';\n return 'eligible';\n}\n\nexport function shouldReplacePendingProjectServiceSnapshot(\n pending: Pick<EditorAuthoringSnapshot, 'serviceInstanceId' | 'documentRevision'> | null,\n snapshot: Pick<EditorAuthoringSnapshot, 'serviceInstanceId' | 'documentRevision'>,\n): boolean {\n return pending === null\n || pending.serviceInstanceId !== snapshot.serviceInstanceId\n || snapshot.documentRevision >= pending.documentRevision;\n}\n\nexport async function waitForProjectServiceOperation(\n request: (request: EditorServiceGatewayRequest) => Promise<EditorServiceGatewayResponse>,\n initialResponse: EditorServiceGatewayResponse,\n options: { pollIntervalMs?: number; wait?: (timeoutMs: number) => Promise<void> } = {},\n): Promise<EditorCommandOperationSnapshot | null> {\n if (!initialResponse.ok || initialResponse.kind !== 'operation') return null;\n let operation = initialResponse.operation;\n const wait = options.wait ?? (timeoutMs => new Promise(resolve => setTimeout(resolve, timeoutMs)));\n while (operation?.status === 'accepted' || operation?.status === 'running') {\n await wait(Math.max(0, options.pollIntervalMs ?? 100));\n const response = await request({ kind: 'operation.get', operationId: operation.operationId });\n if (!response.ok || response.kind !== 'operation' || !response.operation) {\n throw new Error(\n `Project Editor Service operation status is unavailable; execution may still be running: ${operation.operationId}.`,\n );\n }\n operation = response.operation;\n }\n return operation;\n}\n"]}
|
package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
import '@babylonjs/core/Shaders/postprocess.vertex.js';
|
|
2
|
+
import '@babylonjs/core/Shaders/imageProcessing.fragment.js';
|
|
3
|
+
import '@babylonjs/core/Shaders/extractHighlights.fragment.js';
|
|
4
|
+
import '@babylonjs/core/Shaders/kernelBlur.fragment.js';
|
|
5
|
+
import '@babylonjs/core/Shaders/kernelBlur.vertex.js';
|
|
6
|
+
import '@babylonjs/core/Shaders/bloomMerge.fragment.js';
|
|
7
|
+
import '@babylonjs/core/Shaders/fxaa.fragment.js';
|
|
8
|
+
import '@babylonjs/core/Shaders/fxaa.vertex.js';
|
|
9
|
+
import '@babylonjs/core/Shaders/pass.fragment.js';
|
|
10
|
+
import '@babylonjs/core/ShadersWGSL/postprocess.vertex.js';
|
|
11
|
+
import '@babylonjs/core/ShadersWGSL/imageProcessing.fragment.js';
|
|
12
|
+
import '@babylonjs/core/ShadersWGSL/extractHighlights.fragment.js';
|
|
13
|
+
import '@babylonjs/core/ShadersWGSL/kernelBlur.fragment.js';
|
|
14
|
+
import '@babylonjs/core/ShadersWGSL/kernelBlur.vertex.js';
|
|
15
|
+
import '@babylonjs/core/ShadersWGSL/bloomMerge.fragment.js';
|
|
16
|
+
import '@babylonjs/core/ShadersWGSL/fxaa.fragment.js';
|
|
17
|
+
import '@babylonjs/core/ShadersWGSL/fxaa.vertex.js';
|
|
18
|
+
import '@babylonjs/core/ShadersWGSL/pass.fragment.js';
|
|
1
19
|
import type { Camera } from '@babylonjs/core/Cameras/camera.js';
|
|
2
20
|
import type { Scene } from '@babylonjs/core/scene.js';
|
|
3
21
|
import { type BabylonDefaultPostProcessPipelineController, type BabylonDefaultPostProcessPipelineControllerOptions, type BabylonDefaultPostProcessProfile } from './types.js';
|
package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"babylon-default-pipeline.d.ts","sourceRoot":"","sources":["../../src/post-process/babylon-default-pipeline.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"babylon-default-pipeline.d.ts","sourceRoot":"","sources":["../../src/post-process/babylon-default-pipeline.ts"],"names":[],"mappings":"AACA,OAAO,+CAA+C,CAAC;AACvD,OAAO,qDAAqD,CAAC;AAC7D,OAAO,uDAAuD,CAAC;AAC/D,OAAO,gDAAgD,CAAC;AACxD,OAAO,8CAA8C,CAAC;AACtD,OAAO,gDAAgD,CAAC;AACxD,OAAO,0CAA0C,CAAC;AAClD,OAAO,wCAAwC,CAAC;AAChD,OAAO,0CAA0C,CAAC;AAClD,OAAO,mDAAmD,CAAC;AAC3D,OAAO,yDAAyD,CAAC;AACjE,OAAO,2DAA2D,CAAC;AACnE,OAAO,oDAAoD,CAAC;AAC5D,OAAO,kDAAkD,CAAC;AAC1D,OAAO,oDAAoD,CAAC;AAC5D,OAAO,8CAA8C,CAAC;AACtD,OAAO,4CAA4C,CAAC;AACpD,OAAO,8CAA8C,CAAC;AAEtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EACL,KAAK,2CAA2C,EAChD,KAAK,kDAAkD,EACvD,KAAK,gCAAgC,EACtC,MAAM,YAAY,CAAC;AASpB,MAAM,MAAM,kDAAkD,GAAG,MAAM,SAAS,OAAO,EAAE,CAAC;AAE1F,wBAAgB,sDAAsD,CACpE,KAAK,EAAE,OAAO,GACb,kDAAkD,GAAG,IAAI,CAO3D;AAED,wBAAgB,iDAAiD,CAC/D,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,MAAM,EAAE,EACjB,cAAc,CAAC,EAAE,gCAAgC,GAAG,IAAI,EACxD,OAAO,GAAE,kDAAuD,GAC/D,2CAA2C,CAsB7C"}
|
package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import { ImageProcessingConfiguration } from '@babylonjs/core/Materials/imageProcessingConfiguration.js';
|
|
2
|
+
import '@babylonjs/core/Shaders/postprocess.vertex.js';
|
|
3
|
+
import '@babylonjs/core/Shaders/imageProcessing.fragment.js';
|
|
4
|
+
import '@babylonjs/core/Shaders/extractHighlights.fragment.js';
|
|
5
|
+
import '@babylonjs/core/Shaders/kernelBlur.fragment.js';
|
|
6
|
+
import '@babylonjs/core/Shaders/kernelBlur.vertex.js';
|
|
7
|
+
import '@babylonjs/core/Shaders/bloomMerge.fragment.js';
|
|
8
|
+
import '@babylonjs/core/Shaders/fxaa.fragment.js';
|
|
9
|
+
import '@babylonjs/core/Shaders/fxaa.vertex.js';
|
|
10
|
+
import '@babylonjs/core/Shaders/pass.fragment.js';
|
|
11
|
+
import '@babylonjs/core/ShadersWGSL/postprocess.vertex.js';
|
|
12
|
+
import '@babylonjs/core/ShadersWGSL/imageProcessing.fragment.js';
|
|
13
|
+
import '@babylonjs/core/ShadersWGSL/extractHighlights.fragment.js';
|
|
14
|
+
import '@babylonjs/core/ShadersWGSL/kernelBlur.fragment.js';
|
|
15
|
+
import '@babylonjs/core/ShadersWGSL/kernelBlur.vertex.js';
|
|
16
|
+
import '@babylonjs/core/ShadersWGSL/bloomMerge.fragment.js';
|
|
17
|
+
import '@babylonjs/core/ShadersWGSL/fxaa.fragment.js';
|
|
18
|
+
import '@babylonjs/core/ShadersWGSL/fxaa.vertex.js';
|
|
19
|
+
import '@babylonjs/core/ShadersWGSL/pass.fragment.js';
|
|
2
20
|
import { DefaultRenderingPipeline } from '@babylonjs/core/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js';
|
|
3
21
|
import {} from './types.js';
|
|
4
22
|
import { normalizeBabylonDefaultPostProcessProfile } from './profile.js';
|
|
@@ -95,7 +113,8 @@ class BabylonDefaultPostProcessPipelineControllerImpl {
|
|
|
95
113
|
}
|
|
96
114
|
if (!this.pipeline || this.structuralKey !== nextStructuralKey) {
|
|
97
115
|
this.disposePipeline();
|
|
98
|
-
this.pipeline = new DefaultRenderingPipeline(this.name, nextProfile.hdr, this.scene, this.cameras);
|
|
116
|
+
this.pipeline = new DefaultRenderingPipeline(this.name, nextProfile.hdr, this.scene, this.cameras, false);
|
|
117
|
+
this.pipeline.automaticBuild = true;
|
|
99
118
|
this.structuralKey = nextStructuralKey;
|
|
100
119
|
}
|
|
101
120
|
this.applyProfile(nextProfile);
|
|
@@ -113,24 +132,41 @@ class BabylonDefaultPostProcessPipelineControllerImpl {
|
|
|
113
132
|
this.structuralKey = '';
|
|
114
133
|
}
|
|
115
134
|
applyProfile(profile) {
|
|
116
|
-
|
|
135
|
+
const pipeline = this.pipeline;
|
|
136
|
+
if (!pipeline)
|
|
117
137
|
return;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
138
|
+
const automaticBuild = pipeline.automaticBuild;
|
|
139
|
+
let profileApplied = false;
|
|
140
|
+
pipeline.automaticBuild = false;
|
|
141
|
+
try {
|
|
142
|
+
pipeline.imageProcessingEnabled = true;
|
|
143
|
+
const imageProcessing = pipeline.scene.imageProcessingConfiguration;
|
|
144
|
+
imageProcessing.exposure = profile.imageProcessing.exposure;
|
|
145
|
+
imageProcessing.contrast = profile.imageProcessing.contrast;
|
|
146
|
+
imageProcessing.toneMappingEnabled = profile.toneMapping.enabled;
|
|
147
|
+
imageProcessing.toneMappingType = resolveToneMappingType(profile.toneMapping.type);
|
|
148
|
+
pipeline.samples = profile.antialiasing.samples;
|
|
149
|
+
pipeline.bloomEnabled = profile.bloom.enabled;
|
|
150
|
+
pipeline.bloomThreshold = profile.bloom.threshold;
|
|
151
|
+
pipeline.bloomWeight = profile.bloom.weight;
|
|
152
|
+
pipeline.bloomKernel = profile.bloom.kernel;
|
|
153
|
+
pipeline.bloomScale = profile.bloom.scale;
|
|
154
|
+
pipeline.sharpenEnabled = false;
|
|
155
|
+
pipeline.chromaticAberrationEnabled = false;
|
|
156
|
+
pipeline.depthOfFieldEnabled = false;
|
|
157
|
+
pipeline.grainEnabled = false;
|
|
158
|
+
pipeline.fxaaEnabled = this.fxaaEnabled;
|
|
159
|
+
profileApplied = true;
|
|
160
|
+
}
|
|
161
|
+
finally {
|
|
162
|
+
try {
|
|
163
|
+
if (profileApplied)
|
|
164
|
+
pipeline.prepare();
|
|
165
|
+
}
|
|
166
|
+
finally {
|
|
167
|
+
pipeline.automaticBuild = automaticBuild;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
134
170
|
}
|
|
135
171
|
disposePipeline() {
|
|
136
172
|
this.pipeline?.dispose();
|
package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"babylon-default-pipeline.js","sourceRoot":"","sources":["../../src/post-process/babylon-default-pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,wBAAwB,EAAE,MAAM,oFAAoF,CAAC;AAG9H,OAAO,EAIN,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,yCAAyC,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,8BAA8B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K,CAAC,CAAC;QACrE,IAAI,YAAY,EAAE,KAAK,KAAK,KAAK,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,gFAAgF,CAAC,CAAC;QACpG,CAAC;QACD,oCAAoC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnD,QAAQ,GAAG,IAAI,CAAC;IAClB,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,sBAAsB,CAAC,IAA6D;IAC3F,IAAI,IAAI,KAAK,MAAM;QAAE,OAAO,4BAA4B,CAAC,gBAAgB,CAAC;IAC1E,IAAI,IAAI,KAAK,iBAAiB;QAAE,OAAO,4BAA4B,CAAC,2BAA2B,CAAC;IAChG,OAAO,4BAA4B,CAAC,oBAAoB,CAAC;AAC3D,CAAC","sourcesContent":["import { ImageProcessingConfiguration } from '@babylonjs/core/Materials/imageProcessingConfiguration.js';\nimport { DefaultRenderingPipeline } from '@babylonjs/core/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js';\nimport type { Camera } from '@babylonjs/core/Cameras/camera.js';\nimport type { Scene } from '@babylonjs/core/scene.js';\nimport {\n type BabylonDefaultPostProcessPipelineController,\n type BabylonDefaultPostProcessPipelineControllerOptions,\n type BabylonDefaultPostProcessProfile,\n} from './types.js';\nimport { normalizeBabylonDefaultPostProcessProfile } from './profile.js';\nimport { createPostProcessStructuralKey } from './volume-stack.js';\n\nconst babylonDefaultPostProcessSceneOwners = new WeakMap<Scene, {\n readonly name: string;\n readonly token: object;\n}>();\n\nexport type BabylonDefaultPostProcessPipelineControllerCleanup = () => readonly unknown[];\n\nexport function readBabylonDefaultPostProcessPipelineControllerCleanup(\n error: unknown,\n): BabylonDefaultPostProcessPipelineControllerCleanup | null {\n if (!error || (typeof error !== 'object' && typeof error !== 'function')) return null;\n const cleanup = (error as { babylonDefaultPostProcessPipelineControllerCleanup?: unknown })\n .babylonDefaultPostProcessPipelineControllerCleanup;\n return typeof cleanup === 'function'\n ? cleanup as BabylonDefaultPostProcessPipelineControllerCleanup\n : null;\n}\n\nexport function createBabylonDefaultPostProcessPipelineController(\n scene: Scene,\n cameras: Camera[],\n initialProfile?: BabylonDefaultPostProcessProfile | null,\n options: BabylonDefaultPostProcessPipelineControllerOptions = {},\n): BabylonDefaultPostProcessPipelineController {\n const name = options.name ?? 'defaultPostProcessPipeline';\n const releaseOwnership = reserveBabylonDefaultPostProcessScene(scene, name);\n let controller: BabylonDefaultPostProcessPipelineControllerImpl | null = null;\n try {\n controller = new BabylonDefaultPostProcessPipelineControllerImpl(\n scene,\n [...cameras],\n name,\n options.fxaaEnabled === true,\n releaseOwnership,\n );\n controller.setProfile(initialProfile ?? null);\n return controller;\n } catch (error) {\n const allocatedController = controller;\n const cleanup = createRetryableCleanup(\n allocatedController ? () => allocatedController.dispose() : releaseOwnership,\n );\n const cleanupErrors = cleanup();\n throw createInitializationFailure(error, cleanup, cleanupErrors);\n }\n}\n\nclass BabylonDefaultPostProcessPipelineControllerImpl implements BabylonDefaultPostProcessPipelineController {\n private pipeline: DefaultRenderingPipeline | null = null;\n private profile: BabylonDefaultPostProcessProfile | null = null;\n private structuralKey = '';\n private readonly pendingCameraAttachments = new Set<Camera>();\n\n constructor(\n private readonly scene: Scene,\n private readonly cameras: Camera[],\n private readonly name: string,\n private readonly fxaaEnabled: boolean,\n private readonly releaseOwnership: () => void,\n ) {}\n\n addCamera(camera: Camera): void {\n const knownCamera = this.cameras.includes(camera);\n if (knownCamera && !this.pendingCameraAttachments.has(camera)) return;\n if (knownCamera && this.pendingCameraAttachments.has(camera)) {\n this.pipeline?.removeCamera(camera);\n }\n try {\n this.pipeline?.addCamera(camera);\n } catch (error) {\n let failure = error;\n if (this.pipeline?.cameras.includes(camera)) {\n try { this.pipeline.removeCamera(camera); }\n catch (cleanupError) {\n if (!knownCamera) this.cameras.push(camera);\n this.pendingCameraAttachments.add(camera);\n failure = createFailureWithMetadata(\n error,\n 'babylon.postProcess.cameraAttachmentFailed',\n { cleanupErrors: Object.freeze([cleanupError]) },\n );\n }\n }\n throw failure;\n }\n if (!knownCamera) this.cameras.push(camera);\n this.pendingCameraAttachments.delete(camera);\n }\n\n removeCamera(camera: Camera): void {\n const index = this.cameras.indexOf(camera);\n if (index < 0) return;\n this.pipeline?.removeCamera(camera);\n this.cameras.splice(index, 1);\n this.pendingCameraAttachments.delete(camera);\n }\n\n setProfile(profile: BabylonDefaultPostProcessProfile | null | undefined): void {\n if (!profile) {\n this.disposePipeline();\n this.profile = null;\n this.structuralKey = '';\n return;\n }\n const nextProfile = normalizeBabylonDefaultPostProcessProfile(profile);\n const nextStructuralKey = createPostProcessStructuralKey(nextProfile);\n this.profile = nextProfile;\n if (!nextProfile.enabled) {\n this.disposePipeline();\n this.structuralKey = nextStructuralKey;\n return;\n }\n if (!this.pipeline || this.structuralKey !== nextStructuralKey) {\n this.disposePipeline();\n this.pipeline = new DefaultRenderingPipeline(\n this.name,\n nextProfile.hdr,\n this.scene,\n this.cameras,\n );\n this.structuralKey = nextStructuralKey;\n }\n this.applyProfile(nextProfile);\n }\n\n getProfile(): BabylonDefaultPostProcessProfile | null {\n return this.profile;\n }\n\n getPipeline(): DefaultRenderingPipeline | null {\n return this.pipeline;\n }\n\n dispose(): void {\n this.disposePipeline();\n this.releaseOwnership();\n this.profile = null;\n this.structuralKey = '';\n }\n\n private applyProfile(profile: BabylonDefaultPostProcessProfile): void {\n if (!this.pipeline) return;\n this.pipeline.imageProcessingEnabled = true;\n this.pipeline.imageProcessing.exposure = profile.imageProcessing.exposure;\n this.pipeline.imageProcessing.contrast = profile.imageProcessing.contrast;\n this.pipeline.imageProcessing.toneMappingEnabled = profile.toneMapping.enabled;\n this.pipeline.imageProcessing.toneMappingType = resolveToneMappingType(profile.toneMapping.type);\n\n this.pipeline.samples = profile.antialiasing.samples;\n this.pipeline.bloomEnabled = profile.bloom.enabled;\n this.pipeline.bloomThreshold = profile.bloom.threshold;\n this.pipeline.bloomWeight = profile.bloom.weight;\n this.pipeline.bloomKernel = profile.bloom.kernel;\n this.pipeline.bloomScale = profile.bloom.scale;\n\n this.pipeline.sharpenEnabled = false;\n this.pipeline.chromaticAberrationEnabled = false;\n this.pipeline.depthOfFieldEnabled = false;\n this.pipeline.grainEnabled = false;\n this.pipeline.fxaaEnabled = this.fxaaEnabled;\n }\n\n private disposePipeline(): void {\n this.pipeline?.dispose();\n this.pipeline = null;\n this.pendingCameraAttachments.clear();\n }\n}\n\nfunction createRetryableCleanup(operation: () => void): BabylonDefaultPostProcessPipelineControllerCleanup {\n let pending = true;\n return () => {\n if (!pending) return Object.freeze([]);\n try {\n operation();\n pending = false;\n return Object.freeze([]);\n } catch (error) {\n return Object.freeze([error]);\n }\n };\n}\n\nfunction createInitializationFailure(\n error: unknown,\n cleanup: BabylonDefaultPostProcessPipelineControllerCleanup,\n cleanupErrors: readonly unknown[],\n): unknown {\n if (cleanupErrors.length === 0) return error;\n const metadata = {\n cleanupErrors: Object.freeze([...cleanupErrors]),\n babylonDefaultPostProcessPipelineControllerCleanup: cleanup,\n } as const;\n if (error && (typeof error === 'object' || typeof error === 'function')) {\n try {\n Object.assign(error, metadata);\n if (readBabylonDefaultPostProcessPipelineControllerCleanup(error) === cleanup) return error;\n } catch {\n // A non-extensible primary error is wrapped so cleanup ownership remains reachable.\n }\n }\n return Object.assign(\n new Error(error instanceof Error ? error.message : 'babylon.postProcess.initializationFailed'),\n { cause: error, ...metadata },\n );\n}\n\nfunction createFailureWithMetadata(\n failure: unknown,\n fallbackMessage: string,\n metadata: Readonly<Record<string, unknown>>,\n): object {\n if (failure && (typeof failure === 'object' || typeof failure === 'function')) {\n try {\n Object.assign(failure, metadata);\n if (Object.entries(metadata).every(([key, value]) => (\n (failure as Record<string, unknown>)[key] === value\n ))) return failure;\n } catch {\n // A non-extensible primary error is wrapped so cleanup diagnostics remain reachable.\n }\n }\n return Object.assign(\n new Error(failure instanceof Error ? failure.message : fallbackMessage),\n { cause: failure, ...metadata },\n );\n}\n\nfunction reserveBabylonDefaultPostProcessScene(scene: Scene, name: string): () => void {\n const activeOwner = babylonDefaultPostProcessSceneOwners.get(scene);\n if (activeOwner) {\n throw Object.assign(\n new Error(\n `Babylon default post-process Scene already has an active owner \"${activeOwner.name}\"; `\n + `cannot create \"${name}\".`,\n ),\n {\n code: 'babylon.postProcess.ownerConflict',\n activeOwnerName: activeOwner.name,\n requestedOwnerName: name,\n },\n );\n }\n const token = Object.freeze({});\n babylonDefaultPostProcessSceneOwners.set(scene, { name, token });\n let released = false;\n return () => {\n if (released) return;\n const currentOwner = babylonDefaultPostProcessSceneOwners.get(scene);\n if (currentOwner?.token !== token) {\n throw new Error('Babylon default post-process Scene ownership changed before cleanup completed.');\n }\n babylonDefaultPostProcessSceneOwners.delete(scene);\n released = true;\n };\n}\n\nfunction resolveToneMappingType(type: BabylonDefaultPostProcessProfile['toneMapping']['type']): number {\n if (type === 'aces') return ImageProcessingConfiguration.TONEMAPPING_ACES;\n if (type === 'khr-pbr-neutral') return ImageProcessingConfiguration.TONEMAPPING_KHR_PBR_NEUTRAL;\n return ImageProcessingConfiguration.TONEMAPPING_STANDARD;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"babylon-default-pipeline.js","sourceRoot":"","sources":["../../src/post-process/babylon-default-pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,+CAA+C,CAAC;AACvD,OAAO,qDAAqD,CAAC;AAC7D,OAAO,uDAAuD,CAAC;AAC/D,OAAO,gDAAgD,CAAC;AACxD,OAAO,8CAA8C,CAAC;AACtD,OAAO,gDAAgD,CAAC;AACxD,OAAO,0CAA0C,CAAC;AAClD,OAAO,wCAAwC,CAAC;AAChD,OAAO,0CAA0C,CAAC;AAClD,OAAO,mDAAmD,CAAC;AAC3D,OAAO,yDAAyD,CAAC;AACjE,OAAO,2DAA2D,CAAC;AACnE,OAAO,oDAAoD,CAAC;AAC5D,OAAO,kDAAkD,CAAC;AAC1D,OAAO,oDAAoD,CAAC;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C;QAChB,MAAM,MAAM,CAAC,MAAM,CACjB,IAAI,KAAK,CACP,mEAAmE,WAAW,CAAC,IAAI,KAAK;cACtF,kBAAkB,IAAI,IAAI,CAC7B,EACD;YACE,IAAI,EAAE,mCAAmC;YACzC,eAAe,EAAE,WAAW,CAAC,IAAI;YACjC,kBAAkB,EAAE,IAAI;SACzB,CACF,CAAC;IACJ,CAAC;IACD,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAChC,oCAAoC,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACjE,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,OAAO,GAAG,EAAE;QACV,IAAI,QAAQ;YAAE,OAAO;QACrB,MAAM,YAAY,GAAG,oCAAoC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACrE,IAAI,YAAY,EAAE,KAAK,KAAK,KAAK,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,gFAAgF,CAAC,CAAC;QACpG,CAAC;QACD,oCAAoC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnD,QAAQ,GAAG,IAAI,CAAC;IAClB,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,sBAAsB,CAAC,IAA6D;IAC3F,IAAI,IAAI,KAAK,MAAM;QAAE,OAAO,4BAA4B,CAAC,gBAAgB,CAAC;IAC1E,IAAI,IAAI,KAAK,iBAAiB;QAAE,OAAO,4BAA4B,CAAC,2BAA2B,CAAC;IAChG,OAAO,4BAA4B,CAAC,oBAAoB,CAAC;AAC3D,CAAC","sourcesContent":["import { ImageProcessingConfiguration } from '@babylonjs/core/Materials/imageProcessingConfiguration.js';\nimport '@babylonjs/core/Shaders/postprocess.vertex.js';\nimport '@babylonjs/core/Shaders/imageProcessing.fragment.js';\nimport '@babylonjs/core/Shaders/extractHighlights.fragment.js';\nimport '@babylonjs/core/Shaders/kernelBlur.fragment.js';\nimport '@babylonjs/core/Shaders/kernelBlur.vertex.js';\nimport '@babylonjs/core/Shaders/bloomMerge.fragment.js';\nimport '@babylonjs/core/Shaders/fxaa.fragment.js';\nimport '@babylonjs/core/Shaders/fxaa.vertex.js';\nimport '@babylonjs/core/Shaders/pass.fragment.js';\nimport '@babylonjs/core/ShadersWGSL/postprocess.vertex.js';\nimport '@babylonjs/core/ShadersWGSL/imageProcessing.fragment.js';\nimport '@babylonjs/core/ShadersWGSL/extractHighlights.fragment.js';\nimport '@babylonjs/core/ShadersWGSL/kernelBlur.fragment.js';\nimport '@babylonjs/core/ShadersWGSL/kernelBlur.vertex.js';\nimport '@babylonjs/core/ShadersWGSL/bloomMerge.fragment.js';\nimport '@babylonjs/core/ShadersWGSL/fxaa.fragment.js';\nimport '@babylonjs/core/ShadersWGSL/fxaa.vertex.js';\nimport '@babylonjs/core/ShadersWGSL/pass.fragment.js';\nimport { DefaultRenderingPipeline } from '@babylonjs/core/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js';\nimport type { Camera } from '@babylonjs/core/Cameras/camera.js';\nimport type { Scene } from '@babylonjs/core/scene.js';\nimport {\n type BabylonDefaultPostProcessPipelineController,\n type BabylonDefaultPostProcessPipelineControllerOptions,\n type BabylonDefaultPostProcessProfile,\n} from './types.js';\nimport { normalizeBabylonDefaultPostProcessProfile } from './profile.js';\nimport { createPostProcessStructuralKey } from './volume-stack.js';\n\nconst babylonDefaultPostProcessSceneOwners = new WeakMap<Scene, {\n readonly name: string;\n readonly token: object;\n}>();\n\nexport type BabylonDefaultPostProcessPipelineControllerCleanup = () => readonly unknown[];\n\nexport function readBabylonDefaultPostProcessPipelineControllerCleanup(\n error: unknown,\n): BabylonDefaultPostProcessPipelineControllerCleanup | null {\n if (!error || (typeof error !== 'object' && typeof error !== 'function')) return null;\n const cleanup = (error as { babylonDefaultPostProcessPipelineControllerCleanup?: unknown })\n .babylonDefaultPostProcessPipelineControllerCleanup;\n return typeof cleanup === 'function'\n ? cleanup as BabylonDefaultPostProcessPipelineControllerCleanup\n : null;\n}\n\nexport function createBabylonDefaultPostProcessPipelineController(\n scene: Scene,\n cameras: Camera[],\n initialProfile?: BabylonDefaultPostProcessProfile | null,\n options: BabylonDefaultPostProcessPipelineControllerOptions = {},\n): BabylonDefaultPostProcessPipelineController {\n const name = options.name ?? 'defaultPostProcessPipeline';\n const releaseOwnership = reserveBabylonDefaultPostProcessScene(scene, name);\n let controller: BabylonDefaultPostProcessPipelineControllerImpl | null = null;\n try {\n controller = new BabylonDefaultPostProcessPipelineControllerImpl(\n scene,\n [...cameras],\n name,\n options.fxaaEnabled === true,\n releaseOwnership,\n );\n controller.setProfile(initialProfile ?? null);\n return controller;\n } catch (error) {\n const allocatedController = controller;\n const cleanup = createRetryableCleanup(\n allocatedController ? () => allocatedController.dispose() : releaseOwnership,\n );\n const cleanupErrors = cleanup();\n throw createInitializationFailure(error, cleanup, cleanupErrors);\n }\n}\n\nclass BabylonDefaultPostProcessPipelineControllerImpl implements BabylonDefaultPostProcessPipelineController {\n private pipeline: DefaultRenderingPipeline | null = null;\n private profile: BabylonDefaultPostProcessProfile | null = null;\n private structuralKey = '';\n private readonly pendingCameraAttachments = new Set<Camera>();\n\n constructor(\n private readonly scene: Scene,\n private readonly cameras: Camera[],\n private readonly name: string,\n private readonly fxaaEnabled: boolean,\n private readonly releaseOwnership: () => void,\n ) {}\n\n addCamera(camera: Camera): void {\n const knownCamera = this.cameras.includes(camera);\n if (knownCamera && !this.pendingCameraAttachments.has(camera)) return;\n if (knownCamera && this.pendingCameraAttachments.has(camera)) {\n this.pipeline?.removeCamera(camera);\n }\n try {\n this.pipeline?.addCamera(camera);\n } catch (error) {\n let failure = error;\n if (this.pipeline?.cameras.includes(camera)) {\n try { this.pipeline.removeCamera(camera); }\n catch (cleanupError) {\n if (!knownCamera) this.cameras.push(camera);\n this.pendingCameraAttachments.add(camera);\n failure = createFailureWithMetadata(\n error,\n 'babylon.postProcess.cameraAttachmentFailed',\n { cleanupErrors: Object.freeze([cleanupError]) },\n );\n }\n }\n throw failure;\n }\n if (!knownCamera) this.cameras.push(camera);\n this.pendingCameraAttachments.delete(camera);\n }\n\n removeCamera(camera: Camera): void {\n const index = this.cameras.indexOf(camera);\n if (index < 0) return;\n this.pipeline?.removeCamera(camera);\n this.cameras.splice(index, 1);\n this.pendingCameraAttachments.delete(camera);\n }\n\n setProfile(profile: BabylonDefaultPostProcessProfile | null | undefined): void {\n if (!profile) {\n this.disposePipeline();\n this.profile = null;\n this.structuralKey = '';\n return;\n }\n const nextProfile = normalizeBabylonDefaultPostProcessProfile(profile);\n const nextStructuralKey = createPostProcessStructuralKey(nextProfile);\n this.profile = nextProfile;\n if (!nextProfile.enabled) {\n this.disposePipeline();\n this.structuralKey = nextStructuralKey;\n return;\n }\n if (!this.pipeline || this.structuralKey !== nextStructuralKey) {\n this.disposePipeline();\n this.pipeline = new DefaultRenderingPipeline(\n this.name,\n nextProfile.hdr,\n this.scene,\n this.cameras,\n false,\n );\n this.pipeline.automaticBuild = true;\n this.structuralKey = nextStructuralKey;\n }\n this.applyProfile(nextProfile);\n }\n\n getProfile(): BabylonDefaultPostProcessProfile | null {\n return this.profile;\n }\n\n getPipeline(): DefaultRenderingPipeline | null {\n return this.pipeline;\n }\n\n dispose(): void {\n this.disposePipeline();\n this.releaseOwnership();\n this.profile = null;\n this.structuralKey = '';\n }\n\n private applyProfile(profile: BabylonDefaultPostProcessProfile): void {\n const pipeline = this.pipeline;\n if (!pipeline) return;\n const automaticBuild = pipeline.automaticBuild;\n let profileApplied = false;\n pipeline.automaticBuild = false;\n try {\n pipeline.imageProcessingEnabled = true;\n const imageProcessing = pipeline.scene.imageProcessingConfiguration;\n imageProcessing.exposure = profile.imageProcessing.exposure;\n imageProcessing.contrast = profile.imageProcessing.contrast;\n imageProcessing.toneMappingEnabled = profile.toneMapping.enabled;\n imageProcessing.toneMappingType = resolveToneMappingType(profile.toneMapping.type);\n\n pipeline.samples = profile.antialiasing.samples;\n pipeline.bloomEnabled = profile.bloom.enabled;\n pipeline.bloomThreshold = profile.bloom.threshold;\n pipeline.bloomWeight = profile.bloom.weight;\n pipeline.bloomKernel = profile.bloom.kernel;\n pipeline.bloomScale = profile.bloom.scale;\n\n pipeline.sharpenEnabled = false;\n pipeline.chromaticAberrationEnabled = false;\n pipeline.depthOfFieldEnabled = false;\n pipeline.grainEnabled = false;\n pipeline.fxaaEnabled = this.fxaaEnabled;\n profileApplied = true;\n } finally {\n try {\n if (profileApplied) pipeline.prepare();\n } finally {\n pipeline.automaticBuild = automaticBuild;\n }\n }\n }\n\n private disposePipeline(): void {\n this.pipeline?.dispose();\n this.pipeline = null;\n this.pendingCameraAttachments.clear();\n }\n}\n\nfunction createRetryableCleanup(operation: () => void): BabylonDefaultPostProcessPipelineControllerCleanup {\n let pending = true;\n return () => {\n if (!pending) return Object.freeze([]);\n try {\n operation();\n pending = false;\n return Object.freeze([]);\n } catch (error) {\n return Object.freeze([error]);\n }\n };\n}\n\nfunction createInitializationFailure(\n error: unknown,\n cleanup: BabylonDefaultPostProcessPipelineControllerCleanup,\n cleanupErrors: readonly unknown[],\n): unknown {\n if (cleanupErrors.length === 0) return error;\n const metadata = {\n cleanupErrors: Object.freeze([...cleanupErrors]),\n babylonDefaultPostProcessPipelineControllerCleanup: cleanup,\n } as const;\n if (error && (typeof error === 'object' || typeof error === 'function')) {\n try {\n Object.assign(error, metadata);\n if (readBabylonDefaultPostProcessPipelineControllerCleanup(error) === cleanup) return error;\n } catch {\n // A non-extensible primary error is wrapped so cleanup ownership remains reachable.\n }\n }\n return Object.assign(\n new Error(error instanceof Error ? error.message : 'babylon.postProcess.initializationFailed'),\n { cause: error, ...metadata },\n );\n}\n\nfunction createFailureWithMetadata(\n failure: unknown,\n fallbackMessage: string,\n metadata: Readonly<Record<string, unknown>>,\n): object {\n if (failure && (typeof failure === 'object' || typeof failure === 'function')) {\n try {\n Object.assign(failure, metadata);\n if (Object.entries(metadata).every(([key, value]) => (\n (failure as Record<string, unknown>)[key] === value\n ))) return failure;\n } catch {\n // A non-extensible primary error is wrapped so cleanup diagnostics remain reachable.\n }\n }\n return Object.assign(\n new Error(failure instanceof Error ? failure.message : fallbackMessage),\n { cause: failure, ...metadata },\n );\n}\n\nfunction reserveBabylonDefaultPostProcessScene(scene: Scene, name: string): () => void {\n const activeOwner = babylonDefaultPostProcessSceneOwners.get(scene);\n if (activeOwner) {\n throw Object.assign(\n new Error(\n `Babylon default post-process Scene already has an active owner \"${activeOwner.name}\"; `\n + `cannot create \"${name}\".`,\n ),\n {\n code: 'babylon.postProcess.ownerConflict',\n activeOwnerName: activeOwner.name,\n requestedOwnerName: name,\n },\n );\n }\n const token = Object.freeze({});\n babylonDefaultPostProcessSceneOwners.set(scene, { name, token });\n let released = false;\n return () => {\n if (released) return;\n const currentOwner = babylonDefaultPostProcessSceneOwners.get(scene);\n if (currentOwner?.token !== token) {\n throw new Error('Babylon default post-process Scene ownership changed before cleanup completed.');\n }\n babylonDefaultPostProcessSceneOwners.delete(scene);\n released = true;\n };\n}\n\nfunction resolveToneMappingType(type: BabylonDefaultPostProcessProfile['toneMapping']['type']): number {\n if (type === 'aces') return ImageProcessingConfiguration.TONEMAPPING_ACES;\n if (type === 'khr-pbr-neutral') return ImageProcessingConfiguration.TONEMAPPING_KHR_PBR_NEUTRAL;\n return ImageProcessingConfiguration.TONEMAPPING_STANDARD;\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fps-games/babylon-renderer",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.4",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Babylon-backed renderer capabilities for fps-game-editor.",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"fpsGamePlugin": {
|
|
26
26
|
"id": "fps.renderer.babylon",
|
|
27
|
-
"version": "0.2.1-beta.
|
|
27
|
+
"version": "0.2.1-beta.4",
|
|
28
28
|
"apiVersion": 1,
|
|
29
29
|
"requires": {},
|
|
30
30
|
"provides": {
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@fps-games/playable-assets": "0.2.1-beta.
|
|
60
|
-
"@fps-games/playable-contracts": "0.2.1-beta.
|
|
61
|
-
"@fps-games/playable-rendering": "0.2.1-beta.
|
|
62
|
-
"@fps-games/playable-runtime-data": "0.2.1-beta.
|
|
63
|
-
"@fps-games/plugin-assets": "0.2.1-beta.
|
|
64
|
-
"@fps-games/plugin-api": "0.2.1-beta.
|
|
65
|
-
"@fps-games/plugin-host": "0.2.1-beta.
|
|
59
|
+
"@fps-games/playable-assets": "0.2.1-beta.4",
|
|
60
|
+
"@fps-games/playable-contracts": "0.2.1-beta.4",
|
|
61
|
+
"@fps-games/playable-rendering": "0.2.1-beta.4",
|
|
62
|
+
"@fps-games/playable-runtime-data": "0.2.1-beta.4",
|
|
63
|
+
"@fps-games/plugin-assets": "0.2.1-beta.4",
|
|
64
|
+
"@fps-games/plugin-api": "0.2.1-beta.4",
|
|
65
|
+
"@fps-games/plugin-host": "0.2.1-beta.4"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@babylonjs/core": "^8.0.0"
|
|
@@ -188,6 +188,7 @@ type ProjectionMaterialOwnerResolution = MaterialOwnerResolution<BabylonMaterial
|
|
|
188
188
|
export interface BabylonEditorProjectionReadyEvent {
|
|
189
189
|
nodeId: string;
|
|
190
190
|
async: boolean;
|
|
191
|
+
batchId?: number;
|
|
191
192
|
}
|
|
192
193
|
export interface BabylonEditorProjectionBatchSettledEvent {
|
|
193
194
|
batchId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../src/projection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAEpB,oBAAoB,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nB,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,qCAAqC,GAAG,SAAS,EAC3D,OAAO,GAAE,4CAAiD,GACzD,qCAAqC,CAmDvC;AA4KD,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,oBAAoB,EAC7B,IAAI,EAAE,GAAG,EACT,SAAS,EAAE,gCAAgC,GAC1C,IAAI,CAqBN"}
|
|
@@ -131,7 +131,7 @@ export function createBabylonEditorProjection(options) {
|
|
|
131
131
|
applyProjectionPreviewVisibility(node.id);
|
|
132
132
|
applyProjectionOutline(projectionNodes.get(node.id) ?? node, projection);
|
|
133
133
|
selectionPresentation.updateProjectedNode(projection);
|
|
134
|
-
options.onProjectionReady?.({ nodeId: node.id, async: true });
|
|
134
|
+
options.onProjectionReady?.({ nodeId: node.id, async: true, batchId: batch.id });
|
|
135
135
|
}
|
|
136
136
|
scheduleBatchSettled(batch);
|
|
137
137
|
});
|