@fps-games/editor 0.2.0-beta.3 → 0.2.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-bridge/capabilities/editor-state.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/editor-state.js +32 -17
- 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 +243 -60
- 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 +111 -25
- package/dist/agent-bridge/capabilities/scene-objects.js.map +1 -1
- package/dist/agent-bridge/capabilities/selection.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/selection.js +8 -5
- package/dist/agent-bridge/capabilities/selection.js.map +1 -1
- package/dist/agent-bridge/capabilities/shadows.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/shadows.js +839 -67
- package/dist/agent-bridge/capabilities/shadows.js.map +1 -1
- package/dist/agent-bridge/capabilities/transform.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/transform.js +6 -4
- package/dist/agent-bridge/capabilities/transform.js.map +1 -1
- package/dist/agent-bridge/capabilities/ui-regions.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/ui-regions.js +3 -1
- package/dist/agent-bridge/capabilities/ui-regions.js.map +1 -1
- package/dist/agent-bridge/capabilities/viewport.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/viewport.js +92 -47
- 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 +232 -7
- package/dist/agent-bridge/shared.d.ts.map +1 -1
- package/dist/agent-bridge/shared.js +174 -0
- package/dist/agent-bridge/shared.js.map +1 -1
- package/dist/agent-bridge/source-types.d.ts +17 -1
- package/dist/agent-bridge/source-types.d.ts.map +1 -1
- package/dist/agent-bridge/source-types.js.map +1 -1
- package/dist/build-info.json +57 -42
- package/dist/index.d.ts +7 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/internal/babylon-preview-engine.d.ts +3 -0
- package/dist/internal/babylon-preview-engine.d.ts.map +1 -0
- package/dist/internal/babylon-preview-engine.js +11 -0
- package/dist/internal/babylon-preview-engine.js.map +1 -0
- package/dist/internal/product-local-editor-cleanup.d.ts +5 -0
- package/dist/internal/product-local-editor-cleanup.d.ts.map +1 -0
- package/dist/internal/product-local-editor-cleanup.js +20 -0
- package/dist/internal/product-local-editor-cleanup.js.map +1 -0
- package/dist/local-editor-agent-actions.d.ts +2 -4
- package/dist/local-editor-agent-actions.d.ts.map +1 -1
- package/dist/local-editor-agent-actions.js +61 -33
- package/dist/local-editor-agent-actions.js.map +1 -1
- package/dist/local-editor-agent-context.d.ts +5 -5
- package/dist/local-editor-agent-context.d.ts.map +1 -1
- package/dist/local-editor-agent-context.js.map +1 -1
- package/dist/local-editor-harness.d.ts +340 -35
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +3854 -1118
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-marker-graph.d.ts +15 -15
- package/dist/local-editor-marker-graph.d.ts.map +1 -1
- package/dist/local-editor-marker-graph.js +3 -0
- package/dist/local-editor-marker-graph.js.map +1 -1
- package/dist/local-editor-performance-stats.d.ts +3 -2
- package/dist/local-editor-performance-stats.d.ts.map +1 -1
- package/dist/local-editor-performance-stats.js.map +1 -1
- package/dist/local-editor-prefab-stage-transaction.d.ts +19 -0
- package/dist/local-editor-prefab-stage-transaction.d.ts.map +1 -0
- package/dist/local-editor-prefab-stage-transaction.js +45 -0
- package/dist/local-editor-prefab-stage-transaction.js.map +1 -0
- package/dist/local-editor-scene-view-interaction-runtime.d.ts +3 -1
- package/dist/local-editor-scene-view-interaction-runtime.d.ts.map +1 -1
- package/dist/local-editor-scene-view-interaction-runtime.js +24 -0
- package/dist/local-editor-scene-view-interaction-runtime.js.map +1 -1
- package/dist/local-editor-tools.d.ts +18 -0
- package/dist/local-editor-tools.d.ts.map +1 -0
- package/dist/local-editor-tools.js +53 -0
- package/dist/local-editor-tools.js.map +1 -0
- package/dist/playable-babylon-rendering.d.ts +9 -0
- package/dist/playable-babylon-rendering.d.ts.map +1 -1
- package/dist/playable-babylon-rendering.js +162 -6
- package/dist/playable-babylon-rendering.js.map +1 -1
- package/dist/playable-local-editor-entry.d.ts +68 -0
- package/dist/playable-local-editor-entry.d.ts.map +1 -0
- package/dist/playable-local-editor-entry.js +424 -0
- package/dist/playable-local-editor-entry.js.map +1 -0
- package/dist/playable-local-editor-host.d.ts +51 -29
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js +23 -11
- package/dist/playable-local-editor-host.js.map +1 -1
- package/dist/playable-product-local-editor.d.ts +10 -12
- package/dist/playable-product-local-editor.d.ts.map +1 -1
- package/dist/playable-product-local-editor.js +178 -85
- package/dist/playable-product-local-editor.js.map +1 -1
- package/dist/playable-product-projection-preview.d.ts +4 -1
- package/dist/playable-product-projection-preview.d.ts.map +1 -1
- package/dist/playable-product-projection-preview.js +122 -5
- package/dist/playable-product-projection-preview.js.map +1 -1
- package/dist/playable-product-rendering.d.ts +12 -0
- package/dist/playable-product-rendering.d.ts.map +1 -1
- package/dist/playable-product-rendering.js +128 -6
- package/dist/playable-product-rendering.js.map +1 -1
- package/dist/playable-product-scene-capabilities.d.ts +24 -7
- package/dist/playable-product-scene-capabilities.d.ts.map +1 -1
- package/dist/playable-product-scene-capabilities.js +172 -15
- package/dist/playable-product-scene-capabilities.js.map +1 -1
- package/dist/playable-project-mode.d.ts +17 -0
- package/dist/playable-project-mode.d.ts.map +1 -0
- package/dist/playable-project-mode.js +2 -0
- package/dist/playable-project-mode.js.map +1 -0
- package/dist/playable-runtime-babylon.d.ts +3 -6
- package/dist/playable-runtime-babylon.d.ts.map +1 -1
- package/dist/playable-runtime-babylon.js +1 -5
- package/dist/playable-runtime-babylon.js.map +1 -1
- package/dist/playable-sdk.d.ts +16 -9
- package/dist/playable-sdk.d.ts.map +1 -1
- package/dist/playable-sdk.js +6 -4
- package/dist/playable-sdk.js.map +1 -1
- package/dist/playable-standard-project.d.ts +23 -14
- package/dist/playable-standard-project.d.ts.map +1 -1
- package/dist/playable-standard-project.js +53 -19
- package/dist/playable-standard-project.js.map +1 -1
- package/dist/vite-client.d.ts +4 -0
- package/node_modules/@babel/helper-string-parser/lib/index.js +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -1
- package/node_modules/@babel/parser/lib/index.js +0 -1
- package/node_modules/@babel/types/lib/asserts/assertNode.js +0 -1
- package/node_modules/@babel/types/lib/asserts/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/ast-types/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +0 -1
- package/node_modules/@babel/types/lib/builders/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js +0 -1
- package/node_modules/@babel/types/lib/builders/generated/uppercase.js +0 -1
- package/node_modules/@babel/types/lib/builders/productions.js +0 -1
- package/node_modules/@babel/types/lib/builders/react/buildChildren.js +0 -1
- package/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +0 -1
- package/node_modules/@babel/types/lib/builders/validateNode.js +0 -1
- package/node_modules/@babel/types/lib/clone/clone.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeep.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneNode.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +0 -1
- package/node_modules/@babel/types/lib/comments/addComment.js +0 -1
- package/node_modules/@babel/types/lib/comments/addComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritInnerComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritsComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/removeComments.js +0 -1
- package/node_modules/@babel/types/lib/constants/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/constants/index.js +0 -1
- package/node_modules/@babel/types/lib/converters/ensureBlock.js +0 -1
- package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +0 -1
- package/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +0 -1
- package/node_modules/@babel/types/lib/converters/toBlock.js +0 -1
- package/node_modules/@babel/types/lib/converters/toComputedKey.js +0 -1
- package/node_modules/@babel/types/lib/converters/toExpression.js +0 -1
- package/node_modules/@babel/types/lib/converters/toIdentifier.js +0 -1
- package/node_modules/@babel/types/lib/converters/toKeyAlias.js +0 -1
- package/node_modules/@babel/types/lib/converters/toSequenceExpression.js +0 -1
- package/node_modules/@babel/types/lib/converters/toStatement.js +0 -1
- package/node_modules/@babel/types/lib/converters/valueToNode.js +0 -1
- package/node_modules/@babel/types/lib/definitions/core.js +0 -1
- package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +0 -1
- package/node_modules/@babel/types/lib/definitions/experimental.js +0 -1
- package/node_modules/@babel/types/lib/definitions/flow.js +0 -1
- package/node_modules/@babel/types/lib/definitions/index.js +0 -1
- package/node_modules/@babel/types/lib/definitions/jsx.js +0 -1
- package/node_modules/@babel/types/lib/definitions/misc.js +0 -1
- package/node_modules/@babel/types/lib/definitions/placeholders.js +0 -1
- package/node_modules/@babel/types/lib/definitions/typescript.js +0 -1
- package/node_modules/@babel/types/lib/definitions/utils.js +0 -1
- package/node_modules/@babel/types/lib/index.js +0 -1
- package/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +0 -1
- package/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +0 -1
- package/node_modules/@babel/types/lib/modifications/inherits.js +0 -1
- package/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +0 -1
- package/node_modules/@babel/types/lib/modifications/removeProperties.js +0 -1
- package/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +0 -1
- package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getFunctionName.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +0 -1
- package/node_modules/@babel/types/lib/traverse/traverse.js +0 -1
- package/node_modules/@babel/types/lib/traverse/traverseFast.js +0 -1
- package/node_modules/@babel/types/lib/utils/deprecationWarning.js +0 -1
- package/node_modules/@babel/types/lib/utils/inherit.js +0 -1
- package/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +0 -1
- package/node_modules/@babel/types/lib/utils/shallowEqual.js +0 -1
- package/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +0 -1
- package/node_modules/@babel/types/lib/validators/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/validators/is.js +0 -1
- package/node_modules/@babel/types/lib/validators/isBinding.js +0 -1
- package/node_modules/@babel/types/lib/validators/isBlockScoped.js +0 -1
- package/node_modules/@babel/types/lib/validators/isImmutable.js +0 -1
- package/node_modules/@babel/types/lib/validators/isLet.js +0 -1
- package/node_modules/@babel/types/lib/validators/isNode.js +0 -1
- package/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +0 -1
- package/node_modules/@babel/types/lib/validators/isPlaceholderType.js +0 -1
- package/node_modules/@babel/types/lib/validators/isReferenced.js +0 -1
- package/node_modules/@babel/types/lib/validators/isScope.js +0 -1
- package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +0 -1
- package/node_modules/@babel/types/lib/validators/isType.js +0 -1
- package/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +0 -1
- package/node_modules/@babel/types/lib/validators/isValidIdentifier.js +0 -1
- package/node_modules/@babel/types/lib/validators/isVar.js +0 -1
- package/node_modules/@babel/types/lib/validators/matchesPattern.js +0 -1
- package/node_modules/@babel/types/lib/validators/react/isCompatTag.js +0 -1
- package/node_modules/@babel/types/lib/validators/react/isReactComponent.js +0 -1
- package/node_modules/@babel/types/lib/validators/validate.js +0 -1
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.d.ts +69 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.js +132 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.metadata.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.metadata.js +7 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoader.d.ts +14 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoader.js +328 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoadingOptions.d.ts +9 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoadingOptions.js +1 -0
- package/node_modules/@babylonjs/loaders/BVH/index.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/BVH/index.js +3 -0
- package/node_modules/@babylonjs/loaders/OBJ/index.d.ts +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/index.js +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/mtlFileLoader.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/OBJ/mtlFileLoader.js +230 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.d.ts +136 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.js +317 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.metadata.d.ts +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.metadata.js +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/objLoadingOptions.d.ts +47 -0
- package/node_modules/@babylonjs/loaders/OBJ/objLoadingOptions.js +1 -0
- package/node_modules/@babylonjs/loaders/OBJ/solidParser.d.ts +175 -0
- package/node_modules/@babylonjs/loaders/OBJ/solidParser.js +903 -0
- package/node_modules/@babylonjs/loaders/SPLAT/index.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/SPLAT/index.js +3 -0
- package/node_modules/@babylonjs/loaders/SPLAT/sog.d.ts +84 -0
- package/node_modules/@babylonjs/loaders/SPLAT/sog.js +294 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatDefs.d.ts +26 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatDefs.js +10 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.d.ts +100 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.js +536 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.metadata.d.ts +20 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.metadata.js +15 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatLoadingOptions.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatLoadingOptions.js +1 -0
- package/node_modules/@babylonjs/loaders/SPLAT/spz.d.ts +11 -0
- package/node_modules/@babylonjs/loaders/SPLAT/spz.js +168 -0
- package/node_modules/@babylonjs/loaders/STL/index.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/STL/index.js +1 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.d.ts +78 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.js +238 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.metadata.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.metadata.js +7 -0
- package/node_modules/@babylonjs/loaders/bvh/license.md +21 -0
- package/node_modules/@babylonjs/loaders/dynamic.d.ts +5 -0
- package/node_modules/@babylonjs/loaders/dynamic.js +56 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFBinaryExtension.d.ts +16 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFBinaryExtension.js +64 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoader.d.ts +144 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoader.js +1841 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderInterfaces.d.ts +412 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderInterfaces.js +95 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderUtils.d.ts +71 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderUtils.js +254 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFMaterialsCommonExtension.d.ts +13 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFMaterialsCommonExtension.js +130 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/index.d.ts +5 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/index.js +5 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_area.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_area.js +93 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_ies.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_ies.js +83 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +48 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_image_based.js +115 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +94 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_meshopt_compression.js +50 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_avif.d.ts +34 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_avif.js +38 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_webp.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_webp.js +37 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +53 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/ExtrasAsMetadata.js +73 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.d.ts +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.js +251 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.js +77 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +92 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.d.ts +355 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.js +1678 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.js +19 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/index.d.ts +3 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/index.js +3 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.d.ts +70 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.js +438 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity.d.ts +38 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity.js +150 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_lights_punctual.js +91 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_anisotropy.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_anisotropy.js +65 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_clearcoat.js +79 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_coat.d.ts +49 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_coat.js +119 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_roughness.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_roughness.js +58 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.js +69 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_dispersion.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_dispersion.js +56 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_fuzz.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_fuzz.js +77 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_ior.d.ts +46 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_ior.js +54 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_iridescence.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_iridescence.js +68 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +80 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_sheen.js +73 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_specular.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_specular.js +76 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_transmission.js +303 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_unlit.js +66 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_variants.d.ts +112 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_variants.js +262 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume.js +82 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume_scatter.d.ts +45 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume_scatter.js +109 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +29 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_mesh_quantization.js +22 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_hoverability.d.ts +31 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_hoverability.js +189 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_selectability.d.ts +30 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_selectability.js +123 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_visibility.d.ts +30 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_visibility.js +66 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_basisu.js +37 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_transform.d.ts +37 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_transform.js +58 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.js +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +56 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.js +228 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_lod.d.ts +104 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_lod.js +337 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +27 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_minecraftMesh.js +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +27 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_sRGBFactors.js +38 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/dynamic.d.ts +4 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/dynamic.js +212 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/gltfPathToObjectConverter.d.ts +45 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/gltfPathToObjectConverter.js +100 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/index.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/index.js +44 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/objectModelMapping.d.ts +306 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/objectModelMapping.js +884 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoader.d.ts +450 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoader.js +2485 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderAnimation.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderAnimation.js +79 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtension.d.ts +165 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtension.js +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.d.ts +25 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.js +32 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderInterfaces.d.ts +262 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderInterfaces.js +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/index.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/index.js +9 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/materialLoadingAdapter.d.ts +364 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/materialLoadingAdapter.js +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/openpbrMaterialLoadingAdapter.d.ts +674 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/openpbrMaterialLoadingAdapter.js +1034 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/pbrMaterialLoadingAdapter.d.ts +705 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/pbrMaterialLoadingAdapter.js +1126 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.d.ts +553 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.js +998 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.metadata.d.ts +15 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.metadata.js +17 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFValidation.d.ts +35 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFValidation.js +131 -0
- package/node_modules/@babylonjs/loaders/glTF/index.d.ts +5 -0
- package/node_modules/@babylonjs/loaders/glTF/index.js +6 -0
- package/node_modules/@babylonjs/loaders/index.d.ts +6 -0
- package/node_modules/@babylonjs/loaders/index.js +7 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-bvhFileLoader.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-bvhFileLoader.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-dynamic.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-dynamic.js +13 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF.js +18 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1FileLoader.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1FileLoader.js +3 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2.js +34 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2FileLoader.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2FileLoader.js +3 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTFFileLoader.d.ts +3 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTFFileLoader.js +4 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-objFileLoader.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-objFileLoader.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-stlFileLoader.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-stlFileLoader.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy.js +10 -0
- package/node_modules/@babylonjs/loaders/license.md +71 -0
- package/node_modules/@babylonjs/loaders/package.json +49 -0
- package/node_modules/@babylonjs/loaders/readme.md +23 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts +22 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js +187 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/index.js +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.d.ts +19 -0
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.js +212 -0
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts +17 -2
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.js +192 -17
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts +2 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js +139 -3
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.d.ts +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.js +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.d.ts +14 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.js +14 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.d.ts +59 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.js +725 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.d.ts +136 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.js +2735 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/package.json +7 -7
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts +2 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.js +2 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.d.ts +2 -0
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js +59 -6
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js +81 -11
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js +2 -8
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +17 -5
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js +300 -362
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts +4 -0
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js +76 -10
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.d.ts +46 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.js +304 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts +85 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js +1600 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts +11 -3
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js +105 -15
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.d.ts +25 -0
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.js +44 -0
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/package.json +6 -5
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts +8 -9
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.js +6 -7
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.d.ts +2 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.js +36 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts +2 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js +17 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js +6 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js +157 -77
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js +27 -21
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts +19 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js +44 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts +36 -5
- 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 +831 -702
- 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 +11 -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 +3 -0
- 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 +58 -25
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.d.ts +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.js +44 -62
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts +10 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +591 -639
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts +8 -36
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js +25 -103
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js +29 -110
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts +1 -3
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js +6 -90
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js +9 -54
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts +39 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js +74 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js.map +1 -0
- 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 +56 -301
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts +4 -14
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js +33 -119
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +5 -10
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +760 -524
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.d.ts +2 -3
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.js +0 -180
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.d.ts +5 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.js +5 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/package.json +15 -4
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.d.ts +22 -0
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.js +226 -0
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts +6 -1
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js +94 -2
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts +26 -1
- 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 +77 -8
- package/node_modules/@fps-games/editor-core/dist/editor-session.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-tools.d.ts +112 -0
- package/node_modules/@fps-games/editor-core/dist/editor-tools.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-tools.js +613 -0
- package/node_modules/@fps-games/editor-core/dist/editor-tools.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts +46 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.js +62 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts +1 -0
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.js.map +1 -1
- package/node_modules/@fps-games/editor-core/package.json +14 -6
- package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js +14 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts +14 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js +49 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js +58 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js +48 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts +28 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js +314 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.js +27 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.js +285 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts +7 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js +23 -81
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.d.ts +41 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.js +93 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.d.ts +29 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.js +77 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.d.ts +51 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.js +105 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.d.ts +60 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.js +287 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts +6 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js +53 -17
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts +16 -8
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js +10 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts +5 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js +134 -66
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js +21 -14
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts +17 -9
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js +20 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js +49 -10
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.js +130 -20
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.js +12 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.js +136 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.d.ts +36 -51
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.js +40 -65
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts +5 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js +207 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts +18 -7
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js +110 -18
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts +5 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js +22 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js +144 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts +16 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js +241 -13
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.d.ts +31 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.js +170 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts +153 -13
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.d.ts +17 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.js +1295 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +14 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js +57 -34
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js +4 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js +20 -198
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.js +5 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js +144 -8
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.js +30 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js +31 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts +5 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js +40 -4
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js +116 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.d.ts +17 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.js +50 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js +7 -5
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.d.ts +5 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.js +31 -17
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/package.json +6 -6
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts +417 -2
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js +692 -2
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.d.ts +55 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.js +2 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts +3 -18
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/index.js +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/package.json +2 -2
- package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.js +5 -0
- package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.js.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/vite.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/vite.js +151 -5
- package/node_modules/@fps-games/editor-tooling/dist/vite.js.map +1 -1
- package/node_modules/@fps-games/editor-tooling/package.json +3 -3
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.d.ts +107 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.js +770 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.d.ts +21 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.js +172 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.d.ts +14 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.js +32 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.d.ts +3 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.js +653 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.d.ts +3 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.js +3 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-ui/dist/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/index.js +5 -0
- package/node_modules/@fps-games/editor-ui/dist/index.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.d.ts +7 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.js +29 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.d.ts +2 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.js +95 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.d.ts +28 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.js +387 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/package.json +23 -0
- package/node_modules/@fps-games/playable-assets/package.json +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/index.d.ts +1 -0
- package/node_modules/@fps-games/playable-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/index.js +1 -0
- package/node_modules/@fps-games/playable-contracts/dist/index.js.map +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.d.ts +116 -0
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.js +403 -0
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.js.map +1 -0
- package/node_modules/@fps-games/playable-contracts/package.json +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/index.js +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/index.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-validation.js +5 -25
- package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-validation.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/runtime.d.ts +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/runtime.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/runtime.js +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/runtime.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.d.ts +61 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.js +176 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.js.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.d.ts +84 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.js +362 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.js.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.d.ts +167 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.js +484 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.js.map +1 -0
- package/node_modules/@fps-games/playable-rendering/package.json +2 -2
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.d.ts +5 -0
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.js +1 -0
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.js.map +1 -1
- package/node_modules/@fps-games/playable-runtime/package.json +12 -12
- package/node_modules/@fps-games/playable-runtime-data/package.json +4 -4
- package/node_modules/@fps-games/playable-scene/package.json +2 -2
- package/node_modules/@fps-games/plugin-api/package.json +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-assets/package.json +5 -5
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.d.ts +6 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.js +16 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.d.ts +7 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.js +47 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts +306 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js +1237 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.d.ts +8 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.js +32 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts +2 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.js +2 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/package.json +57 -0
- package/node_modules/@fps-games/plugin-host/package.json +2 -2
- package/node_modules/@fps-games/plugin-markers/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-markers/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-markers/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-markers/package.json +5 -5
- package/node_modules/@fps-games/plugin-materials/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-materials/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-materials/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-materials/package.json +5 -5
- package/node_modules/@fps-games/plugin-rendering/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-rendering/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-rendering/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-rendering/package.json +5 -5
- package/node_modules/@fps-games/plugin-scene/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-scene/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-scene/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-scene/package.json +5 -5
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.d.ts +8 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.js +35 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.js.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.d.ts +11 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.js +14 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.js.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts +2 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js +2 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/package.json +53 -0
- package/node_modules/@fps-games/plugin-shadows/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-shadows/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-shadows/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-shadows/package.json +7 -7
- package/node_modules/@playcanvas/observer/LICENSE +19 -0
- package/node_modules/@playcanvas/observer/README.md +72 -0
- package/node_modules/@playcanvas/observer/dist/index.cjs +2033 -0
- package/node_modules/@playcanvas/observer/dist/index.js +2039 -0
- package/node_modules/@playcanvas/observer/dist/index.mjs +2026 -0
- package/node_modules/@playcanvas/observer/package.json +78 -0
- package/node_modules/@playcanvas/observer/types/event-handle.d.ts +41 -0
- package/node_modules/@playcanvas/observer/types/events.d.ts +162 -0
- package/node_modules/@playcanvas/observer/types/history.d.ts +123 -0
- package/node_modules/@playcanvas/observer/types/index.d.ts +15 -0
- package/node_modules/@playcanvas/observer/types/observer-history.d.ts +32 -0
- package/node_modules/@playcanvas/observer/types/observer-list.d.ts +39 -0
- package/node_modules/@playcanvas/observer/types/observer.d.ts +157 -0
- package/node_modules/@playcanvas/observer/types/utils.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/LICENSE +19 -0
- package/node_modules/@playcanvas/pcui/README.md +164 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/constants.mjs +6 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-evaluator.mjs +119 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-set.mjs +82 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve.mjs +92 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/math.mjs +105 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/Math/color-value.mjs +77 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingBase/index.mjs +215 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingElementToObservers/index.mjs +297 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingObserversToElement/index.mjs +110 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingTwoWay/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/class.mjs +19 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/ArrayInput/index.mjs +498 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/BooleanInput/index.mjs +122 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Button/index.mjs +119 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Canvas/index.mjs +104 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Code/index.mjs +43 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/ColorPicker/index.mjs +619 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Container/index.mjs +642 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Divider/index.mjs +20 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Element/index.mjs +829 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/GradientPicker/index.mjs +1136 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/GridView/index.mjs +448 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/GridViewItem/index.mjs +152 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/InfoBox/index.mjs +90 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/InputElement/index.mjs +186 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Label/index.mjs +124 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/LabelGroup/index.mjs +74 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Menu/index.mjs +174 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/MenuItem/index.mjs +223 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/NumericInput/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Overlay/index.mjs +108 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Panel/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Progress/index.mjs +45 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/RadioButton/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/SelectInput/index.mjs +1085 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/SliderInput/index.mjs +333 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Spinner/index.mjs +34 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TextAreaInput/index.mjs +50 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TextInput/index.mjs +98 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TreeView/index.mjs +1131 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TreeViewItem/index.mjs +500 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/VectorInput/index.mjs +366 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/helpers/search.mjs +194 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/helpers/utils.mjs +43 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/index.mjs +56 -0
- package/node_modules/@playcanvas/pcui/dist/pcui-theme-green.scss +2798 -0
- package/node_modules/@playcanvas/pcui/dist/pcui-theme-grey.scss +2798 -0
- package/node_modules/@playcanvas/pcui/package.json +150 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/constants.mjs +6 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-evaluator.mjs +119 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-set.mjs +82 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve.mjs +92 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/math.mjs +105 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/Math/color-value.mjs +77 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingBase/index.mjs +215 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingElementToObservers/index.mjs +297 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingObserversToElement/index.mjs +110 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingTwoWay/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/class.mjs +19 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ArrayInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ArrayInput/index.mjs +498 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/BooleanInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/BooleanInput/index.mjs +122 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Button/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Button/index.mjs +119 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Canvas/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Canvas/index.mjs +104 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Code/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Code/index.mjs +43 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ColorPicker/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ColorPicker/index.mjs +619 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Container/component.mjs +36 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Container/index.mjs +642 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Divider/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Divider/index.mjs +20 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Element/component.mjs +107 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Element/index.mjs +829 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GradientPicker/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GradientPicker/index.mjs +1136 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridView/component.mjs +38 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridView/index.mjs +448 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridViewItem/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridViewItem/index.mjs +152 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InfoBox/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InfoBox/index.mjs +90 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InputElement/index.mjs +186 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Label/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Label/index.mjs +124 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/LabelGroup/component.mjs +42 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/LabelGroup/index.mjs +74 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Menu/component.mjs +23 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Menu/index.mjs +174 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/MenuItem/index.mjs +223 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/NumericInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/NumericInput/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Overlay/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Overlay/index.mjs +108 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Panel/component.mjs +32 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Panel/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Progress/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Progress/index.mjs +45 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/RadioButton/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/RadioButton/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SelectInput/component.mjs +21 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SelectInput/index.mjs +1085 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SliderInput/component.mjs +12 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SliderInput/index.mjs +333 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Spinner/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Spinner/index.mjs +34 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextAreaInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextAreaInput/index.mjs +50 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextInput/component.mjs +23 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextInput/index.mjs +98 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeView/component.mjs +52 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeView/index.mjs +1131 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeViewItem/component.mjs +33 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeViewItem/index.mjs +500 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/VectorInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/VectorInput/index.mjs +366 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/helpers/search.mjs +194 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/helpers/utils.mjs +43 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/index.mjs +39 -0
- package/node_modules/@playcanvas/pcui/react/package.json +18 -0
- package/node_modules/@playcanvas/pcui/react/types/Math/color-value.d.ts +3 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingBase/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingElementToObservers/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingObserversToElement/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingTwoWay/index.d.ts +54 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/index.d.ts +5 -0
- package/node_modules/@playcanvas/pcui/react/types/class.d.ts +17 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ArrayInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ArrayInput/index.d.ts +140 -0
- package/node_modules/@playcanvas/pcui/react/types/components/BooleanInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/BooleanInput/index.d.ts +41 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Button/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Button/index.d.ts +75 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Canvas/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Canvas/index.d.ts +61 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Code/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Code/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ColorPicker/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ColorPicker/index.d.ts +99 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Container/component.d.ts +15 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Container/index.d.ts +292 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Divider/component.d.ts +10 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Divider/index.d.ts +13 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Element/component.d.ts +23 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Element/index.d.ts +671 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GradientPicker/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GradientPicker/index.d.ts +152 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridView/component.d.ts +14 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridView/index.d.ts +103 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridViewItem/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridViewItem/index.d.ts +82 -0
- package/node_modules/@playcanvas/pcui/react/types/components/InfoBox/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/InfoBox/index.d.ts +71 -0
- package/node_modules/@playcanvas/pcui/react/types/components/InputElement/index.d.ts +84 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Label/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Label/index.d.ts +85 -0
- package/node_modules/@playcanvas/pcui/react/types/components/LabelGroup/component.d.ts +10 -0
- package/node_modules/@playcanvas/pcui/react/types/components/LabelGroup/index.d.ts +62 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Menu/component.d.ts +14 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Menu/index.d.ts +70 -0
- package/node_modules/@playcanvas/pcui/react/types/components/MenuItem/index.d.ts +139 -0
- package/node_modules/@playcanvas/pcui/react/types/components/NumericInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/NumericInput/index.d.ts +173 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Overlay/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Overlay/index.d.ts +53 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Panel/component.d.ts +16 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Panel/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Progress/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Progress/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/react/types/components/RadioButton/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/RadioButton/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SelectInput/component.d.ts +12 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SelectInput/index.d.ts +278 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SliderInput/component.d.ts +10 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SliderInput/index.d.ts +133 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Spinner/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Spinner/index.d.ts +27 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextAreaInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextAreaInput/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextInput/component.d.ts +12 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextInput/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeView/component.d.ts +17 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeView/index.d.ts +359 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeViewItem/component.d.ts +13 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeViewItem/index.d.ts +224 -0
- package/node_modules/@playcanvas/pcui/react/types/components/VectorInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/VectorInput/index.d.ts +176 -0
- package/node_modules/@playcanvas/pcui/react/types/components/components.d.ts +30 -0
- package/node_modules/@playcanvas/pcui/react/types/components/index.d.ts +32 -0
- package/node_modules/@playcanvas/pcui/react/types/helpers/search.d.ts +31 -0
- package/node_modules/@playcanvas/pcui/react/types/helpers/utils.d.ts +2 -0
- package/node_modules/@playcanvas/pcui/react/types/index.d.ts +4 -0
- package/node_modules/@playcanvas/pcui/styles/dist/index.mjs +11 -0
- package/node_modules/@playcanvas/pcui/styles/package.json +17 -0
- package/node_modules/@playcanvas/pcui/types/Math/color-value.d.ts +3 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingBase/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingElementToObservers/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingObserversToElement/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingTwoWay/index.d.ts +54 -0
- package/node_modules/@playcanvas/pcui/types/binding/index.d.ts +5 -0
- package/node_modules/@playcanvas/pcui/types/class.d.ts +17 -0
- package/node_modules/@playcanvas/pcui/types/components/ArrayInput/index.d.ts +140 -0
- package/node_modules/@playcanvas/pcui/types/components/BooleanInput/index.d.ts +41 -0
- package/node_modules/@playcanvas/pcui/types/components/Button/index.d.ts +75 -0
- package/node_modules/@playcanvas/pcui/types/components/Canvas/index.d.ts +61 -0
- package/node_modules/@playcanvas/pcui/types/components/Code/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/types/components/ColorPicker/index.d.ts +99 -0
- package/node_modules/@playcanvas/pcui/types/components/Container/index.d.ts +292 -0
- package/node_modules/@playcanvas/pcui/types/components/Divider/index.d.ts +13 -0
- package/node_modules/@playcanvas/pcui/types/components/Element/index.d.ts +671 -0
- package/node_modules/@playcanvas/pcui/types/components/GradientPicker/index.d.ts +152 -0
- package/node_modules/@playcanvas/pcui/types/components/GridView/index.d.ts +103 -0
- package/node_modules/@playcanvas/pcui/types/components/GridViewItem/index.d.ts +82 -0
- package/node_modules/@playcanvas/pcui/types/components/InfoBox/index.d.ts +71 -0
- package/node_modules/@playcanvas/pcui/types/components/InputElement/index.d.ts +84 -0
- package/node_modules/@playcanvas/pcui/types/components/Label/index.d.ts +85 -0
- package/node_modules/@playcanvas/pcui/types/components/LabelGroup/index.d.ts +62 -0
- package/node_modules/@playcanvas/pcui/types/components/Menu/index.d.ts +70 -0
- package/node_modules/@playcanvas/pcui/types/components/MenuItem/index.d.ts +139 -0
- package/node_modules/@playcanvas/pcui/types/components/NumericInput/index.d.ts +173 -0
- package/node_modules/@playcanvas/pcui/types/components/Overlay/index.d.ts +53 -0
- package/node_modules/@playcanvas/pcui/types/components/Panel/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/types/components/Progress/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/types/components/RadioButton/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/types/components/SelectInput/index.d.ts +278 -0
- package/node_modules/@playcanvas/pcui/types/components/SliderInput/index.d.ts +133 -0
- package/node_modules/@playcanvas/pcui/types/components/Spinner/index.d.ts +27 -0
- package/node_modules/@playcanvas/pcui/types/components/TextAreaInput/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/types/components/TextInput/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/types/components/TreeView/index.d.ts +359 -0
- package/node_modules/@playcanvas/pcui/types/components/TreeViewItem/index.d.ts +224 -0
- package/node_modules/@playcanvas/pcui/types/components/VectorInput/index.d.ts +176 -0
- package/node_modules/@playcanvas/pcui/types/components/index.d.ts +32 -0
- package/node_modules/@playcanvas/pcui/types/helpers/search.d.ts +31 -0
- package/node_modules/@playcanvas/pcui/types/helpers/utils.d.ts +2 -0
- package/node_modules/@playcanvas/pcui/types/index.d.ts +20 -0
- package/node_modules/babylonjs-gltf2interface/babylon.glTF2Interface.d.ts +1655 -0
- package/node_modules/babylonjs-gltf2interface/license.md +71 -0
- package/node_modules/babylonjs-gltf2interface/package.json +26 -0
- package/package.json +31 -19
- package/dist/editor-plugin-hierarchy-command.d.ts +0 -19
- package/dist/editor-plugin-hierarchy-command.d.ts.map +0 -1
- package/dist/editor-plugin-hierarchy-command.js +0 -119
- package/dist/editor-plugin-hierarchy-command.js.map +0 -1
- package/node_modules/@babel/helper-string-parser/lib/index.js.map +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
- package/node_modules/@babel/parser/lib/index.js.map +0 -1
- package/node_modules/@babel/types/lib/asserts/assertNode.js.map +0 -1
- package/node_modules/@babel/types/lib/asserts/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/productions.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/validateNode.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/clone.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeep.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneNode.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/addComment.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/addComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritsComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/removeComments.js.map +0 -1
- package/node_modules/@babel/types/lib/constants/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/constants/index.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/ensureBlock.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toBlock.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toComputedKey.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toIdentifier.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toStatement.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/valueToNode.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/core.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/experimental.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/flow.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/index.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/jsx.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/misc.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/placeholders.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/typescript.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/utils.js.map +0 -1
- package/node_modules/@babel/types/lib/index.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/inherits.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/removeProperties.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +0 -1
- package/node_modules/@babel/types/lib/traverse/traverse.js.map +0 -1
- package/node_modules/@babel/types/lib/traverse/traverseFast.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/inherit.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/shallowEqual.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/is.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isBinding.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isImmutable.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isLet.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isNode.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isReferenced.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isScope.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isType.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isVar.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/matchesPattern.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/validate.js.map +0 -1
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts +0 -37
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js +0 -451
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts +0 -49
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js +0 -627
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.d.ts +0 -52
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js +0 -450
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts +0 -21
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js +0 -75
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-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 -92
- 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 -285
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-ui-shared.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,8BAA8B,EACpC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"local-editor-ui-shared.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,8BAA8B,EACpC,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,KAAK,EACV,iCAAiC,EACjC,+BAA+B,EAC/B,qCAAqC,EACrC,iCAAiC,EAEjC,4CAA4C,EAC5C,gCAAgC,EAChC,+BAA+B,EAChC,MAAM,yBAAyB,CAAC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AAM,CAOR;AAED,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,8BAA8B,GAAG,IAAI,GAAG,SAAS,GACxD,MAAM,CAMR;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,+BAA+B,GAAG,MAAM,CAOlF;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,iCAAiC,GAAG,MAAM,CAWxF;AAED,wBAAgB,0BAA0B,CACxC,QAAQ,GAAE,4CAA0F,GACnG,MAAM,CASR;AAED,wBAAgB,+BAA+B,CAC7C,QAAQ,GAAE,4CAA0F,GACnG,MAAM,CAQR;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,+BAA+B,GAAG,MAAM,CAKlF"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { DEFAULT_EDITOR_TRANSFORM_OPERATION_SETTINGS, DEFAULT_EDITOR_TRANSFORM_TOOL_DESCRIPTORS, } from '@fps-games/editor-core';
|
|
2
|
+
import { decorateEditorUiButton, decorateEditorUiDockTab, setEditorUiButtonActive, } from '@fps-games/editor-ui';
|
|
2
3
|
import { createLocalEditorIcon } from './local-editor-ui-icons.js';
|
|
3
4
|
export function applyButtonActiveState(button, active) {
|
|
4
|
-
button
|
|
5
|
-
button.style.background = active ? 'var(--fps-editor-button-active)' : 'var(--fps-editor-button)';
|
|
6
|
-
button.style.borderColor = active ? 'var(--fps-editor-accent-strong)' : 'var(--fps-editor-border)';
|
|
7
|
-
button.style.color = active ? 'var(--fps-editor-text-inverse)' : 'var(--fps-editor-text)';
|
|
5
|
+
setEditorUiButtonActive(button, active);
|
|
8
6
|
}
|
|
9
7
|
export function createButton(doc, text, options = {}) {
|
|
10
8
|
const labelMode = options.labelMode ?? 'visible';
|
|
@@ -12,9 +10,8 @@ export function createButton(doc, text, options = {}) {
|
|
|
12
10
|
const accessibleLabel = options.ariaLabel ?? text;
|
|
13
11
|
const tooltip = options.tooltip ?? (labelMode === 'icon-only' ? accessibleLabel : undefined);
|
|
14
12
|
const button = doc.createElement('button');
|
|
13
|
+
decorateEditorUiButton(button, { labelMode, variant });
|
|
15
14
|
button.type = 'button';
|
|
16
|
-
button.dataset.editorButtonLabelMode = labelMode;
|
|
17
|
-
button.dataset.editorButtonVariant = variant;
|
|
18
15
|
button.dataset.editorToolbarRole = options.toolbarRole ?? 'command';
|
|
19
16
|
if (options.toolbarRole === 'settings') {
|
|
20
17
|
button.setAttribute('aria-haspopup', 'dialog');
|
|
@@ -24,108 +21,27 @@ export function createButton(doc, text, options = {}) {
|
|
|
24
21
|
button.setAttribute('aria-label', accessibleLabel);
|
|
25
22
|
if (tooltip)
|
|
26
23
|
button.dataset.editorTooltip = tooltip;
|
|
27
|
-
button.style.cssText = [
|
|
28
|
-
'border:1px solid var(--fps-editor-border)',
|
|
29
|
-
'border-radius:3px',
|
|
30
|
-
'background:var(--fps-editor-button)',
|
|
31
|
-
'color:var(--fps-editor-text)',
|
|
32
|
-
'display:inline-flex',
|
|
33
|
-
'align-items:center',
|
|
34
|
-
'justify-content:center',
|
|
35
|
-
`gap:${labelMode === 'icon-only' ? 0 : 5}px`,
|
|
36
|
-
'font-size:12px',
|
|
37
|
-
'font-weight:700',
|
|
38
|
-
`padding:${variant === 'toolbar-icon' ? '0' : '4px 8px'}`,
|
|
39
|
-
'cursor:pointer',
|
|
40
|
-
'white-space:nowrap',
|
|
41
|
-
`width:${variant === 'toolbar-icon' ? '32px' : 'auto'}`,
|
|
42
|
-
`min-width:${variant === 'toolbar-icon' ? '32px' : '0'}`,
|
|
43
|
-
`height:${variant === 'toolbar-icon' ? '28px' : '26px'}`,
|
|
44
|
-
`flex:${variant === 'toolbar-icon' ? '0 0 32px' : '0 0 auto'}`,
|
|
45
|
-
'line-height:16px',
|
|
46
|
-
].join(';');
|
|
47
24
|
if (options.icon)
|
|
48
25
|
button.appendChild(createLocalEditorIcon(doc, options.icon));
|
|
49
26
|
if (labelMode === 'visible') {
|
|
50
27
|
const label = doc.createElement('span');
|
|
28
|
+
label.className = 'fps-editor-ui-button__label';
|
|
51
29
|
label.dataset.editorButtonLabel = 'true';
|
|
52
30
|
label.textContent = text;
|
|
53
|
-
label.style.cssText = 'min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap';
|
|
54
31
|
button.appendChild(label);
|
|
55
32
|
}
|
|
56
|
-
button.addEventListener('mouseenter', () => {
|
|
57
|
-
if (!button.disabled)
|
|
58
|
-
button.style.background = button.dataset.active === 'true'
|
|
59
|
-
? 'var(--fps-editor-button-active)'
|
|
60
|
-
: 'var(--fps-editor-button-hover)';
|
|
61
|
-
});
|
|
62
|
-
button.addEventListener('mouseleave', () => {
|
|
63
|
-
button.style.background = button.dataset.active === 'true'
|
|
64
|
-
? 'var(--fps-editor-button-active)'
|
|
65
|
-
: 'var(--fps-editor-button)';
|
|
66
|
-
});
|
|
67
33
|
return button;
|
|
68
34
|
}
|
|
69
|
-
export function readHierarchyDropPlacement(event, target) {
|
|
70
|
-
const rect = target.getBoundingClientRect();
|
|
71
|
-
const offsetY = event.clientY - rect.top;
|
|
72
|
-
if (offsetY < rect.height * 0.25)
|
|
73
|
-
return 'before';
|
|
74
|
-
if (offsetY > rect.height * 0.75)
|
|
75
|
-
return 'after';
|
|
76
|
-
return 'inside';
|
|
77
|
-
}
|
|
78
|
-
export function createEditorPanel(doc, side) {
|
|
79
|
-
const panel = doc.createElement('div');
|
|
80
|
-
const placement = side === 'right'
|
|
81
|
-
? 'top:56px;right:12px;bottom:14px;width:330px'
|
|
82
|
-
: side === 'left-top'
|
|
83
|
-
? 'top:56px;left:12px;height:42vh;width:280px'
|
|
84
|
-
: 'left:12px;bottom:14px;height:calc(58vh - 84px);width:280px';
|
|
85
|
-
panel.style.cssText = [
|
|
86
|
-
'position:fixed',
|
|
87
|
-
placement,
|
|
88
|
-
'z-index:2147483639',
|
|
89
|
-
'display:none',
|
|
90
|
-
'overflow:auto',
|
|
91
|
-
'padding:12px',
|
|
92
|
-
'border:1px solid var(--fps-editor-border)',
|
|
93
|
-
'border-radius:3px',
|
|
94
|
-
'background:var(--fps-editor-panel)',
|
|
95
|
-
'box-shadow:var(--fps-editor-shadow-popover)',
|
|
96
|
-
'font-family:var(--fps-editor-font)',
|
|
97
|
-
'color:var(--fps-editor-text)',
|
|
98
|
-
'font-size:12px',
|
|
99
|
-
'pointer-events:auto',
|
|
100
|
-
].join(';');
|
|
101
|
-
return panel;
|
|
102
|
-
}
|
|
103
35
|
export function createDockTabButton(doc, text, active, options = {}) {
|
|
104
36
|
const button = doc.createElement('button');
|
|
37
|
+
decorateEditorUiDockTab(button, active);
|
|
105
38
|
button.type = 'button';
|
|
106
|
-
button.style.cssText = [
|
|
107
|
-
'height:30px',
|
|
108
|
-
'border:0',
|
|
109
|
-
'border-right:1px solid var(--fps-editor-divider)',
|
|
110
|
-
`border-top:${active ? '2px solid var(--fps-editor-accent)' : '2px solid transparent'}`,
|
|
111
|
-
`background:${active ? 'var(--fps-editor-panel)' : 'var(--fps-editor-chrome-dark)'}`,
|
|
112
|
-
`color:${active ? 'var(--fps-editor-text-strong)' : 'var(--fps-editor-muted)'}`,
|
|
113
|
-
'display:inline-flex',
|
|
114
|
-
'align-items:center',
|
|
115
|
-
'justify-content:center',
|
|
116
|
-
'gap:5px',
|
|
117
|
-
'font-size:12px',
|
|
118
|
-
'font-weight:900',
|
|
119
|
-
'padding:0 10px',
|
|
120
|
-
'cursor:pointer',
|
|
121
|
-
'white-space:nowrap',
|
|
122
|
-
].join(';');
|
|
123
39
|
if (options.icon)
|
|
124
40
|
button.appendChild(createLocalEditorIcon(doc, options.icon));
|
|
125
41
|
const label = doc.createElement('span');
|
|
42
|
+
label.className = 'fps-editor-ui-button__label';
|
|
126
43
|
label.dataset.editorButtonLabel = 'true';
|
|
127
44
|
label.textContent = text;
|
|
128
|
-
label.style.cssText = 'min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap';
|
|
129
45
|
button.appendChild(label);
|
|
130
46
|
return button;
|
|
131
47
|
}
|
|
@@ -1 +1 @@
|
|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_OPERATION_SETTINGS,\n DEFAULT_EDITOR_TRANSFORM_TOOL_DESCRIPTORS,\n type EditorTransformOperationPolicy,\n} from '@fps-games/editor-core';\nimport { createLocalEditorIcon, type LocalEditorIconName } from './local-editor-ui-icons';\nimport type {\n LocalEditorBrowserAuthoringSource,\n LocalEditorBrowserPlacementMode,\n LocalEditorBrowserTransformConstraint,\n LocalEditorBrowserTransformAction,\n LocalEditorBrowserTransformHandleDescriptor,\n LocalEditorBrowserTransformOperationSettings,\n LocalEditorBrowserSceneGraphDropPlacement,\n LocalEditorBrowserTransformSpace,\n LocalEditorBrowserTransformTool,\n} from './local-editor-ui-types';\n\nexport interface LocalEditorButtonOptions {\n icon?: LocalEditorIconName;\n labelMode?: 'visible' | 'icon-only';\n tooltip?: string;\n ariaLabel?: string;\n variant?: 'default' | 'toolbar-icon';\n toolbarRole?: 'command' | 'toggle' | 'settings';\n}\n\nexport function applyButtonActiveState(button: HTMLButtonElement, active: boolean): void {\n button.dataset.active = active ? 'true' : 'false';\n button.style.background = active ? 'var(--fps-editor-button-active)' : 'var(--fps-editor-button)';\n button.style.borderColor = active ? 'var(--fps-editor-accent-strong)' : 'var(--fps-editor-border)';\n button.style.color = active ? 'var(--fps-editor-text-inverse)' : 'var(--fps-editor-text)';\n}\n\nexport function createButton(doc: Document, text: string, options: LocalEditorButtonOptions = {}): HTMLButtonElement {\n const labelMode = options.labelMode ?? 'visible';\n const variant = options.variant ?? 'default';\n const accessibleLabel = options.ariaLabel ?? text;\n const tooltip = options.tooltip ?? (labelMode === 'icon-only' ? accessibleLabel : undefined);\n const button = doc.createElement('button');\n button.type = 'button';\n button.dataset.editorButtonLabelMode = labelMode;\n button.dataset.editorButtonVariant = variant;\n button.dataset.editorToolbarRole = options.toolbarRole ?? 'command';\n if (options.toolbarRole === 'settings') {\n button.setAttribute('aria-haspopup', 'dialog');\n button.setAttribute('aria-expanded', 'false');\n }\n if (accessibleLabel) button.setAttribute('aria-label', accessibleLabel);\n if (tooltip) button.dataset.editorTooltip = tooltip;\n button.style.cssText = [\n 'border:1px solid var(--fps-editor-border)',\n 'border-radius:3px',\n 'background:var(--fps-editor-button)',\n 'color:var(--fps-editor-text)',\n 'display:inline-flex',\n 'align-items:center',\n 'justify-content:center',\n `gap:${labelMode === 'icon-only' ? 0 : 5}px`,\n 'font-size:12px',\n 'font-weight:700',\n `padding:${variant === 'toolbar-icon' ? '0' : '4px 8px'}`,\n 'cursor:pointer',\n 'white-space:nowrap',\n `width:${variant === 'toolbar-icon' ? '32px' : 'auto'}`,\n `min-width:${variant === 'toolbar-icon' ? '32px' : '0'}`,\n `height:${variant === 'toolbar-icon' ? '28px' : '26px'}`,\n `flex:${variant === 'toolbar-icon' ? '0 0 32px' : '0 0 auto'}`,\n 'line-height:16px',\n ].join(';');\n if (options.icon) button.appendChild(createLocalEditorIcon(doc, options.icon));\n if (labelMode === 'visible') {\n const label = doc.createElement('span');\n label.dataset.editorButtonLabel = 'true';\n label.textContent = text;\n label.style.cssText = 'min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap';\n button.appendChild(label);\n }\n button.addEventListener('mouseenter', () => {\n if (!button.disabled) button.style.background = button.dataset.active === 'true'\n ? 'var(--fps-editor-button-active)'\n : 'var(--fps-editor-button-hover)';\n });\n button.addEventListener('mouseleave', () => {\n button.style.background = button.dataset.active === 'true'\n ? 'var(--fps-editor-button-active)'\n : 'var(--fps-editor-button)';\n });\n return button;\n}\n\nexport function readHierarchyDropPlacement(\n event: DragEvent,\n target: HTMLElement,\n): LocalEditorBrowserSceneGraphDropPlacement {\n const rect = target.getBoundingClientRect();\n const offsetY = event.clientY - rect.top;\n if (offsetY < rect.height * 0.25) return 'before';\n if (offsetY > rect.height * 0.75) return 'after';\n return 'inside';\n}\n\nexport function createEditorPanel(doc: Document, side: 'left-top' | 'left-bottom' | 'right'): HTMLDivElement {\n const panel = doc.createElement('div');\n const placement = side === 'right'\n ? 'top:56px;right:12px;bottom:14px;width:330px'\n : side === 'left-top'\n ? 'top:56px;left:12px;height:42vh;width:280px'\n : 'left:12px;bottom:14px;height:calc(58vh - 84px);width:280px';\n panel.style.cssText = [\n 'position:fixed',\n placement,\n 'z-index:2147483639',\n 'display:none',\n 'overflow:auto',\n 'padding:12px',\n 'border:1px solid var(--fps-editor-border)',\n 'border-radius:3px',\n 'background:var(--fps-editor-panel)',\n 'box-shadow:var(--fps-editor-shadow-popover)',\n 'font-family:var(--fps-editor-font)',\n 'color:var(--fps-editor-text)',\n 'font-size:12px',\n 'pointer-events:auto',\n ].join(';');\n return panel;\n}\n\nexport function createDockTabButton(\n doc: Document,\n text: string,\n active: boolean,\n options: LocalEditorButtonOptions = {},\n): HTMLButtonElement {\n const button = doc.createElement('button');\n button.type = 'button';\n button.style.cssText = [\n 'height:30px',\n 'border:0',\n 'border-right:1px solid var(--fps-editor-divider)',\n `border-top:${active ? '2px solid var(--fps-editor-accent)' : '2px solid transparent'}`,\n `background:${active ? 'var(--fps-editor-panel)' : 'var(--fps-editor-chrome-dark)'}`,\n `color:${active ? 'var(--fps-editor-text-strong)' : 'var(--fps-editor-muted)'}`,\n 'display:inline-flex',\n 'align-items:center',\n 'justify-content:center',\n 'gap:5px',\n 'font-size:12px',\n 'font-weight:900',\n 'padding:0 10px',\n 'cursor:pointer',\n 'white-space:nowrap',\n ].join(';');\n if (options.icon) button.appendChild(createLocalEditorIcon(doc, options.icon));\n const label = doc.createElement('span');\n label.dataset.editorButtonLabel = 'true';\n label.textContent = text;\n label.style.cssText = 'min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap';\n button.appendChild(label);\n return button;\n}\n\nexport function clearElement(element: HTMLElement): void {\n if (typeof element.replaceChildren === 'function') {\n element.replaceChildren();\n return;\n }\n const children = element.childNodes ?? (element as unknown as { children?: Node[] }).children ?? [];\n for (const child of Array.from(children)) {\n if (child.parentNode === element || (child as unknown as { parentElement?: HTMLElement | null }).parentElement === element) {\n element.removeChild(child);\n }\n }\n}\n\nexport function toTitle(value: string): string {\n return value\n .replace(/([a-z])([A-Z])/g, '$1 $2')\n .replace(/[-_]+/g, ' ')\n .replace(/\\b\\w/g, char => char.toUpperCase());\n}\n\nexport function formatAuthoringSourceLabel(source: LocalEditorBrowserAuthoringSource | null | undefined): string {\n if (!source) return '';\n const revision = source.ref.revision != null ? `@${source.ref.revision}` : '';\n return `${source.ref.sourceId}${revision}`;\n}\n\nexport function toTransformToolLabel(tool: LocalEditorBrowserTransformTool): string {\n return DEFAULT_EDITOR_TRANSFORM_TOOL_DESCRIPTORS[tool].label;\n}\n\nexport function toTransformSpaceLabel(space: LocalEditorBrowserTransformSpace): string {\n const labels: Record<LocalEditorBrowserTransformSpace, string> = {\n world: '世界',\n local: '本地',\n };\n return labels[space];\n}\n\nexport function toTransformConstraintLabel(\n constraint: LocalEditorBrowserTransformConstraint | undefined,\n): string {\n const labels: Record<LocalEditorBrowserTransformConstraint, string> = {\n axis: '轴向',\n plane: '平面',\n free: '自由',\n uniform: '统一',\n 'view-plane': '自由',\n };\n return labels[constraint ?? 'axis'];\n}\n\nexport function toTransformHandleListLabel(tool: LocalEditorBrowserTransformTool): string {\n const handles = DEFAULT_EDITOR_TRANSFORM_TOOL_DESCRIPTORS[tool].handles as readonly LocalEditorBrowserTransformHandleDescriptor[];\n return handles.map(handle => handle.label).join(' / ');\n}\n\nexport function toTransformToolStatusLabel(\n tool: LocalEditorBrowserTransformTool,\n space: LocalEditorBrowserTransformSpace,\n): string {\n const handleLabel = toTransformHandleListLabel(tool);\n return [\n toTransformToolLabel(tool),\n toTransformSpaceLabel(space),\n handleLabel,\n ].filter(Boolean).join(' · ');\n}\n\nexport function toTransformOperationPolicyStatusLabel(\n policy: EditorTransformOperationPolicy | null | undefined,\n): string {\n if (!policy || policy.status !== 'remapped') return '';\n if (policy.reason === 'trs-axis-scale-object-space') {\n return 'Scale axis uses local object space for TRS transforms';\n }\n return '';\n}\n\nexport function toPlacementModeLabel(mode: LocalEditorBrowserPlacementMode): string {\n const labels: Record<LocalEditorBrowserPlacementMode, string> = {\n off: '放置关',\n ground: '地面',\n surface: '表面',\n };\n return labels[mode];\n}\n\nexport function toTransformActionLabel(action: LocalEditorBrowserTransformAction): string {\n const labels: Record<LocalEditorBrowserTransformAction, string> = {\n 'align-x': '对齐 X',\n 'align-y': '对齐 Y',\n 'align-z': '对齐 Z',\n 'align-all': '对齐全',\n 'distribute-x': '分布 X',\n 'distribute-y': '分布 Y',\n 'distribute-z': '分布 Z',\n };\n return labels[action];\n}\n\nexport function toTransformSnapStatusLabel(\n settings: LocalEditorBrowserTransformOperationSettings = DEFAULT_EDITOR_TRANSFORM_OPERATION_SETTINGS,\n): string {\n const snap = settings.snap;\n const state = snap.enabled ? '吸附开' : '吸附关';\n return [\n state,\n `移动 ${formatOperationNumber(snap.moveStep)}`,\n `旋转 ${formatOperationNumber(snap.rotateStepDegrees)}°`,\n `缩放 ${formatOperationNumber(snap.scaleStep)}`,\n ].join(' · ');\n}\n\nexport function toTransformOperationStatusLabel(\n settings: LocalEditorBrowserTransformOperationSettings = DEFAULT_EDITOR_TRANSFORM_OPERATION_SETTINGS,\n): string {\n const placement = settings.placementMode === 'off'\n ? toPlacementModeLabel(settings.placementMode)\n : `放置${toPlacementModeLabel(settings.placementMode)}`;\n return [\n toTransformSnapStatusLabel(settings),\n placement,\n ].join(' · ');\n}\n\nexport function toTransformMouseHint(tool: LocalEditorBrowserTransformTool): string {\n if (tool === 'move') return '移动手柄 · 轴向箭头 / 平面方块 / 中心自由拖拽 · Esc 取消';\n if (tool === 'rotate') return '旋转手柄 · 轴向圆环拖拽 · Esc 取消';\n if (tool === 'scale') return '缩放手柄 · 轴向方块 / 中心统一缩放 · Esc 取消';\n return '左键选择 · 空白拖拽框选 · 中键平移 · Alt+左键环绕 · 右键自由视角/WASD飞行 · 滚轮缩放';\n}\n\nfunction formatOperationNumber(value: number): string {\n if (!Number.isFinite(value)) return String(value);\n return Number.isInteger(value) ? String(value) : String(Number(value.toFixed(4)));\n}\n"]}
|
|
1
|
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,SAAS;KACV,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAqC;IACxE,IAAI,IAAI,KAAK,MAAM;QAAE,OAAO,sCAAsC,CAAC;IACnE,IAAI,IAAI,KAAK,QAAQ;QAAE,OAAO,wBAAwB,CAAC;IACvD,IAAI,IAAI,KAAK,OAAO;QAAE,OAAO,+BAA+B,CAAC;IAC7D,OAAO,wDAAwD,CAAC;AAClE,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAa;IAC1C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IAClD,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpF,CAAC","sourcesContent":["import {\n DEFAULT_EDITOR_TRANSFORM_OPERATION_SETTINGS,\n DEFAULT_EDITOR_TRANSFORM_TOOL_DESCRIPTORS,\n type EditorTransformOperationPolicy,\n} from '@fps-games/editor-core';\nimport {\n decorateEditorUiButton,\n decorateEditorUiDockTab,\n setEditorUiButtonActive,\n} from '@fps-games/editor-ui';\nimport { createLocalEditorIcon, type LocalEditorIconName } from './local-editor-ui-icons';\nimport type {\n LocalEditorBrowserAuthoringSource,\n LocalEditorBrowserPlacementMode,\n LocalEditorBrowserTransformConstraint,\n LocalEditorBrowserTransformAction,\n LocalEditorBrowserTransformHandleDescriptor,\n LocalEditorBrowserTransformOperationSettings,\n LocalEditorBrowserTransformSpace,\n LocalEditorBrowserTransformTool,\n} from './local-editor-ui-types';\n\nexport interface LocalEditorButtonOptions {\n icon?: LocalEditorIconName;\n labelMode?: 'visible' | 'icon-only';\n tooltip?: string;\n ariaLabel?: string;\n variant?: 'default' | 'toolbar-icon';\n toolbarRole?: 'command' | 'toggle' | 'settings';\n}\n\nexport function applyButtonActiveState(button: HTMLButtonElement, active: boolean): void {\n setEditorUiButtonActive(button, active);\n}\n\nexport function createButton(doc: Document, text: string, options: LocalEditorButtonOptions = {}): HTMLButtonElement {\n const labelMode = options.labelMode ?? 'visible';\n const variant = options.variant ?? 'default';\n const accessibleLabel = options.ariaLabel ?? text;\n const tooltip = options.tooltip ?? (labelMode === 'icon-only' ? accessibleLabel : undefined);\n const button = doc.createElement('button');\n decorateEditorUiButton(button, { labelMode, variant });\n button.type = 'button';\n button.dataset.editorToolbarRole = options.toolbarRole ?? 'command';\n if (options.toolbarRole === 'settings') {\n button.setAttribute('aria-haspopup', 'dialog');\n button.setAttribute('aria-expanded', 'false');\n }\n if (accessibleLabel) button.setAttribute('aria-label', accessibleLabel);\n if (tooltip) button.dataset.editorTooltip = tooltip;\n if (options.icon) button.appendChild(createLocalEditorIcon(doc, options.icon));\n if (labelMode === 'visible') {\n const label = doc.createElement('span');\n label.className = 'fps-editor-ui-button__label';\n label.dataset.editorButtonLabel = 'true';\n label.textContent = text;\n button.appendChild(label);\n }\n return button;\n}\n\nexport function createDockTabButton(\n doc: Document,\n text: string,\n active: boolean,\n options: LocalEditorButtonOptions = {},\n): HTMLButtonElement {\n const button = doc.createElement('button');\n decorateEditorUiDockTab(button, active);\n button.type = 'button';\n if (options.icon) button.appendChild(createLocalEditorIcon(doc, options.icon));\n const label = doc.createElement('span');\n label.className = 'fps-editor-ui-button__label';\n label.dataset.editorButtonLabel = 'true';\n label.textContent = text;\n button.appendChild(label);\n return button;\n}\n\nexport function clearElement(element: HTMLElement): void {\n if (typeof element.replaceChildren === 'function') {\n element.replaceChildren();\n return;\n }\n const children = element.childNodes ?? (element as unknown as { children?: Node[] }).children ?? [];\n for (const child of Array.from(children)) {\n if (child.parentNode === element || (child as unknown as { parentElement?: HTMLElement | null }).parentElement === element) {\n element.removeChild(child);\n }\n }\n}\n\nexport function toTitle(value: string): string {\n return value\n .replace(/([a-z])([A-Z])/g, '$1 $2')\n .replace(/[-_]+/g, ' ')\n .replace(/\\b\\w/g, char => char.toUpperCase());\n}\n\nexport function formatAuthoringSourceLabel(source: LocalEditorBrowserAuthoringSource | null | undefined): string {\n if (!source) return '';\n const revision = source.ref.revision != null ? `@${source.ref.revision}` : '';\n return `${source.ref.sourceId}${revision}`;\n}\n\nexport function toTransformToolLabel(tool: LocalEditorBrowserTransformTool): string {\n return DEFAULT_EDITOR_TRANSFORM_TOOL_DESCRIPTORS[tool].label;\n}\n\nexport function toTransformSpaceLabel(space: LocalEditorBrowserTransformSpace): string {\n const labels: Record<LocalEditorBrowserTransformSpace, string> = {\n world: '世界',\n local: '本地',\n };\n return labels[space];\n}\n\nexport function toTransformConstraintLabel(\n constraint: LocalEditorBrowserTransformConstraint | undefined,\n): string {\n const labels: Record<LocalEditorBrowserTransformConstraint, string> = {\n axis: '轴向',\n plane: '平面',\n free: '自由',\n uniform: '统一',\n 'view-plane': '自由',\n };\n return labels[constraint ?? 'axis'];\n}\n\nexport function toTransformHandleListLabel(tool: LocalEditorBrowserTransformTool): string {\n const handles = DEFAULT_EDITOR_TRANSFORM_TOOL_DESCRIPTORS[tool].handles as readonly LocalEditorBrowserTransformHandleDescriptor[];\n return handles.map(handle => handle.label).join(' / ');\n}\n\nexport function toTransformToolStatusLabel(\n tool: LocalEditorBrowserTransformTool,\n space: LocalEditorBrowserTransformSpace,\n): string {\n const handleLabel = toTransformHandleListLabel(tool);\n return [\n toTransformToolLabel(tool),\n toTransformSpaceLabel(space),\n handleLabel,\n ].filter(Boolean).join(' · ');\n}\n\nexport function toTransformOperationPolicyStatusLabel(\n policy: EditorTransformOperationPolicy | null | undefined,\n): string {\n if (!policy || policy.status !== 'remapped') return '';\n if (policy.reason === 'trs-axis-scale-object-space') {\n return 'Scale axis uses local object space for TRS transforms';\n }\n return '';\n}\n\nexport function toPlacementModeLabel(mode: LocalEditorBrowserPlacementMode): string {\n const labels: Record<LocalEditorBrowserPlacementMode, string> = {\n off: '放置关',\n ground: '地面',\n surface: '表面',\n };\n return labels[mode];\n}\n\nexport function toTransformActionLabel(action: LocalEditorBrowserTransformAction): string {\n const labels: Record<LocalEditorBrowserTransformAction, string> = {\n 'align-x': '对齐 X',\n 'align-y': '对齐 Y',\n 'align-z': '对齐 Z',\n 'align-all': '对齐全',\n 'distribute-x': '分布 X',\n 'distribute-y': '分布 Y',\n 'distribute-z': '分布 Z',\n };\n return labels[action];\n}\n\nexport function toTransformSnapStatusLabel(\n settings: LocalEditorBrowserTransformOperationSettings = DEFAULT_EDITOR_TRANSFORM_OPERATION_SETTINGS,\n): string {\n const snap = settings.snap;\n const state = snap.enabled ? '吸附开' : '吸附关';\n return [\n state,\n `移动 ${formatOperationNumber(snap.moveStep)}`,\n `旋转 ${formatOperationNumber(snap.rotateStepDegrees)}°`,\n `缩放 ${formatOperationNumber(snap.scaleStep)}`,\n ].join(' · ');\n}\n\nexport function toTransformOperationStatusLabel(\n settings: LocalEditorBrowserTransformOperationSettings = DEFAULT_EDITOR_TRANSFORM_OPERATION_SETTINGS,\n): string {\n const placement = settings.placementMode === 'off'\n ? toPlacementModeLabel(settings.placementMode)\n : `放置${toPlacementModeLabel(settings.placementMode)}`;\n return [\n toTransformSnapStatusLabel(settings),\n placement,\n ].join(' · ');\n}\n\nexport function toTransformMouseHint(tool: LocalEditorBrowserTransformTool): string {\n if (tool === 'move') return '移动手柄 · 轴向箭头 / 平面方块 / 中心自由拖拽 · Esc 取消';\n if (tool === 'rotate') return '旋转手柄 · 轴向圆环拖拽 · Esc 取消';\n if (tool === 'scale') return '缩放手柄 · 轴向方块 / 中心统一缩放 · Esc 取消';\n return '左键选择 · 空白拖拽框选 · 中键平移 · Alt+左键环绕 · 右键自由视角/WASD飞行 · 滚轮缩放';\n}\n\nfunction formatOperationNumber(value: number): string {\n if (!Number.isFinite(value)) return String(value);\n return Number.isInteger(value) ? String(value) : String(Number(value.toFixed(4)));\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-ui-shortcuts.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-shortcuts.ts"],"names":[],"mappings":"AAEA,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,QAAQ,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"local-editor-ui-shortcuts.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-shortcuts.ts"],"names":[],"mappings":"AAEA,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,QAAQ,GAAG,cAAc,CAmFrE"}
|
|
@@ -1,58 +1,24 @@
|
|
|
1
1
|
import { createButton } from './local-editor-ui-shared.js';
|
|
2
2
|
export function createShortcutHelpPanel(doc) {
|
|
3
3
|
const panel = doc.createElement('div');
|
|
4
|
+
panel.className = 'fps-editor-ui-shortcut-dialog';
|
|
4
5
|
panel.dataset.editorShortcutHelp = 'true';
|
|
5
6
|
panel.dataset.editorWorkbenchRegion = 'modal';
|
|
6
7
|
panel.setAttribute('role', 'dialog');
|
|
7
8
|
panel.setAttribute('aria-label', '编辑器快捷键与操作说明');
|
|
8
|
-
panel.style.cssText = [
|
|
9
|
-
'position:fixed',
|
|
10
|
-
'top:104px',
|
|
11
|
-
'left:50%',
|
|
12
|
-
'transform:translateX(-50%)',
|
|
13
|
-
'z-index:2147483638',
|
|
14
|
-
'display:none',
|
|
15
|
-
'width:min(620px,calc(100vw - 64px))',
|
|
16
|
-
'max-height:calc(100vh - 132px)',
|
|
17
|
-
'flex-direction:column',
|
|
18
|
-
'overflow:hidden',
|
|
19
|
-
'padding:0',
|
|
20
|
-
'border:1px solid var(--fps-editor-border)',
|
|
21
|
-
'border-radius:3px',
|
|
22
|
-
'background:var(--fps-editor-panel)',
|
|
23
|
-
'box-shadow:var(--fps-editor-shadow-modal)',
|
|
24
|
-
'font-family:var(--fps-editor-font)',
|
|
25
|
-
'color:var(--fps-editor-text)',
|
|
26
|
-
'font-size:12px',
|
|
27
|
-
'pointer-events:auto',
|
|
28
|
-
].join(';');
|
|
29
9
|
const header = doc.createElement('div');
|
|
30
|
-
header.
|
|
31
|
-
'display:flex',
|
|
32
|
-
'align-items:center',
|
|
33
|
-
'justify-content:space-between',
|
|
34
|
-
'gap:12px',
|
|
35
|
-
'flex:0 0 auto',
|
|
36
|
-
'padding:12px 14px',
|
|
37
|
-
'border-bottom:1px solid var(--fps-editor-divider)',
|
|
38
|
-
'background:var(--fps-editor-chrome-dark)',
|
|
39
|
-
].join(';');
|
|
10
|
+
header.className = 'fps-editor-ui-shortcut-header';
|
|
40
11
|
const title = doc.createElement('h2');
|
|
41
12
|
title.textContent = '编辑器快捷键与操作说明';
|
|
42
|
-
title.
|
|
13
|
+
title.className = 'fps-editor-ui-surface-title';
|
|
43
14
|
const closeButton = createButton(doc, '关闭');
|
|
44
15
|
closeButton.dataset.editorShortcutHelpClose = 'true';
|
|
45
16
|
header.appendChild(title);
|
|
46
17
|
header.appendChild(closeButton);
|
|
47
18
|
panel.appendChild(header);
|
|
48
19
|
const content = doc.createElement('div');
|
|
20
|
+
content.className = 'fps-editor-ui-shortcut-content';
|
|
49
21
|
content.dataset.editorShortcutHelpContent = 'true';
|
|
50
|
-
content.style.cssText = [
|
|
51
|
-
'flex:1 1 auto',
|
|
52
|
-
'min-height:0',
|
|
53
|
-
'overflow:auto',
|
|
54
|
-
'padding:12px 14px 14px',
|
|
55
|
-
].join(';');
|
|
56
22
|
panel.appendChild(content);
|
|
57
23
|
appendShortcutSection(doc, content, '工具', [
|
|
58
24
|
['Q', '切换到选择工具'],
|
|
@@ -116,31 +82,20 @@ export function createShortcutHelpPanel(doc) {
|
|
|
116
82
|
}
|
|
117
83
|
function appendShortcutSection(doc, parent, title, rows) {
|
|
118
84
|
const section = doc.createElement('section');
|
|
119
|
-
section.
|
|
85
|
+
section.className = 'fps-editor-ui-shortcut-section';
|
|
120
86
|
const heading = doc.createElement('h3');
|
|
121
87
|
heading.textContent = title;
|
|
122
|
-
heading.
|
|
88
|
+
heading.className = 'fps-editor-ui-surface-title';
|
|
123
89
|
section.appendChild(heading);
|
|
124
90
|
const list = doc.createElement('div');
|
|
125
|
-
list.
|
|
91
|
+
list.className = 'fps-editor-ui-shortcut-grid';
|
|
126
92
|
for (const [keys, action] of rows) {
|
|
127
93
|
const key = doc.createElement('div');
|
|
94
|
+
key.className = 'fps-editor-ui-shortcut-key';
|
|
128
95
|
key.textContent = keys;
|
|
129
|
-
key.style.cssText = [
|
|
130
|
-
'min-height:24px',
|
|
131
|
-
'display:flex',
|
|
132
|
-
'align-items:center',
|
|
133
|
-
'padding:0 7px',
|
|
134
|
-
'border:1px solid var(--fps-editor-border)',
|
|
135
|
-
'border-radius:3px',
|
|
136
|
-
'background:var(--fps-editor-field)',
|
|
137
|
-
'color:var(--fps-editor-text-strong)',
|
|
138
|
-
'font-weight:900',
|
|
139
|
-
'white-space:nowrap',
|
|
140
|
-
].join(';');
|
|
141
96
|
const value = doc.createElement('div');
|
|
97
|
+
value.className = 'fps-editor-ui-shortcut-description';
|
|
142
98
|
value.textContent = action;
|
|
143
|
-
value.style.cssText = 'color:var(--fps-editor-muted);line-height:1.35';
|
|
144
99
|
list.appendChild(key);
|
|
145
100
|
list.appendChild(value);
|
|
146
101
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-ui-shortcuts.js","sourceRoot":"","sources":["../src/local-editor-ui-shortcuts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,UAAU,uBAAuB,CAAC,GAAa;IACnD,MAAM,KAAK,GAAG,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACvC,KAAK,CAAC,OAAO,CAAC,kBAAkB,GAAG,MAAM,CAAC;IAC1C,KAAK,CAAC,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC;IAC9C,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACrC,KAAK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WAAW,CAAC,OAAO,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["import { createButton } from './local-editor-ui-shared';\n\nexport function createShortcutHelpPanel(doc: Document): HTMLDivElement {\n const panel = doc.createElement('div');\n panel.dataset.editorShortcutHelp = 'true';\n panel.dataset.editorWorkbenchRegion = 'modal';\n panel.setAttribute('role', 'dialog');\n panel.setAttribute('aria-label', '编辑器快捷键与操作说明');\n panel.style.cssText = [\n 'position:fixed',\n 'top:104px',\n 'left:50%',\n 'transform:translateX(-50%)',\n 'z-index:2147483638',\n 'display:none',\n 'width:min(620px,calc(100vw - 64px))',\n 'max-height:calc(100vh - 132px)',\n 'flex-direction:column',\n 'overflow:hidden',\n 'padding:0',\n 'border:1px solid var(--fps-editor-border)',\n 'border-radius:3px',\n 'background:var(--fps-editor-panel)',\n 'box-shadow:var(--fps-editor-shadow-modal)',\n 'font-family:var(--fps-editor-font)',\n 'color:var(--fps-editor-text)',\n 'font-size:12px',\n 'pointer-events:auto',\n ].join(';');\n\n const header = doc.createElement('div');\n header.style.cssText = [\n 'display:flex',\n 'align-items:center',\n 'justify-content:space-between',\n 'gap:12px',\n 'flex:0 0 auto',\n 'padding:12px 14px',\n 'border-bottom:1px solid var(--fps-editor-divider)',\n 'background:var(--fps-editor-chrome-dark)',\n ].join(';');\n const title = doc.createElement('h2');\n title.textContent = '编辑器快捷键与操作说明';\n title.style.cssText = 'min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;margin:0;font-weight:900;color:var(--fps-editor-text-strong)';\n const closeButton = createButton(doc, '关闭');\n closeButton.dataset.editorShortcutHelpClose = 'true';\n header.appendChild(title);\n header.appendChild(closeButton);\n panel.appendChild(header);\n\n const content = doc.createElement('div');\n content.dataset.editorShortcutHelpContent = 'true';\n content.style.cssText = [\n 'flex:1 1 auto',\n 'min-height:0',\n 'overflow:auto',\n 'padding:12px 14px 14px',\n ].join(';');\n panel.appendChild(content);\n\n appendShortcutSection(doc, content, '工具', [\n ['Q', '切换到选择工具'],\n ['W', '切换到移动工具'],\n ['E', '切换到旋转工具'],\n ['R', '切换到缩放工具'],\n ['世界 / 本地', '在 Scene View 工具条切换 Transform 坐标空间'],\n ['移动手柄', '轴向箭头、平面方块和中心自由手柄同时可用'],\n ['吸附', '在 Scene View 工具条切换移动、旋转、缩放步进吸附'],\n ['放置', '在 Scene View 工具条切换关闭、XZ 地面或场景表面放置'],\n ['对齐 / 分布', '多选后从 Scene View 工具条执行位置对齐或分布'],\n ]);\n appendShortcutSection(doc, content, '视图', [\n ['F', '聚焦当前选中的 GameObject'],\n ['Esc', '取消当前 Gizmo 拖拽或活动操作'],\n ]);\n appendShortcutSection(doc, content, '鼠标操作', [\n ['左键', '选择对象;在空白区域拖拽可以框选'],\n ['Shift + 左键', 'Scene View 中追加选择对象'],\n ['层级树 Shift', '按当前可见顺序范围连选 GameObject'],\n ['Cmd/Ctrl + 左键', '切换对象的选中状态'],\n ['Scene View 双击', '选择并聚焦对象'],\n ['Hierarchy 双击', '选择并聚焦 GameObject'],\n ['滚轮', '推进/拉远摄像机;右键飞行模式下调整飞行速度'],\n ['中键拖拽', '平移 Scene View'],\n ['Alt + 左键拖拽', '围绕视图枢轴环绕,方向对齐 UE'],\n ['Alt + 中键拖拽', '平移 Scene View'],\n ['Alt + 右键左右拖拽', '推进/拉远 Scene View,手感对齐 UE'],\n ['右键拖拽', '进入自由视角;鼠标改变朝向,按住右键时使用 WASD/QE 飞行移动'],\n ]);\n appendShortcutSection(doc, content, '选择', [\n ['Scene View Shift', '点击追加选择;已选中时移除'],\n ['Shift + 拖拽', 'Scene View 中加入框选结果'],\n ['Cmd/Ctrl + 点击/拖拽', 'Scene View 中切换对象是否选中'],\n ['F', '聚焦当前选中的 GameObject'],\n ['Scene View 双击', '选择并聚焦被点击的 GameObject'],\n ['Hierarchy 双击', '选择并聚焦被点击的 GameObject'],\n ['层级树点击', '从 Hierarchy 中选择 GameObject'],\n ['层级树 Shift + 点击', '以最近点击的节点为锚点,按可见行范围连选'],\n ['层级树 Cmd/Ctrl', '切换单个 GameObject 的选中状态'],\n ['Esc', '取消当前操作或清空选择'],\n ['右键层级节点', '打开 GameObject 操作菜单(含重命名、选择子节点)'],\n ]);\n appendShortcutSection(doc, content, '文档', [\n ['Cmd/Ctrl + Z', '撤销'],\n ['Cmd/Ctrl + Shift + Z', '重做'],\n ['Ctrl + Y', '重做'],\n ['Cmd/Ctrl + C', '复制当前选中的 Hierarchy 节点'],\n ['Cmd/Ctrl + V', '粘贴并复制此前复制的 Hierarchy 节点'],\n ['Cmd/Ctrl + D', '复制当前选中的 Hierarchy 节点'],\n ['Delete / Backspace', '删除当前选中的 GameObject'],\n ['保存场景', '保存 editor-scene,并编译运行时 scene 数据'],\n ]);\n appendShortcutSection(doc, content, '面板', [\n ['Assets 标签', '搜索项目资产,点击资产创建 GameObject'],\n ['History 标签', '查看来自 EditorSession 的文档操作历史'],\n ['Inspector 输入框', '通过序列化属性编辑选中对象的 Transform 数值'],\n ['多选 Inspector', '批量编辑所有选中 GameObject 的共享 Transform 数值'],\n ]);\n return panel;\n}\n\nfunction appendShortcutSection(\n doc: Document,\n parent: HTMLElement,\n title: string,\n rows: Array<[string, string]>,\n): void {\n const section = doc.createElement('section');\n section.style.cssText = 'margin:0 0 12px';\n const heading = doc.createElement('h3');\n heading.textContent = title;\n heading.style.cssText = 'font-size:12px;margin:0 0 7px;font-weight:900;color:var(--fps-editor-text)';\n section.appendChild(heading);\n const list = doc.createElement('div');\n list.style.cssText = 'display:grid;grid-template-columns:130px 1fr;gap:6px 10px;align-items:center';\n for (const [keys, action] of rows) {\n const key = doc.createElement('div');\n key.textContent = keys;\n key.style.cssText = [\n 'min-height:24px',\n 'display:flex',\n 'align-items:center',\n 'padding:0 7px',\n 'border:1px solid var(--fps-editor-border)',\n 'border-radius:3px',\n 'background:var(--fps-editor-field)',\n 'color:var(--fps-editor-text-strong)',\n 'font-weight:900',\n 'white-space:nowrap',\n ].join(';');\n const value = doc.createElement('div');\n value.textContent = action;\n value.style.cssText = 'color:var(--fps-editor-muted);line-height:1.35';\n list.appendChild(key);\n list.appendChild(value);\n }\n section.appendChild(list);\n parent.appendChild(section);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"local-editor-ui-shortcuts.js","sourceRoot":"","sources":["../src/local-editor-ui-shortcuts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,UAAU,uBAAuB,CAAC,GAAa;IACnD,MAAM,KAAK,GAAG,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACvC,KAAK,CAAC,SAAS,GAAG,+BAA+B,CAAC;IAClD,KAAK,CAAC,OAAO,CAAC,kBAAkB,GAAG,MAAM,CAAC;IAC1C,KAAK,CAAC,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC;IAC9C,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACrC,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;IAEhD,MAAM,MAAM,GAAG,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACxC,MAAM,CAAC,SAAS,GAAG,+BAA+B,CAAC;IACnD,MAAM,KAAK,GAAG,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IACtC,KAAK,CAAC,WAAW,GAAG,aAAa,CAAC;IAClC,KAAK,CAAC,SAAS,GAAG,6BAA6B,CAAC;IAChD,MAAM,WAAW,GAAG,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAC5C,WAAW,CAAC,OAAO,CAAC,uBAAuB,GAAG,MAAM,CAAC;IACrD,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC1B,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IAChC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAE1B,MAAM,OAAO,GAAG,GAAG,CAAC,aAAa,CA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AmB,EACnB,KAAa,EACb,IAA6B;IAE7B,MAAM,OAAO,GAAG,GAAG,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAC7C,OAAO,CAAC,SAAS,GAAG,gCAAgC,CAAC;IACrD,MAAM,OAAO,GAAG,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IACxC,OAAO,CAAC,WAAW,GAAG,KAAK,CAAC;IAC5B,OAAO,CAAC,SAAS,GAAG,6BAA6B,CAAC;IAClD,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC7B,MAAM,IAAI,GAAG,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACtC,IAAI,CAAC,SAAS,GAAG,6BAA6B,CAAC;IAC/C,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;QAClC,MAAM,GAAG,GAAG,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACrC,GAAG,CAAC,SAAS,GAAG,4BAA4B,CAAC;QAC7C,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC;QACvB,MAAM,KAAK,GAAG,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACvC,KAAK,CAAC,SAAS,GAAG,oCAAoC,CAAC;QACvD,KAAK,CAAC,WAAW,GAAG,MAAM,CAAC;QAC3B,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACtB,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC;IACD,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC1B,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["import { createButton } from './local-editor-ui-shared';\n\nexport function createShortcutHelpPanel(doc: Document): HTMLDivElement {\n const panel = doc.createElement('div');\n panel.className = 'fps-editor-ui-shortcut-dialog';\n panel.dataset.editorShortcutHelp = 'true';\n panel.dataset.editorWorkbenchRegion = 'modal';\n panel.setAttribute('role', 'dialog');\n panel.setAttribute('aria-label', '编辑器快捷键与操作说明');\n\n const header = doc.createElement('div');\n header.className = 'fps-editor-ui-shortcut-header';\n const title = doc.createElement('h2');\n title.textContent = '编辑器快捷键与操作说明';\n title.className = 'fps-editor-ui-surface-title';\n const closeButton = createButton(doc, '关闭');\n closeButton.dataset.editorShortcutHelpClose = 'true';\n header.appendChild(title);\n header.appendChild(closeButton);\n panel.appendChild(header);\n\n const content = doc.createElement('div');\n content.className = 'fps-editor-ui-shortcut-content';\n content.dataset.editorShortcutHelpContent = 'true';\n panel.appendChild(content);\n\n appendShortcutSection(doc, content, '工具', [\n ['Q', '切换到选择工具'],\n ['W', '切换到移动工具'],\n ['E', '切换到旋转工具'],\n ['R', '切换到缩放工具'],\n ['世界 / 本地', '在 Scene View 工具条切换 Transform 坐标空间'],\n ['移动手柄', '轴向箭头、平面方块和中心自由手柄同时可用'],\n ['吸附', '在 Scene View 工具条切换移动、旋转、缩放步进吸附'],\n ['放置', '在 Scene View 工具条切换关闭、XZ 地面或场景表面放置'],\n ['对齐 / 分布', '多选后从 Scene View 工具条执行位置对齐或分布'],\n ]);\n appendShortcutSection(doc, content, '视图', [\n ['F', '聚焦当前选中的 GameObject'],\n ['Esc', '取消当前 Gizmo 拖拽或活动操作'],\n ]);\n appendShortcutSection(doc, content, '鼠标操作', [\n ['左键', '选择对象;在空白区域拖拽可以框选'],\n ['Shift + 左键', 'Scene View 中追加选择对象'],\n ['层级树 Shift', '按当前可见顺序范围连选 GameObject'],\n ['Cmd/Ctrl + 左键', '切换对象的选中状态'],\n ['Scene View 双击', '选择并聚焦对象'],\n ['Hierarchy 双击', '选择并聚焦 GameObject'],\n ['滚轮', '推进/拉远摄像机;右键飞行模式下调整飞行速度'],\n ['中键拖拽', '平移 Scene View'],\n ['Alt + 左键拖拽', '围绕视图枢轴环绕,方向对齐 UE'],\n ['Alt + 中键拖拽', '平移 Scene View'],\n ['Alt + 右键左右拖拽', '推进/拉远 Scene View,手感对齐 UE'],\n ['右键拖拽', '进入自由视角;鼠标改变朝向,按住右键时使用 WASD/QE 飞行移动'],\n ]);\n appendShortcutSection(doc, content, '选择', [\n ['Scene View Shift', '点击追加选择;已选中时移除'],\n ['Shift + 拖拽', 'Scene View 中加入框选结果'],\n ['Cmd/Ctrl + 点击/拖拽', 'Scene View 中切换对象是否选中'],\n ['F', '聚焦当前选中的 GameObject'],\n ['Scene View 双击', '选择并聚焦被点击的 GameObject'],\n ['Hierarchy 双击', '选择并聚焦被点击的 GameObject'],\n ['层级树点击', '从 Hierarchy 中选择 GameObject'],\n ['层级树 Shift + 点击', '以最近点击的节点为锚点,按可见行范围连选'],\n ['层级树 Cmd/Ctrl', '切换单个 GameObject 的选中状态'],\n ['Esc', '取消当前操作或清空选择'],\n ['右键层级节点', '打开 GameObject 操作菜单(含重命名、选择子节点)'],\n ]);\n appendShortcutSection(doc, content, '文档', [\n ['Cmd/Ctrl + Z', '撤销'],\n ['Cmd/Ctrl + Shift + Z', '重做'],\n ['Ctrl + Y', '重做'],\n ['Cmd/Ctrl + C', '复制当前选中的 Hierarchy 节点'],\n ['Cmd/Ctrl + V', '粘贴并复制此前复制的 Hierarchy 节点'],\n ['Cmd/Ctrl + D', '复制当前选中的 Hierarchy 节点'],\n ['Delete / Backspace', '删除当前选中的 GameObject'],\n ['保存场景', '保存 editor-scene,并编译运行时 scene 数据'],\n ]);\n appendShortcutSection(doc, content, '面板', [\n ['Assets 标签', '搜索项目资产,点击资产创建 GameObject'],\n ['History 标签', '查看来自 EditorSession 的文档操作历史'],\n ['Inspector 输入框', '通过序列化属性编辑选中对象的 Transform 数值'],\n ['多选 Inspector', '批量编辑所有选中 GameObject 的共享 Transform 数值'],\n ]);\n return panel;\n}\n\nfunction appendShortcutSection(\n doc: Document,\n parent: HTMLElement,\n title: string,\n rows: Array<[string, string]>,\n): void {\n const section = doc.createElement('section');\n section.className = 'fps-editor-ui-shortcut-section';\n const heading = doc.createElement('h3');\n heading.textContent = title;\n heading.className = 'fps-editor-ui-surface-title';\n section.appendChild(heading);\n const list = doc.createElement('div');\n list.className = 'fps-editor-ui-shortcut-grid';\n for (const [keys, action] of rows) {\n const key = doc.createElement('div');\n key.className = 'fps-editor-ui-shortcut-key';\n key.textContent = keys;\n const value = doc.createElement('div');\n value.className = 'fps-editor-ui-shortcut-description';\n value.textContent = action;\n list.appendChild(key);\n list.appendChild(value);\n }\n section.appendChild(list);\n parent.appendChild(section);\n}\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { EditorDiagnosticLocator } from '@fps-games/editor-protocol';
|
|
2
|
+
import type { LocalEditorBrowserStatusDiagnostic, LocalEditorBrowserUiState } from './local-editor-ui-types';
|
|
3
|
+
type LocalEditorStatusInput = Pick<LocalEditorBrowserUiState, 'status' | 'statusDiagnostics'>;
|
|
4
|
+
export interface LocalEditorStatusCenterViewModel {
|
|
5
|
+
diagnostics: LocalEditorBrowserStatusDiagnostic[];
|
|
6
|
+
entries: Array<{
|
|
7
|
+
diagnostic: LocalEditorBrowserStatusDiagnostic;
|
|
8
|
+
copyText: string;
|
|
9
|
+
}>;
|
|
10
|
+
severity: 'default' | 'warning' | 'error';
|
|
11
|
+
icon: 'status' | 'warning';
|
|
12
|
+
errorCount: number;
|
|
13
|
+
warningCount: number;
|
|
14
|
+
infoCount: number;
|
|
15
|
+
summary: string;
|
|
16
|
+
copyAllText: string;
|
|
17
|
+
}
|
|
18
|
+
export interface LocalEditorStatusDiagnosticLocatePlan {
|
|
19
|
+
locator: EditorDiagnosticLocator;
|
|
20
|
+
canLocate: boolean;
|
|
21
|
+
crossScope: boolean;
|
|
22
|
+
openAssetBrowser: boolean;
|
|
23
|
+
openInspector: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface LocalEditorStatusDiagnosticRequestToken {
|
|
26
|
+
settled: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare function settleLocalEditorStatusDiagnosticRequest<TRequest extends LocalEditorStatusDiagnosticRequestToken>(current: TRequest | null, request: TRequest | null, accepted: boolean | void): TRequest | null;
|
|
29
|
+
export declare function resolveLocalEditorStatusDiagnosticLocator(diagnostic: LocalEditorBrowserStatusDiagnostic): EditorDiagnosticLocator;
|
|
30
|
+
export declare function resolveLocalEditorStatusDiagnosticLocatePlan(diagnostic: LocalEditorBrowserStatusDiagnostic, currentScopeId: string): LocalEditorStatusDiagnosticLocatePlan;
|
|
31
|
+
export declare function shouldCloseLocalEditorStatusCenter(input: {
|
|
32
|
+
inEditor: boolean;
|
|
33
|
+
open: boolean;
|
|
34
|
+
}): boolean;
|
|
35
|
+
export declare function createLocalEditorStatusCenterViewModel(state: LocalEditorStatusInput | null | undefined): LocalEditorStatusCenterViewModel;
|
|
36
|
+
export declare function resolveLocalEditorStatusDiagnostics(state: LocalEditorStatusInput | null | undefined): LocalEditorBrowserStatusDiagnostic[];
|
|
37
|
+
export declare function resolveLocalEditorStatusDiagnosticSeverity(diagnostics: readonly LocalEditorBrowserStatusDiagnostic[]): 'default' | 'warning' | 'error';
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=local-editor-ui-status-diagnostics.d.ts.map
|
package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-editor-ui-status-diagnostics.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-status-diagnostics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,kCAAkC,EAClC,yBAAyB,EAC1B,MAAM,yBAAyB,CAAC;AAGjC,KAAK,sBAAsB,GAAG,IAAI,CAChC,yBAAyB,EACzB,QAAQ,GAAG,mBAAmB,CAC/B,CAAC;AAEF,MAAM,WAAW,gCAAgC;IAC/C,WAAW,EAAE,kCAAkC,EAAE,CAAC;IAClD,OAAO,EAAE,KAAK,CAAC;QACb,UAAU,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C/C,kCAAkC,EAAE,CAGtC;AAED,wBAAgB,0CAA0C,CACxD,WAAW,EAAE,SAAS,kCAAkC,EAAE,GACzD,SAAS,GAAG,SAAS,GAAG,OAAO,CAIjC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { formatLocalEditorStatusDiagnostic } from './local-editor-ui-status-format.js';
|
|
2
|
+
export function settleLocalEditorStatusDiagnosticRequest(current, request, accepted) {
|
|
3
|
+
if (!request || current !== request)
|
|
4
|
+
return current;
|
|
5
|
+
if (accepted === false)
|
|
6
|
+
return null;
|
|
7
|
+
request.settled = true;
|
|
8
|
+
return request;
|
|
9
|
+
}
|
|
10
|
+
export function resolveLocalEditorStatusDiagnosticLocator(diagnostic) {
|
|
11
|
+
const actionLocator = diagnostic.actions?.find(action => action.kind === 'locate')?.locator;
|
|
12
|
+
const locator = actionLocator ?? diagnostic.locator ?? {};
|
|
13
|
+
return {
|
|
14
|
+
...locator,
|
|
15
|
+
...(diagnostic.scopeId && !locator.scopeId
|
|
16
|
+
? { scopeId: diagnostic.scopeId }
|
|
17
|
+
: {}),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function resolveLocalEditorStatusDiagnosticLocatePlan(diagnostic, currentScopeId) {
|
|
21
|
+
const locator = resolveLocalEditorStatusDiagnosticLocator(diagnostic);
|
|
22
|
+
const crossScope = !!locator.scopeId && locator.scopeId !== currentScopeId;
|
|
23
|
+
const hasTarget = !!(locator.objectId
|
|
24
|
+
|| locator.rowId
|
|
25
|
+
|| locator.prefabNodeId
|
|
26
|
+
|| locator.assetId
|
|
27
|
+
|| locator.path);
|
|
28
|
+
return {
|
|
29
|
+
locator,
|
|
30
|
+
canLocate: hasTarget && !crossScope,
|
|
31
|
+
crossScope,
|
|
32
|
+
openAssetBrowser: !!locator.assetId,
|
|
33
|
+
openInspector: !!locator.path,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function shouldCloseLocalEditorStatusCenter(input) {
|
|
37
|
+
return input.open && !input.inEditor;
|
|
38
|
+
}
|
|
39
|
+
export function createLocalEditorStatusCenterViewModel(state) {
|
|
40
|
+
const diagnostics = resolveLocalEditorStatusDiagnostics(state);
|
|
41
|
+
const entries = diagnostics.map(diagnostic => ({
|
|
42
|
+
diagnostic,
|
|
43
|
+
copyText: formatLocalEditorStatusDiagnostic(diagnostic),
|
|
44
|
+
}));
|
|
45
|
+
const errorCount = diagnostics.filter(item => item.severity === 'error').length;
|
|
46
|
+
const warningCount = diagnostics.filter(item => item.severity === 'warning').length;
|
|
47
|
+
const infoCount = diagnostics.filter(item => item.severity === 'info').length;
|
|
48
|
+
return {
|
|
49
|
+
diagnostics,
|
|
50
|
+
entries,
|
|
51
|
+
severity: resolveLocalEditorStatusDiagnosticSeverity(diagnostics),
|
|
52
|
+
icon: errorCount > 0 || warningCount > 0 ? 'warning' : 'status',
|
|
53
|
+
errorCount,
|
|
54
|
+
warningCount,
|
|
55
|
+
infoCount,
|
|
56
|
+
summary: diagnostics.length > 0
|
|
57
|
+
? `${errorCount} 个错误 · ${warningCount} 个警告 · ${infoCount} 条信息。条目包含阶段、来源、revision 与结构化详情。`
|
|
58
|
+
: `当前状态正常${state?.status ? ` · ${state.status}` : ''}`,
|
|
59
|
+
copyAllText: entries.map(entry => entry.copyText).join('\n\n'),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export function resolveLocalEditorStatusDiagnostics(state) {
|
|
63
|
+
if (!state)
|
|
64
|
+
return [];
|
|
65
|
+
return state.statusDiagnostics ?? [];
|
|
66
|
+
}
|
|
67
|
+
export function resolveLocalEditorStatusDiagnosticSeverity(diagnostics) {
|
|
68
|
+
if (diagnostics.some(item => item.severity === 'error'))
|
|
69
|
+
return 'error';
|
|
70
|
+
if (diagnostics.some(item => item.severity === 'warning'))
|
|
71
|
+
return 'warning';
|
|
72
|
+
return 'default';
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=local-editor-ui-status-diagnostics.js.map
|
|
@@ -0,0 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O,EAAE,WAAW,CAAC,MAAM,GAAG,CAAC;YAC7B,CAAC,CAAC,GAAG,UAAU,UAAU,YAAY,UAAU,SAAS,iCAAiC;YACzF,CAAC,CAAC,SAAS,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;QACxD,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KAC/D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,KAAgD;IAEhD,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IACtB,OAAO,KAAK,CAAC,iBAAiB,IAAI,EAAE,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,0CAA0C,CACxD,WAA0D;IAE1D,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,OAAO,CAAC;QAAE,OAAO,OAAO,CAAC;IACxE,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC;QAAE,OAAO,SAAS,CAAC;IAC5E,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["import type {\n EditorDiagnosticLocator,\n} from '@fps-games/editor-protocol';\nimport type {\n LocalEditorBrowserStatusDiagnostic,\n LocalEditorBrowserUiState,\n} from './local-editor-ui-types';\nimport { formatLocalEditorStatusDiagnostic } from './local-editor-ui-status-format';\n\ntype LocalEditorStatusInput = Pick<\n LocalEditorBrowserUiState,\n 'status' | 'statusDiagnostics'\n>;\n\nexport interface LocalEditorStatusCenterViewModel {\n diagnostics: LocalEditorBrowserStatusDiagnostic[];\n entries: Array<{\n diagnostic: LocalEditorBrowserStatusDiagnostic;\n copyText: string;\n }>;\n severity: 'default' | 'warning' | 'error';\n icon: 'status' | 'warning';\n errorCount: number;\n warningCount: number;\n infoCount: number;\n summary: string;\n copyAllText: string;\n}\n\nexport interface LocalEditorStatusDiagnosticLocatePlan {\n locator: EditorDiagnosticLocator;\n canLocate: boolean;\n crossScope: boolean;\n openAssetBrowser: boolean;\n openInspector: boolean;\n}\n\nexport interface LocalEditorStatusDiagnosticRequestToken {\n settled: boolean;\n}\n\nexport function settleLocalEditorStatusDiagnosticRequest<\n TRequest extends LocalEditorStatusDiagnosticRequestToken,\n>(\n current: TRequest | null,\n request: TRequest | null,\n accepted: boolean | void,\n): TRequest | null {\n if (!request || current !== request) return current;\n if (accepted === false) return null;\n request.settled = true;\n return request;\n}\n\nexport function resolveLocalEditorStatusDiagnosticLocator(\n diagnostic: LocalEditorBrowserStatusDiagnostic,\n): EditorDiagnosticLocator {\n const actionLocator = diagnostic.actions?.find(action => action.kind === 'locate')?.locator;\n const locator = actionLocator ?? diagnostic.locator ?? {};\n return {\n ...locator,\n ...(diagnostic.scopeId && !locator.scopeId\n ? { scopeId: diagnostic.scopeId }\n : {}),\n };\n}\n\nexport function resolveLocalEditorStatusDiagnosticLocatePlan(\n diagnostic: LocalEditorBrowserStatusDiagnostic,\n currentScopeId: string,\n): LocalEditorStatusDiagnosticLocatePlan {\n const locator = resolveLocalEditorStatusDiagnosticLocator(diagnostic);\n const crossScope = !!locator.scopeId && locator.scopeId !== currentScopeId;\n const hasTarget = !!(\n locator.objectId\n || locator.rowId\n || locator.prefabNodeId\n || locator.assetId\n || locator.path\n );\n return {\n locator,\n canLocate: hasTarget && !crossScope,\n crossScope,\n openAssetBrowser: !!locator.assetId,\n openInspector: !!locator.path,\n };\n}\n\nexport function shouldCloseLocalEditorStatusCenter(input: {\n inEditor: boolean;\n open: boolean;\n}): boolean {\n return input.open && !input.inEditor;\n}\n\nexport function createLocalEditorStatusCenterViewModel(\n state: LocalEditorStatusInput | null | undefined,\n): LocalEditorStatusCenterViewModel {\n const diagnostics = resolveLocalEditorStatusDiagnostics(state);\n const entries = diagnostics.map(diagnostic => ({\n diagnostic,\n copyText: formatLocalEditorStatusDiagnostic(diagnostic),\n }));\n const errorCount = diagnostics.filter(item => item.severity === 'error').length;\n const warningCount = diagnostics.filter(item => item.severity === 'warning').length;\n const infoCount = diagnostics.filter(item => item.severity === 'info').length;\n return {\n diagnostics,\n entries,\n severity: resolveLocalEditorStatusDiagnosticSeverity(diagnostics),\n icon: errorCount > 0 || warningCount > 0 ? 'warning' : 'status',\n errorCount,\n warningCount,\n infoCount,\n summary: diagnostics.length > 0\n ? `${errorCount} 个错误 · ${warningCount} 个警告 · ${infoCount} 条信息。条目包含阶段、来源、revision 与结构化详情。`\n : `当前状态正常${state?.status ? ` · ${state.status}` : ''}`,\n copyAllText: entries.map(entry => entry.copyText).join('\\n\\n'),\n };\n}\n\nexport function resolveLocalEditorStatusDiagnostics(\n state: LocalEditorStatusInput | null | undefined,\n): LocalEditorBrowserStatusDiagnostic[] {\n if (!state) return [];\n return state.statusDiagnostics ?? [];\n}\n\nexport function resolveLocalEditorStatusDiagnosticSeverity(\n diagnostics: readonly LocalEditorBrowserStatusDiagnostic[],\n): 'default' | 'warning' | 'error' {\n if (diagnostics.some(item => item.severity === 'error')) return 'error';\n if (diagnostics.some(item => item.severity === 'warning')) return 'warning';\n return 'default';\n}\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { LocalEditorBrowserStatusDiagnostic } from './local-editor-ui-types';
|
|
2
|
+
export declare function formatLocalEditorStatusDiagnostic(diagnostic: LocalEditorBrowserStatusDiagnostic): string;
|
|
3
|
+
export declare function formatLocalEditorStatusDiagnosticDetails(details: Record<string, unknown>): string;
|
|
4
|
+
//# sourceMappingURL=local-editor-ui-status-format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-editor-ui-status-format.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-status-format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAElF,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,kCAAkC,GAC7C,MAAM,CAkCR;AAED,wBAAgB,wCAAwC,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAMjG"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export function formatLocalEditorStatusDiagnostic(diagnostic) {
|
|
2
|
+
const locateAction = diagnostic.actions?.find(action => action.kind === 'locate');
|
|
3
|
+
const actionLocator = locateAction?.locator;
|
|
4
|
+
const baseLocator = actionLocator ?? diagnostic.locator ?? {};
|
|
5
|
+
const locator = {
|
|
6
|
+
...baseLocator,
|
|
7
|
+
...(diagnostic.scopeId && !baseLocator.scopeId
|
|
8
|
+
? { scopeId: diagnostic.scopeId }
|
|
9
|
+
: {}),
|
|
10
|
+
};
|
|
11
|
+
const location = [
|
|
12
|
+
locator.scopeId,
|
|
13
|
+
locator.rowId,
|
|
14
|
+
locator.objectId,
|
|
15
|
+
locator.prefabAssetId,
|
|
16
|
+
locator.prefabNodeId,
|
|
17
|
+
locator.assetId,
|
|
18
|
+
locator.materialSlotId,
|
|
19
|
+
locator.path,
|
|
20
|
+
]
|
|
21
|
+
.filter(Boolean)
|
|
22
|
+
.join(' / ');
|
|
23
|
+
return [
|
|
24
|
+
`[${diagnostic.severity.toUpperCase()}] ${diagnostic.code}`,
|
|
25
|
+
diagnostic.message,
|
|
26
|
+
diagnostic.suggestion ? `Suggestion: ${diagnostic.suggestion}` : '',
|
|
27
|
+
diagnostic.phase ? `Phase: ${diagnostic.phase}` : '',
|
|
28
|
+
`Source: ${diagnostic.source}`,
|
|
29
|
+
diagnostic.producer ? `Producer: ${diagnostic.producer}` : '',
|
|
30
|
+
location ? `Location: ${location}` : '',
|
|
31
|
+
diagnostic.documentRevision != null ? `Document revision: ${diagnostic.documentRevision}` : '',
|
|
32
|
+
diagnostic.projectionRevision != null ? `Projection revision: ${diagnostic.projectionRevision}` : '',
|
|
33
|
+
diagnostic.details ? `Details: ${formatLocalEditorStatusDiagnosticDetails(diagnostic.details)}` : '',
|
|
34
|
+
].filter(Boolean).join('\n');
|
|
35
|
+
}
|
|
36
|
+
export function formatLocalEditorStatusDiagnosticDetails(details) {
|
|
37
|
+
try {
|
|
38
|
+
return JSON.stringify(details);
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
return '[unserializable details]';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=local-editor-ui-status-format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-editor-ui-status-format.js","sourceRoot":"","sources":["../src/local-editor-ui-status-format.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,iCAAiC,CAC/C,UAA8C;IAE9C,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC;IAClF,MAAM,aAAa,GAAG,YAAY,EAAE,OAAO,CAAC;IAC5C,MAAM,WAAW,GAAG,aAAa,IAAI,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC;IAC9D,MAAM,OAAO,GAAG;QACd,GAAG,WAAW;QACd,GAAG,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO;YAC5C,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE;YACjC,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;IACF,MAAM,QAAQ,GAAG;QACf,OAAO,CAAC,OAAO;QACf,OAAO,CAAC,KAAK;QACb,OAAO,CAAC,QAAQ;QAChB,OAAO,CAAC,aAAa;QACrB,OAAO,CAAC,YAAY;QACpB,OAAO,CAAC,OAAO;QACf,OAAO,CAAC,cAAc;QACtB,OAAO,CAAC,IAAI;KACb;SACE,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,KAAK,CA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\n diagnostic: LocalEditorBrowserStatusDiagnostic,\n): string {\n const locateAction = diagnostic.actions?.find(action => action.kind === 'locate');\n const actionLocator = locateAction?.locator;\n const baseLocator = actionLocator ?? diagnostic.locator ?? {};\n const locator = {\n ...baseLocator,\n ...(diagnostic.scopeId && !baseLocator.scopeId\n ? { scopeId: diagnostic.scopeId }\n : {}),\n };\n const location = [\n locator.scopeId,\n locator.rowId,\n locator.objectId,\n locator.prefabAssetId,\n locator.prefabNodeId,\n locator.assetId,\n locator.materialSlotId,\n locator.path,\n ]\n .filter(Boolean)\n .join(' / ');\n return [\n `[${diagnostic.severity.toUpperCase()}] ${diagnostic.code}`,\n diagnostic.message,\n diagnostic.suggestion ? `Suggestion: ${diagnostic.suggestion}` : '',\n diagnostic.phase ? `Phase: ${diagnostic.phase}` : '',\n `Source: ${diagnostic.source}`,\n diagnostic.producer ? `Producer: ${diagnostic.producer}` : '',\n location ? `Location: ${location}` : '',\n diagnostic.documentRevision != null ? `Document revision: ${diagnostic.documentRevision}` : '',\n diagnostic.projectionRevision != null ? `Projection revision: ${diagnostic.projectionRevision}` : '',\n diagnostic.details ? `Details: ${formatLocalEditorStatusDiagnosticDetails(diagnostic.details)}` : '',\n ].filter(Boolean).join('\\n');\n}\n\nexport function formatLocalEditorStatusDiagnosticDetails(details: Record<string, unknown>): string {\n try {\n return JSON.stringify(details);\n } catch {\n return '[unserializable details]';\n }\n}\n"]}
|
package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-ui-structured-drag-policy.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-structured-drag-policy.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kCAAkC,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAExF,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MA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kCAAkC,CAAC,WAAW;IAC7D,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACrC,IAAI,EAAE,6BAA6B,GAAG,IAAI,CAAC;IAC3C,OAAO,EAAE,gCAAgC,GAAG,IAAI,CAAC;IACjD,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,8CAA8C,CAAC,WAAW;IACzE,MAAM,EAAE,+BAA+B,CAAC;IACxC,OAAO,EAAE,gCAAgC,CAAC;IAC1C,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,WAAW,CAAC,KAAK,EAAE,kCAAkC,GAAG,WAAW,CAAC;IACpE,iBAAiB,CAAC,UAAU,EAAE,WAAW,GAAG,OAAO,CAAC;CACrD;AAMD,wBAAgB,yCAAyC,CAAC,WAAW,EACnE,KAAK,EAAE,8CAA8C,CAAC,WAAW,CAAC,GACjE,kCAAkC,CAAC,WAAW,CAAC,CAyBjD;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,+BAA+B,EACvC,OAAO,EAAE,gCAAgC,GACxC,6BAA6B,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"local-editor-ui-structured-drag-policy.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-structured-drag-policy.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kCAAkC,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAExF,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mCAAmC;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,IAAI,EAAE,6BAA6B,CAA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