@fps-games/editor 0.2.0-beta.4 → 0.2.1-beta.2
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 +19 -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/material-preview.d.ts +22 -0
- package/dist/internal/material-preview.d.ts.map +1 -0
- package/dist/internal/material-preview.js +186 -0
- package/dist/internal/material-preview.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/internal/project-model-preview.d.ts +4 -0
- package/dist/internal/project-model-preview.d.ts.map +1 -0
- package/dist/internal/project-model-preview.js +359 -0
- package/dist/internal/project-model-preview.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 +17 -6
- package/dist/local-editor-agent-context.d.ts.map +1 -1
- package/dist/local-editor-agent-context.js +47 -0
- package/dist/local-editor-agent-context.js.map +1 -1
- package/dist/local-editor-harness.d.ts +353 -35
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +4115 -1313
- 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 +19 -0
- package/dist/local-editor-tools.d.ts.map +1 -0
- package/dist/local-editor-tools.js +56 -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 +55 -29
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js +50 -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 +180 -17
- 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 +57 -20
- 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/marker-overlay.js +24 -0
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.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 +26 -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 +396 -363
- 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/scene-view-spatial-overlay-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-spatial-overlay-controller.js +85 -22
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-spatial-overlay-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 +87 -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 +1746 -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/transform-gizmo-controller.d.ts +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js +249 -15
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.d.ts +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.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 +13 -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 +9 -9
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.d.ts +35 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.js +136 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.d.ts +46 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.js +283 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.js.map +1 -0
- 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-preview-cleanup-registry.d.ts +12 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.js +67 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.d.ts +6 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.js +9 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.d.ts +7 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.js +20 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.d.ts +9 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.js +219 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.d.ts +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.js +42 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.js.map +1 -0
- 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 +8 -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-console.d.ts +27 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.js +288 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.js.map +1 -0
- 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 +34 -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 +30 -8
- 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 +911 -698
- 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 +10 -37
- 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 +29 -105
- 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 +114 -343
- 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 +13 -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 +120 -134
- 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 +6 -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 +2019 -861
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.d.ts +13 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.js +15 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.js.map +1 -0
- 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 +113 -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 +615 -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/dist/viewport-tools.d.ts +11 -2
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.js +12 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.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.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js +63 -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/asset-library/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js +15 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.d.ts +6 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.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 +4 -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 +7 -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 +9 -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 +16 -1
- 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/project-files/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.js +86 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.js +76 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.d.ts +34 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.js.map +1 -0
- 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 +4 -0
- 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 +54 -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/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js +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 +1 -0
- 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 +101 -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/project-file-handle.d.ts +14 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.js +101 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.d.ts +23 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.js +180 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.js.map +1 -0
- 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/agent.d.ts +23 -3
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent.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 +746 -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
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { readEditorSceneNodeKind, } from '../document/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { canEditEditorSceneShadowSettings, } from '../inspector/document-sections.js';
|
|
3
3
|
import { createEditorSceneFieldInspectorValidator, } from '../inspector/validation.js';
|
|
4
4
|
import { isEditorSceneRootGameObject, } from '../session/identity.js';
|
|
5
5
|
import { createEditorSceneSerializedMultiCommonProperties, createEditorSceneSerializedMultiShadowProperties, } from './descriptors.js';
|
|
6
6
|
import { createEditorSceneSerializedMultiObject, } from './object.js';
|
|
7
|
-
import { EDITOR_SHADOW_STATIC_AUTHORING_ENABLED, } from '@fps-games/playable-rendering';
|
|
8
7
|
const ENABLED_PATH = 'enabled';
|
|
9
8
|
const SHADOW_PREFIX = 'shadow.';
|
|
10
9
|
export const EDITOR_SCENE_LARGE_SELECTION_LIGHTWEIGHT_INSPECTOR_THRESHOLD = 200;
|
|
@@ -137,208 +136,38 @@ function createEditorSceneSerializedMultiShadowInspectorSection(document, serial
|
|
|
137
136
|
: selectedObjects[0] ?? null;
|
|
138
137
|
if (!shadowActiveObject)
|
|
139
138
|
return null;
|
|
140
|
-
const language = readEditorSceneShadowInspectorLanguage(shadowActiveObject);
|
|
141
|
-
const mixedLanguage = selectedObjects
|
|
142
|
-
.map(readEditorSceneShadowInspectorLanguage)
|
|
143
|
-
.some((candidate) => candidate !== language);
|
|
144
|
-
const text = getEditorSceneShadowInspectorText(language);
|
|
145
139
|
const activeNodeKind = readEditorSceneNodeKind(shadowActiveObject);
|
|
146
|
-
const policySource = shadowProperties.find(property => property.path === 'shadow.mode');
|
|
147
140
|
const castSource = shadowProperties.find(property => property.path === 'shadow.cast');
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
const
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
:
|
|
141
|
+
if (!castSource)
|
|
142
|
+
return null;
|
|
143
|
+
const inspectorProperty = createEditorSceneSerializedMultiInspectorProperty(castSource, 0);
|
|
144
|
+
const validateCast = createEditorSceneFieldInspectorValidator({
|
|
145
|
+
path: castSource.path,
|
|
146
|
+
nodeKind: activeNodeKind,
|
|
147
|
+
document,
|
|
148
|
+
});
|
|
154
149
|
return {
|
|
155
150
|
id: 'shadow',
|
|
156
|
-
title:
|
|
151
|
+
title: '阴影',
|
|
157
152
|
order: 25,
|
|
158
153
|
placement: 'body',
|
|
159
|
-
summary: text.summaryPolicy(mode, mixedMode),
|
|
160
154
|
persistence: 'document',
|
|
161
155
|
collapsedByDefault: false,
|
|
162
|
-
properties: [
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
property,
|
|
173
|
-
propertyOrder: index + 1,
|
|
174
|
-
text,
|
|
175
|
-
nodeKind: activeNodeKind,
|
|
176
|
-
document,
|
|
177
|
-
})),
|
|
178
|
-
...(EDITOR_SHADOW_STATIC_AUTHORING_ENABLED && mode === 'static' && !mixedMode
|
|
179
|
-
? [createEditorSceneStaticShadowBakeActionProperty(text, 90)]
|
|
180
|
-
: []),
|
|
181
|
-
],
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
function orderEditorSceneSerializedMultiShadowProperties(properties) {
|
|
185
|
-
const priority = (path) => {
|
|
186
|
-
if (path === 'shadow.cast')
|
|
187
|
-
return 0;
|
|
188
|
-
if (path === 'shadow.mode')
|
|
189
|
-
return 1;
|
|
190
|
-
if (path === 'shadow.quality')
|
|
191
|
-
return 2;
|
|
192
|
-
if (path === 'shadow.receive')
|
|
193
|
-
return 3;
|
|
194
|
-
if (path.startsWith('shadow.light.'))
|
|
195
|
-
return 5;
|
|
196
|
-
if (path.startsWith('shadow.params.'))
|
|
197
|
-
return 6;
|
|
198
|
-
return 10;
|
|
156
|
+
properties: [{
|
|
157
|
+
...inspectorProperty,
|
|
158
|
+
label: '开启阴影',
|
|
159
|
+
valueType: 'boolean',
|
|
160
|
+
control: 'boolean',
|
|
161
|
+
value: castSource.value === 'enabled',
|
|
162
|
+
options: undefined,
|
|
163
|
+
tooltip: '勾选后所选物体开启阴影;取消勾选后关闭阴影。',
|
|
164
|
+
validate: (value) => validateCast(value === true ? 'enabled' : 'none'),
|
|
165
|
+
}],
|
|
199
166
|
};
|
|
200
|
-
return [...properties].sort((a, b) => priority(a.path) - priority(b.path));
|
|
201
167
|
}
|
|
202
168
|
function isEditorSceneSerializedMultiShadowPropertyPath(path) {
|
|
203
169
|
return path.startsWith(SHADOW_PREFIX);
|
|
204
170
|
}
|
|
205
|
-
function createEditorSceneLocalizedSerializedMultiShadowInspectorProperty(input) {
|
|
206
|
-
const localized = localizeEditorSceneSerializedMultiShadowProperty(input.property, input.text);
|
|
207
|
-
const inspectorProperty = createEditorSceneSerializedMultiInspectorProperty(localized, input.propertyOrder);
|
|
208
|
-
return {
|
|
209
|
-
...inspectorProperty,
|
|
210
|
-
...(isEditorSceneShadowPolicyChildProperty(localized.path)
|
|
211
|
-
? {
|
|
212
|
-
controlOptions: {
|
|
213
|
-
...inspectorProperty.controlOptions,
|
|
214
|
-
indentLevel: 1,
|
|
215
|
-
parentPath: 'shadow.cast',
|
|
216
|
-
},
|
|
217
|
-
}
|
|
218
|
-
: {}),
|
|
219
|
-
tooltip: resolveEditorSceneSerializedMultiShadowTooltip(localized.path, input.text),
|
|
220
|
-
validate: createEditorSceneFieldInspectorValidator({
|
|
221
|
-
path: localized.path,
|
|
222
|
-
nodeKind: input.nodeKind,
|
|
223
|
-
document: input.document,
|
|
224
|
-
}),
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
function isEditorSceneShadowPolicyChildProperty(path) {
|
|
228
|
-
return path === 'shadow.mode' || path === 'shadow.quality';
|
|
229
|
-
}
|
|
230
|
-
function localizeEditorSceneSerializedMultiShadowProperty(property, text) {
|
|
231
|
-
if (property.path === 'shadow.cast')
|
|
232
|
-
return localizeProperty(property, text.cast, createEditorSceneShadowCastOptions(text));
|
|
233
|
-
if (property.path === 'shadow.receive')
|
|
234
|
-
return localizeProperty(property, text.receive, createEditorSceneShadowReceiveOptions(text));
|
|
235
|
-
if (property.path === 'shadow.mode')
|
|
236
|
-
return localizeProperty(property, text.policy, createEditorSceneShadowPolicyOptions(text));
|
|
237
|
-
if (property.path === 'shadow.quality')
|
|
238
|
-
return localizeProperty(property, text.quality, createEditorSceneShadowQualityOptions(text));
|
|
239
|
-
if (property.path === 'shadow.light.mode')
|
|
240
|
-
return localizeProperty(property, text.light, createEditorSceneShadowLightOptions(text));
|
|
241
|
-
if (property.path === 'shadow.light.lightId')
|
|
242
|
-
return localizeProperty(property, text.lightId);
|
|
243
|
-
if (property.path === 'shadow.params.opacity')
|
|
244
|
-
return localizeProperty(property, text.opacity);
|
|
245
|
-
if (property.path === 'shadow.params.softness')
|
|
246
|
-
return localizeProperty(property, text.softness);
|
|
247
|
-
if (property.path === 'shadow.params.bias')
|
|
248
|
-
return localizeProperty(property, text.bias);
|
|
249
|
-
if (property.path === 'shadow.params.normalBias')
|
|
250
|
-
return localizeProperty(property, text.normalBias);
|
|
251
|
-
if (property.path === 'shadow.params.maxDistance')
|
|
252
|
-
return localizeProperty(property, text.maxDistance);
|
|
253
|
-
if (property.path === 'shadow.params.resolution')
|
|
254
|
-
return localizeProperty(property, text.resolution);
|
|
255
|
-
if (property.path === 'shadow.params.cascadeCount')
|
|
256
|
-
return localizeProperty(property, text.cascadeCount);
|
|
257
|
-
if (property.path === 'shadow.params.bakeSamples')
|
|
258
|
-
return localizeProperty(property, text.bakeSamples);
|
|
259
|
-
if (property.path === 'shadow.params.blurKernel')
|
|
260
|
-
return localizeProperty(property, text.blurKernel);
|
|
261
|
-
return property;
|
|
262
|
-
}
|
|
263
|
-
function localizeProperty(property, label, options) {
|
|
264
|
-
return {
|
|
265
|
-
...property,
|
|
266
|
-
label,
|
|
267
|
-
...(options ? { options } : {}),
|
|
268
|
-
descriptor: {
|
|
269
|
-
...property.descriptor,
|
|
270
|
-
label,
|
|
271
|
-
...(options ? { options } : {}),
|
|
272
|
-
},
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
function resolveEditorSceneSerializedMultiShadowTooltip(path, text) {
|
|
276
|
-
if (path === 'shadow.cast')
|
|
277
|
-
return text.tooltips.cast;
|
|
278
|
-
if (path === 'shadow.receive')
|
|
279
|
-
return text.tooltips.receive;
|
|
280
|
-
if (path === 'shadow.mode')
|
|
281
|
-
return text.tooltips.policy;
|
|
282
|
-
if (path === 'shadow.quality')
|
|
283
|
-
return text.tooltips.quality;
|
|
284
|
-
if (path === 'shadow.light.mode')
|
|
285
|
-
return text.tooltips.light;
|
|
286
|
-
if (path === 'shadow.light.lightId')
|
|
287
|
-
return text.tooltips.lightId;
|
|
288
|
-
if (path === 'shadow.params.opacity')
|
|
289
|
-
return text.tooltips.opacity;
|
|
290
|
-
if (path === 'shadow.params.softness')
|
|
291
|
-
return text.tooltips.softness;
|
|
292
|
-
if (path === 'shadow.params.bias')
|
|
293
|
-
return text.tooltips.bias;
|
|
294
|
-
if (path === 'shadow.params.normalBias')
|
|
295
|
-
return text.tooltips.normalBias;
|
|
296
|
-
if (path === 'shadow.params.maxDistance')
|
|
297
|
-
return text.tooltips.maxDistance;
|
|
298
|
-
if (path === 'shadow.params.resolution')
|
|
299
|
-
return text.tooltips.resolution;
|
|
300
|
-
if (path === 'shadow.params.cascadeCount')
|
|
301
|
-
return text.tooltips.cascadeCount;
|
|
302
|
-
if (path === 'shadow.params.bakeSamples')
|
|
303
|
-
return text.tooltips.bakeSamples;
|
|
304
|
-
if (path === 'shadow.params.blurKernel')
|
|
305
|
-
return text.tooltips.blurKernel;
|
|
306
|
-
return undefined;
|
|
307
|
-
}
|
|
308
|
-
function readEditorSceneSerializedMultiShadowPolicyMode(policySource) {
|
|
309
|
-
if (policySource?.value === 'none'
|
|
310
|
-
|| policySource?.value === 'dynamic'
|
|
311
|
-
|| policySource?.value === 'static'
|
|
312
|
-
|| policySource?.value === 'blob'
|
|
313
|
-
|| policySource?.value === 'projected'
|
|
314
|
-
|| policySource?.value === 'auto'
|
|
315
|
-
|| policySource?.value === 'inherit') {
|
|
316
|
-
return policySource.value;
|
|
317
|
-
}
|
|
318
|
-
return 'inherit';
|
|
319
|
-
}
|
|
320
|
-
function createEditorSceneSerializedMultiShadowLanguageInspectorProperty(input) {
|
|
321
|
-
return {
|
|
322
|
-
path: EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_PATH,
|
|
323
|
-
label: input.text.language,
|
|
324
|
-
valueType: 'enum',
|
|
325
|
-
control: 'enum',
|
|
326
|
-
value: input.language,
|
|
327
|
-
options: EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_OPTIONS,
|
|
328
|
-
mixed: input.mixed,
|
|
329
|
-
readOnly: false,
|
|
330
|
-
persistence: 'document',
|
|
331
|
-
commitMode: 'immediate',
|
|
332
|
-
order: input.order,
|
|
333
|
-
controlOptions: { variant: 'segmented' },
|
|
334
|
-
tooltip: input.text.tooltips.language,
|
|
335
|
-
validate: createEditorSceneFieldInspectorValidator({
|
|
336
|
-
path: EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_PATH,
|
|
337
|
-
nodeKind: input.nodeKind,
|
|
338
|
-
document: input.document,
|
|
339
|
-
}),
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
171
|
function createEditorSceneSerializedMultiInspectorSection(id, title, order, properties, document) {
|
|
343
172
|
if (properties.length === 0)
|
|
344
173
|
return null;
|
|
@@ -391,13 +220,6 @@ function resolveEditorSceneSerializedMultiPropertyNodeKind(document, path) {
|
|
|
391
220
|
const gameObject = document.scene.gameObjects.find((entry) => !isEditorSceneRootGameObject(entry));
|
|
392
221
|
return gameObject ? readEditorSceneNodeKind(gameObject) : null;
|
|
393
222
|
}
|
|
394
|
-
if (path === EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_PATH) {
|
|
395
|
-
const gameObject = document.scene.gameObjects.find((entry) => canEditEditorSceneShadowSettings({
|
|
396
|
-
gameObject: entry,
|
|
397
|
-
nodeKind: readEditorSceneNodeKind(entry),
|
|
398
|
-
}));
|
|
399
|
-
return gameObject ? readEditorSceneNodeKind(gameObject) : null;
|
|
400
|
-
}
|
|
401
223
|
return null;
|
|
402
224
|
}
|
|
403
225
|
function inferEditorSceneSerializedMultiInspectorControl(valueType) {
|
package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspector.js","sourceRoot":"","sources":["../../src/serialized-property/inspector.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,uBAAuB,GAGxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,8CAA8C,EAC9C,2CAA2C,EAC3C,gCAAgC,EAChC,kCAAkC,EAClC,mCAAmC,EACnC,oCAAoC,EACpC,qCAAqC,EACrC,qCAAqC,EACrC,+CAA+C,EAC/C,iCAAiC,EACjC,sCAAsC,GACvC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wCAAwC,GACzC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gDAAgD,EAChD,gDAAgD,GACjD,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,sCAAsC,GACvC,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,sCAAsC,GACvC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,YAAY,GAAG,SAAS,CAAC;AAC/B,MAAM,aAAa,GAAG,SAAS,CAAC;AAEhC,MAAM,CAAC,MAAM,4DAA4D,GAAG,GAAG,CAAC;AAYhF,MAAM,UAAU,+CAA+C,CAG7D,KAAgE;IAEhE,MAAM,WAAW,GAAG,uCAAuC,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,WAAW,CA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,CAAC,CAAC,CAAC,IAAI,CAAC;IACjE,CAAC;IACD,IAAI,IAAI,KAAK,2CAA2C,EAAE,CAAC;QACzD,MAAM,UAAU,GAAG,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,gCAAgC,CAAC;YAC7F,UAAU,EAAE,KAAK;YACjB,QAAQ,EAAE,uBAAuB,CAAC,KAAK,CAAC;SACzC,CAAC,CAAC,CAAC;QACJ,OAAO,UAAU,CAAC,CAAC,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACjE,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,+CAA+C,CACtD,SAAmE;IAEnE,IAAI,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,MAAM,IAAI,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,QAAQ,EAAE,CAAC;QAC3J,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,kDAAkD,CACzD,SAAmE;IAEnE,IAAI,SAAS,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC;IAC1C,IAAI,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,MAAM,IAAI,SAAS,KAAK,OAAO;QAAE,OAAO,WAAW,CAAC;IACjG,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import type {\n InspectorObject,\n InspectorProperty,\n InspectorSection,\n SerializedMultiObject,\n} from '@fps-games/editor-core';\nimport {\n readEditorSceneNodeKind,\n type EditorSceneDocument,\n type EditorSceneGameObject,\n} from '../document/index';\nimport {\n EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_OPTIONS,\n EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_PATH,\n canEditEditorSceneShadowSettings,\n createEditorSceneShadowCastOptions,\n createEditorSceneShadowLightOptions,\n createEditorSceneShadowPolicyOptions,\n createEditorSceneShadowQualityOptions,\n createEditorSceneShadowReceiveOptions,\n createEditorSceneStaticShadowBakeActionProperty,\n getEditorSceneShadowInspectorText,\n readEditorSceneShadowInspectorLanguage,\n} from '../inspector/document-sections';\nimport {\n createEditorSceneFieldInspectorValidator,\n} from '../inspector/validation';\nimport {\n isEditorSceneRootGameObject,\n} from '../session/identity';\nimport {\n createEditorSceneSerializedMultiCommonProperties,\n createEditorSceneSerializedMultiShadowProperties,\n} from './descriptors';\nimport {\n createEditorSceneSerializedMultiObject,\n} from './object';\nimport {\n EDITOR_SHADOW_STATIC_AUTHORING_ENABLED,\n} from '@fps-games/playable-rendering';\n\nconst ENABLED_PATH = 'enabled';\nconst SHADOW_PREFIX = 'shadow.';\n\nexport const EDITOR_SCENE_LARGE_SELECTION_LIGHTWEIGHT_INSPECTOR_THRESHOLD = 200;\n\nexport interface EditorSceneSerializedMultiInspectorObjectInput<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n> {\n document: TDocument;\n selectedIds: readonly string[];\n activeId: string | null;\n label?: string;\n largeSelectionThreshold?: number;\n}\n\nexport function createEditorSceneSerializedMultiInspectorObject<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n>(\n input: EditorSceneSerializedMultiInspectorObjectInput<TDocument>,\n): InspectorObject<TDocument> | null {\n const gameObjects = collectEditorSceneMultiInspectorTargets(input.document, input.selectedIds);\n if (gameObjects.length === 0) return null;\n\n const targetIds = gameObjects.map((gameObject) => gameObject.id);\n const activeId = input.activeId && targetIds.includes(input.activeId)\n ? input.activeId\n : targetIds[0] ?? null;\n const threshold = input.largeSelectionThreshold ?? EDITOR_SCENE_LARGE_SELECTION_LIGHTWEIGHT_INSPECTOR_THRESHOLD;\n const shadowGameObjects = filterEditorSceneMultiInspectorShadowTargets(gameObjects);\n const shadowProperties = createEditorSceneSerializedMultiShadowProperties<TDocument>(shadowGameObjects);\n const largeSelection = gameObjects.length > threshold;\n const baseSerialized = largeSelection\n ? createEditorSceneLargeSelectionSerializedMultiObject({\n document: input.document,\n gameObjects,\n shadowGameObjects,\n activeId,\n label: input.label,\n })\n : createEditorSceneSerializedMultiObject({\n document: input.document,\n targetIds,\n activeId,\n label: input.label,\n });\n if (!baseSerialized) return null;\n const serialized = baseSerialized.properties.some((property) => isEditorSceneSerializedMultiShadowPropertyPath(property.path)) || shadowProperties.length === 0\n ? baseSerialized\n : {\n ...baseSerialized,\n properties: [\n ...baseSerialized.properties,\n ...shadowProperties,\n ],\n };\n\n const sections = createEditorSceneSerializedMultiInspectorSections({\n document: input.document,\n serialized,\n shadowOnly: largeSelection,\n });\n if (sections.length === 0) return null;\n\n return {\n targetIds: serialized.targetIds,\n activeId: serialized.activeId,\n label: serialized.label,\n document: input.document,\n selection: {\n targetIds: serialized.targetIds,\n activeId: serialized.activeId,\n document: input.document,\n },\n sections,\n };\n}\n\nexport function createEditorSceneSerializedMultiInspectorSections<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n>(input: {\n document: TDocument;\n serialized: SerializedMultiObject<TDocument>;\n shadowOnly?: boolean;\n}): InspectorSection<TDocument>[] {\n const shadow = createEditorSceneSerializedMultiShadowInspectorSection(\n input.document,\n input.serialized,\n input.serialized.properties.filter((property) => isEditorSceneSerializedMultiShadowPropertyPath(property.path)),\n );\n const common = createEditorSceneSerializedMultiInspectorSection(\n 'common',\n 'Common',\n 10,\n input.serialized.properties.filter((property) => property.path === ENABLED_PATH),\n input.document,\n );\n if (input.shadowOnly) return [common, shadow].filter((section): section is InspectorSection<TDocument> => !!section);\n return [\n common,\n createEditorSceneSerializedMultiInspectorSection(\n 'transform',\n 'Transform',\n 20,\n input.serialized.properties.filter((property) => property.path.startsWith('transform.')),\n input.document,\n ),\n shadow,\n createEditorSceneSerializedMultiInspectorSection(\n 'properties',\n 'Properties',\n 90,\n input.serialized.properties.filter((property) => (\n !property.path.startsWith('transform.') && property.path !== ENABLED_PATH\n && !property.path.startsWith(SHADOW_PREFIX)\n )),\n input.document,\n ),\n ].filter((section): section is InspectorSection<TDocument> => !!section);\n}\n\nfunction collectEditorSceneMultiInspectorTargets<\n TDocument extends EditorSceneDocument,\n>(\n document: TDocument,\n selectedIds: readonly string[],\n): EditorSceneGameObject[] {\n const gameObjectById = new Map(document.scene.gameObjects.map((gameObject) => [gameObject.id, gameObject]));\n const seen = new Set<string>();\n const gameObjects: EditorSceneGameObject[] = [];\n for (const selectedId of selectedIds) {\n if (!selectedId || seen.has(selectedId)) continue;\n seen.add(selectedId);\n const gameObject = gameObjectById.get(selectedId);\n if (!gameObject) continue;\n if (isEditorSceneRootGameObject(gameObject)) continue;\n gameObjects.push(gameObject);\n }\n return gameObjects;\n}\n\nfunction filterEditorSceneMultiInspectorShadowTargets(\n gameObjects: readonly EditorSceneGameObject[],\n): EditorSceneGameObject[] {\n return gameObjects.filter((gameObject) => canEditEditorSceneShadowSettings({\n gameObject,\n nodeKind: readEditorSceneNodeKind(gameObject),\n }));\n}\n\nfunction createEditorSceneLargeSelectionSerializedMultiObject<\n TDocument extends EditorSceneDocument,\n>(input: {\n document: TDocument;\n gameObjects: readonly EditorSceneGameObject[];\n shadowGameObjects: readonly EditorSceneGameObject[];\n activeId: string | null;\n label?: string;\n}): SerializedMultiObject<TDocument> | null {\n if (input.gameObjects.length === 0) return null;\n const shadowProperties: SerializedMultiObject<TDocument>['properties'] = input.shadowGameObjects.length === 0\n ? []\n : createEditorSceneSerializedMultiShadowProperties<TDocument>(input.shadowGameObjects);\n return {\n targetIds: input.gameObjects.map((gameObject) => gameObject.id),\n activeId: input.activeId,\n label: input.label ?? `${input.gameObjects.length} GameObjects`,\n properties: [\n ...createEditorSceneSerializedMultiCommonProperties<TDocument>(input.gameObjects),\n ...shadowProperties,\n ],\n };\n}\n\nfunction createEditorSceneSerializedMultiShadowInspectorSection<\n TDocument extends EditorSceneDocument,\n>(\n document: TDocument,\n serialized: SerializedMultiObject<TDocument>,\n shadowProperties: SerializedMultiObject<TDocument>['properties'],\n): InspectorSection<TDocument> | null {\n if (shadowProperties.length === 0) return null;\n const gameObjectById = new Map(document.scene.gameObjects.map((gameObject) => [gameObject.id, gameObject]));\n const selectedObjects = serialized.targetIds\n .map((targetId) => gameObjectById.get(targetId))\n .filter((gameObject): gameObject is EditorSceneGameObject => !!gameObject)\n .filter((gameObject) => canEditEditorSceneShadowSettings({\n gameObject,\n nodeKind: readEditorSceneNodeKind(gameObject),\n }));\n const activeObject = gameObjectById.get(serialized.activeId ?? '') ?? selectedObjects[0] ?? null;\n const shadowActiveObject = activeObject && canEditEditorSceneShadowSettings({\n gameObject: activeObject,\n nodeKind: readEditorSceneNodeKind(activeObject),\n })\n ? activeObject\n : selectedObjects[0] ?? null;\n if (!shadowActiveObject) return null;\n\n const language = readEditorSceneShadowInspectorLanguage(shadowActiveObject);\n const mixedLanguage = selectedObjects\n .map(readEditorSceneShadowInspectorLanguage)\n .some((candidate) => candidate !== language);\n const text = getEditorSceneShadowInspectorText(language);\n const activeNodeKind = readEditorSceneNodeKind(shadowActiveObject);\n const policySource = shadowProperties.find(property => property.path === 'shadow.mode');\n const castSource = shadowProperties.find(property => property.path === 'shadow.cast');\n const showShadowPolicyControls = !castSource || castSource.mixed === true || castSource.value === 'enabled';\n const mode = readEditorSceneSerializedMultiShadowPolicyMode(policySource);\n const mixedMode = policySource?.mixed === true;\n const visibleShadowProperties = showShadowPolicyControls\n ? shadowProperties\n : shadowProperties.filter(property => property.path !== 'shadow.mode' && property.path !== 'shadow.quality');\n\n return {\n id: 'shadow',\n title: text.title,\n order: 25,\n placement: 'body',\n summary: text.summaryPolicy(mode, mixedMode),\n persistence: 'document',\n collapsedByDefault: false,\n properties: [\n createEditorSceneSerializedMultiShadowLanguageInspectorProperty({\n document,\n text,\n language,\n mixed: mixedLanguage,\n nodeKind: activeNodeKind,\n order: 0,\n }),\n ...orderEditorSceneSerializedMultiShadowProperties(visibleShadowProperties).map((property, index) => createEditorSceneLocalizedSerializedMultiShadowInspectorProperty({\n property,\n propertyOrder: index + 1,\n text,\n nodeKind: activeNodeKind,\n document,\n })),\n ...(EDITOR_SHADOW_STATIC_AUTHORING_ENABLED && mode === 'static' && !mixedMode\n ? [createEditorSceneStaticShadowBakeActionProperty<TDocument>(text, 90)]\n : []),\n ],\n };\n}\n\nfunction orderEditorSceneSerializedMultiShadowProperties<TDocument extends EditorSceneDocument>(\n properties: SerializedMultiObject<TDocument>['properties'],\n): SerializedMultiObject<TDocument>['properties'] {\n const priority = (path: string): number => {\n if (path === 'shadow.cast') return 0;\n if (path === 'shadow.mode') return 1;\n if (path === 'shadow.quality') return 2;\n if (path === 'shadow.receive') return 3;\n if (path.startsWith('shadow.light.')) return 5;\n if (path.startsWith('shadow.params.')) return 6;\n return 10;\n };\n return [...properties].sort((a, b) => priority(a.path) - priority(b.path));\n}\n\nfunction isEditorSceneSerializedMultiShadowPropertyPath(path: string): boolean {\n return path.startsWith(SHADOW_PREFIX);\n}\n\nfunction createEditorSceneLocalizedSerializedMultiShadowInspectorProperty<\n TDocument extends EditorSceneDocument,\n>(input: {\n property: SerializedMultiObject<TDocument>['properties'][number];\n propertyOrder: number;\n text: ReturnType<typeof getEditorSceneShadowInspectorText>;\n nodeKind: string;\n document: TDocument;\n}): InspectorProperty<TDocument> {\n const localized = localizeEditorSceneSerializedMultiShadowProperty(input.property, input.text);\n const inspectorProperty = createEditorSceneSerializedMultiInspectorProperty(localized, input.propertyOrder);\n return {\n ...inspectorProperty,\n ...(isEditorSceneShadowPolicyChildProperty(localized.path)\n ? {\n controlOptions: {\n ...inspectorProperty.controlOptions,\n indentLevel: 1,\n parentPath: 'shadow.cast',\n },\n }\n : {}),\n tooltip: resolveEditorSceneSerializedMultiShadowTooltip(localized.path, input.text),\n validate: createEditorSceneFieldInspectorValidator({\n path: localized.path,\n nodeKind: input.nodeKind,\n document: input.document,\n }),\n };\n}\n\nfunction isEditorSceneShadowPolicyChildProperty(path: string): boolean {\n return path === 'shadow.mode' || path === 'shadow.quality';\n}\n\nfunction localizeEditorSceneSerializedMultiShadowProperty<TDocument extends EditorSceneDocument>(\n property: SerializedMultiObject<TDocument>['properties'][number],\n text: ReturnType<typeof getEditorSceneShadowInspectorText>,\n): SerializedMultiObject<TDocument>['properties'][number] {\n if (property.path === 'shadow.cast') return localizeProperty(property, text.cast, createEditorSceneShadowCastOptions(text));\n if (property.path === 'shadow.receive') return localizeProperty(property, text.receive, createEditorSceneShadowReceiveOptions(text));\n if (property.path === 'shadow.mode') return localizeProperty(property, text.policy, createEditorSceneShadowPolicyOptions(text));\n if (property.path === 'shadow.quality') return localizeProperty(property, text.quality, createEditorSceneShadowQualityOptions(text));\n if (property.path === 'shadow.light.mode') return localizeProperty(property, text.light, createEditorSceneShadowLightOptions(text));\n if (property.path === 'shadow.light.lightId') return localizeProperty(property, text.lightId);\n if (property.path === 'shadow.params.opacity') return localizeProperty(property, text.opacity);\n if (property.path === 'shadow.params.softness') return localizeProperty(property, text.softness);\n if (property.path === 'shadow.params.bias') return localizeProperty(property, text.bias);\n if (property.path === 'shadow.params.normalBias') return localizeProperty(property, text.normalBias);\n if (property.path === 'shadow.params.maxDistance') return localizeProperty(property, text.maxDistance);\n if (property.path === 'shadow.params.resolution') return localizeProperty(property, text.resolution);\n if (property.path === 'shadow.params.cascadeCount') return localizeProperty(property, text.cascadeCount);\n if (property.path === 'shadow.params.bakeSamples') return localizeProperty(property, text.bakeSamples);\n if (property.path === 'shadow.params.blurKernel') return localizeProperty(property, text.blurKernel);\n return property;\n}\n\nfunction localizeProperty<TDocument extends EditorSceneDocument>(\n property: SerializedMultiObject<TDocument>['properties'][number],\n label: string,\n options?: SerializedMultiObject<TDocument>['properties'][number]['options'],\n): SerializedMultiObject<TDocument>['properties'][number] {\n return {\n ...property,\n label,\n ...(options ? { options } : {}),\n descriptor: {\n ...property.descriptor,\n label,\n ...(options ? { options } : {}),\n },\n };\n}\n\nfunction resolveEditorSceneSerializedMultiShadowTooltip(\n path: string,\n text: ReturnType<typeof getEditorSceneShadowInspectorText>,\n): string | undefined {\n if (path === 'shadow.cast') return text.tooltips.cast;\n if (path === 'shadow.receive') return text.tooltips.receive;\n if (path === 'shadow.mode') return text.tooltips.policy;\n if (path === 'shadow.quality') return text.tooltips.quality;\n if (path === 'shadow.light.mode') return text.tooltips.light;\n if (path === 'shadow.light.lightId') return text.tooltips.lightId;\n if (path === 'shadow.params.opacity') return text.tooltips.opacity;\n if (path === 'shadow.params.softness') return text.tooltips.softness;\n if (path === 'shadow.params.bias') return text.tooltips.bias;\n if (path === 'shadow.params.normalBias') return text.tooltips.normalBias;\n if (path === 'shadow.params.maxDistance') return text.tooltips.maxDistance;\n if (path === 'shadow.params.resolution') return text.tooltips.resolution;\n if (path === 'shadow.params.cascadeCount') return text.tooltips.cascadeCount;\n if (path === 'shadow.params.bakeSamples') return text.tooltips.bakeSamples;\n if (path === 'shadow.params.blurKernel') return text.tooltips.blurKernel;\n return undefined;\n}\n\nfunction readEditorSceneSerializedMultiShadowPolicyMode<TDocument extends EditorSceneDocument>(\n policySource: SerializedMultiObject<TDocument>['properties'][number] | undefined,\n) {\n if (policySource?.value === 'none'\n || policySource?.value === 'dynamic'\n || policySource?.value === 'static'\n || policySource?.value === 'blob'\n || policySource?.value === 'projected'\n || policySource?.value === 'auto'\n || policySource?.value === 'inherit') {\n return policySource.value;\n }\n return 'inherit';\n}\n\nfunction createEditorSceneSerializedMultiShadowLanguageInspectorProperty<\n TDocument extends EditorSceneDocument,\n>(input: {\n document: TDocument;\n text: ReturnType<typeof getEditorSceneShadowInspectorText>;\n language: ReturnType<typeof readEditorSceneShadowInspectorLanguage>;\n mixed: boolean;\n nodeKind: string;\n order: number;\n}): InspectorProperty<TDocument> {\n return {\n path: EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_PATH,\n label: input.text.language,\n valueType: 'enum',\n control: 'enum',\n value: input.language,\n options: EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_OPTIONS,\n mixed: input.mixed,\n readOnly: false,\n persistence: 'document',\n commitMode: 'immediate',\n order: input.order,\n controlOptions: { variant: 'segmented' },\n tooltip: input.text.tooltips.language,\n validate: createEditorSceneFieldInspectorValidator({\n path: EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_PATH,\n nodeKind: input.nodeKind,\n document: input.document,\n }),\n };\n}\n\nfunction createEditorSceneSerializedMultiInspectorSection<\n TDocument extends EditorSceneDocument,\n>(\n id: string,\n title: string,\n order: number,\n properties: SerializedMultiObject<TDocument>['properties'],\n document: TDocument,\n): InspectorSection<TDocument> | null {\n if (properties.length === 0) return null;\n return {\n id,\n title,\n order,\n placement: 'body',\n persistence: 'document',\n properties: properties.map((property, propertyOrder) => {\n const inspectorProperty = createEditorSceneSerializedMultiInspectorProperty(property, propertyOrder);\n const nodeKind = resolveEditorSceneSerializedMultiPropertyNodeKind(document, property.path);\n return {\n ...inspectorProperty,\n step: property.valueType === 'number'\n ? property.path.startsWith('transform.rotation.') ? 1 : 0.1\n : inspectorProperty.step,\n validate: nodeKind\n ? createEditorSceneFieldInspectorValidator({\n path: property.path,\n nodeKind,\n document,\n })\n : inspectorProperty.validate,\n };\n }),\n };\n}\n\nfunction createEditorSceneSerializedMultiInspectorProperty<\n TDocument extends EditorSceneDocument,\n>(\n property: SerializedMultiObject<TDocument>['properties'][number],\n order: number,\n): InspectorProperty<TDocument> {\n const readOnly = property.readOnly === true;\n return {\n path: property.path,\n label: property.label,\n valueType: property.valueType,\n control: readOnly ? 'readonly' : inferEditorSceneSerializedMultiInspectorControl(property.valueType),\n value: property.value,\n options: property.options,\n mixed: property.mixed,\n readOnly,\n persistence: readOnly ? 'readonly' : 'document',\n commitMode: inferEditorSceneSerializedMultiInspectorCommitMode(property.valueType),\n order,\n source: property,\n };\n}\n\nfunction resolveEditorSceneSerializedMultiPropertyNodeKind<TDocument extends EditorSceneDocument>(\n document: TDocument,\n path: string,\n): string | null {\n if (path.startsWith('transform.')) return 'transform';\n if (path === ENABLED_PATH) {\n const gameObject = document.scene.gameObjects.find((entry) => !isEditorSceneRootGameObject(entry));\n return gameObject ? readEditorSceneNodeKind(gameObject) : null;\n }\n if (path === EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_PATH) {\n const gameObject = document.scene.gameObjects.find((entry) => canEditEditorSceneShadowSettings({\n gameObject: entry,\n nodeKind: readEditorSceneNodeKind(entry),\n }));\n return gameObject ? readEditorSceneNodeKind(gameObject) : null;\n }\n return null;\n}\n\nfunction inferEditorSceneSerializedMultiInspectorControl(\n valueType: SerializedMultiObject['properties'][number]['valueType'],\n): InspectorProperty['control'] {\n if (valueType === 'string' || valueType === 'number' || valueType === 'boolean' || valueType === 'enum' || valueType === 'asset' || valueType === 'object') {\n return valueType;\n }\n return 'readonly';\n}\n\nfunction inferEditorSceneSerializedMultiInspectorCommitMode(\n valueType: SerializedMultiObject['properties'][number]['valueType'],\n): InspectorProperty['commitMode'] {\n if (valueType === 'number') return 'live';\n if (valueType === 'boolean' || valueType === 'enum' || valueType === 'asset') return 'immediate';\n return 'blur';\n}\n"]}
|
|
1
|
+
{"version":3,"file":"inspector.js","sourceRoot":"","sources":["../../src/serialized-property/inspector.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,uBAAuB,GAGxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,gCAAgC,GACjC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wCAAwC,GACzC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gDAAgD,EAChD,gDAAgD,GACjD,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,sCAAsC,GACvC,MAAM,UAAU,CAAC;AAClB,MAAM,YAAY,GAAG,SAAS,CAAC;AAC/B,MAAM,aAAa,GAAG,SAAS,CAAC;AAEhC,MAAM,CAAC,MAAM,4DAA4D,GAAG,GAAG,CAAC;AAYhF,MAAM,UAAU,+CAA+C,CAG7D,KAAgE;IAEhE,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AS,iDAAiD,CACxD,QAAmB,EACnB,IAAY;IAEZ,IAAI,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;QAAE,OAAO,WAAW,CAAC;IACtD,IAAI,IAAI,KAAK,YAAY,EAAE,CAAC;QAC1B,MAAM,UAAU,GAAG,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC,CAAC;QACnG,OAAO,UAAU,CAAC,CAAC,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACjE,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,+CAA+C,CACtD,SAAmE;IAEnE,IAAI,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,MAAM,IAAI,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,QAAQ,EAAE,CAAC;QAC3J,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,kDAAkD,CACzD,SAAmE;IAEnE,IAAI,SAAS,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC;IAC1C,IAAI,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,MAAM,IAAI,SAAS,KAAK,OAAO;QAAE,OAAO,WAAW,CAAC;IACjG,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import type {\n InspectorObject,\n InspectorProperty,\n InspectorSection,\n SerializedMultiObject,\n} from '@fps-games/editor-core';\nimport {\n readEditorSceneNodeKind,\n type EditorSceneDocument,\n type EditorSceneGameObject,\n} from '../document/index';\nimport {\n canEditEditorSceneShadowSettings,\n} from '../inspector/document-sections';\nimport {\n createEditorSceneFieldInspectorValidator,\n} from '../inspector/validation';\nimport {\n isEditorSceneRootGameObject,\n} from '../session/identity';\nimport {\n createEditorSceneSerializedMultiCommonProperties,\n createEditorSceneSerializedMultiShadowProperties,\n} from './descriptors';\nimport {\n createEditorSceneSerializedMultiObject,\n} from './object';\nconst ENABLED_PATH = 'enabled';\nconst SHADOW_PREFIX = 'shadow.';\n\nexport const EDITOR_SCENE_LARGE_SELECTION_LIGHTWEIGHT_INSPECTOR_THRESHOLD = 200;\n\nexport interface EditorSceneSerializedMultiInspectorObjectInput<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n> {\n document: TDocument;\n selectedIds: readonly string[];\n activeId: string | null;\n label?: string;\n largeSelectionThreshold?: number;\n}\n\nexport function createEditorSceneSerializedMultiInspectorObject<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n>(\n input: EditorSceneSerializedMultiInspectorObjectInput<TDocument>,\n): InspectorObject<TDocument> | null {\n const gameObjects = collectEditorSceneMultiInspectorTargets(input.document, input.selectedIds);\n if (gameObjects.length === 0) return null;\n\n const targetIds = gameObjects.map((gameObject) => gameObject.id);\n const activeId = input.activeId && targetIds.includes(input.activeId)\n ? input.activeId\n : targetIds[0] ?? null;\n const threshold = input.largeSelectionThreshold ?? EDITOR_SCENE_LARGE_SELECTION_LIGHTWEIGHT_INSPECTOR_THRESHOLD;\n const shadowGameObjects = filterEditorSceneMultiInspectorShadowTargets(gameObjects);\n const shadowProperties = createEditorSceneSerializedMultiShadowProperties<TDocument>(shadowGameObjects);\n const largeSelection = gameObjects.length > threshold;\n const baseSerialized = largeSelection\n ? createEditorSceneLargeSelectionSerializedMultiObject({\n document: input.document,\n gameObjects,\n shadowGameObjects,\n activeId,\n label: input.label,\n })\n : createEditorSceneSerializedMultiObject({\n document: input.document,\n targetIds,\n activeId,\n label: input.label,\n });\n if (!baseSerialized) return null;\n const serialized = baseSerialized.properties.some((property) => isEditorSceneSerializedMultiShadowPropertyPath(property.path)) || shadowProperties.length === 0\n ? baseSerialized\n : {\n ...baseSerialized,\n properties: [\n ...baseSerialized.properties,\n ...shadowProperties,\n ],\n };\n\n const sections = createEditorSceneSerializedMultiInspectorSections({\n document: input.document,\n serialized,\n shadowOnly: largeSelection,\n });\n if (sections.length === 0) return null;\n\n return {\n targetIds: serialized.targetIds,\n activeId: serialized.activeId,\n label: serialized.label,\n document: input.document,\n selection: {\n targetIds: serialized.targetIds,\n activeId: serialized.activeId,\n document: input.document,\n },\n sections,\n };\n}\n\nexport function createEditorSceneSerializedMultiInspectorSections<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n>(input: {\n document: TDocument;\n serialized: SerializedMultiObject<TDocument>;\n shadowOnly?: boolean;\n}): InspectorSection<TDocument>[] {\n const shadow = createEditorSceneSerializedMultiShadowInspectorSection(\n input.document,\n input.serialized,\n input.serialized.properties.filter((property) => isEditorSceneSerializedMultiShadowPropertyPath(property.path)),\n );\n const common = createEditorSceneSerializedMultiInspectorSection(\n 'common',\n 'Common',\n 10,\n input.serialized.properties.filter((property) => property.path === ENABLED_PATH),\n input.document,\n );\n if (input.shadowOnly) return [common, shadow].filter((section): section is InspectorSection<TDocument> => !!section);\n return [\n common,\n createEditorSceneSerializedMultiInspectorSection(\n 'transform',\n 'Transform',\n 20,\n input.serialized.properties.filter((property) => property.path.startsWith('transform.')),\n input.document,\n ),\n shadow,\n createEditorSceneSerializedMultiInspectorSection(\n 'properties',\n 'Properties',\n 90,\n input.serialized.properties.filter((property) => (\n !property.path.startsWith('transform.') && property.path !== ENABLED_PATH\n && !property.path.startsWith(SHADOW_PREFIX)\n )),\n input.document,\n ),\n ].filter((section): section is InspectorSection<TDocument> => !!section);\n}\n\nfunction collectEditorSceneMultiInspectorTargets<\n TDocument extends EditorSceneDocument,\n>(\n document: TDocument,\n selectedIds: readonly string[],\n): EditorSceneGameObject[] {\n const gameObjectById = new Map(document.scene.gameObjects.map((gameObject) => [gameObject.id, gameObject]));\n const seen = new Set<string>();\n const gameObjects: EditorSceneGameObject[] = [];\n for (const selectedId of selectedIds) {\n if (!selectedId || seen.has(selectedId)) continue;\n seen.add(selectedId);\n const gameObject = gameObjectById.get(selectedId);\n if (!gameObject) continue;\n if (isEditorSceneRootGameObject(gameObject)) continue;\n gameObjects.push(gameObject);\n }\n return gameObjects;\n}\n\nfunction filterEditorSceneMultiInspectorShadowTargets(\n gameObjects: readonly EditorSceneGameObject[],\n): EditorSceneGameObject[] {\n return gameObjects.filter((gameObject) => canEditEditorSceneShadowSettings({\n gameObject,\n nodeKind: readEditorSceneNodeKind(gameObject),\n }));\n}\n\nfunction createEditorSceneLargeSelectionSerializedMultiObject<\n TDocument extends EditorSceneDocument,\n>(input: {\n document: TDocument;\n gameObjects: readonly EditorSceneGameObject[];\n shadowGameObjects: readonly EditorSceneGameObject[];\n activeId: string | null;\n label?: string;\n}): SerializedMultiObject<TDocument> | null {\n if (input.gameObjects.length === 0) return null;\n const shadowProperties: SerializedMultiObject<TDocument>['properties'] = input.shadowGameObjects.length === 0\n ? []\n : createEditorSceneSerializedMultiShadowProperties<TDocument>(input.shadowGameObjects);\n return {\n targetIds: input.gameObjects.map((gameObject) => gameObject.id),\n activeId: input.activeId,\n label: input.label ?? `${input.gameObjects.length} GameObjects`,\n properties: [\n ...createEditorSceneSerializedMultiCommonProperties<TDocument>(input.gameObjects),\n ...shadowProperties,\n ],\n };\n}\n\nfunction createEditorSceneSerializedMultiShadowInspectorSection<\n TDocument extends EditorSceneDocument,\n>(\n document: TDocument,\n serialized: SerializedMultiObject<TDocument>,\n shadowProperties: SerializedMultiObject<TDocument>['properties'],\n): InspectorSection<TDocument> | null {\n if (shadowProperties.length === 0) return null;\n const gameObjectById = new Map(document.scene.gameObjects.map((gameObject) => [gameObject.id, gameObject]));\n const selectedObjects = serialized.targetIds\n .map((targetId) => gameObjectById.get(targetId))\n .filter((gameObject): gameObject is EditorSceneGameObject => !!gameObject)\n .filter((gameObject) => canEditEditorSceneShadowSettings({\n gameObject,\n nodeKind: readEditorSceneNodeKind(gameObject),\n }));\n const activeObject = gameObjectById.get(serialized.activeId ?? '') ?? selectedObjects[0] ?? null;\n const shadowActiveObject = activeObject && canEditEditorSceneShadowSettings({\n gameObject: activeObject,\n nodeKind: readEditorSceneNodeKind(activeObject),\n })\n ? activeObject\n : selectedObjects[0] ?? null;\n if (!shadowActiveObject) return null;\n\n const activeNodeKind = readEditorSceneNodeKind(shadowActiveObject);\n const castSource = shadowProperties.find(property => property.path === 'shadow.cast');\n if (!castSource) return null;\n const inspectorProperty = createEditorSceneSerializedMultiInspectorProperty(castSource, 0);\n const validateCast = createEditorSceneFieldInspectorValidator({\n path: castSource.path,\n nodeKind: activeNodeKind,\n document,\n });\n\n return {\n id: 'shadow',\n title: '阴影',\n order: 25,\n placement: 'body',\n persistence: 'document',\n collapsedByDefault: false,\n properties: [{\n ...inspectorProperty,\n label: '开启阴影',\n valueType: 'boolean',\n control: 'boolean',\n value: castSource.value === 'enabled',\n options: undefined,\n tooltip: '勾选后所选物体开启阴影;取消勾选后关闭阴影。',\n validate: (value) => validateCast(value === true ? 'enabled' : 'none'),\n }],\n };\n}\n\nfunction isEditorSceneSerializedMultiShadowPropertyPath(path: string): boolean {\n return path.startsWith(SHADOW_PREFIX);\n}\n\nfunction createEditorSceneSerializedMultiInspectorSection<\n TDocument extends EditorSceneDocument,\n>(\n id: string,\n title: string,\n order: number,\n properties: SerializedMultiObject<TDocument>['properties'],\n document: TDocument,\n): InspectorSection<TDocument> | null {\n if (properties.length === 0) return null;\n return {\n id,\n title,\n order,\n placement: 'body',\n persistence: 'document',\n properties: properties.map((property, propertyOrder) => {\n const inspectorProperty = createEditorSceneSerializedMultiInspectorProperty(property, propertyOrder);\n const nodeKind = resolveEditorSceneSerializedMultiPropertyNodeKind(document, property.path);\n return {\n ...inspectorProperty,\n step: property.valueType === 'number'\n ? property.path.startsWith('transform.rotation.') ? 1 : 0.1\n : inspectorProperty.step,\n validate: nodeKind\n ? createEditorSceneFieldInspectorValidator({\n path: property.path,\n nodeKind,\n document,\n })\n : inspectorProperty.validate,\n };\n }),\n };\n}\n\nfunction createEditorSceneSerializedMultiInspectorProperty<\n TDocument extends EditorSceneDocument,\n>(\n property: SerializedMultiObject<TDocument>['properties'][number],\n order: number,\n): InspectorProperty<TDocument> {\n const readOnly = property.readOnly === true;\n return {\n path: property.path,\n label: property.label,\n valueType: property.valueType,\n control: readOnly ? 'readonly' : inferEditorSceneSerializedMultiInspectorControl(property.valueType),\n value: property.value,\n options: property.options,\n mixed: property.mixed,\n readOnly,\n persistence: readOnly ? 'readonly' : 'document',\n commitMode: inferEditorSceneSerializedMultiInspectorCommitMode(property.valueType),\n order,\n source: property,\n };\n}\n\nfunction resolveEditorSceneSerializedMultiPropertyNodeKind<TDocument extends EditorSceneDocument>(\n document: TDocument,\n path: string,\n): string | null {\n if (path.startsWith('transform.')) return 'transform';\n if (path === ENABLED_PATH) {\n const gameObject = document.scene.gameObjects.find((entry) => !isEditorSceneRootGameObject(entry));\n return gameObject ? readEditorSceneNodeKind(gameObject) : null;\n }\n return null;\n}\n\nfunction inferEditorSceneSerializedMultiInspectorControl(\n valueType: SerializedMultiObject['properties'][number]['valueType'],\n): InspectorProperty['control'] {\n if (valueType === 'string' || valueType === 'number' || valueType === 'boolean' || valueType === 'enum' || valueType === 'asset' || valueType === 'object') {\n return valueType;\n }\n return 'readonly';\n}\n\nfunction inferEditorSceneSerializedMultiInspectorCommitMode(\n valueType: SerializedMultiObject['properties'][number]['valueType'],\n): InspectorProperty['commitMode'] {\n if (valueType === 'number') return 'live';\n if (valueType === 'boolean' || valueType === 'enum' || valueType === 'asset') return 'immediate';\n return 'blur';\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hierarchy-facade.d.ts","sourceRoot":"","sources":["../../src/session/hierarchy-facade.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EA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A6B,CAAC,KAAK,EAAE;QACnC,QAAQ,EAAE,SAAS,CAAC;QACpB,SAAS,EAAE,MAAM,EAAE,CAAC;QACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KACzB,GAAG,uCAAuC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,wCAAwC,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACrI,sBAAsB,CAAC,KAAK,EAAE;QAC5B,QAAQ,EAAE,SAAS,CAAC;QACpB,KAAK,EAAE,2BAA2B,CAAC;QACnC,GAAG,EAAE,kBAAkB,CAAC;KACzB,GAAG,uCAAuC,CAAC,UAAU,CAAC,OAAO,oCAAoC,CAAC,EAAE,MAAM,CAAC,CAAC;CAC9G;AAED,wBAAgB,wCAAwC,CACtD,SAAS,SAAS,mBAAmB,EACrC,WAAW,SAAS,qBAAqB,EACzC,MAAM,GAAG,OAAO,EAEhB,QAAQ,EAAE,0CAA0C,CAAC,SAAS,EAAE,WAAW,CAAC,GAC3E,kCAAkC,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,CAAC,CAwFpE"}
|
|
@@ -79,7 +79,11 @@ export function createPlayableEditorSceneHierarchyFacade(services) {
|
|
|
79
79
|
const source = services.findGameObject(input.document, targetId);
|
|
80
80
|
return !!source && !services.isProtectedSystemGameObject(source);
|
|
81
81
|
});
|
|
82
|
-
return coerceHierarchyPatchResult(createEditorSceneDuplicateSelectionPatch({
|
|
82
|
+
return coerceHierarchyPatchResult(createEditorSceneDuplicateSelectionPatch({
|
|
83
|
+
...input,
|
|
84
|
+
targetIds,
|
|
85
|
+
isProtectedDuplicateSource: (gameObject) => services.isProtectedSystemGameObject(gameObject),
|
|
86
|
+
}));
|
|
83
87
|
},
|
|
84
88
|
createPlacedAssetPatch(input) {
|
|
85
89
|
return coerceHierarchyPatchResult(createEditorSceneAssetPlacementPatch(input));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hierarchy-facade.js","sourceRo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,QAGC;IAED,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC7E,OAAO,MAAM,IAAI,oCAAoC,CAAC,MAAM,CAAC;QAC3D,CAAC,CAAC,MAAM,CAAC,EAAE;QACX,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,0BAA0B,CACjC,MAAsB;IAEtB,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IACzB,OAAO;QACL,GAAG,MAAM;QACT,KAAK,EAAE,MAAM,CAAC,KAAe;KAC9B,CAAC;AACJ,CAAC","sourcesContent":["import {\n getTopLevelSceneGraphNodeIds,\n type EditorPlacementHit,\n type SceneGraphCreateGroupIntent,\n type SceneGraphCreatePrimitiveIntent,\n type SceneGraphDeleteIntent,\n type SceneGraphDropIntent,\n type SceneGraphGroupSelectionIntent,\n type SceneGraphMoveIntent,\n type SceneGraphRenameIntent,\n type SceneGraphTreeItem,\n type SceneGraphValidationResult,\n} from '@fps-games/editor-core';\nimport {\n createEditorSceneAssetPlacementPatch,\n} from '../asset-placement/index';\nimport type {\n EditorSceneAssetLibraryItem,\n EditorSceneDocument,\n EditorSceneGameObject,\n} from '../document/index';\nimport {\n canEditorSceneGameObjectHaveChildren,\n} from './classification';\nimport {\n collectEditorSceneSubtreeIdList,\n getEditorSceneHierarchyItems,\n normalizeEditorSceneHierarchyDocument,\n} from './hierarchy';\nimport {\n createEditorSceneCreateGroupPatch,\n createEditorSceneCreatePrimitivePatch,\n createEditorSceneDeleteSubtreePatch,\n createEditorSceneDuplicateSelectionPatch,\n createEditorSceneGroupSelectionPatch,\n createEditorSceneHierarchyMovePatch,\n createEditorSceneRenamePatch,\n createEditorSceneReparentPatch,\n validateEditorSceneGroupSelection,\n validateEditorSceneHierarchyMove,\n validateEditorSceneReparent,\n} from './patches';\n\nexport type PlayableEditorSceneHierarchyPatchResult<TResult extends { patch: unknown }, TPatch> =\n Omit<TResult, 'patch'> & { patch: TPatch };\n\nexport interface PlayableEditorSceneHierarchyFacadeServices<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n> {\n findGameObject: (document: TDocument, gameObjectId: string | null | undefined) => TGameObject | null;\n resolveRootContainerId: (document: TDocument) => string | undefined;\n isProtectedSystemGameObject: (gameObject: TGameObject) => boolean;\n isProtectedSystemGameObjectId: (document: TDocument, id: string | undefined) => boolean;\n decorateHierarchyItem?: (input: {\n item: SceneGraphTreeItem;\n gameObject: TGameObject | null;\n document: TDocument;\n }) => SceneGraphTreeItem;\n collectHierarchyItemChildren?: (input: {\n item: SceneGraphTreeItem;\n gameObject: TGameObject;\n document: TDocument;\n }) => SceneGraphTreeItem[];\n}\n\nexport interface PlayableEditorSceneHierarchyFacade<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n TPatch = unknown,\n> {\n getHierarchyItems(document: TDocument): SceneGraphTreeItem[];\n normalizeHierarchyDocument(document: TDocument): TDocument;\n createRenamePatch(\n document: TDocument,\n intent: SceneGraphRenameIntent,\n ): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneRenamePatch>>, TPatch> | null;\n createCreateGroupPatch(\n document: TDocument,\n intent: SceneGraphCreateGroupIntent,\n ): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneCreateGroupPatch>>, TPatch> | null;\n createCreatePrimitivePatch(\n document: TDocument,\n intent: SceneGraphCreatePrimitiveIntent,\n ): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneCreatePrimitivePatch>>, TPatch> | null;\n createDeleteSubtreePatch(\n document: TDocument,\n intent: SceneGraphDeleteIntent,\n ): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneDeleteSubtreePatch>>, TPatch> | null;\n collectSubtreeIdList(document: TDocument, rootIds: string[]): string[];\n validateReparent(document: TDocument, intent: SceneGraphDropIntent): SceneGraphValidationResult;\n createReparentPatch(\n document: TDocument,\n intent: SceneGraphDropIntent,\n ): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneReparentPatch>>, TPatch> | null;\n validateHierarchyMove(document: TDocument, intent: SceneGraphMoveIntent): SceneGraphValidationResult;\n createHierarchyMovePatch(\n document: TDocument,\n intent: SceneGraphMoveIntent,\n ): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneHierarchyMovePatch>>, TPatch> | null;\n validateGroupSelection(document: TDocument, intent: SceneGraphGroupSelectionIntent): SceneGraphValidationResult;\n createGroupSelectionPatch(\n document: TDocument,\n intent: SceneGraphGroupSelectionIntent,\n ): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneGroupSelectionPatch>>, TPatch> | null;\n createDuplicateSelectionPatch(input: {\n document: TDocument;\n targetIds: string[];\n activeId: string | null;\n }): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneDuplicateSelectionPatch>>, TPatch> | null;\n createPlacedAssetPatch(input: {\n document: TDocument;\n asset: EditorSceneAssetLibraryItem;\n hit: EditorPlacementHit;\n }): PlayableEditorSceneHierarchyPatchResult<ReturnType<typeof createEditorSceneAssetPlacementPatch>, TPatch>;\n}\n\nexport function createPlayableEditorSceneHierarchyFacade<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject,\n TPatch = unknown,\n>(\n services: PlayableEditorSceneHierarchyFacadeServices<TDocument, TGameObject>,\n): PlayableEditorSceneHierarchyFacade<TDocument, TGameObject, TPatch> {\n return {\n getHierarchyItems(document) {\n return getDecoratedEditorSceneHierarchyItems(document, services);\n },\n normalizeHierarchyDocument(document) {\n return normalizeEditorSceneHierarchyDocument(document) as TDocument;\n },\n createRenamePatch(document, intent) {\n return coerceHierarchyPatchResult(createEditorSceneRenamePatch(document, intent));\n },\n createCreateGroupPatch(document, intent) {\n return coerceHierarchyPatchResult(createEditorSceneCreateGroupPatch(document, intent));\n },\n createCreatePrimitivePatch(document, intent) {\n return coerceHierarchyPatchResult(createEditorSceneCreatePrimitivePatch(document, intent));\n },\n createDeleteSubtreePatch(document, intent) {\n const deletedIds = collectEditorSceneSubtreeIdList(document, intent.ids);\n if (document.scene.gameObjects.some(gameObject => (\n deletedIds.includes(gameObject.id) && services.isProtectedSystemGameObject(gameObject as TGameObject)\n ))) {\n return null;\n }\n return coerceHierarchyPatchResult(createEditorSceneDeleteSubtreePatch(document, intent));\n },\n collectSubtreeIdList(document, rootIds) {\n return collectEditorSceneSubtreeIdList(document, rootIds);\n },\n validateReparent(document, intent) {\n const dragged = services.findGameObject(document, intent.draggedId);\n const target = services.findGameObject(document, intent.targetId);\n if (dragged && services.isProtectedSystemGameObject(dragged)) {\n return { ok: false, reason: 'Protected system GameObject cannot be reparented.' };\n }\n if (target && services.isProtectedSystemGameObject(target)) {\n return { ok: false, reason: 'Protected system GameObject cannot have children.' };\n }\n return validateEditorSceneReparent(document, intent);\n },\n createReparentPatch(document, intent) {\n return coerceHierarchyPatchResult(createEditorSceneReparentPatch(document, intent));\n },\n validateHierarchyMove(document, intent) {\n const hierarchy = getDecoratedEditorSceneHierarchyItems(document, services);\n const ids = getTopLevelSceneGraphNodeIds(hierarchy, intent.ids);\n if (ids.some(id => services.isProtectedSystemGameObjectId(document, id))) {\n return { ok: false, reason: 'Protected system GameObject cannot be moved.' };\n }\n const parentId = resolvePlayableEditorSceneMoveParentId(document, intent, services);\n if (services.isProtectedSystemGameObjectId(document, parentId)) {\n return { ok: false, reason: 'Protected system GameObject cannot have children.' };\n }\n return validateEditorSceneHierarchyMove(document, intent);\n },\n createHierarchyMovePatch(document, intent) {\n return coerceHierarchyPatchResult(createEditorSceneHierarchyMovePatch(document, intent));\n },\n validateGroupSelection(document, intent) {\n const hierarchy = getDecoratedEditorSceneHierarchyItems(document, services);\n const ids = getTopLevelSceneGraphNodeIds(hierarchy, intent.ids);\n if (ids.some(id => services.isProtectedSystemGameObjectId(document, id))) {\n return { ok: false, reason: 'Protected system GameObject cannot be grouped.' };\n }\n const parentId = resolvePlayableEditorSceneGroupSelectionParentId(document, intent.parentId ?? null, services);\n if (services.isProtectedSystemGameObjectId(document, parentId)) {\n return { ok: false, reason: 'Protected system GameObject cannot have children.' };\n }\n return validateEditorSceneGroupSelection(document, intent);\n },\n createGroupSelectionPatch(document, intent) {\n return coerceHierarchyPatchResult(createEditorSceneGroupSelectionPatch(document, intent));\n },\n createDuplicateSelectionPatch(input) {\n const targetIds = input.targetIds.filter((targetId) => {\n const source = services.findGameObject(input.document, targetId);\n return !!source && !services.isProtectedSystemGameObject(source);\n });\n return coerceHierarchyPatchResult(createEditorSceneDuplicateSelectionPatch({ ...input, targetIds }));\n },\n createPlacedAssetPatch(input) {\n return coerceHierarchyPatchResult(createEditorSceneAssetPlacementPatch(input))!;\n },\n };\n}\n\nfunction getDecoratedEditorSceneHierarchyItems<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject,\n>(\n document: TDocument,\n services: PlayableEditorSceneHierarchyFacadeServices<TDocument, TGameObject>,\n): SceneGraphTreeItem[] {\n const items = getEditorSceneHierarchyItems(document);\n const gameObjectsById = new Map(document.scene.gameObjects.map(gameObject => [gameObject.id, gameObject as TGameObject]));\n const result: SceneGraphTreeItem[] = [];\n for (const item of items) {\n const gameObject = gameObjectsById.get(item.id) ?? null;\n result.push(services.decorateHierarchyItem?.({ item, gameObject, document }) ?? item);\n if (!gameObject) continue;\n result.push(...(services.collectHierarchyItemChildren?.({ item, gameObject, document }) ?? []));\n }\n return result;\n}\n\nfunction resolvePlayableEditorSceneMoveParentId<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject,\n>(\n document: TDocument,\n intent: SceneGraphMoveIntent,\n services: Pick<\n PlayableEditorSceneHierarchyFacadeServices<TDocument, TGameObject>,\n 'findGameObject' | 'resolveRootContainerId'\n >,\n): string | undefined {\n if (intent.placement === 'root') return services.resolveRootContainerId(document);\n if (intent.placement === 'inside' && intent.targetId) return intent.targetId;\n const target = intent.targetId ? services.findGameObject(document, intent.targetId) : null;\n return intent.parentId ?? target?.parentId ?? services.resolveRootContainerId(document);\n}\n\nfunction resolvePlayableEditorSceneGroupSelectionParentId<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject,\n>(\n document: TDocument,\n parentId: string | null,\n services: Pick<\n PlayableEditorSceneHierarchyFacadeServices<TDocument, TGameObject>,\n 'findGameObject' | 'resolveRootContainerId'\n >,\n): string | undefined {\n const parent = parentId ? services.findGameObject(document, parentId) : null;\n return parent && canEditorSceneGameObjectHaveChildren(parent)\n ? parent.id\n : services.resolveRootContainerId(document);\n}\n\nfunction coerceHierarchyPatchResult<TResult extends { patch: unknown }, TPatch>(\n result: TResult | null,\n): PlayableEditorSceneHierarchyPatchResult<TResult, TPatch> | null {\n if (!result) return null;\n return {\n ...result,\n patch: result.patch as TPatch,\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"hierarchy-facade.js","sourceRoot":"","sources":["../../src/session/hierarchy-facade.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,GAW7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oCAAoC,GACrC,MAAM,0BAA0B,CAAC;AAMlC,OAAO,EACL,oCAAoC,GACrC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,+BAA+B,EAC/B,4BAA4B,EAC5B,qCAAqC,GACtC,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,iCAAiC,EACjC,qCAAqC,EACrC,mCAAmC,EACnC,wCAAwC,EACxC,oCAAoC,EACpC,mCAAmC,EACnC,4BAA4B,EAC5B,8BAA8B,EAC9B,iCAAiC,EACjC,gCAAgC,EAChC,2BAA2B,GAC5B,MAAM,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CAAC;IACzB,OAAO;QACL,GAAG,MAAM;QACT,KAAK,EAAE,MAAM,CAAC,KAAe;KAC9B,CAAC;AACJ,CAAC","sourcesContent":["import {\n getTopLevelSceneGraphNodeIds,\n type EditorPlacementHit,\n type SceneGraphCreateGroupIntent,\n type SceneGraphCreatePrimitiveIntent,\n type SceneGraphDeleteIntent,\n type SceneGraphDropIntent,\n type SceneGraphGroupSelectionIntent,\n type SceneGraphMoveIntent,\n type SceneGraphRenameIntent,\n type SceneGraphTreeItem,\n type SceneGraphValidationResult,\n} from '@fps-games/editor-core';\nimport {\n createEditorSceneAssetPlacementPatch,\n} from '../asset-placement/index';\nimport type {\n EditorSceneAssetLibraryItem,\n EditorSceneDocument,\n EditorSceneGameObject,\n} from '../document/index';\nimport {\n canEditorSceneGameObjectHaveChildren,\n} from './classification';\nimport {\n collectEditorSceneSubtreeIdList,\n getEditorSceneHierarchyItems,\n normalizeEditorSceneHierarchyDocument,\n} from './hierarchy';\nimport {\n createEditorSceneCreateGroupPatch,\n createEditorSceneCreatePrimitivePatch,\n createEditorSceneDeleteSubtreePatch,\n createEditorSceneDuplicateSelectionPatch,\n createEditorSceneGroupSelectionPatch,\n createEditorSceneHierarchyMovePatch,\n createEditorSceneRenamePatch,\n createEditorSceneReparentPatch,\n validateEditorSceneGroupSelection,\n validateEditorSceneHierarchyMove,\n validateEditorSceneReparent,\n} from './patches';\n\nexport type PlayableEditorSceneHierarchyPatchResult<TResult extends { patch: unknown }, TPatch> =\n Omit<TResult, 'patch'> & { patch: TPatch };\n\nexport interface PlayableEditorSceneHierarchyFacadeServices<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n> {\n findGameObject: (document: TDocument, gameObjectId: string | null | undefined) => TGameObject | null;\n resolveRootContainerId: (document: TDocument) => string | undefined;\n isProtectedSystemGameObject: (gameObject: TGameObject) => boolean;\n isProtectedSystemGameObjectId: (document: TDocument, id: string | undefined) => boolean;\n decorateHierarchyItem?: (input: {\n item: SceneGraphTreeItem;\n gameObject: TGameObject | null;\n document: TDocument;\n }) => SceneGraphTreeItem;\n collectHierarchyItemChildren?: (input: {\n item: SceneGraphTreeItem;\n gameObject: TGameObject;\n document: TDocument;\n }) => SceneGraphTreeItem[];\n}\n\nexport interface PlayableEditorSceneHierarchyFacade<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n TPatch = unknown,\n> {\n getHierarchyItems(document: TDocument): SceneGraphTreeItem[];\n normalizeHierarchyDocument(document: TDocument): TDocument;\n createRenamePatch(\n document: TDocument,\n intent: SceneGraphRenameIntent,\n ): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneRenamePatch>>, TPatch> | null;\n createCreateGroupPatch(\n document: TDocument,\n intent: SceneGraphCreateGroupIntent,\n ): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneCreateGroupPatch>>, TPatch> | null;\n createCreatePrimitivePatch(\n document: TDocument,\n intent: SceneGraphCreatePrimitiveIntent,\n ): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneCreatePrimitivePatch>>, TPatch> | null;\n createDeleteSubtreePatch(\n document: TDocument,\n intent: SceneGraphDeleteIntent,\n ): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneDeleteSubtreePatch>>, TPatch> | null;\n collectSubtreeIdList(document: TDocument, rootIds: string[]): string[];\n validateReparent(document: TDocument, intent: SceneGraphDropIntent): SceneGraphValidationResult;\n createReparentPatch(\n document: TDocument,\n intent: SceneGraphDropIntent,\n ): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneReparentPatch>>, TPatch> | null;\n validateHierarchyMove(document: TDocument, intent: SceneGraphMoveIntent): SceneGraphValidationResult;\n createHierarchyMovePatch(\n document: TDocument,\n intent: SceneGraphMoveIntent,\n ): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneHierarchyMovePatch>>, TPatch> | null;\n validateGroupSelection(document: TDocument, intent: SceneGraphGroupSelectionIntent): SceneGraphValidationResult;\n createGroupSelectionPatch(\n document: TDocument,\n intent: SceneGraphGroupSelectionIntent,\n ): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneGroupSelectionPatch>>, TPatch> | null;\n createDuplicateSelectionPatch(input: {\n document: TDocument;\n targetIds: string[];\n activeId: string | null;\n }): PlayableEditorSceneHierarchyPatchResult<NonNullable<ReturnType<typeof createEditorSceneDuplicateSelectionPatch>>, TPatch> | null;\n createPlacedAssetPatch(input: {\n document: TDocument;\n asset: EditorSceneAssetLibraryItem;\n hit: EditorPlacementHit;\n }): PlayableEditorSceneHierarchyPatchResult<ReturnType<typeof createEditorSceneAssetPlacementPatch>, TPatch>;\n}\n\nexport function createPlayableEditorSceneHierarchyFacade<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject,\n TPatch = unknown,\n>(\n services: PlayableEditorSceneHierarchyFacadeServices<TDocument, TGameObject>,\n): PlayableEditorSceneHierarchyFacade<TDocument, TGameObject, TPatch> {\n return {\n getHierarchyItems(document) {\n return getDecoratedEditorSceneHierarchyItems(document, services);\n },\n normalizeHierarchyDocument(document) {\n return normalizeEditorSceneHierarchyDocument(document) as TDocument;\n },\n createRenamePatch(document, intent) {\n return coerceHierarchyPatchResult(createEditorSceneRenamePatch(document, intent));\n },\n createCreateGroupPatch(document, intent) {\n return coerceHierarchyPatchResult(createEditorSceneCreateGroupPatch(document, intent));\n },\n createCreatePrimitivePatch(document, intent) {\n return coerceHierarchyPatchResult(createEditorSceneCreatePrimitivePatch(document, intent));\n },\n createDeleteSubtreePatch(document, intent) {\n const deletedIds = collectEditorSceneSubtreeIdList(document, intent.ids);\n if (document.scene.gameObjects.some(gameObject => (\n deletedIds.includes(gameObject.id) && services.isProtectedSystemGameObject(gameObject as TGameObject)\n ))) {\n return null;\n }\n return coerceHierarchyPatchResult(createEditorSceneDeleteSubtreePatch(document, intent));\n },\n collectSubtreeIdList(document, rootIds) {\n return collectEditorSceneSubtreeIdList(document, rootIds);\n },\n validateReparent(document, intent) {\n const dragged = services.findGameObject(document, intent.draggedId);\n const target = services.findGameObject(document, intent.targetId);\n if (dragged && services.isProtectedSystemGameObject(dragged)) {\n return { ok: false, reason: 'Protected system GameObject cannot be reparented.' };\n }\n if (target && services.isProtectedSystemGameObject(target)) {\n return { ok: false, reason: 'Protected system GameObject cannot have children.' };\n }\n return validateEditorSceneReparent(document, intent);\n },\n createReparentPatch(document, intent) {\n return coerceHierarchyPatchResult(createEditorSceneReparentPatch(document, intent));\n },\n validateHierarchyMove(document, intent) {\n const hierarchy = getDecoratedEditorSceneHierarchyItems(document, services);\n const ids = getTopLevelSceneGraphNodeIds(hierarchy, intent.ids);\n if (ids.some(id => services.isProtectedSystemGameObjectId(document, id))) {\n return { ok: false, reason: 'Protected system GameObject cannot be moved.' };\n }\n const parentId = resolvePlayableEditorSceneMoveParentId(document, intent, services);\n if (services.isProtectedSystemGameObjectId(document, parentId)) {\n return { ok: false, reason: 'Protected system GameObject cannot have children.' };\n }\n return validateEditorSceneHierarchyMove(document, intent);\n },\n createHierarchyMovePatch(document, intent) {\n return coerceHierarchyPatchResult(createEditorSceneHierarchyMovePatch(document, intent));\n },\n validateGroupSelection(document, intent) {\n const hierarchy = getDecoratedEditorSceneHierarchyItems(document, services);\n const ids = getTopLevelSceneGraphNodeIds(hierarchy, intent.ids);\n if (ids.some(id => services.isProtectedSystemGameObjectId(document, id))) {\n return { ok: false, reason: 'Protected system GameObject cannot be grouped.' };\n }\n const parentId = resolvePlayableEditorSceneGroupSelectionParentId(document, intent.parentId ?? null, services);\n if (services.isProtectedSystemGameObjectId(document, parentId)) {\n return { ok: false, reason: 'Protected system GameObject cannot have children.' };\n }\n return validateEditorSceneGroupSelection(document, intent);\n },\n createGroupSelectionPatch(document, intent) {\n return coerceHierarchyPatchResult(createEditorSceneGroupSelectionPatch(document, intent));\n },\n createDuplicateSelectionPatch(input) {\n const targetIds = input.targetIds.filter((targetId) => {\n const source = services.findGameObject(input.document, targetId);\n return !!source && !services.isProtectedSystemGameObject(source);\n });\n return coerceHierarchyPatchResult(createEditorSceneDuplicateSelectionPatch({\n ...input,\n targetIds,\n isProtectedDuplicateSource: (gameObject) => services.isProtectedSystemGameObject(gameObject as TGameObject),\n }));\n },\n createPlacedAssetPatch(input) {\n return coerceHierarchyPatchResult(createEditorSceneAssetPlacementPatch(input))!;\n },\n };\n}\n\nfunction getDecoratedEditorSceneHierarchyItems<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject,\n>(\n document: TDocument,\n services: PlayableEditorSceneHierarchyFacadeServices<TDocument, TGameObject>,\n): SceneGraphTreeItem[] {\n const items = getEditorSceneHierarchyItems(document);\n const gameObjectsById = new Map(document.scene.gameObjects.map(gameObject => [gameObject.id, gameObject as TGameObject]));\n const result: SceneGraphTreeItem[] = [];\n for (const item of items) {\n const gameObject = gameObjectsById.get(item.id) ?? null;\n result.push(services.decorateHierarchyItem?.({ item, gameObject, document }) ?? item);\n if (!gameObject) continue;\n result.push(...(services.collectHierarchyItemChildren?.({ item, gameObject, document }) ?? []));\n }\n return result;\n}\n\nfunction resolvePlayableEditorSceneMoveParentId<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject,\n>(\n document: TDocument,\n intent: SceneGraphMoveIntent,\n services: Pick<\n PlayableEditorSceneHierarchyFacadeServices<TDocument, TGameObject>,\n 'findGameObject' | 'resolveRootContainerId'\n >,\n): string | undefined {\n if (intent.placement === 'root') return services.resolveRootContainerId(document);\n if (intent.placement === 'inside' && intent.targetId) return intent.targetId;\n const target = intent.targetId ? services.findGameObject(document, intent.targetId) : null;\n return intent.parentId ?? target?.parentId ?? services.resolveRootContainerId(document);\n}\n\nfunction resolvePlayableEditorSceneGroupSelectionParentId<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject,\n>(\n document: TDocument,\n parentId: string | null,\n services: Pick<\n PlayableEditorSceneHierarchyFacadeServices<TDocument, TGameObject>,\n 'findGameObject' | 'resolveRootContainerId'\n >,\n): string | undefined {\n const parent = parentId ? services.findGameObject(document, parentId) : null;\n return parent && canEditorSceneGameObjectHaveChildren(parent)\n ? parent.id\n : services.resolveRootContainerId(document);\n}\n\nfunction coerceHierarchyPatchResult<TResult extends { patch: unknown }, TPatch>(\n result: TResult | null,\n): PlayableEditorSceneHierarchyPatchResult<TResult, TPatch> | null {\n if (!result) return null;\n return {\n ...result,\n patch: result.patch as TPatch,\n };\n}\n"]}
|
|
@@ -35,7 +35,9 @@ export type EditorSceneHierarchyPatch<TGameObject extends EditorSceneGameObject
|
|
|
35
35
|
} | {
|
|
36
36
|
kind: 'game-object.duplicate-selection';
|
|
37
37
|
gameObjects: TGameObject[];
|
|
38
|
+
order?: string[];
|
|
38
39
|
};
|
|
40
|
+
type EditorSceneDuplicateProtectionPredicate = (gameObject: EditorSceneGameObject, document: EditorSceneDocument) => boolean;
|
|
39
41
|
export interface EditorSceneHierarchyMoveTransformResolverInput<TGameObject extends EditorSceneGameObject = EditorSceneGameObject> {
|
|
40
42
|
document: EditorSceneDocument<TGameObject>;
|
|
41
43
|
intent: SceneGraphMoveIntent;
|
|
@@ -94,11 +96,14 @@ export declare function createEditorSceneDuplicateSelectionPatch(input: {
|
|
|
94
96
|
document: EditorSceneDocument;
|
|
95
97
|
targetIds: string[];
|
|
96
98
|
activeId: string | null;
|
|
99
|
+
isProtectedDuplicateSource?: EditorSceneDuplicateProtectionPredicate;
|
|
97
100
|
}): {
|
|
98
101
|
patch: EditorSceneHierarchyPatch;
|
|
99
102
|
label: string;
|
|
100
103
|
createdIds: string[];
|
|
104
|
+
selectedIds: string[];
|
|
101
105
|
activeId: string | null;
|
|
102
106
|
changedIds: string[];
|
|
103
107
|
} | null;
|
|
108
|
+
export {};
|
|
104
109
|
//# sourceMappingURL=patches.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patches.d.ts","sourceRoot":"","sources":["../../src/session/patches.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,uBAAuB,EAC5B,KAAK,uCAAuC,EAC5C,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EAEzB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAE3B,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"patches.d.ts","sourceRoot":"","sources":["../../src/session/patches.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,uBAAuB,EAC5B,KAAK,uCAAuC,EAC5C,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EAEzB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAE3B,MAAM,mBAAmB,CAAC;AA6B3B,MAAM,MAAM,yBAAyB,CAAC,WAAW,SAAS,qBAAqB,GAAG,qBAAqB,IACnG;IACA,IAAI,EAAE,oBAAoB,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,GACC;IACA,IAAI,EAAE,0BAA0B,CAAC;IACjC,UAAU,EAAE,WAAW,CAAC;CACzB,GACC;IACA,IAAI,EAAE,8BAA8B,CAAC;IACrC,UAAU,EAAE,WAAW,CAAC;CACzB,GACC;IACA,IAAI,EAAE,4BAA4B,CAAC;IACnC,SAAS,EAAE,MAAM,EAAE,C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