@fps-games/editor 0.2.0-beta.4 → 0.2.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-bridge/capabilities/editor-state.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/editor-state.js +12 -6
- package/dist/agent-bridge/capabilities/editor-state.js.map +1 -1
- package/dist/agent-bridge/capabilities/hierarchy.d.ts +4 -0
- package/dist/agent-bridge/capabilities/hierarchy.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/hierarchy.js +209 -0
- package/dist/agent-bridge/capabilities/hierarchy.js.map +1 -0
- package/dist/agent-bridge/capabilities/prefabs.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/prefabs.js +208 -73
- package/dist/agent-bridge/capabilities/prefabs.js.map +1 -1
- package/dist/agent-bridge/capabilities/scene-objects.d.ts +3 -4
- package/dist/agent-bridge/capabilities/scene-objects.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/scene-objects.js +24 -23
- package/dist/agent-bridge/capabilities/scene-objects.js.map +1 -1
- package/dist/agent-bridge/capabilities/shadows.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/shadows.js +829 -66
- package/dist/agent-bridge/capabilities/shadows.js.map +1 -1
- package/dist/agent-bridge/capabilities/ui-regions.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/ui-regions.js +3 -1
- package/dist/agent-bridge/capabilities/ui-regions.js.map +1 -1
- package/dist/agent-bridge/capabilities/viewport.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/viewport.js +22 -9
- package/dist/agent-bridge/capabilities/viewport.js.map +1 -1
- package/dist/agent-bridge/capability-sources.d.ts.map +1 -1
- package/dist/agent-bridge/capability-sources.js +2 -0
- package/dist/agent-bridge/capability-sources.js.map +1 -1
- package/dist/agent-bridge/register.d.ts.map +1 -1
- package/dist/agent-bridge/register.js +194 -0
- package/dist/agent-bridge/register.js.map +1 -1
- package/dist/agent-bridge/shared.d.ts +231 -11
- package/dist/agent-bridge/shared.d.ts.map +1 -1
- package/dist/agent-bridge/shared.js +162 -20
- package/dist/agent-bridge/shared.js.map +1 -1
- package/dist/agent-bridge/source-types.d.ts +17 -1
- package/dist/agent-bridge/source-types.d.ts.map +1 -1
- package/dist/agent-bridge/source-types.js.map +1 -1
- package/dist/build-info.json +57 -42
- package/dist/index.d.ts +7 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/internal/babylon-preview-engine.d.ts +3 -0
- package/dist/internal/babylon-preview-engine.d.ts.map +1 -0
- package/dist/internal/babylon-preview-engine.js +11 -0
- package/dist/internal/babylon-preview-engine.js.map +1 -0
- package/dist/internal/product-local-editor-cleanup.d.ts +5 -0
- package/dist/internal/product-local-editor-cleanup.d.ts.map +1 -0
- package/dist/internal/product-local-editor-cleanup.js +20 -0
- package/dist/internal/product-local-editor-cleanup.js.map +1 -0
- package/dist/local-editor-agent-actions.d.ts +2 -4
- package/dist/local-editor-agent-actions.d.ts.map +1 -1
- package/dist/local-editor-agent-actions.js +56 -32
- package/dist/local-editor-agent-actions.js.map +1 -1
- package/dist/local-editor-agent-context.d.ts +5 -5
- package/dist/local-editor-agent-context.d.ts.map +1 -1
- package/dist/local-editor-agent-context.js.map +1 -1
- package/dist/local-editor-harness.d.ts +340 -35
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +3834 -1321
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-marker-graph.d.ts +15 -15
- package/dist/local-editor-marker-graph.d.ts.map +1 -1
- package/dist/local-editor-marker-graph.js +3 -0
- package/dist/local-editor-marker-graph.js.map +1 -1
- package/dist/local-editor-performance-stats.d.ts +3 -2
- package/dist/local-editor-performance-stats.d.ts.map +1 -1
- package/dist/local-editor-performance-stats.js.map +1 -1
- package/dist/local-editor-prefab-stage-transaction.d.ts +19 -0
- package/dist/local-editor-prefab-stage-transaction.d.ts.map +1 -0
- package/dist/local-editor-prefab-stage-transaction.js +45 -0
- package/dist/local-editor-prefab-stage-transaction.js.map +1 -0
- package/dist/local-editor-scene-view-interaction-runtime.d.ts +3 -1
- package/dist/local-editor-scene-view-interaction-runtime.d.ts.map +1 -1
- package/dist/local-editor-scene-view-interaction-runtime.js +24 -0
- package/dist/local-editor-scene-view-interaction-runtime.js.map +1 -1
- package/dist/local-editor-tools.d.ts +18 -0
- package/dist/local-editor-tools.d.ts.map +1 -0
- package/dist/local-editor-tools.js +53 -0
- package/dist/local-editor-tools.js.map +1 -0
- package/dist/playable-babylon-rendering.d.ts +9 -0
- package/dist/playable-babylon-rendering.d.ts.map +1 -1
- package/dist/playable-babylon-rendering.js +162 -6
- package/dist/playable-babylon-rendering.js.map +1 -1
- package/dist/playable-local-editor-entry.d.ts +68 -0
- package/dist/playable-local-editor-entry.d.ts.map +1 -0
- package/dist/playable-local-editor-entry.js +424 -0
- package/dist/playable-local-editor-entry.js.map +1 -0
- package/dist/playable-local-editor-host.d.ts +51 -29
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js +23 -11
- package/dist/playable-local-editor-host.js.map +1 -1
- package/dist/playable-product-local-editor.d.ts +10 -12
- package/dist/playable-product-local-editor.d.ts.map +1 -1
- package/dist/playable-product-local-editor.js +178 -85
- package/dist/playable-product-local-editor.js.map +1 -1
- package/dist/playable-product-projection-preview.d.ts +4 -1
- package/dist/playable-product-projection-preview.d.ts.map +1 -1
- package/dist/playable-product-projection-preview.js +122 -5
- package/dist/playable-product-projection-preview.js.map +1 -1
- package/dist/playable-product-rendering.d.ts +12 -0
- package/dist/playable-product-rendering.d.ts.map +1 -1
- package/dist/playable-product-rendering.js +128 -6
- package/dist/playable-product-rendering.js.map +1 -1
- package/dist/playable-product-scene-capabilities.d.ts +24 -7
- package/dist/playable-product-scene-capabilities.d.ts.map +1 -1
- package/dist/playable-product-scene-capabilities.js +172 -15
- package/dist/playable-product-scene-capabilities.js.map +1 -1
- package/dist/playable-project-mode.d.ts +17 -0
- package/dist/playable-project-mode.d.ts.map +1 -0
- package/dist/playable-project-mode.js +2 -0
- package/dist/playable-project-mode.js.map +1 -0
- package/dist/playable-runtime-babylon.d.ts +3 -6
- package/dist/playable-runtime-babylon.d.ts.map +1 -1
- package/dist/playable-runtime-babylon.js +1 -5
- package/dist/playable-runtime-babylon.js.map +1 -1
- package/dist/playable-sdk.d.ts +16 -9
- package/dist/playable-sdk.d.ts.map +1 -1
- package/dist/playable-sdk.js +6 -4
- package/dist/playable-sdk.js.map +1 -1
- package/dist/playable-standard-project.d.ts +23 -14
- package/dist/playable-standard-project.d.ts.map +1 -1
- package/dist/playable-standard-project.js +53 -19
- package/dist/playable-standard-project.js.map +1 -1
- package/dist/vite-client.d.ts +4 -0
- package/node_modules/@babel/helper-string-parser/lib/index.js +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -1
- package/node_modules/@babel/parser/lib/index.js +0 -1
- package/node_modules/@babel/types/lib/asserts/assertNode.js +0 -1
- package/node_modules/@babel/types/lib/asserts/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/ast-types/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +0 -1
- package/node_modules/@babel/types/lib/builders/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js +0 -1
- package/node_modules/@babel/types/lib/builders/generated/uppercase.js +0 -1
- package/node_modules/@babel/types/lib/builders/productions.js +0 -1
- package/node_modules/@babel/types/lib/builders/react/buildChildren.js +0 -1
- package/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +0 -1
- package/node_modules/@babel/types/lib/builders/validateNode.js +0 -1
- package/node_modules/@babel/types/lib/clone/clone.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeep.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneNode.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +0 -1
- package/node_modules/@babel/types/lib/comments/addComment.js +0 -1
- package/node_modules/@babel/types/lib/comments/addComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritInnerComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritsComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/removeComments.js +0 -1
- package/node_modules/@babel/types/lib/constants/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/constants/index.js +0 -1
- package/node_modules/@babel/types/lib/converters/ensureBlock.js +0 -1
- package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +0 -1
- package/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +0 -1
- package/node_modules/@babel/types/lib/converters/toBlock.js +0 -1
- package/node_modules/@babel/types/lib/converters/toComputedKey.js +0 -1
- package/node_modules/@babel/types/lib/converters/toExpression.js +0 -1
- package/node_modules/@babel/types/lib/converters/toIdentifier.js +0 -1
- package/node_modules/@babel/types/lib/converters/toKeyAlias.js +0 -1
- package/node_modules/@babel/types/lib/converters/toSequenceExpression.js +0 -1
- package/node_modules/@babel/types/lib/converters/toStatement.js +0 -1
- package/node_modules/@babel/types/lib/converters/valueToNode.js +0 -1
- package/node_modules/@babel/types/lib/definitions/core.js +0 -1
- package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +0 -1
- package/node_modules/@babel/types/lib/definitions/experimental.js +0 -1
- package/node_modules/@babel/types/lib/definitions/flow.js +0 -1
- package/node_modules/@babel/types/lib/definitions/index.js +0 -1
- package/node_modules/@babel/types/lib/definitions/jsx.js +0 -1
- package/node_modules/@babel/types/lib/definitions/misc.js +0 -1
- package/node_modules/@babel/types/lib/definitions/placeholders.js +0 -1
- package/node_modules/@babel/types/lib/definitions/typescript.js +0 -1
- package/node_modules/@babel/types/lib/definitions/utils.js +0 -1
- package/node_modules/@babel/types/lib/index.js +0 -1
- package/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +0 -1
- package/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +0 -1
- package/node_modules/@babel/types/lib/modifications/inherits.js +0 -1
- package/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +0 -1
- package/node_modules/@babel/types/lib/modifications/removeProperties.js +0 -1
- package/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +0 -1
- package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getFunctionName.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +0 -1
- package/node_modules/@babel/types/lib/traverse/traverse.js +0 -1
- package/node_modules/@babel/types/lib/traverse/traverseFast.js +0 -1
- package/node_modules/@babel/types/lib/utils/deprecationWarning.js +0 -1
- package/node_modules/@babel/types/lib/utils/inherit.js +0 -1
- package/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +0 -1
- package/node_modules/@babel/types/lib/utils/shallowEqual.js +0 -1
- package/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +0 -1
- package/node_modules/@babel/types/lib/validators/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/validators/is.js +0 -1
- package/node_modules/@babel/types/lib/validators/isBinding.js +0 -1
- package/node_modules/@babel/types/lib/validators/isBlockScoped.js +0 -1
- package/node_modules/@babel/types/lib/validators/isImmutable.js +0 -1
- package/node_modules/@babel/types/lib/validators/isLet.js +0 -1
- package/node_modules/@babel/types/lib/validators/isNode.js +0 -1
- package/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +0 -1
- package/node_modules/@babel/types/lib/validators/isPlaceholderType.js +0 -1
- package/node_modules/@babel/types/lib/validators/isReferenced.js +0 -1
- package/node_modules/@babel/types/lib/validators/isScope.js +0 -1
- package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +0 -1
- package/node_modules/@babel/types/lib/validators/isType.js +0 -1
- package/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +0 -1
- package/node_modules/@babel/types/lib/validators/isValidIdentifier.js +0 -1
- package/node_modules/@babel/types/lib/validators/isVar.js +0 -1
- package/node_modules/@babel/types/lib/validators/matchesPattern.js +0 -1
- package/node_modules/@babel/types/lib/validators/react/isCompatTag.js +0 -1
- package/node_modules/@babel/types/lib/validators/react/isReactComponent.js +0 -1
- package/node_modules/@babel/types/lib/validators/validate.js +0 -1
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.d.ts +69 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.js +132 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.metadata.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.metadata.js +7 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoader.d.ts +14 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoader.js +328 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoadingOptions.d.ts +9 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoadingOptions.js +1 -0
- package/node_modules/@babylonjs/loaders/BVH/index.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/BVH/index.js +3 -0
- package/node_modules/@babylonjs/loaders/OBJ/index.d.ts +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/index.js +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/mtlFileLoader.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/OBJ/mtlFileLoader.js +230 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.d.ts +136 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.js +317 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.metadata.d.ts +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.metadata.js +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/objLoadingOptions.d.ts +47 -0
- package/node_modules/@babylonjs/loaders/OBJ/objLoadingOptions.js +1 -0
- package/node_modules/@babylonjs/loaders/OBJ/solidParser.d.ts +175 -0
- package/node_modules/@babylonjs/loaders/OBJ/solidParser.js +903 -0
- package/node_modules/@babylonjs/loaders/SPLAT/index.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/SPLAT/index.js +3 -0
- package/node_modules/@babylonjs/loaders/SPLAT/sog.d.ts +84 -0
- package/node_modules/@babylonjs/loaders/SPLAT/sog.js +294 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatDefs.d.ts +26 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatDefs.js +10 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.d.ts +100 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.js +536 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.metadata.d.ts +20 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.metadata.js +15 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatLoadingOptions.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatLoadingOptions.js +1 -0
- package/node_modules/@babylonjs/loaders/SPLAT/spz.d.ts +11 -0
- package/node_modules/@babylonjs/loaders/SPLAT/spz.js +168 -0
- package/node_modules/@babylonjs/loaders/STL/index.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/STL/index.js +1 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.d.ts +78 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.js +238 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.metadata.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.metadata.js +7 -0
- package/node_modules/@babylonjs/loaders/bvh/license.md +21 -0
- package/node_modules/@babylonjs/loaders/dynamic.d.ts +5 -0
- package/node_modules/@babylonjs/loaders/dynamic.js +56 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFBinaryExtension.d.ts +16 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFBinaryExtension.js +64 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoader.d.ts +144 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoader.js +1841 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderInterfaces.d.ts +412 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderInterfaces.js +95 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderUtils.d.ts +71 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderUtils.js +254 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFMaterialsCommonExtension.d.ts +13 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFMaterialsCommonExtension.js +130 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/index.d.ts +5 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/index.js +5 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_area.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_area.js +93 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_ies.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_ies.js +83 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +48 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_image_based.js +115 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +94 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_meshopt_compression.js +50 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_avif.d.ts +34 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_avif.js +38 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_webp.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_webp.js +37 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +53 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/ExtrasAsMetadata.js +73 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.d.ts +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.js +251 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.js +77 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +92 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.d.ts +355 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.js +1678 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.js +19 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/index.d.ts +3 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/index.js +3 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.d.ts +70 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.js +438 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity.d.ts +38 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity.js +150 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_lights_punctual.js +91 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_anisotropy.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_anisotropy.js +65 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_clearcoat.js +79 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_coat.d.ts +49 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_coat.js +119 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_roughness.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_roughness.js +58 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.js +69 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_dispersion.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_dispersion.js +56 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_fuzz.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_fuzz.js +77 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_ior.d.ts +46 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_ior.js +54 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_iridescence.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_iridescence.js +68 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +80 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_sheen.js +73 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_specular.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_specular.js +76 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_transmission.js +303 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_unlit.js +66 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_variants.d.ts +112 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_variants.js +262 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume.js +82 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume_scatter.d.ts +45 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume_scatter.js +109 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +29 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_mesh_quantization.js +22 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_hoverability.d.ts +31 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_hoverability.js +189 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_selectability.d.ts +30 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_selectability.js +123 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_visibility.d.ts +30 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_visibility.js +66 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_basisu.js +37 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_transform.d.ts +37 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_transform.js +58 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.js +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +56 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.js +228 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_lod.d.ts +104 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_lod.js +337 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +27 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_minecraftMesh.js +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +27 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_sRGBFactors.js +38 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/dynamic.d.ts +4 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/dynamic.js +212 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/gltfPathToObjectConverter.d.ts +45 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/gltfPathToObjectConverter.js +100 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/index.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/index.js +44 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/objectModelMapping.d.ts +306 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/objectModelMapping.js +884 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoader.d.ts +450 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoader.js +2485 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderAnimation.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderAnimation.js +79 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtension.d.ts +165 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtension.js +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.d.ts +25 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.js +32 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderInterfaces.d.ts +262 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderInterfaces.js +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/index.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/index.js +9 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/materialLoadingAdapter.d.ts +364 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/materialLoadingAdapter.js +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/openpbrMaterialLoadingAdapter.d.ts +674 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/openpbrMaterialLoadingAdapter.js +1034 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/pbrMaterialLoadingAdapter.d.ts +705 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/pbrMaterialLoadingAdapter.js +1126 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.d.ts +553 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.js +998 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.metadata.d.ts +15 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.metadata.js +17 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFValidation.d.ts +35 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFValidation.js +131 -0
- package/node_modules/@babylonjs/loaders/glTF/index.d.ts +5 -0
- package/node_modules/@babylonjs/loaders/glTF/index.js +6 -0
- package/node_modules/@babylonjs/loaders/index.d.ts +6 -0
- package/node_modules/@babylonjs/loaders/index.js +7 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-bvhFileLoader.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-bvhFileLoader.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-dynamic.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-dynamic.js +13 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF.js +18 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1FileLoader.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1FileLoader.js +3 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2.js +34 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2FileLoader.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2FileLoader.js +3 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTFFileLoader.d.ts +3 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTFFileLoader.js +4 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-objFileLoader.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-objFileLoader.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-stlFileLoader.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-stlFileLoader.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy.js +10 -0
- package/node_modules/@babylonjs/loaders/license.md +71 -0
- package/node_modules/@babylonjs/loaders/package.json +49 -0
- package/node_modules/@babylonjs/loaders/readme.md +23 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts +22 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js +187 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/index.js +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.d.ts +19 -0
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.js +212 -0
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts +17 -2
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.js +192 -17
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts +2 -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 +139 -3
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.d.ts +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.js +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.d.ts +14 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.js +14 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.d.ts +59 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.js +725 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.d.ts +136 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.js +2735 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/package.json +7 -7
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts +2 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.js +2 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.d.ts +2 -0
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js +59 -6
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js +81 -11
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js +2 -8
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +17 -5
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js +300 -362
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts +4 -0
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js +76 -10
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.d.ts +46 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.js +304 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts +85 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js +1600 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts +11 -3
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js +105 -15
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.d.ts +25 -0
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.js +44 -0
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/package.json +6 -5
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts +8 -11
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.js +6 -9
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.d.ts +2 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.js +36 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts +2 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js +17 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js +6 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js +157 -77
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js +27 -21
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts +19 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js +44 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts +36 -6
- 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 +829 -866
- 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-drag-policy.d.ts +8 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js +1 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.d.ts +7 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.js +20 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts +6 -7
- 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 +266 -114
- 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-icons.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js +5 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js +3 -17
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.d.ts +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.js +44 -62
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts +10 -7
- 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 +591 -639
- 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-prefab-stage.d.ts +8 -36
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js +25 -103
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js +29 -110
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts +1 -3
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js +6 -90
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js +9 -54
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts +16 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js +44 -39
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.d.ts +4 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.js +44 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js +35 -44
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.js +40 -24
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js +2 -20
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +52 -341
- 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-workbench.d.ts +4 -14
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js +33 -119
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +5 -10
- 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 +595 -544
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.d.ts +2 -3
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.js +0 -180
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.d.ts +5 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.js +5 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/package.json +15 -4
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.d.ts +22 -0
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.js +226 -0
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts +6 -1
- 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 +94 -2
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts +24 -2
- 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 +70 -10
- package/node_modules/@fps-games/editor-core/dist/editor-session.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-tools.d.ts +112 -0
- package/node_modules/@fps-games/editor-core/dist/editor-tools.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-tools.js +613 -0
- package/node_modules/@fps-games/editor-core/dist/editor-tools.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts +46 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.js +62 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts +1 -0
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.js.map +1 -1
- package/node_modules/@fps-games/editor-core/package.json +14 -6
- package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js +14 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts +14 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js +49 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js +58 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js +48 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts +28 -3
- 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 +314 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.js +27 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.js +285 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts +7 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js +23 -81
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.d.ts +41 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.js +93 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.d.ts +29 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.js +77 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.d.ts +51 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.js +105 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.d.ts +60 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.js +287 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts +6 -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 +1 -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 +53 -17
- 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 +16 -8
- 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 +10 -6
- 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 +5 -3
- 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 +2 -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 +134 -66
- 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/project-asset-commands.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js +21 -14
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts +17 -9
- 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/mutation/field-patch.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js +20 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js +49 -10
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.js +130 -20
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.js +12 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.js +136 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.d.ts +36 -51
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.js +40 -65
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts +5 -2
- 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 +207 -1
- 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/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 +3 -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 +18 -7
- 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 +110 -18
- 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-source.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts +5 -2
- 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 +22 -2
- 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/rendering-profile/panel.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js +144 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts +16 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js +241 -13
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.d.ts +31 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.js +170 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts +153 -13
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.d.ts +17 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.js +1295 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.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 +14 -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/driver.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js +57 -34
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js +4 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts +4 -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/serialized-property/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js +20 -198
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.js +5 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js +144 -8
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.js +30 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js +31 -3
- 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 +5 -2
- 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 +40 -4
- 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/plugin.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js +116 -3
- 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 +2 -1
- 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 -0
- 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-asset-authoring.d.ts +17 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.js +50 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.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 +7 -5
- 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/product-scene-authoring.d.ts +5 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.js +31 -17
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts +6 -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/agent-bridge.d.ts +417 -2
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js +692 -2
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.d.ts +55 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.js +2 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts +3 -18
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/index.js +1 -0
- 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/dist/package-metadata-node.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.js +5 -0
- package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.js.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/vite.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/vite.js +151 -5
- package/node_modules/@fps-games/editor-tooling/dist/vite.js.map +1 -1
- package/node_modules/@fps-games/editor-tooling/package.json +3 -3
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.d.ts +107 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.js +770 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.d.ts +21 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.js +172 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.d.ts +14 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.js +32 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.d.ts +3 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.js +653 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.d.ts +3 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.js +3 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-ui/dist/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/index.js +5 -0
- package/node_modules/@fps-games/editor-ui/dist/index.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.d.ts +7 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.js +29 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.d.ts +2 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.js +95 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.d.ts +28 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.js +387 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/package.json +23 -0
- package/node_modules/@fps-games/playable-assets/package.json +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/index.d.ts +1 -0
- package/node_modules/@fps-games/playable-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/index.js +1 -0
- package/node_modules/@fps-games/playable-contracts/dist/index.js.map +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.d.ts +116 -0
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.js +403 -0
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.js.map +1 -0
- package/node_modules/@fps-games/playable-contracts/package.json +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/index.js +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/index.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-validation.js +5 -25
- package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-validation.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/runtime.d.ts +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/runtime.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/runtime.js +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/runtime.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.d.ts +61 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.js +176 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.js.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.d.ts +84 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.js +362 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.js.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.d.ts +167 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.js +484 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.js.map +1 -0
- package/node_modules/@fps-games/playable-rendering/package.json +2 -2
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.d.ts +5 -0
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.js +1 -0
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.js.map +1 -1
- 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 +5 -5
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.d.ts +6 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.js +16 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.d.ts +7 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.js +47 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts +306 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js +1237 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.d.ts +8 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.js +32 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts +2 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.js +2 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/package.json +57 -0
- 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/reference.d.ts +8 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.js +35 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.js.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.d.ts +11 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.js +14 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.js.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts +2 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js +2 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/package.json +53 -0
- 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/node_modules/@playcanvas/observer/LICENSE +19 -0
- package/node_modules/@playcanvas/observer/README.md +72 -0
- package/node_modules/@playcanvas/observer/dist/index.cjs +2033 -0
- package/node_modules/@playcanvas/observer/dist/index.js +2039 -0
- package/node_modules/@playcanvas/observer/dist/index.mjs +2026 -0
- package/node_modules/@playcanvas/observer/package.json +78 -0
- package/node_modules/@playcanvas/observer/types/event-handle.d.ts +41 -0
- package/node_modules/@playcanvas/observer/types/events.d.ts +162 -0
- package/node_modules/@playcanvas/observer/types/history.d.ts +123 -0
- package/node_modules/@playcanvas/observer/types/index.d.ts +15 -0
- package/node_modules/@playcanvas/observer/types/observer-history.d.ts +32 -0
- package/node_modules/@playcanvas/observer/types/observer-list.d.ts +39 -0
- package/node_modules/@playcanvas/observer/types/observer.d.ts +157 -0
- package/node_modules/@playcanvas/observer/types/utils.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/LICENSE +19 -0
- package/node_modules/@playcanvas/pcui/README.md +164 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/constants.mjs +6 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-evaluator.mjs +119 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-set.mjs +82 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve.mjs +92 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/math.mjs +105 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/Math/color-value.mjs +77 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingBase/index.mjs +215 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingElementToObservers/index.mjs +297 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingObserversToElement/index.mjs +110 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingTwoWay/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/class.mjs +19 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/ArrayInput/index.mjs +498 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/BooleanInput/index.mjs +122 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Button/index.mjs +119 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Canvas/index.mjs +104 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Code/index.mjs +43 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/ColorPicker/index.mjs +619 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Container/index.mjs +642 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Divider/index.mjs +20 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Element/index.mjs +829 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/GradientPicker/index.mjs +1136 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/GridView/index.mjs +448 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/GridViewItem/index.mjs +152 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/InfoBox/index.mjs +90 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/InputElement/index.mjs +186 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Label/index.mjs +124 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/LabelGroup/index.mjs +74 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Menu/index.mjs +174 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/MenuItem/index.mjs +223 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/NumericInput/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Overlay/index.mjs +108 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Panel/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Progress/index.mjs +45 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/RadioButton/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/SelectInput/index.mjs +1085 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/SliderInput/index.mjs +333 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Spinner/index.mjs +34 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TextAreaInput/index.mjs +50 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TextInput/index.mjs +98 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TreeView/index.mjs +1131 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TreeViewItem/index.mjs +500 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/VectorInput/index.mjs +366 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/helpers/search.mjs +194 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/helpers/utils.mjs +43 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/index.mjs +56 -0
- package/node_modules/@playcanvas/pcui/dist/pcui-theme-green.scss +2798 -0
- package/node_modules/@playcanvas/pcui/dist/pcui-theme-grey.scss +2798 -0
- package/node_modules/@playcanvas/pcui/package.json +150 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/constants.mjs +6 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-evaluator.mjs +119 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-set.mjs +82 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve.mjs +92 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/math.mjs +105 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/Math/color-value.mjs +77 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingBase/index.mjs +215 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingElementToObservers/index.mjs +297 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingObserversToElement/index.mjs +110 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingTwoWay/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/class.mjs +19 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ArrayInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ArrayInput/index.mjs +498 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/BooleanInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/BooleanInput/index.mjs +122 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Button/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Button/index.mjs +119 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Canvas/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Canvas/index.mjs +104 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Code/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Code/index.mjs +43 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ColorPicker/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ColorPicker/index.mjs +619 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Container/component.mjs +36 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Container/index.mjs +642 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Divider/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Divider/index.mjs +20 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Element/component.mjs +107 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Element/index.mjs +829 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GradientPicker/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GradientPicker/index.mjs +1136 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridView/component.mjs +38 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridView/index.mjs +448 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridViewItem/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridViewItem/index.mjs +152 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InfoBox/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InfoBox/index.mjs +90 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InputElement/index.mjs +186 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Label/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Label/index.mjs +124 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/LabelGroup/component.mjs +42 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/LabelGroup/index.mjs +74 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Menu/component.mjs +23 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Menu/index.mjs +174 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/MenuItem/index.mjs +223 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/NumericInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/NumericInput/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Overlay/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Overlay/index.mjs +108 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Panel/component.mjs +32 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Panel/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Progress/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Progress/index.mjs +45 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/RadioButton/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/RadioButton/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SelectInput/component.mjs +21 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SelectInput/index.mjs +1085 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SliderInput/component.mjs +12 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SliderInput/index.mjs +333 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Spinner/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Spinner/index.mjs +34 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextAreaInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextAreaInput/index.mjs +50 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextInput/component.mjs +23 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextInput/index.mjs +98 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeView/component.mjs +52 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeView/index.mjs +1131 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeViewItem/component.mjs +33 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeViewItem/index.mjs +500 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/VectorInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/VectorInput/index.mjs +366 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/helpers/search.mjs +194 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/helpers/utils.mjs +43 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/index.mjs +39 -0
- package/node_modules/@playcanvas/pcui/react/package.json +18 -0
- package/node_modules/@playcanvas/pcui/react/types/Math/color-value.d.ts +3 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingBase/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingElementToObservers/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingObserversToElement/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingTwoWay/index.d.ts +54 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/index.d.ts +5 -0
- package/node_modules/@playcanvas/pcui/react/types/class.d.ts +17 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ArrayInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ArrayInput/index.d.ts +140 -0
- package/node_modules/@playcanvas/pcui/react/types/components/BooleanInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/BooleanInput/index.d.ts +41 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Button/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Button/index.d.ts +75 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Canvas/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Canvas/index.d.ts +61 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Code/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Code/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ColorPicker/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ColorPicker/index.d.ts +99 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Container/component.d.ts +15 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Container/index.d.ts +292 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Divider/component.d.ts +10 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Divider/index.d.ts +13 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Element/component.d.ts +23 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Element/index.d.ts +671 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GradientPicker/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GradientPicker/index.d.ts +152 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridView/component.d.ts +14 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridView/index.d.ts +103 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridViewItem/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridViewItem/index.d.ts +82 -0
- package/node_modules/@playcanvas/pcui/react/types/components/InfoBox/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/InfoBox/index.d.ts +71 -0
- package/node_modules/@playcanvas/pcui/react/types/components/InputElement/index.d.ts +84 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Label/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Label/index.d.ts +85 -0
- package/node_modules/@playcanvas/pcui/react/types/components/LabelGroup/component.d.ts +10 -0
- package/node_modules/@playcanvas/pcui/react/types/components/LabelGroup/index.d.ts +62 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Menu/component.d.ts +14 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Menu/index.d.ts +70 -0
- package/node_modules/@playcanvas/pcui/react/types/components/MenuItem/index.d.ts +139 -0
- package/node_modules/@playcanvas/pcui/react/types/components/NumericInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/NumericInput/index.d.ts +173 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Overlay/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Overlay/index.d.ts +53 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Panel/component.d.ts +16 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Panel/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Progress/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Progress/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/react/types/components/RadioButton/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/RadioButton/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SelectInput/component.d.ts +12 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SelectInput/index.d.ts +278 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SliderInput/component.d.ts +10 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SliderInput/index.d.ts +133 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Spinner/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Spinner/index.d.ts +27 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextAreaInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextAreaInput/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextInput/component.d.ts +12 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextInput/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeView/component.d.ts +17 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeView/index.d.ts +359 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeViewItem/component.d.ts +13 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeViewItem/index.d.ts +224 -0
- package/node_modules/@playcanvas/pcui/react/types/components/VectorInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/VectorInput/index.d.ts +176 -0
- package/node_modules/@playcanvas/pcui/react/types/components/components.d.ts +30 -0
- package/node_modules/@playcanvas/pcui/react/types/components/index.d.ts +32 -0
- package/node_modules/@playcanvas/pcui/react/types/helpers/search.d.ts +31 -0
- package/node_modules/@playcanvas/pcui/react/types/helpers/utils.d.ts +2 -0
- package/node_modules/@playcanvas/pcui/react/types/index.d.ts +4 -0
- package/node_modules/@playcanvas/pcui/styles/dist/index.mjs +11 -0
- package/node_modules/@playcanvas/pcui/styles/package.json +17 -0
- package/node_modules/@playcanvas/pcui/types/Math/color-value.d.ts +3 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingBase/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingElementToObservers/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingObserversToElement/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingTwoWay/index.d.ts +54 -0
- package/node_modules/@playcanvas/pcui/types/binding/index.d.ts +5 -0
- package/node_modules/@playcanvas/pcui/types/class.d.ts +17 -0
- package/node_modules/@playcanvas/pcui/types/components/ArrayInput/index.d.ts +140 -0
- package/node_modules/@playcanvas/pcui/types/components/BooleanInput/index.d.ts +41 -0
- package/node_modules/@playcanvas/pcui/types/components/Button/index.d.ts +75 -0
- package/node_modules/@playcanvas/pcui/types/components/Canvas/index.d.ts +61 -0
- package/node_modules/@playcanvas/pcui/types/components/Code/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/types/components/ColorPicker/index.d.ts +99 -0
- package/node_modules/@playcanvas/pcui/types/components/Container/index.d.ts +292 -0
- package/node_modules/@playcanvas/pcui/types/components/Divider/index.d.ts +13 -0
- package/node_modules/@playcanvas/pcui/types/components/Element/index.d.ts +671 -0
- package/node_modules/@playcanvas/pcui/types/components/GradientPicker/index.d.ts +152 -0
- package/node_modules/@playcanvas/pcui/types/components/GridView/index.d.ts +103 -0
- package/node_modules/@playcanvas/pcui/types/components/GridViewItem/index.d.ts +82 -0
- package/node_modules/@playcanvas/pcui/types/components/InfoBox/index.d.ts +71 -0
- package/node_modules/@playcanvas/pcui/types/components/InputElement/index.d.ts +84 -0
- package/node_modules/@playcanvas/pcui/types/components/Label/index.d.ts +85 -0
- package/node_modules/@playcanvas/pcui/types/components/LabelGroup/index.d.ts +62 -0
- package/node_modules/@playcanvas/pcui/types/components/Menu/index.d.ts +70 -0
- package/node_modules/@playcanvas/pcui/types/components/MenuItem/index.d.ts +139 -0
- package/node_modules/@playcanvas/pcui/types/components/NumericInput/index.d.ts +173 -0
- package/node_modules/@playcanvas/pcui/types/components/Overlay/index.d.ts +53 -0
- package/node_modules/@playcanvas/pcui/types/components/Panel/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/types/components/Progress/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/types/components/RadioButton/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/types/components/SelectInput/index.d.ts +278 -0
- package/node_modules/@playcanvas/pcui/types/components/SliderInput/index.d.ts +133 -0
- package/node_modules/@playcanvas/pcui/types/components/Spinner/index.d.ts +27 -0
- package/node_modules/@playcanvas/pcui/types/components/TextAreaInput/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/types/components/TextInput/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/types/components/TreeView/index.d.ts +359 -0
- package/node_modules/@playcanvas/pcui/types/components/TreeViewItem/index.d.ts +224 -0
- package/node_modules/@playcanvas/pcui/types/components/VectorInput/index.d.ts +176 -0
- package/node_modules/@playcanvas/pcui/types/components/index.d.ts +32 -0
- package/node_modules/@playcanvas/pcui/types/helpers/search.d.ts +31 -0
- package/node_modules/@playcanvas/pcui/types/helpers/utils.d.ts +2 -0
- package/node_modules/@playcanvas/pcui/types/index.d.ts +20 -0
- package/node_modules/babylonjs-gltf2interface/babylon.glTF2Interface.d.ts +1655 -0
- package/node_modules/babylonjs-gltf2interface/license.md +71 -0
- package/node_modules/babylonjs-gltf2interface/package.json +26 -0
- package/package.json +31 -19
- package/dist/editor-plugin-hierarchy-command.d.ts +0 -19
- package/dist/editor-plugin-hierarchy-command.d.ts.map +0 -1
- package/dist/editor-plugin-hierarchy-command.js +0 -119
- package/dist/editor-plugin-hierarchy-command.js.map +0 -1
- package/node_modules/@babel/helper-string-parser/lib/index.js.map +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
- package/node_modules/@babel/parser/lib/index.js.map +0 -1
- package/node_modules/@babel/types/lib/asserts/assertNode.js.map +0 -1
- package/node_modules/@babel/types/lib/asserts/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/productions.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/validateNode.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/clone.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeep.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneNode.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/addComment.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/addComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritsComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/removeComments.js.map +0 -1
- package/node_modules/@babel/types/lib/constants/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/constants/index.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/ensureBlock.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toBlock.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toComputedKey.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toIdentifier.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toStatement.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/valueToNode.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/core.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/experimental.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/flow.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/index.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/jsx.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/misc.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/placeholders.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/typescript.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/utils.js.map +0 -1
- package/node_modules/@babel/types/lib/index.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/inherits.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/removeProperties.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +0 -1
- package/node_modules/@babel/types/lib/traverse/traverse.js.map +0 -1
- package/node_modules/@babel/types/lib/traverse/traverseFast.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/inherit.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/shallowEqual.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/is.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isBinding.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isImmutable.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isLet.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isNode.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isReferenced.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isScope.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isType.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isVar.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/matchesPattern.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/validate.js.map +0 -1
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts +0 -37
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js +0 -451
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts +0 -49
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js +0 -627
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.d.ts +0 -52
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js +0 -450
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts +0 -21
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js +0 -75
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.d.ts +0 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.js +0 -186
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.d.ts +0 -5
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js +0 -98
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts +0 -63
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js +0 -301
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js.map +0 -1
|
@@ -9,12 +9,15 @@ export interface BabylonSceneViewCameraControllerOptions {
|
|
|
9
9
|
orbitSensitivity?: number;
|
|
10
10
|
panSensitivity?: number;
|
|
11
11
|
dollySensitivity?: number;
|
|
12
|
+
onNavigation?: (source: BabylonSceneViewCameraNavigationSource) => void;
|
|
12
13
|
}
|
|
14
|
+
export type BabylonSceneViewCameraNavigationSource = 'pointer' | 'wheel' | 'preset' | 'projection' | 'orbit' | 'flythrough';
|
|
13
15
|
export interface BabylonSceneViewCameraFrame {
|
|
14
16
|
deltaSeconds: number;
|
|
15
17
|
}
|
|
16
18
|
export interface BabylonSceneViewCameraController {
|
|
17
19
|
getState(): BabylonSceneViewCameraState;
|
|
20
|
+
restoreState(snapshot: BabylonSceneViewCameraState): boolean;
|
|
18
21
|
setViewPreset(preset: EditorViewportViewPreset, options?: BabylonSceneViewCameraPresetOptions): boolean;
|
|
19
22
|
setProjectionMode(mode: EditorViewportProjectionMode): boolean;
|
|
20
23
|
orbit(options?: BabylonSceneViewCameraOrbitOptions): boolean;
|
|
@@ -26,6 +29,7 @@ export interface BabylonSceneViewCameraController {
|
|
|
26
29
|
export interface BabylonSceneViewCameraState {
|
|
27
30
|
viewPreset: EditorViewportViewPreset;
|
|
28
31
|
projectionMode: EditorViewportProjectionMode;
|
|
32
|
+
orthographicHalfHeight?: number;
|
|
29
33
|
target?: Vec3;
|
|
30
34
|
position?: Vec3;
|
|
31
35
|
alpha?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene-view-camera-controller.d.ts","sourceRoot":"","sources":["../src/scene-view-camera-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,+BAA+B,EAC/B,iCAAiC,EACjC,+BAA+B,EAChC,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,uCAAuC;IACtD,OAAO,EAAE,oBAAoB,CAAC;IAC9B,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,+BAA+B,CAAC;IACvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"scene-view-camera-controller.d.ts","sourceRoot":"","sources":["../src/scene-view-camera-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,+BAA+B,EAC/B,iCAAiC,EACjC,+BAA+B,EAChC,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,oBAAoB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AChC,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mCAAmC;IAClD,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kCAAmC,SAAQ,mCAAmC;IAC7F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AASD,UAAU,IAAI;IACZ,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AA8BD,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,uCAAuC,GAC/C,gCAAgC,CAoalC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const DEFAULT_ORBIT_SENSITIVITY = 0.005;
|
|
2
2
|
const DEFAULT_PAN_SENSITIVITY = 0.0015;
|
|
3
3
|
const DEFAULT_DOLLY_SENSITIVITY = 0.001;
|
|
4
|
+
const MAX_DOLLY_EXPONENT = 2;
|
|
4
5
|
const MIN_CAMERA_RADIUS = 0.2;
|
|
5
6
|
const MAX_CAMERA_RADIUS = 10000;
|
|
6
7
|
const DEFAULT_ORTHO_RADIUS = 10;
|
|
@@ -36,20 +37,24 @@ export function createBabylonSceneViewCameraController(options) {
|
|
|
36
37
|
return false;
|
|
37
38
|
const { intent, delta } = event.state;
|
|
38
39
|
if (intent === 'orbit') {
|
|
40
|
+
options.onNavigation?.('pointer');
|
|
39
41
|
orbitCamera(delta.x, delta.y);
|
|
40
42
|
viewPreset = 'perspective';
|
|
41
43
|
return true;
|
|
42
44
|
}
|
|
43
45
|
if (intent === 'flythrough') {
|
|
46
|
+
options.onNavigation?.('pointer');
|
|
44
47
|
lookCamera(delta.x, delta.y);
|
|
45
48
|
viewPreset = 'perspective';
|
|
46
49
|
return true;
|
|
47
50
|
}
|
|
48
51
|
if (intent === 'pan') {
|
|
52
|
+
options.onNavigation?.('pointer');
|
|
49
53
|
panCamera(delta.x, delta.y);
|
|
50
54
|
return true;
|
|
51
55
|
}
|
|
52
56
|
if (intent === 'dolly') {
|
|
57
|
+
options.onNavigation?.('pointer');
|
|
53
58
|
dollyCamera(delta.y * 4);
|
|
54
59
|
return true;
|
|
55
60
|
}
|
|
@@ -60,6 +65,7 @@ export function createBabylonSceneViewCameraController(options) {
|
|
|
60
65
|
return false;
|
|
61
66
|
if (input.getState().navigationMode === 'flythrough')
|
|
62
67
|
return true;
|
|
68
|
+
options.onNavigation?.('wheel');
|
|
63
69
|
dollyCamera(event.deltaY);
|
|
64
70
|
return true;
|
|
65
71
|
}
|
|
@@ -80,16 +86,19 @@ export function createBabylonSceneViewCameraController(options) {
|
|
|
80
86
|
state.beta = Number(camera.beta);
|
|
81
87
|
if (Number.isFinite(camera.radius))
|
|
82
88
|
state.radius = Number(camera.radius);
|
|
89
|
+
if (state.projectionMode === 'orthographic')
|
|
90
|
+
state.orthographicHalfHeight = resolveOrthoSize();
|
|
83
91
|
return state;
|
|
84
92
|
}
|
|
85
93
|
function setViewPreset(preset, presetOptions = {}) {
|
|
86
94
|
if (disposed)
|
|
87
95
|
return false;
|
|
96
|
+
options.onNavigation?.('preset');
|
|
88
97
|
const nextPreset = normalizeViewPreset(preset);
|
|
89
98
|
if (nextPreset === 'perspective') {
|
|
90
99
|
viewPreset = 'perspective';
|
|
91
100
|
applyPerspectivePreset(presetOptions);
|
|
92
|
-
|
|
101
|
+
applyProjectionMode('perspective');
|
|
93
102
|
return true;
|
|
94
103
|
}
|
|
95
104
|
const angles = VIEW_PRESET_ANGLES[nextPreset];
|
|
@@ -98,7 +107,7 @@ export function createBabylonSceneViewCameraController(options) {
|
|
|
98
107
|
}
|
|
99
108
|
viewPreset = nextPreset;
|
|
100
109
|
applyViewPresetAngles(nextPreset, presetOptions);
|
|
101
|
-
|
|
110
|
+
applyProjectionMode(angles.projectionMode);
|
|
102
111
|
if (angles.projectionMode === 'orthographic')
|
|
103
112
|
updateOrthoExtents(resolveOrthoSize());
|
|
104
113
|
return true;
|
|
@@ -106,6 +115,7 @@ export function createBabylonSceneViewCameraController(options) {
|
|
|
106
115
|
function orbit(orbitOptions = {}) {
|
|
107
116
|
if (disposed)
|
|
108
117
|
return false;
|
|
118
|
+
options.onNavigation?.('orbit');
|
|
109
119
|
const baseAlpha = Number(camera.alpha);
|
|
110
120
|
const baseBeta = Number(camera.beta);
|
|
111
121
|
const baseRadius = Number(camera.radius);
|
|
@@ -122,20 +132,50 @@ export function createBabylonSceneViewCameraController(options) {
|
|
|
122
132
|
camera.radius = clamp(baseRadius * Math.max(0.05, distanceScale), MIN_CAMERA_RADIUS, MAX_CAMERA_RADIUS);
|
|
123
133
|
}
|
|
124
134
|
viewPreset = 'perspective';
|
|
125
|
-
|
|
135
|
+
applyProjectionMode('perspective');
|
|
126
136
|
return true;
|
|
127
137
|
}
|
|
128
138
|
function setProjectionMode(mode) {
|
|
129
139
|
if (disposed)
|
|
130
140
|
return false;
|
|
141
|
+
options.onNavigation?.('projection');
|
|
142
|
+
return applyProjectionMode(mode);
|
|
143
|
+
}
|
|
144
|
+
function applyProjectionMode(mode, orthographicHalfHeight) {
|
|
131
145
|
const nextMode = mode === 'orthographic' ? 'orthographic' : 'perspective';
|
|
132
146
|
const Camera = options.babylon.Camera;
|
|
133
147
|
camera.mode = nextMode === 'orthographic'
|
|
134
148
|
? Camera?.ORTHOGRAPHIC_CAMERA ?? 1
|
|
135
149
|
: Camera?.PERSPECTIVE_CAMERA ?? 0;
|
|
136
150
|
projectionMode = nextMode;
|
|
137
|
-
if (nextMode === 'orthographic')
|
|
138
|
-
updateOrthoExtents(resolveOrthoSize());
|
|
151
|
+
if (nextMode === 'orthographic') {
|
|
152
|
+
updateOrthoExtents(orthographicHalfHeight ?? resolveOrthoSize());
|
|
153
|
+
}
|
|
154
|
+
return true;
|
|
155
|
+
}
|
|
156
|
+
function restoreState(snapshot) {
|
|
157
|
+
if (disposed || !isValidCameraState(snapshot))
|
|
158
|
+
return false;
|
|
159
|
+
const nextPreset = normalizeViewPreset(snapshot.viewPreset);
|
|
160
|
+
const nextProjection = snapshot.projectionMode === 'orthographic' ? 'orthographic' : 'perspective';
|
|
161
|
+
if (snapshot.target)
|
|
162
|
+
setCameraTarget(snapshot.target);
|
|
163
|
+
const hasOrbitCoordinates = snapshot.alpha !== undefined
|
|
164
|
+
&& snapshot.beta !== undefined
|
|
165
|
+
&& snapshot.radius !== undefined;
|
|
166
|
+
if (snapshot.position && !hasOrbitCoordinates && camera.position && Vector3) {
|
|
167
|
+
camera.position = new Vector3(snapshot.position.x, snapshot.position.y, snapshot.position.z);
|
|
168
|
+
}
|
|
169
|
+
if (snapshot.alpha !== undefined)
|
|
170
|
+
camera.alpha = snapshot.alpha;
|
|
171
|
+
if (snapshot.beta !== undefined)
|
|
172
|
+
camera.beta = clamp(snapshot.beta, 0.01, Math.PI - 0.01);
|
|
173
|
+
if (snapshot.radius !== undefined)
|
|
174
|
+
camera.radius = clamp(snapshot.radius, MIN_CAMERA_RADIUS, MAX_CAMERA_RADIUS);
|
|
175
|
+
viewPreset = nextPreset;
|
|
176
|
+
applyProjectionMode(nextProjection, snapshot.orthographicHalfHeight);
|
|
177
|
+
if (nextProjection === 'perspective')
|
|
178
|
+
lastPerspective = readPerspectiveSnapshot();
|
|
139
179
|
return true;
|
|
140
180
|
}
|
|
141
181
|
function updateFrame(frame) {
|
|
@@ -176,6 +216,7 @@ export function createBabylonSceneViewCameraController(options) {
|
|
|
176
216
|
const normalized = normalizeVec3(move);
|
|
177
217
|
if (!normalized)
|
|
178
218
|
return false;
|
|
219
|
+
options.onNavigation?.('flythrough');
|
|
179
220
|
translateCamera(scaleVec3(normalized, step));
|
|
180
221
|
return true;
|
|
181
222
|
}
|
|
@@ -215,8 +256,8 @@ export function createBabylonSceneViewCameraController(options) {
|
|
|
215
256
|
}
|
|
216
257
|
function dollyCamera(deltaY) {
|
|
217
258
|
if (Number.isFinite(camera.radius)) {
|
|
218
|
-
const
|
|
219
|
-
camera.radius = clamp(Number(camera.radius) * Math.
|
|
259
|
+
const exponent = clamp(deltaY * dollySensitivity, -MAX_DOLLY_EXPONENT, MAX_DOLLY_EXPONENT);
|
|
260
|
+
camera.radius = clamp(Number(camera.radius) * Math.exp(exponent), MIN_CAMERA_RADIUS, MAX_CAMERA_RADIUS);
|
|
220
261
|
if (readProjectionMode() === 'orthographic')
|
|
221
262
|
updateOrthoExtents(resolveOrthoSize());
|
|
222
263
|
return;
|
|
@@ -306,10 +347,12 @@ export function createBabylonSceneViewCameraController(options) {
|
|
|
306
347
|
return camera.mode === orthoMode ? 'orthographic' : 'perspective';
|
|
307
348
|
}
|
|
308
349
|
function setCameraTarget(target) {
|
|
309
|
-
if (camera.
|
|
350
|
+
if (camera.setTarget && Vector3) {
|
|
351
|
+
camera.setTarget(new Vector3(target.x, target.y, target.z), false, false, true);
|
|
352
|
+
}
|
|
353
|
+
else if (camera.target && Vector3) {
|
|
310
354
|
camera.target = new Vector3(target.x, target.y, target.z);
|
|
311
|
-
|
|
312
|
-
camera.setTarget(new Vector3(target.x, target.y, target.z));
|
|
355
|
+
}
|
|
313
356
|
}
|
|
314
357
|
function readTarget() {
|
|
315
358
|
if (camera.target)
|
|
@@ -386,6 +429,7 @@ export function createBabylonSceneViewCameraController(options) {
|
|
|
386
429
|
}
|
|
387
430
|
return {
|
|
388
431
|
getState,
|
|
432
|
+
restoreState,
|
|
389
433
|
setViewPreset,
|
|
390
434
|
setProjectionMode,
|
|
391
435
|
orbit,
|
|
@@ -399,6 +443,28 @@ export function createBabylonSceneViewCameraController(options) {
|
|
|
399
443
|
},
|
|
400
444
|
};
|
|
401
445
|
}
|
|
446
|
+
function isValidCameraState(value) {
|
|
447
|
+
if (!value || typeof value !== 'object')
|
|
448
|
+
return false;
|
|
449
|
+
if (value.viewPreset !== 'perspective' && !(value.viewPreset in VIEW_PRESET_ANGLES))
|
|
450
|
+
return false;
|
|
451
|
+
if (value.projectionMode !== 'perspective' && value.projectionMode !== 'orthographic')
|
|
452
|
+
return false;
|
|
453
|
+
if (value.target && !isFiniteVec3(value.target))
|
|
454
|
+
return false;
|
|
455
|
+
if (value.position && !isFiniteVec3(value.position))
|
|
456
|
+
return false;
|
|
457
|
+
for (const number of [value.alpha, value.beta, value.radius, value.orthographicHalfHeight]) {
|
|
458
|
+
if (number !== undefined && !Number.isFinite(number))
|
|
459
|
+
return false;
|
|
460
|
+
}
|
|
461
|
+
if (value.radius !== undefined && value.radius <= 0)
|
|
462
|
+
return false;
|
|
463
|
+
return value.orthographicHalfHeight === undefined || value.orthographicHalfHeight > 0;
|
|
464
|
+
}
|
|
465
|
+
function isFiniteVec3(value) {
|
|
466
|
+
return Number.isFinite(value.x) && Number.isFinite(value.y) && Number.isFinite(value.z);
|
|
467
|
+
}
|
|
402
468
|
function readVec3(value) {
|
|
403
469
|
return {
|
|
404
470
|
x: Number(value?.x) || 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene-view-camera-controller.js","sourceRoot":"","sources":["../src/scene-view-camera-controller.ts"],"names":[],"mappings":"AA0EA,MAAM,yBAAyB,GAAG,KAAK,CAAC;AACxC,MAAM,uBAAuB,GAAG,MAAM,CAAC;AACvC,MAAM,yBAAyB,GAAG,KAAK,CAAC;AACxC,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAC9B,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAChC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAC7B,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,gBAAgB,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC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AC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC;AAC3E,CAAC;AAED,SAAS,YAAY,CAAC,IAAU,EAAE,KAAW;IAC3C,OAAO,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC;AAC3E,CAAC;AAED,SAAS,SAAS,CAAC,KAAW,EAAE,KAAa;IAC3C,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC;AACxE,CAAC;AAED,SAAS,aAAa,CAAC,KAAW;IAChC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACrD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,IAAI,QAAQ;QAAE,OAAO,IAAI,CAAC;IAChE,OAAO,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC;AACtC,CAAC;AAED,SAAS,KAAK,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW;IACpD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;AAC7C,CAAC","sourcesContent":["import type {\n EditorViewportProjectionMode,\n EditorViewportViewPreset,\n} from '@fps-games/editor-core';\nimport type {\n BabylonSceneViewInputController,\n BabylonSceneViewInputPointerEvent,\n BabylonSceneViewInputWheelEvent,\n} from './scene-view-input-controller';\nimport type {\n BabylonRuntimeGlobal,\n RuntimeCamera,\n RuntimeScene,\n} from './types';\n\nexport interface BabylonSceneViewCameraControllerOptions {\n babylon: BabylonRuntimeGlobal;\n scene: RuntimeScene;\n camera: RuntimeCamera;\n input: BabylonSceneViewInputController;\n orbitSensitivity?: number;\n panSensitivity?: number;\n dollySensitivity?: number;\n}\n\nexport interface BabylonSceneViewCameraFrame {\n deltaSeconds: number;\n}\n\nexport interface BabylonSceneViewCameraController {\n getState(): BabylonSceneViewCameraState;\n setViewPreset(preset: EditorViewportViewPreset, options?: BabylonSceneViewCameraPresetOptions): boolean;\n setProjectionMode(mode: EditorViewportProjectionMode): boolean;\n orbit(options?: BabylonSceneViewCameraOrbitOptions): boolean;\n updateFrame(frame: BabylonSceneViewCameraFrame): boolean;\n handlePointerIntentMove(event: BabylonSceneViewInputPointerEvent): boolean;\n handleWheel(event: BabylonSceneViewInputWheelEvent): boolean;\n dispose(): void;\n}\n\nexport interface BabylonSceneViewCameraState {\n viewPreset: EditorViewportViewPreset;\n projectionMode: EditorViewportProjectionMode;\n target?: Vec3;\n position?: Vec3;\n alpha?: number;\n beta?: number;\n radius?: number;\n}\n\nexport interface BabylonSceneViewCameraPresetOptions {\n target?: Vec3 | null;\n radius?: number;\n}\n\nexport interface BabylonSceneViewCameraOrbitOptions extends BabylonSceneViewCameraPresetOptions {\n yawDeltaDeg?: number;\n pitchDeltaDeg?: number;\n distanceScale?: number;\n}\n\ninterface PerspectiveSnapshot {\n alpha?: number;\n beta?: number;\n radius?: number;\n target?: Vec3;\n}\n\ninterface Vec3 {\n x: number;\n y: number;\n z: number;\n}\n\nconst DEFAULT_ORBIT_SENSITIVITY = 0.005;\nconst DEFAULT_PAN_SENSITIVITY = 0.0015;\nconst DEFAULT_DOLLY_SENSITIVITY = 0.001;\nconst MIN_CAMERA_RADIUS = 0.2;\nconst MAX_CAMERA_RADIUS = 10000;\nconst DEFAULT_ORTHO_RADIUS = 10;\nconst DEFAULT_ORTHO_SIZE = 6;\nconst TOP_VIEW_BETA = 0.01;\nconst BOTTOM_VIEW_BETA = Math.PI - 0.01;\nconst ISOMETRIC_VIEW_BETA = Math.PI / 3;\nconst THREE_QUARTER_TOP_BETA = Math.PI / 4;\n\nconst VIEW_PRESET_ANGLES: Record<Exclude<EditorViewportViewPreset, 'perspective'>, {\n alpha: number;\n beta: number;\n projectionMode: EditorViewportProjectionMode;\n}> = {\n top: { alpha: Math.PI / 2, beta: TOP_VIEW_BETA, projectionMode: 'orthographic' },\n bottom: { alpha: Math.PI / 2, beta: BOTTOM_VIEW_BETA, projectionMode: 'orthographic' },\n front: { alpha: -Math.PI / 2, beta: Math.PI / 2, projectionMode: 'orthographic' },\n back: { alpha: Math.PI / 2, beta: Math.PI / 2, projectionMode: 'orthographic' },\n left: { alpha: Math.PI, beta: Math.PI / 2, projectionMode: 'orthographic' },\n right: { alpha: 0, beta: Math.PI / 2, projectionMode: 'orthographic' },\n iso: { alpha: Math.PI / 4, beta: ISOMETRIC_VIEW_BETA, projectionMode: 'orthographic' },\n threeQuarterTop: { alpha: Math.PI / 4, beta: THREE_QUARTER_TOP_BETA, projectionMode: 'perspective' },\n};\n\nexport function createBabylonSceneViewCameraController(\n options: BabylonSceneViewCameraControllerOptions,\n): BabylonSceneViewCameraController {\n const camera = options.camera as any;\n const scene = options.scene;\n const input = options.input;\n const Vector3 = options.babylon.Vector3;\n const orbitSensitivity = options.orbitSensitivity ?? DEFAULT_ORBIT_SENSITIVITY;\n const panSensitivity = options.panSensitivity ?? DEFAULT_PAN_SENSITIVITY;\n const dollySensitivity = options.dollySensitivity ?? DEFAULT_DOLLY_SENSITIVITY;\n let disposed = false;\n let viewPreset: EditorViewportViewPreset = 'perspective';\n let projectionMode: EditorViewportProjectionMode = readProjectionMode();\n let lastPerspective: PerspectiveSnapshot | null = readPerspectiveSnapshot();\n\n function handlePointerIntentMove(event: BabylonSceneViewInputPointerEvent): boolean {\n if (disposed) return false;\n const { intent, delta } = event.state;\n if (intent === 'orbit') {\n orbitCamera(delta.x, delta.y);\n viewPreset = 'perspective';\n return true;\n }\n if (intent === 'flythrough') {\n lookCamera(delta.x, delta.y);\n viewPreset = 'perspective';\n return true;\n }\n if (intent === 'pan') {\n panCamera(delta.x, delta.y);\n return true;\n }\n if (intent === 'dolly') {\n dollyCamera(delta.y * 4);\n return true;\n }\n return false;\n }\n\n function handleWheel(event: BabylonSceneViewInputWheelEvent): boolean {\n if (disposed) return false;\n if (input.getState().navigationMode === 'flythrough') return true;\n dollyCamera(event.deltaY);\n return true;\n }\n\n function getState(): BabylonSceneViewCameraState {\n const state: BabylonSceneViewCameraState = {\n viewPreset,\n projectionMode: readProjectionMode(),\n };\n const target = readTarget();\n const position = readCameraPosition(target);\n if (target) state.target = target;\n if (position) state.position = position;\n if (Number.isFinite(camera.alpha)) state.alpha = Number(camera.alpha);\n if (Number.isFinite(camera.beta)) state.beta = Number(camera.beta);\n if (Number.isFinite(camera.radius)) state.radius = Number(camera.radius);\n return state;\n }\n\n function setViewPreset(\n preset: EditorViewportViewPreset,\n presetOptions: BabylonSceneViewCameraPresetOptions = {},\n ): boolean {\n if (disposed) return false;\n const nextPreset = normalizeViewPreset(preset);\n if (nextPreset === 'perspective') {\n viewPreset = 'perspective';\n applyPerspectivePreset(presetOptions);\n setProjectionMode('perspective');\n return true;\n }\n\n const angles = VIEW_PRESET_ANGLES[nextPreset];\n if (readProjectionMode() === 'perspective' && angles.projectionMode === 'orthographic') {\n lastPerspective = readPerspectiveSnapshot() ?? lastPerspective;\n }\n viewPreset = nextPreset;\n applyViewPresetAngles(nextPreset, presetOptions);\n setProjectionMode(angles.projectionMode);\n if (angles.projectionMode === 'orthographic') updateOrthoExtents(resolveOrthoSize());\n return true;\n }\n\n function orbit(orbitOptions: BabylonSceneViewCameraOrbitOptions = {}): boolean {\n if (disposed) return false;\n const baseAlpha = Number(camera.alpha);\n const baseBeta = Number(camera.beta);\n const baseRadius = Number(camera.radius);\n if (orbitOptions.target) setCameraTarget(orbitOptions.target);\n const yawDelta = degreesToRadians(orbitOptions.yawDeltaDeg ?? 0);\n const pitchDelta = degreesToRadians(orbitOptions.pitchDeltaDeg ?? 0);\n if (Number.isFinite(baseAlpha)) camera.alpha = baseAlpha + yawDelta;\n if (Number.isFinite(baseBeta)) camera.beta = clamp(baseBeta + pitchDelta, 0.01, Math.PI - 0.01);\n if (Number.isFinite(baseRadius)) {\n const distanceScale = Number.isFinite(orbitOptions.distanceScale) ? Number(orbitOptions.distanceScale) : 1;\n camera.radius = clamp(baseRadius * Math.max(0.05, distanceScale), MIN_CAMERA_RADIUS, MAX_CAMERA_RADIUS);\n }\n viewPreset = 'perspective';\n setProjectionMode('perspective');\n return true;\n }\n\n function setProjectionMode(mode: EditorViewportProjectionMode): boolean {\n if (disposed) return false;\n const nextMode = mode === 'orthographic' ? 'orthographic' : 'perspective';\n const Camera = options.babylon.Camera;\n camera.mode = nextMode === 'orthographic'\n ? Camera?.ORTHOGRAPHIC_CAMERA ?? 1\n : Camera?.PERSPECTIVE_CAMERA ?? 0;\n projectionMode = nextMode;\n if (nextMode === 'orthographic') updateOrthoExtents(resolveOrthoSize());\n return true;\n }\n\n function updateFrame(frame: BabylonSceneViewCameraFrame): boolean {\n if (disposed) return false;\n return updateFlythroughMovement(frame);\n }\n\n function updateFlythroughMovement(frame: BabylonSceneViewCameraFrame): boolean {\n const inputState = input.getState();\n if (inputState.navigationMode !== 'flythrough' || inputState.pressedMovementKeys.length === 0) {\n return false;\n }\n const pressed = inputState.pressedMovementKeys;\n const speed = inputState.flySpeed;\n const step = speed * frame.deltaSeconds * 4;\n if (step <= 0) return false;\n const forward = getCameraForward();\n const right = getCameraRight();\n if (!forward || !right) return false;\n const up = { x: 0, y: 1, z: 0 };\n let move = { x: 0, y: 0, z: 0 };\n for (const key of pressed) {\n if (key === 'w') move = addVec3(move, forward);\n else if (key === 's') move = subtractVec3(move, forward);\n else if (key === 'd') move = addVec3(move, right);\n else if (key === 'a') move = subtractVec3(move, right);\n else if (key === 'e') move = addVec3(move, up);\n else if (key === 'q') move = subtractVec3(move, up);\n }\n const normalized = normalizeVec3(move);\n if (!normalized) return false;\n translateCamera(scaleVec3(normalized, step));\n return true;\n }\n\n function orbitCamera(dx: number, dy: number): void {\n if (Number.isFinite(camera.alpha) && Number.isFinite(camera.beta)) {\n camera.alpha -= dx * orbitSensitivity;\n camera.beta = clamp(camera.beta + dy * orbitSensitivity, 0.01, Math.PI - 0.01);\n return;\n }\n if (camera.rotation) {\n camera.rotation.y -= dx * orbitSensitivity;\n camera.rotation.x = clamp(camera.rotation.x + dy * orbitSensitivity, -Math.PI / 2 + 0.01, Math.PI / 2 - 0.01);\n }\n }\n\n function lookCamera(dx: number, dy: number): void {\n if (Number.isFinite(camera.alpha) && Number.isFinite(camera.beta)) {\n const position = readVec3(camera.position);\n camera.alpha += dx * orbitSensitivity;\n camera.beta = clamp(camera.beta - dy * orbitSensitivity, 0.01, Math.PI - 0.01);\n keepArcRotatePosition(position);\n return;\n }\n if (camera.rotation) {\n camera.rotation.y -= dx * orbitSensitivity;\n camera.rotation.x = clamp(camera.rotation.x - dy * orbitSensitivity, -Math.PI / 2 + 0.01, Math.PI / 2 - 0.01);\n }\n }\n\n function panCamera(dx: number, dy: number): void {\n const right = getCameraRight();\n const up = getCameraUp();\n if (!right || !up) return;\n const radiusScale = Number.isFinite(camera.radius) ? Math.max(Number(camera.radius), 1) : 8;\n const scale = radiusScale * panSensitivity;\n const delta = addVec3(\n scaleVec3(right, -dx * scale),\n scaleVec3(up, dy * scale),\n );\n translateCamera(delta);\n }\n\n function dollyCamera(deltaY: number): void {\n if (Number.isFinite(camera.radius)) {\n const factor = 1 + deltaY * dollySensitivity;\n camera.radius = clamp(Number(camera.radius) * Math.max(0.05, factor), MIN_CAMERA_RADIUS, MAX_CAMERA_RADIUS);\n if (readProjectionMode() === 'orthographic') updateOrthoExtents(resolveOrthoSize());\n return;\n }\n const forward = getCameraForward();\n if (!forward) return;\n translateCamera(scaleVec3(forward, -deltaY * 0.01));\n }\n\n function keepArcRotatePosition(position: Vec3): void {\n if (!camera.target || !Vector3) return;\n const radius = Number(camera.radius);\n const alpha = Number(camera.alpha);\n const beta = Number(camera.beta);\n if (!Number.isFinite(radius) || !Number.isFinite(alpha) || !Number.isFinite(beta)) return;\n const sinBeta = Math.sin(beta);\n const offset = {\n x: radius * Math.cos(alpha) * sinBeta,\n y: radius * Math.cos(beta),\n z: radius * Math.sin(alpha) * sinBeta,\n };\n camera.target = new Vector3(\n position.x - offset.x,\n position.y - offset.y,\n position.z - offset.z,\n );\n }\n\n function translateCamera(delta: Vec3): void {\n if (camera.target) {\n addInPlace(camera.target, delta);\n return;\n }\n if (camera.position) {\n addInPlace(camera.position, delta);\n }\n }\n\n function applyViewPresetAngles(\n preset: Exclude<EditorViewportViewPreset, 'perspective'>,\n presetOptions: BabylonSceneViewCameraPresetOptions,\n ): void {\n const target = presetOptions.target ?? readTarget() ?? { x: 0, y: 0, z: 0 };\n const angles = VIEW_PRESET_ANGLES[preset];\n const currentRadius = Number(camera.radius);\n const radius = clamp(\n presetOptions.radius\n ?? (Number.isFinite(currentRadius) ? currentRadius : lastPerspective?.radius ?? DEFAULT_ORTHO_RADIUS),\n MIN_CAMERA_RADIUS,\n MAX_CAMERA_RADIUS,\n );\n setCameraTarget(target);\n\n if (Number.isFinite(camera.alpha) && Number.isFinite(camera.beta)) {\n camera.alpha = angles.alpha;\n camera.beta = angles.beta;\n camera.radius = radius;\n } else if (camera.position && Vector3) {\n const offset = createSphericalOffset(angles.alpha, angles.beta, radius);\n camera.position = new Vector3(target.x + offset.x, target.y + offset.y, target.z + offset.z);\n camera.setTarget?.(new Vector3(target.x, target.y, target.z));\n }\n if (angles.projectionMode === 'orthographic') updateOrthoExtents(Math.max(radius * 0.5, DEFAULT_ORTHO_SIZE));\n }\n\n function applyPerspectivePreset(presetOptions: BabylonSceneViewCameraPresetOptions): void {\n const target = presetOptions.target ?? undefined;\n const radius = typeof presetOptions.radius === 'number' && Number.isFinite(presetOptions.radius)\n ? presetOptions.radius\n : undefined;\n if (target) setCameraTarget(target);\n if (radius !== undefined) camera.radius = clamp(radius, MIN_CAMERA_RADIUS, MAX_CAMERA_RADIUS);\n if (!target && radius === undefined) restorePerspective();\n }\n\n function restorePerspective(): void {\n const snapshot = lastPerspective;\n if (!snapshot) return;\n if (Number.isFinite(snapshot.alpha)) camera.alpha = snapshot.alpha;\n if (Number.isFinite(snapshot.beta)) camera.beta = snapshot.beta;\n if (Number.isFinite(snapshot.radius)) camera.radius = snapshot.radius;\n if (snapshot.target && Vector3) {\n if (camera.target) camera.target = new Vector3(snapshot.target.x, snapshot.target.y, snapshot.target.z);\n else camera.setTarget?.(new Vector3(snapshot.target.x, snapshot.target.y, snapshot.target.z));\n }\n }\n\n function readProjectionMode(): EditorViewportProjectionMode {\n const Camera = options.babylon.Camera;\n const orthoMode = Camera?.ORTHOGRAPHIC_CAMERA ?? 1;\n return camera.mode === orthoMode ? 'orthographic' : 'perspective';\n }\n\n function setCameraTarget(target: Vec3): void {\n if (camera.target && Vector3) camera.target = new Vector3(target.x, target.y, target.z);\n else if (camera.setTarget && Vector3) camera.setTarget(new Vector3(target.x, target.y, target.z));\n }\n\n function readTarget(): Vec3 | null {\n if (camera.target) return readVec3(camera.target);\n const target = camera.getTarget?.();\n return target ? readVec3(target) : null;\n }\n\n function readCameraPosition(target: Vec3 | null): Vec3 | null {\n const radius = Number(camera.radius);\n const alpha = Number(camera.alpha);\n const beta = Number(camera.beta);\n if (target && Number.isFinite(radius) && Number.isFinite(alpha) && Number.isFinite(beta)) {\n const offset = createSphericalOffset(alpha, beta, radius);\n return {\n x: target.x + offset.x,\n y: target.y + offset.y,\n z: target.z + offset.z,\n };\n }\n return camera?.position ? readVec3(camera.position) : null;\n }\n\n function readPerspectiveSnapshot(): PerspectiveSnapshot | null {\n if (!camera) return null;\n return {\n alpha: Number.isFinite(camera.alpha) ? Number(camera.alpha) : undefined,\n beta: Number.isFinite(camera.beta) ? Number(camera.beta) : undefined,\n radius: Number.isFinite(camera.radius) ? Number(camera.radius) : undefined,\n target: readTarget() ?? undefined,\n };\n }\n\n function resolveOrthoSize(): number {\n const top = Number(camera.orthoTop);\n const bottom = Number(camera.orthoBottom);\n if (Number.isFinite(top) && Number.isFinite(bottom) && top !== bottom) {\n return Math.abs(top - bottom) / 2;\n }\n const radius = Number(camera.radius);\n return Number.isFinite(radius) ? Math.max(radius * 0.5, DEFAULT_ORTHO_SIZE) : DEFAULT_ORTHO_SIZE;\n }\n\n function updateOrthoExtents(halfHeight: number): void {\n const engine = scene?.getEngine?.();\n const width = Number(engine?.getRenderWidth?.() ?? engine?.getRenderingCanvas?.()?.width ?? 1);\n const height = Number(engine?.getRenderHeight?.() ?? engine?.getRenderingCanvas?.()?.height ?? 1);\n const aspect = height > 0 ? Math.max(0.0001, width / height) : 1;\n const size = Math.max(0.001, halfHeight);\n camera.orthoTop = size;\n camera.orthoBottom = -size;\n camera.orthoLeft = -size * aspect;\n camera.orthoRight = size * aspect;\n }\n\n function getCameraForward(): Vec3 | null {\n const forwardRayDirection = readVec3(camera?.getForwardRay?.()?.direction);\n if (isNonZeroVec3(forwardRayDirection)) return forwardRayDirection;\n const forwardZ = scene?.useRightHandedSystem ? -1 : 1;\n return getCameraDirection({ x: 0, y: 0, z: forwardZ });\n }\n\n function getCameraRight(): Vec3 | null {\n return getCameraDirection({ x: 1, y: 0, z: 0 });\n }\n\n function getCameraUp(): Vec3 | null {\n return getCameraDirection({ x: 0, y: 1, z: 0 });\n }\n\n function getCameraDirection(local: Vec3): Vec3 | null {\n if (!camera?.getDirection || !Vector3) return null;\n try {\n return readVec3(camera.getDirection(new Vector3(local.x, local.y, local.z)));\n } catch {\n return null;\n }\n }\n\n return {\n getState,\n setViewPreset,\n setProjectionMode,\n orbit,\n updateFrame,\n handlePointerIntentMove,\n handleWheel,\n dispose() {\n if (disposed) return;\n disposed = true;\n },\n };\n}\n\nfunction readVec3(value: any): Vec3 {\n return {\n x: Number(value?.x) || 0,\n y: Number(value?.y) || 0,\n z: Number(value?.z) || 0,\n };\n}\n\nfunction normalizeViewPreset(preset: EditorViewportViewPreset): EditorViewportViewPreset {\n return preset in VIEW_PRESET_ANGLES || preset === 'perspective' ? preset : 'perspective';\n}\n\nfunction createSphericalOffset(alpha: number, beta: number, radius: number): Vec3 {\n const sinBeta = Math.sin(beta);\n return {\n x: radius * Math.cos(alpha) * sinBeta,\n y: radius * Math.cos(beta),\n z: radius * Math.sin(alpha) * sinBeta,\n };\n}\n\nfunction degreesToRadians(value: number): number {\n return Number.isFinite(value) ? value * Math.PI / 180 : 0;\n}\n\nfunction isNonZeroVec3(value: Vec3): boolean {\n return Math.hypot(value.x, value.y, value.z) > 0.000001;\n}\n\nfunction addInPlace(target: any, delta: Vec3): void {\n if (target?.addInPlaceFromFloats) {\n target.addInPlaceFromFloats(delta.x, delta.y, delta.z);\n return;\n }\n target.x = (Number(target.x) || 0) + delta.x;\n target.y = (Number(target.y) || 0) + delta.y;\n target.z = (Number(target.z) || 0) + delta.z;\n}\n\nfunction addVec3(left: Vec3, right: Vec3): Vec3 {\n return { x: left.x + right.x, y: left.y + right.y, z: left.z + right.z };\n}\n\nfunction subtractVec3(left: Vec3, right: Vec3): Vec3 {\n return { x: left.x - right.x, y: left.y - right.y, z: left.z - right.z };\n}\n\nfunction scaleVec3(value: Vec3, scale: number): Vec3 {\n return { x: value.x * scale, y: value.y * scale, z: value.z * scale };\n}\n\nfunction normalizeVec3(value: Vec3): Vec3 | null {\n const length = Math.hypot(value.x, value.y, value.z);\n if (!Number.isFinite(length) || length <= 0.000001) return null;\n return scaleVec3(value, 1 / length);\n}\n\nfunction clamp(value: number, min: number, max: number): number {\n return Math.min(max, Math.max(min, value));\n}\n"]}
|
|
1
|
+
{"version":3,"file":"scene-view-camera-controller.js","sourceRoot":"","sources":["../src/scene-view-camera-controller.ts"],"names":[],"mappings":"AAqFA,MAAM,yBAAyB,GAAG,KAAK,CAAC;AACxC,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAC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Preset,\n} from '@fps-games/editor-core';\nimport type {\n BabylonSceneViewInputController,\n BabylonSceneViewInputPointerEvent,\n BabylonSceneViewInputWheelEvent,\n} from './scene-view-input-controller';\nimport type {\n BabylonRuntimeGlobal,\n RuntimeCamera,\n RuntimeScene,\n} from './types';\n\nexport interface BabylonSceneViewCameraControllerOptions {\n babylon: BabylonRuntimeGlobal;\n scene: RuntimeScene;\n camera: RuntimeCamera;\n input: BabylonSceneViewInputController;\n orbitSensitivity?: number;\n panSensitivity?: number;\n dollySensitivity?: number;\n onNavigation?: (source: BabylonSceneViewCameraNavigationSource) => void;\n}\n\nexport type BabylonSceneViewCameraNavigationSource =\n | 'pointer'\n | 'wheel'\n | 'preset'\n | 'projection'\n | 'orbit'\n | 'flythrough';\n\nexport interface BabylonSceneViewCameraFrame {\n deltaSeconds: number;\n}\n\nexport interface BabylonSceneViewCameraController {\n getState(): BabylonSceneViewCameraState;\n restoreState(snapshot: BabylonSceneViewCameraState): boolean;\n setViewPreset(preset: EditorViewportViewPreset, options?: BabylonSceneViewCameraPresetOptions): boolean;\n setProjectionMode(mode: EditorViewportProjectionMode): boolean;\n orbit(options?: BabylonSceneViewCameraOrbitOptions): boolean;\n updateFrame(frame: BabylonSceneViewCameraFrame): boolean;\n handlePointerIntentMove(event: BabylonSceneViewInputPointerEvent): boolean;\n handleWheel(event: BabylonSceneViewInputWheelEvent): boolean;\n dispose(): void;\n}\n\nexport interface BabylonSceneViewCameraState {\n viewPreset: EditorViewportViewPreset;\n projectionMode: EditorViewportProjectionMode;\n orthographicHalfHeight?: number;\n target?: Vec3;\n position?: Vec3;\n alpha?: number;\n beta?: number;\n radius?: number;\n}\n\nexport interface BabylonSceneViewCameraPresetOptions {\n target?: Vec3 | null;\n radius?: number;\n}\n\nexport interface BabylonSceneViewCameraOrbitOptions extends BabylonSceneViewCameraPresetOptions {\n yawDeltaDeg?: number;\n pitchDeltaDeg?: number;\n distanceScale?: number;\n}\n\ninterface PerspectiveSnapshot {\n alpha?: number;\n beta?: number;\n radius?: number;\n target?: Vec3;\n}\n\ninterface Vec3 {\n x: number;\n y: number;\n z: number;\n}\n\nconst DEFAULT_ORBIT_SENSITIVITY = 0.005;\nconst DEFAULT_PAN_SENSITIVITY = 0.0015;\nconst DEFAULT_DOLLY_SENSITIVITY = 0.001;\nconst MAX_DOLLY_EXPONENT = 2;\nconst MIN_CAMERA_RADIUS = 0.2;\nconst MAX_CAMERA_RADIUS = 10000;\nconst DEFAULT_ORTHO_RADIUS = 10;\nconst DEFAULT_ORTHO_SIZE = 6;\nconst TOP_VIEW_BETA = 0.01;\nconst BOTTOM_VIEW_BETA = Math.PI - 0.01;\nconst ISOMETRIC_VIEW_BETA = Math.PI / 3;\nconst THREE_QUARTER_TOP_BETA = Math.PI / 4;\n\nconst VIEW_PRESET_ANGLES: Record<Exclude<EditorViewportViewPreset, 'perspective'>, {\n alpha: number;\n beta: number;\n projectionMode: EditorViewportProjectionMode;\n}> = {\n top: { alpha: Math.PI / 2, beta: TOP_VIEW_BETA, projectionMode: 'orthographic' },\n bottom: { alpha: Math.PI / 2, beta: BOTTOM_VIEW_BETA, projectionMode: 'orthographic' },\n front: { alpha: -Math.PI / 2, beta: Math.PI / 2, projectionMode: 'orthographic' },\n back: { alpha: Math.PI / 2, beta: Math.PI / 2, projectionMode: 'orthographic' },\n left: { alpha: Math.PI, beta: Math.PI / 2, projectionMode: 'orthographic' },\n right: { alpha: 0, beta: Math.PI / 2, projectionMode: 'orthographic' },\n iso: { alpha: Math.PI / 4, beta: ISOMETRIC_VIEW_BETA, projectionMode: 'orthographic' },\n threeQuarterTop: { alpha: Math.PI / 4, beta: THREE_QUARTER_TOP_BETA, projectionMode: 'perspective' },\n};\n\nexport function createBabylonSceneViewCameraController(\n options: BabylonSceneViewCameraControllerOptions,\n): BabylonSceneViewCameraController {\n const camera = options.camera as any;\n const scene = options.scene;\n const input = options.input;\n const Vector3 = options.babylon.Vector3;\n const orbitSensitivity = options.orbitSensitivity ?? DEFAULT_ORBIT_SENSITIVITY;\n const panSensitivity = options.panSensitivity ?? DEFAULT_PAN_SENSITIVITY;\n const dollySensitivity = options.dollySensitivity ?? DEFAULT_DOLLY_SENSITIVITY;\n let disposed = false;\n let viewPreset: EditorViewportViewPreset = 'perspective';\n let projectionMode: EditorViewportProjectionMode = readProjectionMode();\n let lastPerspective: PerspectiveSnapshot | null = readPerspectiveSnapshot();\n\n function handlePointerIntentMove(event: BabylonSceneViewInputPointerEvent): boolean {\n if (disposed) return false;\n const { intent, delta } = event.state;\n if (intent === 'orbit') {\n options.onNavigation?.('pointer');\n orbitCamera(delta.x, delta.y);\n viewPreset = 'perspective';\n return true;\n }\n if (intent === 'flythrough') {\n options.onNavigation?.('pointer');\n lookCamera(delta.x, delta.y);\n viewPreset = 'perspective';\n return true;\n }\n if (intent === 'pan') {\n options.onNavigation?.('pointer');\n panCamera(delta.x, delta.y);\n return true;\n }\n if (intent === 'dolly') {\n options.onNavigation?.('pointer');\n dollyCamera(delta.y * 4);\n return true;\n }\n return false;\n }\n\n function handleWheel(event: BabylonSceneViewInputWheelEvent): boolean {\n if (disposed) return false;\n if (input.getState().navigationMode === 'flythrough') return true;\n options.onNavigation?.('wheel');\n dollyCamera(event.deltaY);\n return true;\n }\n\n function getState(): BabylonSceneViewCameraState {\n const state: BabylonSceneViewCameraState = {\n viewPreset,\n projectionMode: readProjectionMode(),\n };\n const target = readTarget();\n const position = readCameraPosition(target);\n if (target) state.target = target;\n if (position) state.position = position;\n if (Number.isFinite(camera.alpha)) state.alpha = Number(camera.alpha);\n if (Number.isFinite(camera.beta)) state.beta = Number(camera.beta);\n if (Number.isFinite(camera.radius)) state.radius = Number(camera.radius);\n if (state.projectionMode === 'orthographic') state.orthographicHalfHeight = resolveOrthoSize();\n return state;\n }\n\n function setViewPreset(\n preset: EditorViewportViewPreset,\n presetOptions: BabylonSceneViewCameraPresetOptions = {},\n ): boolean {\n if (disposed) return false;\n options.onNavigation?.('preset');\n const nextPreset = normalizeViewPreset(preset);\n if (nextPreset === 'perspective') {\n viewPreset = 'perspective';\n applyPerspectivePreset(presetOptions);\n applyProjectionMode('perspective');\n return true;\n }\n\n const angles = VIEW_PRESET_ANGLES[nextPreset];\n if (readProjectionMode() === 'perspective' && angles.projectionMode === 'orthographic') {\n lastPerspective = readPerspectiveSnapshot() ?? lastPerspective;\n }\n viewPreset = nextPreset;\n applyViewPresetAngles(nextPreset, presetOptions);\n applyProjectionMode(angles.projectionMode);\n if (angles.projectionMode === 'orthographic') updateOrthoExtents(resolveOrthoSize());\n return true;\n }\n\n function orbit(orbitOptions: BabylonSceneViewCameraOrbitOptions = {}): boolean {\n if (disposed) return false;\n options.onNavigation?.('orbit');\n const baseAlpha = Number(camera.alpha);\n const baseBeta = Number(camera.beta);\n const baseRadius = Number(camera.radius);\n if (orbitOptions.target) setCameraTarget(orbitOptions.target);\n const yawDelta = degreesToRadians(orbitOptions.yawDeltaDeg ?? 0);\n const pitchDelta = degreesToRadians(orbitOptions.pitchDeltaDeg ?? 0);\n if (Number.isFinite(baseAlpha)) camera.alpha = baseAlpha + yawDelta;\n if (Number.isFinite(baseBeta)) camera.beta = clamp(baseBeta + pitchDelta, 0.01, Math.PI - 0.01);\n if (Number.isFinite(baseRadius)) {\n const distanceScale = Number.isFinite(orbitOptions.distanceScale) ? Number(orbitOptions.distanceScale) : 1;\n camera.radius = clamp(baseRadius * Math.max(0.05, distanceScale), MIN_CAMERA_RADIUS, MAX_CAMERA_RADIUS);\n }\n viewPreset = 'perspective';\n applyProjectionMode('perspective');\n return true;\n }\n\n function setProjectionMode(mode: EditorViewportProjectionMode): boolean {\n if (disposed) return false;\n options.onNavigation?.('projection');\n return applyProjectionMode(mode);\n }\n\n function applyProjectionMode(\n mode: EditorViewportProjectionMode,\n orthographicHalfHeight?: number,\n ): boolean {\n const nextMode = mode === 'orthographic' ? 'orthographic' : 'perspective';\n const Camera = options.babylon.Camera;\n camera.mode = nextMode === 'orthographic'\n ? Camera?.ORTHOGRAPHIC_CAMERA ?? 1\n : Camera?.PERSPECTIVE_CAMERA ?? 0;\n projectionMode = nextMode;\n if (nextMode === 'orthographic') {\n updateOrthoExtents(orthographicHalfHeight ?? resolveOrthoSize());\n }\n return true;\n }\n\n function restoreState(snapshot: BabylonSceneViewCameraState): boolean {\n if (disposed || !isValidCameraState(snapshot)) return false;\n const nextPreset = normalizeViewPreset(snapshot.viewPreset);\n const nextProjection = snapshot.projectionMode === 'orthographic' ? 'orthographic' : 'perspective';\n if (snapshot.target) setCameraTarget(snapshot.target);\n const hasOrbitCoordinates = snapshot.alpha !== undefined\n && snapshot.beta !== undefined\n && snapshot.radius !== undefined;\n if (snapshot.position && !hasOrbitCoordinates && camera.position && Vector3) {\n camera.position = new Vector3(snapshot.position.x, snapshot.position.y, snapshot.position.z);\n }\n if (snapshot.alpha !== undefined) camera.alpha = snapshot.alpha;\n if (snapshot.beta !== undefined) camera.beta = clamp(snapshot.beta, 0.01, Math.PI - 0.01);\n if (snapshot.radius !== undefined) camera.radius = clamp(snapshot.radius, MIN_CAMERA_RADIUS, MAX_CAMERA_RADIUS);\n viewPreset = nextPreset;\n applyProjectionMode(nextProjection, snapshot.orthographicHalfHeight);\n if (nextProjection === 'perspective') lastPerspective = readPerspectiveSnapshot();\n return true;\n }\n\n function updateFrame(frame: BabylonSceneViewCameraFrame): boolean {\n if (disposed) return false;\n return updateFlythroughMovement(frame);\n }\n\n function updateFlythroughMovement(frame: BabylonSceneViewCameraFrame): boolean {\n const inputState = input.getState();\n if (inputState.navigationMode !== 'flythrough' || inputState.pressedMovementKeys.length === 0) {\n return false;\n }\n const pressed = inputState.pressedMovementKeys;\n const speed = inputState.flySpeed;\n const step = speed * frame.deltaSeconds * 4;\n if (step <= 0) return false;\n const forward = getCameraForward();\n const right = getCameraRight();\n if (!forward || !right) return false;\n const up = { x: 0, y: 1, z: 0 };\n let move = { x: 0, y: 0, z: 0 };\n for (const key of pressed) {\n if (key === 'w') move = addVec3(move, forward);\n else if (key === 's') move = subtractVec3(move, forward);\n else if (key === 'd') move = addVec3(move, right);\n else if (key === 'a') move = subtractVec3(move, right);\n else if (key === 'e') move = addVec3(move, up);\n else if (key === 'q') move = subtractVec3(move, up);\n }\n const normalized = normalizeVec3(move);\n if (!normalized) return false;\n options.onNavigation?.('flythrough');\n translateCamera(scaleVec3(normalized, step));\n return true;\n }\n\n function orbitCamera(dx: number, dy: number): void {\n if (Number.isFinite(camera.alpha) && Number.isFinite(camera.beta)) {\n camera.alpha -= dx * orbitSensitivity;\n camera.beta = clamp(camera.beta + dy * orbitSensitivity, 0.01, Math.PI - 0.01);\n return;\n }\n if (camera.rotation) {\n camera.rotation.y -= dx * orbitSensitivity;\n camera.rotation.x = clamp(camera.rotation.x + dy * orbitSensitivity, -Math.PI / 2 + 0.01, Math.PI / 2 - 0.01);\n }\n }\n\n function lookCamera(dx: number, dy: number): void {\n if (Number.isFinite(camera.alpha) && Number.isFinite(camera.beta)) {\n const position = readVec3(camera.position);\n camera.alpha += dx * orbitSensitivity;\n camera.beta = clamp(camera.beta - dy * orbitSensitivity, 0.01, Math.PI - 0.01);\n keepArcRotatePosition(position);\n return;\n }\n if (camera.rotation) {\n camera.rotation.y -= dx * orbitSensitivity;\n camera.rotation.x = clamp(camera.rotation.x - dy * orbitSensitivity, -Math.PI / 2 + 0.01, Math.PI / 2 - 0.01);\n }\n }\n\n function panCamera(dx: number, dy: number): void {\n const right = getCameraRight();\n const up = getCameraUp();\n if (!right || !up) return;\n const radiusScale = Number.isFinite(camera.radius) ? Math.max(Number(camera.radius), 1) : 8;\n const scale = radiusScale * panSensitivity;\n const delta = addVec3(\n scaleVec3(right, -dx * scale),\n scaleVec3(up, dy * scale),\n );\n translateCamera(delta);\n }\n\n function dollyCamera(deltaY: number): void {\n if (Number.isFinite(camera.radius)) {\n const exponent = clamp(deltaY * dollySensitivity, -MAX_DOLLY_EXPONENT, MAX_DOLLY_EXPONENT);\n camera.radius = clamp(Number(camera.radius) * Math.exp(exponent), MIN_CAMERA_RADIUS, MAX_CAMERA_RADIUS);\n if (readProjectionMode() === 'orthographic') updateOrthoExtents(resolveOrthoSize());\n return;\n }\n const forward = getCameraForward();\n if (!forward) return;\n translateCamera(scaleVec3(forward, -deltaY * 0.01));\n }\n\n function keepArcRotatePosition(position: Vec3): void {\n if (!camera.target || !Vector3) return;\n const radius = Number(camera.radius);\n const alpha = Number(camera.alpha);\n const beta = Number(camera.beta);\n if (!Number.isFinite(radius) || !Number.isFinite(alpha) || !Number.isFinite(beta)) return;\n const sinBeta = Math.sin(beta);\n const offset = {\n x: radius * Math.cos(alpha) * sinBeta,\n y: radius * Math.cos(beta),\n z: radius * Math.sin(alpha) * sinBeta,\n };\n camera.target = new Vector3(\n position.x - offset.x,\n position.y - offset.y,\n position.z - offset.z,\n );\n }\n\n function translateCamera(delta: Vec3): void {\n if (camera.target) {\n addInPlace(camera.target, delta);\n return;\n }\n if (camera.position) {\n addInPlace(camera.position, delta);\n }\n }\n\n function applyViewPresetAngles(\n preset: Exclude<EditorViewportViewPreset, 'perspective'>,\n presetOptions: BabylonSceneViewCameraPresetOptions,\n ): void {\n const target = presetOptions.target ?? readTarget() ?? { x: 0, y: 0, z: 0 };\n const angles = VIEW_PRESET_ANGLES[preset];\n const currentRadius = Number(camera.radius);\n const radius = clamp(\n presetOptions.radius\n ?? (Number.isFinite(currentRadius) ? currentRadius : lastPerspective?.radius ?? DEFAULT_ORTHO_RADIUS),\n MIN_CAMERA_RADIUS,\n MAX_CAMERA_RADIUS,\n );\n setCameraTarget(target);\n\n if (Number.isFinite(camera.alpha) && Number.isFinite(camera.beta)) {\n camera.alpha = angles.alpha;\n camera.beta = angles.beta;\n camera.radius = radius;\n } else if (camera.position && Vector3) {\n const offset = createSphericalOffset(angles.alpha, angles.beta, radius);\n camera.position = new Vector3(target.x + offset.x, target.y + offset.y, target.z + offset.z);\n camera.setTarget?.(new Vector3(target.x, target.y, target.z));\n }\n if (angles.projectionMode === 'orthographic') updateOrthoExtents(Math.max(radius * 0.5, DEFAULT_ORTHO_SIZE));\n }\n\n function applyPerspectivePreset(presetOptions: BabylonSceneViewCameraPresetOptions): void {\n const target = presetOptions.target ?? undefined;\n const radius = typeof presetOptions.radius === 'number' && Number.isFinite(presetOptions.radius)\n ? presetOptions.radius\n : undefined;\n if (target) setCameraTarget(target);\n if (radius !== undefined) camera.radius = clamp(radius, MIN_CAMERA_RADIUS, MAX_CAMERA_RADIUS);\n if (!target && radius === undefined) restorePerspective();\n }\n\n function restorePerspective(): void {\n const snapshot = lastPerspective;\n if (!snapshot) return;\n if (Number.isFinite(snapshot.alpha)) camera.alpha = snapshot.alpha;\n if (Number.isFinite(snapshot.beta)) camera.beta = snapshot.beta;\n if (Number.isFinite(snapshot.radius)) camera.radius = snapshot.radius;\n if (snapshot.target && Vector3) {\n if (camera.target) camera.target = new Vector3(snapshot.target.x, snapshot.target.y, snapshot.target.z);\n else camera.setTarget?.(new Vector3(snapshot.target.x, snapshot.target.y, snapshot.target.z));\n }\n }\n\n function readProjectionMode(): EditorViewportProjectionMode {\n const Camera = options.babylon.Camera;\n const orthoMode = Camera?.ORTHOGRAPHIC_CAMERA ?? 1;\n return camera.mode === orthoMode ? 'orthographic' : 'perspective';\n }\n\n function setCameraTarget(target: Vec3): void {\n if (camera.setTarget && Vector3) {\n camera.setTarget(new Vector3(target.x, target.y, target.z), false, false, true);\n } else if (camera.target && Vector3) {\n camera.target = new Vector3(target.x, target.y, target.z);\n }\n }\n\n function readTarget(): Vec3 | null {\n if (camera.target) return readVec3(camera.target);\n const target = camera.getTarget?.();\n return target ? readVec3(target) : null;\n }\n\n function readCameraPosition(target: Vec3 | null): Vec3 | null {\n const radius = Number(camera.radius);\n const alpha = Number(camera.alpha);\n const beta = Number(camera.beta);\n if (target && Number.isFinite(radius) && Number.isFinite(alpha) && Number.isFinite(beta)) {\n const offset = createSphericalOffset(alpha, beta, radius);\n return {\n x: target.x + offset.x,\n y: target.y + offset.y,\n z: target.z + offset.z,\n };\n }\n return camera?.position ? readVec3(camera.position) : null;\n }\n\n function readPerspectiveSnapshot(): PerspectiveSnapshot | null {\n if (!camera) return null;\n return {\n alpha: Number.isFinite(camera.alpha) ? Number(camera.alpha) : undefined,\n beta: Number.isFinite(camera.beta) ? Number(camera.beta) : undefined,\n radius: Number.isFinite(camera.radius) ? Number(camera.radius) : undefined,\n target: readTarget() ?? undefined,\n };\n }\n\n function resolveOrthoSize(): number {\n const top = Number(camera.orthoTop);\n const bottom = Number(camera.orthoBottom);\n if (Number.isFinite(top) && Number.isFinite(bottom) && top !== bottom) {\n return Math.abs(top - bottom) / 2;\n }\n const radius = Number(camera.radius);\n return Number.isFinite(radius) ? Math.max(radius * 0.5, DEFAULT_ORTHO_SIZE) : DEFAULT_ORTHO_SIZE;\n }\n\n function updateOrthoExtents(halfHeight: number): void {\n const engine = scene?.getEngine?.();\n const width = Number(engine?.getRenderWidth?.() ?? engine?.getRenderingCanvas?.()?.width ?? 1);\n const height = Number(engine?.getRenderHeight?.() ?? engine?.getRenderingCanvas?.()?.height ?? 1);\n const aspect = height > 0 ? Math.max(0.0001, width / height) : 1;\n const size = Math.max(0.001, halfHeight);\n camera.orthoTop = size;\n camera.orthoBottom = -size;\n camera.orthoLeft = -size * aspect;\n camera.orthoRight = size * aspect;\n }\n\n function getCameraForward(): Vec3 | null {\n const forwardRayDirection = readVec3(camera?.getForwardRay?.()?.direction);\n if (isNonZeroVec3(forwardRayDirection)) return forwardRayDirection;\n const forwardZ = scene?.useRightHandedSystem ? -1 : 1;\n return getCameraDirection({ x: 0, y: 0, z: forwardZ });\n }\n\n function getCameraRight(): Vec3 | null {\n return getCameraDirection({ x: 1, y: 0, z: 0 });\n }\n\n function getCameraUp(): Vec3 | null {\n return getCameraDirection({ x: 0, y: 1, z: 0 });\n }\n\n function getCameraDirection(local: Vec3): Vec3 | null {\n if (!camera?.getDirection || !Vector3) return null;\n try {\n return readVec3(camera.getDirection(new Vector3(local.x, local.y, local.z)));\n } catch {\n return null;\n }\n }\n\n return {\n getState,\n restoreState,\n setViewPreset,\n setProjectionMode,\n orbit,\n updateFrame,\n handlePointerIntentMove,\n handleWheel,\n dispose() {\n if (disposed) return;\n disposed = true;\n },\n };\n}\n\nfunction isValidCameraState(value: BabylonSceneViewCameraState): boolean {\n if (!value || typeof value !== 'object') return false;\n if (value.viewPreset !== 'perspective' && !(value.viewPreset in VIEW_PRESET_ANGLES)) return false;\n if (value.projectionMode !== 'perspective' && value.projectionMode !== 'orthographic') return false;\n if (value.target && !isFiniteVec3(value.target)) return false;\n if (value.position && !isFiniteVec3(value.position)) return false;\n for (const number of [value.alpha, value.beta, value.radius, value.orthographicHalfHeight]) {\n if (number !== undefined && !Number.isFinite(number)) return false;\n }\n if (value.radius !== undefined && value.radius <= 0) return false;\n return value.orthographicHalfHeight === undefined || value.orthographicHalfHeight > 0;\n}\n\nfunction isFiniteVec3(value: Vec3): boolean {\n return Number.isFinite(value.x) && Number.isFinite(value.y) && Number.isFinite(value.z);\n}\n\nfunction readVec3(value: any): Vec3 {\n return {\n x: Number(value?.x) || 0,\n y: Number(value?.y) || 0,\n z: Number(value?.z) || 0,\n };\n}\n\nfunction normalizeViewPreset(preset: EditorViewportViewPreset): EditorViewportViewPreset {\n return preset in VIEW_PRESET_ANGLES || preset === 'perspective' ? preset : 'perspective';\n}\n\nfunction createSphericalOffset(alpha: number, beta: number, radius: number): Vec3 {\n const sinBeta = Math.sin(beta);\n return {\n x: radius * Math.cos(alpha) * sinBeta,\n y: radius * Math.cos(beta),\n z: radius * Math.sin(alpha) * sinBeta,\n };\n}\n\nfunction degreesToRadians(value: number): number {\n return Number.isFinite(value) ? value * Math.PI / 180 : 0;\n}\n\nfunction isNonZeroVec3(value: Vec3): boolean {\n return Math.hypot(value.x, value.y, value.z) > 0.000001;\n}\n\nfunction addInPlace(target: any, delta: Vec3): void {\n if (target?.addInPlaceFromFloats) {\n target.addInPlaceFromFloats(delta.x, delta.y, delta.z);\n return;\n }\n target.x = (Number(target.x) || 0) + delta.x;\n target.y = (Number(target.y) || 0) + delta.y;\n target.z = (Number(target.z) || 0) + delta.z;\n}\n\nfunction addVec3(left: Vec3, right: Vec3): Vec3 {\n return { x: left.x + right.x, y: left.y + right.y, z: left.z + right.z };\n}\n\nfunction subtractVec3(left: Vec3, right: Vec3): Vec3 {\n return { x: left.x - right.x, y: left.y - right.y, z: left.z - right.z };\n}\n\nfunction scaleVec3(value: Vec3, scale: number): Vec3 {\n return { x: value.x * scale, y: value.y * scale, z: value.z * scale };\n}\n\nfunction normalizeVec3(value: Vec3): Vec3 | null {\n const length = Math.hypot(value.x, value.y, value.z);\n if (!Number.isFinite(length) || length <= 0.000001) return null;\n return scaleVec3(value, 1 / length);\n}\n\nfunction clamp(value: number, min: number, max: number): number {\n return Math.min(max, Math.max(min, value));\n}\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { BabylonRuntimeGlobal, RuntimeCamera, RuntimeScene } from './types';
|
|
2
|
+
interface BabylonSelectionIdentityPassOptions {
|
|
3
|
+
babylon: BabylonRuntimeGlobal & Record<string, any>;
|
|
4
|
+
scene: RuntimeScene;
|
|
5
|
+
camera: RuntimeCamera;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
}
|
|
9
|
+
export interface BabylonSelectionIdentityGroup {
|
|
10
|
+
selectionId: string;
|
|
11
|
+
meshes: readonly any[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Renders the current editor selection into one object-ID texture.
|
|
15
|
+
*
|
|
16
|
+
* Every mesh in the same group receives the same 24-bit identity. InstancedMesh
|
|
17
|
+
* identities travel through an editor-only instanced buffer, so instances sharing
|
|
18
|
+
* one source mesh can still produce different boundaries in the same draw path.
|
|
19
|
+
*/
|
|
20
|
+
export declare class BabylonSelectionIdentityPass {
|
|
21
|
+
readonly texture: any;
|
|
22
|
+
private readonly babylon;
|
|
23
|
+
private readonly scene;
|
|
24
|
+
private readonly materials;
|
|
25
|
+
private readonly materialMeshes;
|
|
26
|
+
private readonly registeredSources;
|
|
27
|
+
private readonly identityTargets;
|
|
28
|
+
private readonly identitiesBySelectionId;
|
|
29
|
+
private readonly selectionIdsByIdentity;
|
|
30
|
+
private enabled;
|
|
31
|
+
private disposed;
|
|
32
|
+
constructor(options: BabylonSelectionIdentityPassOptions);
|
|
33
|
+
setSelection(groups: readonly BabylonSelectionIdentityGroup[]): void;
|
|
34
|
+
setEnabled(enabled: boolean): void;
|
|
35
|
+
resize(width: number, height: number): void;
|
|
36
|
+
dispose(): void;
|
|
37
|
+
private ensureInstanceIdentityBuffer;
|
|
38
|
+
private syncInstanceIdentities;
|
|
39
|
+
private clearInstanceIdentities;
|
|
40
|
+
private syncMaterialAssignments;
|
|
41
|
+
private clearMaterialAssignments;
|
|
42
|
+
private resolveIdentity;
|
|
43
|
+
private getIdentityMaterial;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=selection-identity-pass.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection-identity-pass.d.ts","sourceRoot":"","sources":["../src/selection-identity-pass.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAsEjF,UAAU,mCAAmC;IAC3C,OAAO,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpD,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,SAAS,GAAG,EAAE,CAAC;CACxB;AAED;;;;;;GAMG;AACH,qBAAa,4BAA4B;IACvC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC;IAEtB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA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