@fps-games/editor 0.2.0-beta.4 → 0.2.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-bridge/capabilities/editor-state.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/editor-state.js +12 -6
- package/dist/agent-bridge/capabilities/editor-state.js.map +1 -1
- package/dist/agent-bridge/capabilities/hierarchy.d.ts +4 -0
- package/dist/agent-bridge/capabilities/hierarchy.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/hierarchy.js +209 -0
- package/dist/agent-bridge/capabilities/hierarchy.js.map +1 -0
- package/dist/agent-bridge/capabilities/prefabs.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/prefabs.js +208 -73
- package/dist/agent-bridge/capabilities/prefabs.js.map +1 -1
- package/dist/agent-bridge/capabilities/scene-objects.d.ts +3 -4
- package/dist/agent-bridge/capabilities/scene-objects.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/scene-objects.js +24 -23
- package/dist/agent-bridge/capabilities/scene-objects.js.map +1 -1
- package/dist/agent-bridge/capabilities/shadows.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/shadows.js +829 -66
- package/dist/agent-bridge/capabilities/shadows.js.map +1 -1
- package/dist/agent-bridge/capabilities/ui-regions.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/ui-regions.js +19 -1
- package/dist/agent-bridge/capabilities/ui-regions.js.map +1 -1
- package/dist/agent-bridge/capabilities/viewport.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/viewport.js +22 -9
- package/dist/agent-bridge/capabilities/viewport.js.map +1 -1
- package/dist/agent-bridge/capability-sources.d.ts.map +1 -1
- package/dist/agent-bridge/capability-sources.js +2 -0
- package/dist/agent-bridge/capability-sources.js.map +1 -1
- package/dist/agent-bridge/register.d.ts.map +1 -1
- package/dist/agent-bridge/register.js +194 -0
- package/dist/agent-bridge/register.js.map +1 -1
- package/dist/agent-bridge/shared.d.ts +231 -11
- package/dist/agent-bridge/shared.d.ts.map +1 -1
- package/dist/agent-bridge/shared.js +162 -20
- package/dist/agent-bridge/shared.js.map +1 -1
- package/dist/agent-bridge/source-types.d.ts +17 -1
- package/dist/agent-bridge/source-types.d.ts.map +1 -1
- package/dist/agent-bridge/source-types.js.map +1 -1
- package/dist/build-info.json +57 -42
- package/dist/index.d.ts +7 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/internal/babylon-preview-engine.d.ts +3 -0
- package/dist/internal/babylon-preview-engine.d.ts.map +1 -0
- package/dist/internal/babylon-preview-engine.js +11 -0
- package/dist/internal/babylon-preview-engine.js.map +1 -0
- package/dist/internal/material-preview.d.ts +22 -0
- package/dist/internal/material-preview.d.ts.map +1 -0
- package/dist/internal/material-preview.js +186 -0
- package/dist/internal/material-preview.js.map +1 -0
- package/dist/internal/product-local-editor-cleanup.d.ts +5 -0
- package/dist/internal/product-local-editor-cleanup.d.ts.map +1 -0
- package/dist/internal/product-local-editor-cleanup.js +20 -0
- package/dist/internal/product-local-editor-cleanup.js.map +1 -0
- package/dist/internal/project-model-preview.d.ts +4 -0
- package/dist/internal/project-model-preview.d.ts.map +1 -0
- package/dist/internal/project-model-preview.js +359 -0
- package/dist/internal/project-model-preview.js.map +1 -0
- package/dist/local-editor-agent-actions.d.ts +2 -4
- package/dist/local-editor-agent-actions.d.ts.map +1 -1
- package/dist/local-editor-agent-actions.js +56 -32
- package/dist/local-editor-agent-actions.js.map +1 -1
- package/dist/local-editor-agent-context.d.ts +17 -6
- package/dist/local-editor-agent-context.d.ts.map +1 -1
- package/dist/local-editor-agent-context.js +47 -0
- package/dist/local-editor-agent-context.js.map +1 -1
- package/dist/local-editor-harness.d.ts +353 -35
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +4115 -1313
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-marker-graph.d.ts +15 -15
- package/dist/local-editor-marker-graph.d.ts.map +1 -1
- package/dist/local-editor-marker-graph.js +3 -0
- package/dist/local-editor-marker-graph.js.map +1 -1
- package/dist/local-editor-performance-stats.d.ts +3 -2
- package/dist/local-editor-performance-stats.d.ts.map +1 -1
- package/dist/local-editor-performance-stats.js.map +1 -1
- package/dist/local-editor-prefab-stage-transaction.d.ts +19 -0
- package/dist/local-editor-prefab-stage-transaction.d.ts.map +1 -0
- package/dist/local-editor-prefab-stage-transaction.js +45 -0
- package/dist/local-editor-prefab-stage-transaction.js.map +1 -0
- package/dist/local-editor-scene-view-interaction-runtime.d.ts +3 -1
- package/dist/local-editor-scene-view-interaction-runtime.d.ts.map +1 -1
- package/dist/local-editor-scene-view-interaction-runtime.js +24 -0
- package/dist/local-editor-scene-view-interaction-runtime.js.map +1 -1
- package/dist/local-editor-tools.d.ts +19 -0
- package/dist/local-editor-tools.d.ts.map +1 -0
- package/dist/local-editor-tools.js +56 -0
- package/dist/local-editor-tools.js.map +1 -0
- package/dist/playable-babylon-rendering.d.ts +9 -0
- package/dist/playable-babylon-rendering.d.ts.map +1 -1
- package/dist/playable-babylon-rendering.js +162 -6
- package/dist/playable-babylon-rendering.js.map +1 -1
- package/dist/playable-local-editor-entry.d.ts +68 -0
- package/dist/playable-local-editor-entry.d.ts.map +1 -0
- package/dist/playable-local-editor-entry.js +424 -0
- package/dist/playable-local-editor-entry.js.map +1 -0
- package/dist/playable-local-editor-host.d.ts +55 -29
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js +50 -11
- package/dist/playable-local-editor-host.js.map +1 -1
- package/dist/playable-product-local-editor.d.ts +10 -12
- package/dist/playable-product-local-editor.d.ts.map +1 -1
- package/dist/playable-product-local-editor.js +178 -85
- package/dist/playable-product-local-editor.js.map +1 -1
- package/dist/playable-product-projection-preview.d.ts +4 -1
- package/dist/playable-product-projection-preview.d.ts.map +1 -1
- package/dist/playable-product-projection-preview.js +122 -5
- package/dist/playable-product-projection-preview.js.map +1 -1
- package/dist/playable-product-rendering.d.ts +12 -0
- package/dist/playable-product-rendering.d.ts.map +1 -1
- package/dist/playable-product-rendering.js +128 -6
- package/dist/playable-product-rendering.js.map +1 -1
- package/dist/playable-product-scene-capabilities.d.ts +24 -7
- package/dist/playable-product-scene-capabilities.d.ts.map +1 -1
- package/dist/playable-product-scene-capabilities.js +180 -17
- package/dist/playable-product-scene-capabilities.js.map +1 -1
- package/dist/playable-project-mode.d.ts +17 -0
- package/dist/playable-project-mode.d.ts.map +1 -0
- package/dist/playable-project-mode.js +2 -0
- package/dist/playable-project-mode.js.map +1 -0
- package/dist/playable-runtime-babylon.d.ts +3 -6
- package/dist/playable-runtime-babylon.d.ts.map +1 -1
- package/dist/playable-runtime-babylon.js +1 -5
- package/dist/playable-runtime-babylon.js.map +1 -1
- package/dist/playable-sdk.d.ts +16 -9
- package/dist/playable-sdk.d.ts.map +1 -1
- package/dist/playable-sdk.js +6 -4
- package/dist/playable-sdk.js.map +1 -1
- package/dist/playable-standard-project.d.ts +23 -14
- package/dist/playable-standard-project.d.ts.map +1 -1
- package/dist/playable-standard-project.js +57 -20
- package/dist/playable-standard-project.js.map +1 -1
- package/dist/vite-client.d.ts +4 -0
- package/node_modules/@babel/helper-string-parser/lib/index.js +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -1
- package/node_modules/@babel/parser/lib/index.js +0 -1
- package/node_modules/@babel/types/lib/asserts/assertNode.js +0 -1
- package/node_modules/@babel/types/lib/asserts/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/ast-types/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +0 -1
- package/node_modules/@babel/types/lib/builders/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js +0 -1
- package/node_modules/@babel/types/lib/builders/generated/uppercase.js +0 -1
- package/node_modules/@babel/types/lib/builders/productions.js +0 -1
- package/node_modules/@babel/types/lib/builders/react/buildChildren.js +0 -1
- package/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +0 -1
- package/node_modules/@babel/types/lib/builders/validateNode.js +0 -1
- package/node_modules/@babel/types/lib/clone/clone.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeep.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneNode.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +0 -1
- package/node_modules/@babel/types/lib/comments/addComment.js +0 -1
- package/node_modules/@babel/types/lib/comments/addComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritInnerComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritsComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/removeComments.js +0 -1
- package/node_modules/@babel/types/lib/constants/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/constants/index.js +0 -1
- package/node_modules/@babel/types/lib/converters/ensureBlock.js +0 -1
- package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +0 -1
- package/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +0 -1
- package/node_modules/@babel/types/lib/converters/toBlock.js +0 -1
- package/node_modules/@babel/types/lib/converters/toComputedKey.js +0 -1
- package/node_modules/@babel/types/lib/converters/toExpression.js +0 -1
- package/node_modules/@babel/types/lib/converters/toIdentifier.js +0 -1
- package/node_modules/@babel/types/lib/converters/toKeyAlias.js +0 -1
- package/node_modules/@babel/types/lib/converters/toSequenceExpression.js +0 -1
- package/node_modules/@babel/types/lib/converters/toStatement.js +0 -1
- package/node_modules/@babel/types/lib/converters/valueToNode.js +0 -1
- package/node_modules/@babel/types/lib/definitions/core.js +0 -1
- package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +0 -1
- package/node_modules/@babel/types/lib/definitions/experimental.js +0 -1
- package/node_modules/@babel/types/lib/definitions/flow.js +0 -1
- package/node_modules/@babel/types/lib/definitions/index.js +0 -1
- package/node_modules/@babel/types/lib/definitions/jsx.js +0 -1
- package/node_modules/@babel/types/lib/definitions/misc.js +0 -1
- package/node_modules/@babel/types/lib/definitions/placeholders.js +0 -1
- package/node_modules/@babel/types/lib/definitions/typescript.js +0 -1
- package/node_modules/@babel/types/lib/definitions/utils.js +0 -1
- package/node_modules/@babel/types/lib/index.js +0 -1
- package/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +0 -1
- package/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +0 -1
- package/node_modules/@babel/types/lib/modifications/inherits.js +0 -1
- package/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +0 -1
- package/node_modules/@babel/types/lib/modifications/removeProperties.js +0 -1
- package/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +0 -1
- package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getFunctionName.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +0 -1
- package/node_modules/@babel/types/lib/traverse/traverse.js +0 -1
- package/node_modules/@babel/types/lib/traverse/traverseFast.js +0 -1
- package/node_modules/@babel/types/lib/utils/deprecationWarning.js +0 -1
- package/node_modules/@babel/types/lib/utils/inherit.js +0 -1
- package/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +0 -1
- package/node_modules/@babel/types/lib/utils/shallowEqual.js +0 -1
- package/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +0 -1
- package/node_modules/@babel/types/lib/validators/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/validators/is.js +0 -1
- package/node_modules/@babel/types/lib/validators/isBinding.js +0 -1
- package/node_modules/@babel/types/lib/validators/isBlockScoped.js +0 -1
- package/node_modules/@babel/types/lib/validators/isImmutable.js +0 -1
- package/node_modules/@babel/types/lib/validators/isLet.js +0 -1
- package/node_modules/@babel/types/lib/validators/isNode.js +0 -1
- package/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +0 -1
- package/node_modules/@babel/types/lib/validators/isPlaceholderType.js +0 -1
- package/node_modules/@babel/types/lib/validators/isReferenced.js +0 -1
- package/node_modules/@babel/types/lib/validators/isScope.js +0 -1
- package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +0 -1
- package/node_modules/@babel/types/lib/validators/isType.js +0 -1
- package/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +0 -1
- package/node_modules/@babel/types/lib/validators/isValidIdentifier.js +0 -1
- package/node_modules/@babel/types/lib/validators/isVar.js +0 -1
- package/node_modules/@babel/types/lib/validators/matchesPattern.js +0 -1
- package/node_modules/@babel/types/lib/validators/react/isCompatTag.js +0 -1
- package/node_modules/@babel/types/lib/validators/react/isReactComponent.js +0 -1
- package/node_modules/@babel/types/lib/validators/validate.js +0 -1
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.d.ts +69 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.js +132 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.metadata.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.metadata.js +7 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoader.d.ts +14 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoader.js +328 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoadingOptions.d.ts +9 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoadingOptions.js +1 -0
- package/node_modules/@babylonjs/loaders/BVH/index.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/BVH/index.js +3 -0
- package/node_modules/@babylonjs/loaders/OBJ/index.d.ts +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/index.js +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/mtlFileLoader.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/OBJ/mtlFileLoader.js +230 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.d.ts +136 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.js +317 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.metadata.d.ts +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.metadata.js +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/objLoadingOptions.d.ts +47 -0
- package/node_modules/@babylonjs/loaders/OBJ/objLoadingOptions.js +1 -0
- package/node_modules/@babylonjs/loaders/OBJ/solidParser.d.ts +175 -0
- package/node_modules/@babylonjs/loaders/OBJ/solidParser.js +903 -0
- package/node_modules/@babylonjs/loaders/SPLAT/index.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/SPLAT/index.js +3 -0
- package/node_modules/@babylonjs/loaders/SPLAT/sog.d.ts +84 -0
- package/node_modules/@babylonjs/loaders/SPLAT/sog.js +294 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatDefs.d.ts +26 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatDefs.js +10 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.d.ts +100 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.js +536 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.metadata.d.ts +20 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.metadata.js +15 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatLoadingOptions.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatLoadingOptions.js +1 -0
- package/node_modules/@babylonjs/loaders/SPLAT/spz.d.ts +11 -0
- package/node_modules/@babylonjs/loaders/SPLAT/spz.js +168 -0
- package/node_modules/@babylonjs/loaders/STL/index.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/STL/index.js +1 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.d.ts +78 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.js +238 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.metadata.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.metadata.js +7 -0
- package/node_modules/@babylonjs/loaders/bvh/license.md +21 -0
- package/node_modules/@babylonjs/loaders/dynamic.d.ts +5 -0
- package/node_modules/@babylonjs/loaders/dynamic.js +56 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFBinaryExtension.d.ts +16 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFBinaryExtension.js +64 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoader.d.ts +144 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoader.js +1841 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderInterfaces.d.ts +412 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderInterfaces.js +95 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderUtils.d.ts +71 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderUtils.js +254 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFMaterialsCommonExtension.d.ts +13 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFMaterialsCommonExtension.js +130 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/index.d.ts +5 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/index.js +5 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_area.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_area.js +93 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_ies.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_ies.js +83 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +48 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_image_based.js +115 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +94 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_meshopt_compression.js +50 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_avif.d.ts +34 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_avif.js +38 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_webp.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_webp.js +37 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +53 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/ExtrasAsMetadata.js +73 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.d.ts +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.js +251 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.js +77 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +92 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.d.ts +355 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.js +1678 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.js +19 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/index.d.ts +3 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/index.js +3 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.d.ts +70 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.js +438 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity.d.ts +38 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity.js +150 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_lights_punctual.js +91 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_anisotropy.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_anisotropy.js +65 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_clearcoat.js +79 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_coat.d.ts +49 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_coat.js +119 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_roughness.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_roughness.js +58 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.js +69 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_dispersion.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_dispersion.js +56 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_fuzz.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_fuzz.js +77 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_ior.d.ts +46 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_ior.js +54 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_iridescence.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_iridescence.js +68 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +80 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_sheen.js +73 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_specular.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_specular.js +76 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_transmission.js +303 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_unlit.js +66 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_variants.d.ts +112 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_variants.js +262 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume.js +82 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume_scatter.d.ts +45 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume_scatter.js +109 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +29 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_mesh_quantization.js +22 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_hoverability.d.ts +31 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_hoverability.js +189 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_selectability.d.ts +30 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_selectability.js +123 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_visibility.d.ts +30 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_visibility.js +66 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_basisu.js +37 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_transform.d.ts +37 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_transform.js +58 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.js +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +56 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.js +228 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_lod.d.ts +104 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_lod.js +337 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +27 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_minecraftMesh.js +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +27 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_sRGBFactors.js +38 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/dynamic.d.ts +4 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/dynamic.js +212 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/gltfPathToObjectConverter.d.ts +45 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/gltfPathToObjectConverter.js +100 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/index.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/index.js +44 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/objectModelMapping.d.ts +306 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/objectModelMapping.js +884 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoader.d.ts +450 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoader.js +2485 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderAnimation.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderAnimation.js +79 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtension.d.ts +165 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtension.js +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.d.ts +25 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.js +32 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderInterfaces.d.ts +262 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderInterfaces.js +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/index.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/index.js +9 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/materialLoadingAdapter.d.ts +364 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/materialLoadingAdapter.js +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/openpbrMaterialLoadingAdapter.d.ts +674 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/openpbrMaterialLoadingAdapter.js +1034 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/pbrMaterialLoadingAdapter.d.ts +705 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/pbrMaterialLoadingAdapter.js +1126 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.d.ts +553 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.js +998 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.metadata.d.ts +15 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.metadata.js +17 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFValidation.d.ts +35 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFValidation.js +131 -0
- package/node_modules/@babylonjs/loaders/glTF/index.d.ts +5 -0
- package/node_modules/@babylonjs/loaders/glTF/index.js +6 -0
- package/node_modules/@babylonjs/loaders/index.d.ts +6 -0
- package/node_modules/@babylonjs/loaders/index.js +7 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-bvhFileLoader.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-bvhFileLoader.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-dynamic.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-dynamic.js +13 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF.js +18 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1FileLoader.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1FileLoader.js +3 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2.js +34 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2FileLoader.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2FileLoader.js +3 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTFFileLoader.d.ts +3 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTFFileLoader.js +4 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-objFileLoader.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-objFileLoader.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-stlFileLoader.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-stlFileLoader.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy.js +10 -0
- package/node_modules/@babylonjs/loaders/license.md +71 -0
- package/node_modules/@babylonjs/loaders/package.json +49 -0
- package/node_modules/@babylonjs/loaders/readme.md +23 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts +22 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js +187 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/index.js +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.d.ts +19 -0
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.js +212 -0
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts +17 -2
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.js +192 -17
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts +2 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js +139 -3
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.d.ts +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.js +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.d.ts +14 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.js +14 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.d.ts +59 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.js +725 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.d.ts +136 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.js +2735 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/package.json +7 -7
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts +2 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.js +2 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.d.ts +2 -0
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js +59 -6
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.js +24 -0
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js +81 -11
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js +2 -8
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +26 -5
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js +396 -363
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts +4 -0
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js +76 -10
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-spatial-overlay-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-spatial-overlay-controller.js +85 -22
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-spatial-overlay-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.d.ts +46 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.js +304 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts +87 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js +1746 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts +11 -3
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js +105 -15
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js +249 -15
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.d.ts +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.d.ts +25 -0
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.js +44 -0
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/package.json +6 -5
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts +13 -11
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.js +9 -9
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.d.ts +35 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.js +136 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.d.ts +46 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.js +283 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.d.ts +2 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.js +36 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts +2 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js +17 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.d.ts +12 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.js +67 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.d.ts +6 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.js +9 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.d.ts +7 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.js +20 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.d.ts +9 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.js +219 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.d.ts +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.js +42 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js +8 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.d.ts +27 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.js +288 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js +157 -77
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js +27 -21
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts +19 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js +44 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts +36 -6
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js +829 -866
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.d.ts +8 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js +1 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.d.ts +7 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.js +20 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts +6 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js +266 -114
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js +34 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js +3 -17
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.d.ts +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.js +44 -62
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts +30 -8
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +911 -698
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts +10 -37
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js +29 -105
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js +29 -110
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts +1 -3
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js +6 -90
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js +9 -54
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts +16 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js +44 -39
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.d.ts +4 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.js +44 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js +35 -44
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.js +40 -24
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js +2 -20
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +114 -343
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts +13 -14
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js +120 -134
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +6 -10
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +2019 -861
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.d.ts +13 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.js +15 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.d.ts +2 -3
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.js +0 -180
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.d.ts +5 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.js +5 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/package.json +15 -4
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.d.ts +22 -0
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.js +226 -0
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts +6 -1
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js +94 -2
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts +24 -2
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.js +70 -10
- package/node_modules/@fps-games/editor-core/dist/editor-session.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-tools.d.ts +113 -0
- package/node_modules/@fps-games/editor-core/dist/editor-tools.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-tools.js +615 -0
- package/node_modules/@fps-games/editor-core/dist/editor-tools.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts +46 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.js +62 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts +1 -0
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.d.ts +11 -2
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.js +12 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.js.map +1 -1
- package/node_modules/@fps-games/editor-core/package.json +14 -6
- package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js +14 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts +14 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js +49 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js +63 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js +48 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js +15 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.d.ts +6 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts +28 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js +314 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.js +27 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.js +285 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts +7 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js +23 -81
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.d.ts +41 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.js +93 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.d.ts +29 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.js +77 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.d.ts +51 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.js +105 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.d.ts +60 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.js +287 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts +6 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js +53 -17
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts +16 -8
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js +10 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts +5 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js +134 -66
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js +21 -14
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts +17 -9
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js +20 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js +49 -10
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.js +130 -20
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.js +12 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.js +136 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.d.ts +36 -51
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.js +40 -65
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts +5 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js +207 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts +18 -7
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js +110 -18
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js +16 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts +5 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js +22 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.js +86 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.js +76 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.d.ts +34 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js +144 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts +16 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js +241 -13
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.d.ts +31 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.js +170 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts +153 -13
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.d.ts +17 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.js +1295 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +54 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js +57 -34
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js +4 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js +20 -198
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.js +5 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js +144 -8
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.js +30 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js +31 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts +5 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js +40 -4
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js +116 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.d.ts +17 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.js +50 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js +101 -5
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.d.ts +5 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.js +31 -17
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.d.ts +14 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.js +101 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.d.ts +23 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.js +180 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/package.json +6 -6
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts +417 -2
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js +692 -2
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts +23 -3
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.d.ts +55 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.js +2 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts +3 -18
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/index.js +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/package.json +2 -2
- package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.js +5 -0
- package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.js.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/vite.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/vite.js +151 -5
- package/node_modules/@fps-games/editor-tooling/dist/vite.js.map +1 -1
- package/node_modules/@fps-games/editor-tooling/package.json +3 -3
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.d.ts +107 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.js +770 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.d.ts +21 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.js +172 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.d.ts +14 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.js +32 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.d.ts +3 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.js +746 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.d.ts +3 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.js +3 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-ui/dist/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/index.js +5 -0
- package/node_modules/@fps-games/editor-ui/dist/index.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.d.ts +7 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.js +29 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.d.ts +2 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.js +95 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.d.ts +28 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.js +387 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/package.json +23 -0
- package/node_modules/@fps-games/playable-assets/package.json +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/index.d.ts +1 -0
- package/node_modules/@fps-games/playable-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/index.js +1 -0
- package/node_modules/@fps-games/playable-contracts/dist/index.js.map +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.d.ts +116 -0
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.js +403 -0
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.js.map +1 -0
- package/node_modules/@fps-games/playable-contracts/package.json +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/index.js +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/index.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-validation.js +5 -25
- package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-validation.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/runtime.d.ts +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/runtime.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/runtime.js +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/runtime.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.d.ts +61 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.js +176 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.js.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.d.ts +84 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.js +362 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.js.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.d.ts +167 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.js +484 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.js.map +1 -0
- package/node_modules/@fps-games/playable-rendering/package.json +2 -2
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.d.ts +5 -0
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.js +1 -0
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.js.map +1 -1
- package/node_modules/@fps-games/playable-runtime/package.json +12 -12
- package/node_modules/@fps-games/playable-runtime-data/package.json +4 -4
- package/node_modules/@fps-games/playable-scene/package.json +2 -2
- package/node_modules/@fps-games/plugin-api/package.json +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-assets/package.json +5 -5
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.d.ts +6 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.js +16 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.d.ts +7 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.js +47 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts +306 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js +1237 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.d.ts +8 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.js +32 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts +2 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.js +2 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/package.json +57 -0
- package/node_modules/@fps-games/plugin-host/package.json +2 -2
- package/node_modules/@fps-games/plugin-markers/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-markers/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-markers/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-markers/package.json +5 -5
- package/node_modules/@fps-games/plugin-materials/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-materials/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-materials/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-materials/package.json +5 -5
- package/node_modules/@fps-games/plugin-rendering/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-rendering/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-rendering/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-rendering/package.json +5 -5
- package/node_modules/@fps-games/plugin-scene/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-scene/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-scene/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-scene/package.json +5 -5
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.d.ts +8 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.js +35 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.js.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.d.ts +11 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.js +14 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.js.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts +2 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js +2 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/package.json +53 -0
- package/node_modules/@fps-games/plugin-shadows/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-shadows/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-shadows/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-shadows/package.json +7 -7
- package/node_modules/@playcanvas/observer/LICENSE +19 -0
- package/node_modules/@playcanvas/observer/README.md +72 -0
- package/node_modules/@playcanvas/observer/dist/index.cjs +2033 -0
- package/node_modules/@playcanvas/observer/dist/index.js +2039 -0
- package/node_modules/@playcanvas/observer/dist/index.mjs +2026 -0
- package/node_modules/@playcanvas/observer/package.json +78 -0
- package/node_modules/@playcanvas/observer/types/event-handle.d.ts +41 -0
- package/node_modules/@playcanvas/observer/types/events.d.ts +162 -0
- package/node_modules/@playcanvas/observer/types/history.d.ts +123 -0
- package/node_modules/@playcanvas/observer/types/index.d.ts +15 -0
- package/node_modules/@playcanvas/observer/types/observer-history.d.ts +32 -0
- package/node_modules/@playcanvas/observer/types/observer-list.d.ts +39 -0
- package/node_modules/@playcanvas/observer/types/observer.d.ts +157 -0
- package/node_modules/@playcanvas/observer/types/utils.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/LICENSE +19 -0
- package/node_modules/@playcanvas/pcui/README.md +164 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/constants.mjs +6 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-evaluator.mjs +119 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-set.mjs +82 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve.mjs +92 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/math.mjs +105 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/Math/color-value.mjs +77 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingBase/index.mjs +215 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingElementToObservers/index.mjs +297 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingObserversToElement/index.mjs +110 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingTwoWay/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/class.mjs +19 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/ArrayInput/index.mjs +498 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/BooleanInput/index.mjs +122 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Button/index.mjs +119 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Canvas/index.mjs +104 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Code/index.mjs +43 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/ColorPicker/index.mjs +619 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Container/index.mjs +642 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Divider/index.mjs +20 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Element/index.mjs +829 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/GradientPicker/index.mjs +1136 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/GridView/index.mjs +448 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/GridViewItem/index.mjs +152 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/InfoBox/index.mjs +90 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/InputElement/index.mjs +186 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Label/index.mjs +124 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/LabelGroup/index.mjs +74 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Menu/index.mjs +174 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/MenuItem/index.mjs +223 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/NumericInput/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Overlay/index.mjs +108 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Panel/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Progress/index.mjs +45 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/RadioButton/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/SelectInput/index.mjs +1085 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/SliderInput/index.mjs +333 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Spinner/index.mjs +34 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TextAreaInput/index.mjs +50 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TextInput/index.mjs +98 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TreeView/index.mjs +1131 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TreeViewItem/index.mjs +500 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/VectorInput/index.mjs +366 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/helpers/search.mjs +194 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/helpers/utils.mjs +43 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/index.mjs +56 -0
- package/node_modules/@playcanvas/pcui/dist/pcui-theme-green.scss +2798 -0
- package/node_modules/@playcanvas/pcui/dist/pcui-theme-grey.scss +2798 -0
- package/node_modules/@playcanvas/pcui/package.json +150 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/constants.mjs +6 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-evaluator.mjs +119 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-set.mjs +82 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve.mjs +92 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/math.mjs +105 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/Math/color-value.mjs +77 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingBase/index.mjs +215 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingElementToObservers/index.mjs +297 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingObserversToElement/index.mjs +110 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingTwoWay/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/class.mjs +19 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ArrayInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ArrayInput/index.mjs +498 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/BooleanInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/BooleanInput/index.mjs +122 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Button/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Button/index.mjs +119 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Canvas/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Canvas/index.mjs +104 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Code/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Code/index.mjs +43 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ColorPicker/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ColorPicker/index.mjs +619 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Container/component.mjs +36 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Container/index.mjs +642 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Divider/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Divider/index.mjs +20 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Element/component.mjs +107 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Element/index.mjs +829 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GradientPicker/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GradientPicker/index.mjs +1136 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridView/component.mjs +38 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridView/index.mjs +448 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridViewItem/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridViewItem/index.mjs +152 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InfoBox/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InfoBox/index.mjs +90 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InputElement/index.mjs +186 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Label/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Label/index.mjs +124 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/LabelGroup/component.mjs +42 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/LabelGroup/index.mjs +74 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Menu/component.mjs +23 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Menu/index.mjs +174 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/MenuItem/index.mjs +223 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/NumericInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/NumericInput/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Overlay/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Overlay/index.mjs +108 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Panel/component.mjs +32 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Panel/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Progress/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Progress/index.mjs +45 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/RadioButton/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/RadioButton/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SelectInput/component.mjs +21 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SelectInput/index.mjs +1085 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SliderInput/component.mjs +12 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SliderInput/index.mjs +333 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Spinner/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Spinner/index.mjs +34 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextAreaInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextAreaInput/index.mjs +50 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextInput/component.mjs +23 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextInput/index.mjs +98 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeView/component.mjs +52 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeView/index.mjs +1131 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeViewItem/component.mjs +33 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeViewItem/index.mjs +500 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/VectorInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/VectorInput/index.mjs +366 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/helpers/search.mjs +194 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/helpers/utils.mjs +43 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/index.mjs +39 -0
- package/node_modules/@playcanvas/pcui/react/package.json +18 -0
- package/node_modules/@playcanvas/pcui/react/types/Math/color-value.d.ts +3 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingBase/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingElementToObservers/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingObserversToElement/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingTwoWay/index.d.ts +54 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/index.d.ts +5 -0
- package/node_modules/@playcanvas/pcui/react/types/class.d.ts +17 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ArrayInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ArrayInput/index.d.ts +140 -0
- package/node_modules/@playcanvas/pcui/react/types/components/BooleanInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/BooleanInput/index.d.ts +41 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Button/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Button/index.d.ts +75 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Canvas/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Canvas/index.d.ts +61 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Code/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Code/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ColorPicker/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ColorPicker/index.d.ts +99 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Container/component.d.ts +15 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Container/index.d.ts +292 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Divider/component.d.ts +10 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Divider/index.d.ts +13 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Element/component.d.ts +23 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Element/index.d.ts +671 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GradientPicker/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GradientPicker/index.d.ts +152 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridView/component.d.ts +14 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridView/index.d.ts +103 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridViewItem/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridViewItem/index.d.ts +82 -0
- package/node_modules/@playcanvas/pcui/react/types/components/InfoBox/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/InfoBox/index.d.ts +71 -0
- package/node_modules/@playcanvas/pcui/react/types/components/InputElement/index.d.ts +84 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Label/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Label/index.d.ts +85 -0
- package/node_modules/@playcanvas/pcui/react/types/components/LabelGroup/component.d.ts +10 -0
- package/node_modules/@playcanvas/pcui/react/types/components/LabelGroup/index.d.ts +62 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Menu/component.d.ts +14 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Menu/index.d.ts +70 -0
- package/node_modules/@playcanvas/pcui/react/types/components/MenuItem/index.d.ts +139 -0
- package/node_modules/@playcanvas/pcui/react/types/components/NumericInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/NumericInput/index.d.ts +173 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Overlay/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Overlay/index.d.ts +53 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Panel/component.d.ts +16 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Panel/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Progress/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Progress/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/react/types/components/RadioButton/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/RadioButton/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SelectInput/component.d.ts +12 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SelectInput/index.d.ts +278 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SliderInput/component.d.ts +10 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SliderInput/index.d.ts +133 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Spinner/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Spinner/index.d.ts +27 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextAreaInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextAreaInput/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextInput/component.d.ts +12 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextInput/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeView/component.d.ts +17 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeView/index.d.ts +359 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeViewItem/component.d.ts +13 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeViewItem/index.d.ts +224 -0
- package/node_modules/@playcanvas/pcui/react/types/components/VectorInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/VectorInput/index.d.ts +176 -0
- package/node_modules/@playcanvas/pcui/react/types/components/components.d.ts +30 -0
- package/node_modules/@playcanvas/pcui/react/types/components/index.d.ts +32 -0
- package/node_modules/@playcanvas/pcui/react/types/helpers/search.d.ts +31 -0
- package/node_modules/@playcanvas/pcui/react/types/helpers/utils.d.ts +2 -0
- package/node_modules/@playcanvas/pcui/react/types/index.d.ts +4 -0
- package/node_modules/@playcanvas/pcui/styles/dist/index.mjs +11 -0
- package/node_modules/@playcanvas/pcui/styles/package.json +17 -0
- package/node_modules/@playcanvas/pcui/types/Math/color-value.d.ts +3 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingBase/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingElementToObservers/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingObserversToElement/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingTwoWay/index.d.ts +54 -0
- package/node_modules/@playcanvas/pcui/types/binding/index.d.ts +5 -0
- package/node_modules/@playcanvas/pcui/types/class.d.ts +17 -0
- package/node_modules/@playcanvas/pcui/types/components/ArrayInput/index.d.ts +140 -0
- package/node_modules/@playcanvas/pcui/types/components/BooleanInput/index.d.ts +41 -0
- package/node_modules/@playcanvas/pcui/types/components/Button/index.d.ts +75 -0
- package/node_modules/@playcanvas/pcui/types/components/Canvas/index.d.ts +61 -0
- package/node_modules/@playcanvas/pcui/types/components/Code/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/types/components/ColorPicker/index.d.ts +99 -0
- package/node_modules/@playcanvas/pcui/types/components/Container/index.d.ts +292 -0
- package/node_modules/@playcanvas/pcui/types/components/Divider/index.d.ts +13 -0
- package/node_modules/@playcanvas/pcui/types/components/Element/index.d.ts +671 -0
- package/node_modules/@playcanvas/pcui/types/components/GradientPicker/index.d.ts +152 -0
- package/node_modules/@playcanvas/pcui/types/components/GridView/index.d.ts +103 -0
- package/node_modules/@playcanvas/pcui/types/components/GridViewItem/index.d.ts +82 -0
- package/node_modules/@playcanvas/pcui/types/components/InfoBox/index.d.ts +71 -0
- package/node_modules/@playcanvas/pcui/types/components/InputElement/index.d.ts +84 -0
- package/node_modules/@playcanvas/pcui/types/components/Label/index.d.ts +85 -0
- package/node_modules/@playcanvas/pcui/types/components/LabelGroup/index.d.ts +62 -0
- package/node_modules/@playcanvas/pcui/types/components/Menu/index.d.ts +70 -0
- package/node_modules/@playcanvas/pcui/types/components/MenuItem/index.d.ts +139 -0
- package/node_modules/@playcanvas/pcui/types/components/NumericInput/index.d.ts +173 -0
- package/node_modules/@playcanvas/pcui/types/components/Overlay/index.d.ts +53 -0
- package/node_modules/@playcanvas/pcui/types/components/Panel/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/types/components/Progress/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/types/components/RadioButton/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/types/components/SelectInput/index.d.ts +278 -0
- package/node_modules/@playcanvas/pcui/types/components/SliderInput/index.d.ts +133 -0
- package/node_modules/@playcanvas/pcui/types/components/Spinner/index.d.ts +27 -0
- package/node_modules/@playcanvas/pcui/types/components/TextAreaInput/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/types/components/TextInput/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/types/components/TreeView/index.d.ts +359 -0
- package/node_modules/@playcanvas/pcui/types/components/TreeViewItem/index.d.ts +224 -0
- package/node_modules/@playcanvas/pcui/types/components/VectorInput/index.d.ts +176 -0
- package/node_modules/@playcanvas/pcui/types/components/index.d.ts +32 -0
- package/node_modules/@playcanvas/pcui/types/helpers/search.d.ts +31 -0
- package/node_modules/@playcanvas/pcui/types/helpers/utils.d.ts +2 -0
- package/node_modules/@playcanvas/pcui/types/index.d.ts +20 -0
- package/node_modules/babylonjs-gltf2interface/babylon.glTF2Interface.d.ts +1655 -0
- package/node_modules/babylonjs-gltf2interface/license.md +71 -0
- package/node_modules/babylonjs-gltf2interface/package.json +26 -0
- package/package.json +31 -19
- package/dist/editor-plugin-hierarchy-command.d.ts +0 -19
- package/dist/editor-plugin-hierarchy-command.d.ts.map +0 -1
- package/dist/editor-plugin-hierarchy-command.js +0 -119
- package/dist/editor-plugin-hierarchy-command.js.map +0 -1
- package/node_modules/@babel/helper-string-parser/lib/index.js.map +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
- package/node_modules/@babel/parser/lib/index.js.map +0 -1
- package/node_modules/@babel/types/lib/asserts/assertNode.js.map +0 -1
- package/node_modules/@babel/types/lib/asserts/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/productions.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/validateNode.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/clone.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeep.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneNode.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/addComment.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/addComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritsComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/removeComments.js.map +0 -1
- package/node_modules/@babel/types/lib/constants/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/constants/index.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/ensureBlock.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toBlock.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toComputedKey.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toIdentifier.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toStatement.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/valueToNode.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/core.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/experimental.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/flow.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/index.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/jsx.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/misc.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/placeholders.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/typescript.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/utils.js.map +0 -1
- package/node_modules/@babel/types/lib/index.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/inherits.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/removeProperties.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +0 -1
- package/node_modules/@babel/types/lib/traverse/traverse.js.map +0 -1
- package/node_modules/@babel/types/lib/traverse/traverseFast.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/inherit.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/shallowEqual.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/is.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isBinding.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isImmutable.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isLet.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isNode.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isReferenced.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isScope.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isType.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isVar.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/matchesPattern.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/validate.js.map +0 -1
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts +0 -37
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js +0 -451
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts +0 -49
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js +0 -627
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.d.ts +0 -52
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js +0 -450
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts +0 -21
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js +0 -75
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.d.ts +0 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.js +0 -186
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.d.ts +0 -5
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js +0 -98
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts +0 -63
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js +0 -301
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js.map +0 -1
|
@@ -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,CAAC,CAAC;IACf,OAAO;QACL,IAAI,UAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE;QAC3D,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,eAAe,UAAU,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE;QACnE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE;QACpD,WAAW,UAAU,CAAC,MAAM,EAAE;QAC9B,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE;QAC7D,QAAQ,CAAC,CAAC,CAAC,aAAa,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE;QACvC,UAAU,CAAC,gBAAgB,IAAI,IAAI,CAAC,CAAC,CAAC,sBAAsB,UAAU,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE;QAC9F,UAAU,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,wBAAwB,UAAU,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,EAAE;QACpG,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,wCAAwC,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;KACrG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,wCAAwC,CAAC,OAAgC;IACvF,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,0BAA0B,CAAC;IACpC,CAAC;AACH,CAAC","sourcesContent":["import type { LocalEditorBrowserStatusDiagnostic } from './local-editor-ui-types';\n\nexport function formatLocalEditorStatusDiagnostic(\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,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mCAAmC;IAClD,EAAE,EAAE,MAA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AC3C,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,CAAC;CACrC;AAED,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,SAAS,mCAAmC,EAAE,CAAC;IACtD,QAAQ,EAAE,6BAA6B,CAAC;IACxC,WA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K,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,CA0DtC"}
|
package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js
CHANGED
|
@@ -51,20 +51,11 @@ export function resolveLocalEditorStructuredDropSlot(layout, pointer) {
|
|
|
51
51
|
depth: 0,
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
const itemIndex = items
|
|
55
|
-
const item =
|
|
54
|
+
const itemIndex = resolveStructuredLayoutItemIndex(items, pointer.y);
|
|
55
|
+
const item = items[itemIndex];
|
|
56
56
|
const edgeZone = resolveRowEdgeZone(item.rect.height);
|
|
57
57
|
const itemBottom = item.rect.top + item.rect.height;
|
|
58
58
|
if (pointer.y <= item.rect.top + edgeZone) {
|
|
59
|
-
if (isPointerInsideParentBodyAffordance(item, pointer, resolveRowInsertionLineZone(item.rect.height))) {
|
|
60
|
-
return {
|
|
61
|
-
kind: 'inside-parent',
|
|
62
|
-
targetId: item.id,
|
|
63
|
-
previewTargetId: item.id,
|
|
64
|
-
placement: 'inside',
|
|
65
|
-
depth: item.depth + 1,
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
59
|
return {
|
|
69
60
|
kind: 'sibling-before',
|
|
70
61
|
targetId: item.id,
|
|
@@ -74,7 +65,7 @@ export function resolveLocalEditorStructuredDropSlot(layout, pointer) {
|
|
|
74
65
|
};
|
|
75
66
|
}
|
|
76
67
|
if (pointer.y >= itemBottom - edgeZone) {
|
|
77
|
-
return resolveAfterItemSlot(layout, item, pointer);
|
|
68
|
+
return resolveAfterItemSlot(layout, item, itemIndex, pointer);
|
|
78
69
|
}
|
|
79
70
|
if (item.canAcceptInside) {
|
|
80
71
|
return {
|
|
@@ -93,12 +84,12 @@ export function resolveLocalEditorStructuredDropSlot(layout, pointer) {
|
|
|
93
84
|
placement: 'before',
|
|
94
85
|
depth: item.depth,
|
|
95
86
|
}
|
|
96
|
-
: resolveAfterItemSlot(layout, item, pointer);
|
|
87
|
+
: resolveAfterItemSlot(layout, item, itemIndex, pointer);
|
|
97
88
|
}
|
|
98
|
-
function resolveAfterItemSlot(layout, item, pointer) {
|
|
89
|
+
function resolveAfterItemSlot(layout, item, itemIndex, pointer) {
|
|
99
90
|
const desiredDepth = resolvePointerDepth(layout, pointer.x, item.depth);
|
|
100
91
|
if (desiredDepth < item.depth) {
|
|
101
|
-
const promotedTarget = findAncestorItemAtDepth(layout.items,
|
|
92
|
+
const promotedTarget = findAncestorItemAtDepth(layout.items, itemIndex, desiredDepth);
|
|
102
93
|
if (promotedTarget) {
|
|
103
94
|
return {
|
|
104
95
|
kind: 'promote-to-ancestor-sibling',
|
|
@@ -109,7 +100,7 @@ function resolveAfterItemSlot(layout, item, pointer) {
|
|
|
109
100
|
};
|
|
110
101
|
}
|
|
111
102
|
}
|
|
112
|
-
const subtreeTarget = findLastVisibleDescendant(layout.items, item);
|
|
103
|
+
const subtreeTarget = findLastVisibleDescendant(layout.items, item, itemIndex);
|
|
113
104
|
return {
|
|
114
105
|
kind: subtreeTarget.id === item.id ? 'sibling-after' : 'subtree-after',
|
|
115
106
|
targetId: item.id,
|
|
@@ -125,18 +116,20 @@ function resolvePointerDepth(layout, pointerX, fallbackDepth) {
|
|
|
125
116
|
const relativeX = pointerX - firstItem.rect.left;
|
|
126
117
|
return Math.max(0, Math.min(fallbackDepth, Math.round(relativeX / layout.indentWidth)));
|
|
127
118
|
}
|
|
128
|
-
function findAncestorItemAtDepth(items,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
let
|
|
133
|
-
|
|
134
|
-
|
|
119
|
+
function findAncestorItemAtDepth(items, itemIndex, depth) {
|
|
120
|
+
const item = items[itemIndex];
|
|
121
|
+
if (!item || depth >= item.depth)
|
|
122
|
+
return item ?? null;
|
|
123
|
+
for (let index = itemIndex - 1; index >= 0; index -= 1) {
|
|
124
|
+
const candidate = items[index];
|
|
125
|
+
if (candidate.depth === depth)
|
|
126
|
+
return candidate;
|
|
127
|
+
if (candidate.depth < depth)
|
|
128
|
+
break;
|
|
135
129
|
}
|
|
136
|
-
return
|
|
130
|
+
return null;
|
|
137
131
|
}
|
|
138
|
-
function findLastVisibleDescendant(items, item) {
|
|
139
|
-
const itemIndex = items.findIndex(candidate => candidate.id === item.id);
|
|
132
|
+
function findLastVisibleDescendant(items, item, itemIndex) {
|
|
140
133
|
if (itemIndex < 0)
|
|
141
134
|
return item;
|
|
142
135
|
let last = item;
|
|
@@ -148,29 +141,27 @@ function findLastVisibleDescendant(items, item) {
|
|
|
148
141
|
}
|
|
149
142
|
return last;
|
|
150
143
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
144
|
+
function resolveStructuredLayoutItemIndex(items, pointerY) {
|
|
145
|
+
let nearestIndex = 0;
|
|
146
|
+
let nearestDistance = Number.POSITIVE_INFINITY;
|
|
147
|
+
for (let index = 0; index < items.length; index += 1) {
|
|
148
|
+
const item = items[index];
|
|
149
|
+
if (isPointerYInsideRect(pointerY, item.rect))
|
|
150
|
+
return index;
|
|
151
|
+
const distance = Math.abs(pointerY - (item.rect.top + item.rect.height / 2));
|
|
152
|
+
if (distance < nearestDistance) {
|
|
153
|
+
nearestDistance = distance;
|
|
154
|
+
nearestIndex = index;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return nearestIndex;
|
|
160
158
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
163
|
-
return false;
|
|
164
|
-
if (pointer.y <= item.rect.top + insertionLineZone)
|
|
165
|
-
return false;
|
|
166
|
-
return pointer.x >= item.rect.left + item.rect.width * 0.25;
|
|
159
|
+
function isPointerYInsideRect(pointerY, rect) {
|
|
160
|
+
return pointerY >= rect.top && pointerY <= rect.top + rect.height;
|
|
167
161
|
}
|
|
168
162
|
function resolveRowEdgeZone(rowHeight) {
|
|
169
163
|
return Math.max(MIN_ROW_EDGE_ZONE, Math.min(MAX_ROW_EDGE_ZONE, rowHeight * ROW_EDGE_ZONE_RATIO));
|
|
170
164
|
}
|
|
171
|
-
function resolveRowInsertionLineZone(rowHeight) {
|
|
172
|
-
return Math.max(2, Math.min(4, rowHeight * 0.12));
|
|
173
|
-
}
|
|
174
165
|
function createIdleStructuredDragOperation() {
|
|
175
166
|
return {
|
|
176
167
|
status: 'idle',
|
package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-ui-structured-drag-policy.js","sourceRoot":"","sources":["../src/local-editor-ui-structured-drag-policy.ts"],"names":[],"mappings":"AA0EA,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAC5B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEhC,MAAM,UAAU,yCAAyC,CACvD,KAAkE;IAElE,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACrE,OAAO,iCAAiC,EAAE,CAAC;IAC7C,CAAC;IAED,MAAM,IAAI,GAAG,oCAAoC,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/E,IAAI,CAAC,IAAI;QAAE,OAAO,iCAAiC,EAAE,CAAC;IACtD,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,CAAC;QACnC,U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AG,CAAC,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,SAAS,iCAAiC;IACxC,OAAO;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KACjB,CAAC;AACJ,CAAC","sourcesContent":["export type LocalEditorStructuredDragPlacement = 'inside' | 'before' | 'after' | 'root';\n\nexport interface LocalEditorStructuredDragRect {\n left: number;\n top: number;\n width: number;\n height: number;\n}\n\nexport interface LocalEditorStructuredDragLayoutItem {\n id: string;\n depth: number;\n parentId: string | null;\n canAcceptInside: boolean;\n rect: LocalEditorStructuredDragRect;\n}\n\nexport interface LocalEditorStructuredDragLayout {\n items: readonly LocalEditorStructuredDragLayoutItem[];\n viewport: LocalEditorStructuredDragRect;\n indentWidth: number;\n}\n\nexport interface LocalEditorStructuredDragPointer {\n x: number;\n y: number;\n}\n\nexport type LocalEditorStructuredDropSlotKind =\n | 'sibling-before'\n | 'sibling-after'\n | 'inside-parent'\n | 'subtree-after'\n | 'promote-to-ancestor-sibling'\n | 'root-start'\n | 'root-end';\n\nexport interface LocalEditorStructuredDropSlot {\n kind: LocalEditorStructuredDropSlotKind;\n targetId: string | null;\n previewTargetId: string | null;\n placement: LocalEditorStructuredDragPlacement;\n depth: number;\n}\n\nexport interface LocalEditorStructuredDropPreview {\n kind: 'line' | 'inside' | 'root';\n targetId: string | null;\n placement: LocalEditorStructuredDragPlacement;\n depth: number;\n valid: boolean;\n}\n\nexport interface LocalEditorStructuredDragDropInput {\n draggedIds: readonly string[];\n targetId?: string | null;\n placement: LocalEditorStructuredDragPlacement;\n}\n\nexport interface LocalEditorStructuredDragOperation<TResolution> {\n status: 'valid' | 'invalid' | 'idle';\n slot: LocalEditorStructuredDropSlot | null;\n preview: LocalEditorStructuredDropPreview | null;\n resolution: TResolution | null;\n}\n\nexport interface ResolveLocalEditorStructuredDragOperationInput<TResolution> {\n layout: LocalEditorStructuredDragLayout;\n pointer: LocalEditorStructuredDragPointer;\n draggedIds: readonly string[];\n resolveDrop(input: LocalEditorStructuredDragDropInput): TResolution;\n isResolutionValid(resolution: TResolution): boolean;\n}\n\nconst MIN_ROW_EDGE_ZONE = 8;\nconst MAX_ROW_EDGE_ZONE = 14;\nconst ROW_EDGE_ZONE_RATIO = 0.3;\n\nexport function resolveLocalEditorStructuredDragOperation<TResolution>(\n input: ResolveLocalEditorStructuredDragOperationInput<TResolution>,\n): LocalEditorStructuredDragOperation<TResolution> {\n if (input.draggedIds.length === 0 || input.layout.items.length === 0) {\n return createIdleStructuredDragOperation();\n }\n\n const slot = resolveLocalEditorStructuredDropSlot(input.layout, input.pointer);\n if (!slot) return createIdleStructuredDragOperation();\n const resolution = input.resolveDrop({\n draggedIds: input.draggedIds,\n targetId: slot.targetId,\n placement: slot.placement,\n });\n const valid = input.isResolutionValid(resolution);\n return {\n status: valid ? 'valid' : 'invalid',\n slot,\n preview: {\n kind: slot.placement === 'inside' ? 'inside' : slot.placement === 'root' ? 'root' : 'line',\n targetId: slot.previewTargetId,\n placement: slot.placement,\n depth: slot.depth,\n valid,\n },\n resolution,\n };\n}\n\nexport function resolveLocalEditorStructuredDropSlot(\n layout: LocalEditorStructuredDragLayout,\n pointer: LocalEditorStructuredDragPointer,\n): LocalEditorStructuredDropSlot | null {\n const items = layout.items;\n if (items.length === 0) return null;\n const firstItem = items[0]!;\n const lastItem = items[items.length - 1]!;\n if (pointer.y < firstItem.rect.top) {\n return {\n kind: 'root-start',\n targetId: firstItem.id,\n previewTargetId: firstItem.id,\n placement: 'before',\n depth: 0,\n };\n }\n if (pointer.y > lastItem.rect.top + lastItem.rect.height) {\n return {\n kind: 'root-end',\n targetId: null,\n previewTargetId: null,\n placement: 'root',\n depth: 0,\n };\n }\n\n const itemIndex = items.findIndex(item => isPointerInsideRectY(pointer, item.rect));\n const item = itemIndex >= 0 ? items[itemIndex]! : findNearestStructuredLayoutItem(items, pointer.y);\n const edgeZone = resolveRowEdgeZone(item.rect.height);\n const itemBottom = item.rect.top + item.rect.height;\n if (pointer.y <= item.rect.top + edgeZone) {\n if (isPointerInsideParentBodyAffordance(item, pointer, resolveRowInsertionLineZone(item.rect.height))) {\n return {\n kind: 'inside-parent',\n targetId: item.id,\n previewTargetId: item.id,\n placement: 'inside',\n depth: item.depth + 1,\n };\n }\n return {\n kind: 'sibling-before',\n targetId: item.id,\n previewTargetId: item.id,\n placement: 'before',\n depth: item.depth,\n };\n }\n if (pointer.y >= itemBottom - edgeZone) {\n return resolveAfterItemSlot(layout, item, pointer);\n }\n if (item.canAcceptInside) {\n return {\n kind: 'inside-parent',\n targetId: item.id,\n previewTargetId: item.id,\n placement: 'inside',\n depth: item.depth + 1,\n };\n }\n return pointer.y < item.rect.top + item.rect.height / 2\n ? {\n kind: 'sibling-before',\n targetId: item.id,\n previewTargetId: item.id,\n placement: 'before',\n depth: item.depth,\n }\n : resolveAfterItemSlot(layout, item, pointer);\n}\n\nfunction resolveAfterItemSlot(\n layout: LocalEditorStructuredDragLayout,\n item: LocalEditorStructuredDragLayoutItem,\n pointer: LocalEditorStructuredDragPointer,\n): LocalEditorStructuredDropSlot {\n const desiredDepth = resolvePointerDepth(layout, pointer.x, item.depth);\n if (desiredDepth < item.depth) {\n const promotedTarget = findAncestorItemAtDepth(layout.items, item, desiredDepth);\n if (promotedTarget) {\n return {\n kind: 'promote-to-ancestor-sibling',\n targetId: promotedTarget.id,\n previewTargetId: promotedTarget.id,\n placement: 'after',\n depth: promotedTarget.depth,\n };\n }\n }\n const subtreeTarget = findLastVisibleDescendant(layout.items, item);\n return {\n kind: subtreeTarget.id === item.id ? 'sibling-after' : 'subtree-after',\n targetId: item.id,\n previewTargetId: subtreeTarget.id,\n placement: 'after',\n depth: item.depth,\n };\n}\n\nfunction resolvePointerDepth(\n layout: LocalEditorStructuredDragLayout,\n pointerX: number,\n fallbackDepth: number,\n): number {\n const firstItem = layout.items[0];\n if (!firstItem || layout.indentWidth <= 0) return fallbackDepth;\n const relativeX = pointerX - firstItem.rect.left;\n return Math.max(0, Math.min(fallbackDepth, Math.round(relativeX / layout.indentWidth)));\n}\n\nfunction findAncestorItemAtDepth(\n items: readonly LocalEditorStructuredDragLayoutItem[],\n item: LocalEditorStructuredDragLayoutItem,\n depth: number,\n): LocalEditorStructuredDragLayoutItem | null {\n if (depth >= item.depth) return item;\n const byId = new Map(items.map(candidate => [candidate.id, candidate]));\n let cursor: LocalEditorStructuredDragLayoutItem | null = item;\n while (cursor && cursor.depth > depth) {\n cursor = cursor.parentId ? byId.get(cursor.parentId) ?? null : null;\n }\n return cursor && cursor.depth === depth ? cursor : null;\n}\n\nfunction findLastVisibleDescendant(\n items: readonly LocalEditorStructuredDragLayoutItem[],\n item: LocalEditorStructuredDragLayoutItem,\n): LocalEditorStructuredDragLayoutItem {\n const itemIndex = items.findIndex(candidate => candidate.id === item.id);\n if (itemIndex < 0) return item;\n let last = item;\n for (let index = itemIndex + 1; index < items.length; index += 1) {\n const candidate = items[index]!;\n if (candidate.depth <= item.depth) break;\n last = candidate;\n }\n return last;\n}\n\nfunction findNearestStructuredLayoutItem(\n items: readonly LocalEditorStructuredDragLayoutItem[],\n pointerY: number,\n): LocalEditorStructuredDragLayoutItem {\n return items.reduce((nearest, item) => {\n const itemCenter = item.rect.top + item.rect.height / 2;\n const nearestCenter = nearest.rect.top + nearest.rect.height / 2;\n return Math.abs(pointerY - itemCenter) < Math.abs(pointerY - nearestCenter) ? item : nearest;\n }, items[0]!);\n}\n\nfunction isPointerInsideRectY(pointer: LocalEditorStructuredDragPointer, rect: LocalEditorStructuredDragRect): boolean {\n return pointer.y >= rect.top && pointer.y <= rect.top + rect.height;\n}\n\nfunction isPointerInsideParentBodyAffordance(\n item: LocalEditorStructuredDragLayoutItem,\n pointer: LocalEditorStructuredDragPointer,\n insertionLineZone: number,\n): boolean {\n if (!item.canAcceptInside || item.rect.width <= 0) return false;\n if (pointer.y <= item.rect.top + insertionLineZone) return false;\n return pointer.x >= item.rect.left + item.rect.width * 0.25;\n}\n\nfunction resolveRowEdgeZone(rowHeight: number): number {\n return Math.max(MIN_ROW_EDGE_ZONE, Math.min(MAX_ROW_EDGE_ZONE, rowHeight * ROW_EDGE_ZONE_RATIO));\n}\n\nfunction resolveRowInsertionLineZone(rowHeight: number): number {\n return Math.max(2, Math.min(4, rowHeight * 0.12));\n}\n\nfunction createIdleStructuredDragOperation<TResolution>(): LocalEditorStructuredDragOperation<TResolution> {\n return {\n status: 'idle',\n slot: null,\n preview: null,\n resolution: null,\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"local-editor-ui-structured-drag-policy.js","sourceRoot":"","sources":["../src/local-editor-ui-structured-drag-policy.ts"],"names":[],"mappings":"AA0EA,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAC5B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEhC,MAAM,UAAU,yCAAyC,CACvD,KAAkE;IAElE,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACrE,OAAO,iCAAiC,EAAE,CAAC;IAC7C,CAAC;IAED,MAAM,IAAI,GAAG,oCAAoC,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/E,IAAI,CAAC,IAAI;QAAE,OAAO,iCAAiC,EAAE,CAAC;IACtD,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,CAAC;QACnC,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,SAAS,EAAE,IAAI,CAAC,SAAS;KAC1B,CAAC,CAAC;IACH,MAAM,KAAK,GAAG,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAClD,OAAO;QACL,MAAM,EAAE,KAAK,CAAC,CAAC,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,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KACjB,CAAC;AACJ,CAAC","sourcesContent":["export type LocalEditorStructuredDragPlacement = 'inside' | 'before' | 'after' | 'root';\n\nexport interface LocalEditorStructuredDragRect {\n left: number;\n top: number;\n width: number;\n height: number;\n}\n\nexport interface LocalEditorStructuredDragLayoutItem {\n id: string;\n depth: number;\n parentId: string | null;\n canAcceptInside: boolean;\n rect: LocalEditorStructuredDragRect;\n}\n\nexport interface LocalEditorStructuredDragLayout {\n items: readonly LocalEditorStructuredDragLayoutItem[];\n viewport: LocalEditorStructuredDragRect;\n indentWidth: number;\n}\n\nexport interface LocalEditorStructuredDragPointer {\n x: number;\n y: number;\n}\n\nexport type LocalEditorStructuredDropSlotKind =\n | 'sibling-before'\n | 'sibling-after'\n | 'inside-parent'\n | 'subtree-after'\n | 'promote-to-ancestor-sibling'\n | 'root-start'\n | 'root-end';\n\nexport interface LocalEditorStructuredDropSlot {\n kind: LocalEditorStructuredDropSlotKind;\n targetId: string | null;\n previewTargetId: string | null;\n placement: LocalEditorStructuredDragPlacement;\n depth: number;\n}\n\nexport interface LocalEditorStructuredDropPreview {\n kind: 'line' | 'inside' | 'root';\n targetId: string | null;\n placement: LocalEditorStructuredDragPlacement;\n depth: number;\n valid: boolean;\n}\n\nexport interface LocalEditorStructuredDragDropInput {\n draggedIds: readonly string[];\n targetId?: string | null;\n placement: LocalEditorStructuredDragPlacement;\n}\n\nexport interface LocalEditorStructuredDragOperation<TResolution> {\n status: 'valid' | 'invalid' | 'idle';\n slot: LocalEditorStructuredDropSlot | null;\n preview: LocalEditorStructuredDropPreview | null;\n resolution: TResolution | null;\n}\n\nexport interface ResolveLocalEditorStructuredDragOperationInput<TResolution> {\n layout: LocalEditorStructuredDragLayout;\n pointer: LocalEditorStructuredDragPointer;\n draggedIds: readonly string[];\n resolveDrop(input: LocalEditorStructuredDragDropInput): TResolution;\n isResolutionValid(resolution: TResolution): boolean;\n}\n\nconst MIN_ROW_EDGE_ZONE = 8;\nconst MAX_ROW_EDGE_ZONE = 14;\nconst ROW_EDGE_ZONE_RATIO = 0.3;\n\nexport function resolveLocalEditorStructuredDragOperation<TResolution>(\n input: ResolveLocalEditorStructuredDragOperationInput<TResolution>,\n): LocalEditorStructuredDragOperation<TResolution> {\n if (input.draggedIds.length === 0 || input.layout.items.length === 0) {\n return createIdleStructuredDragOperation();\n }\n\n const slot = resolveLocalEditorStructuredDropSlot(input.layout, input.pointer);\n if (!slot) return createIdleStructuredDragOperation();\n const resolution = input.resolveDrop({\n draggedIds: input.draggedIds,\n targetId: slot.targetId,\n placement: slot.placement,\n });\n const valid = input.isResolutionValid(resolution);\n return {\n status: valid ? 'valid' : 'invalid',\n slot,\n preview: {\n kind: slot.placement === 'inside' ? 'inside' : slot.placement === 'root' ? 'root' : 'line',\n targetId: slot.previewTargetId,\n placement: slot.placement,\n depth: slot.depth,\n valid,\n },\n resolution,\n };\n}\n\nexport function resolveLocalEditorStructuredDropSlot(\n layout: LocalEditorStructuredDragLayout,\n pointer: LocalEditorStructuredDragPointer,\n): LocalEditorStructuredDropSlot | null {\n const items = layout.items;\n if (items.length === 0) return null;\n const firstItem = items[0]!;\n const lastItem = items[items.length - 1]!;\n if (pointer.y < firstItem.rect.top) {\n return {\n kind: 'root-start',\n targetId: firstItem.id,\n previewTargetId: firstItem.id,\n placement: 'before',\n depth: 0,\n };\n }\n if (pointer.y > lastItem.rect.top + lastItem.rect.height) {\n return {\n kind: 'root-end',\n targetId: null,\n previewTargetId: null,\n placement: 'root',\n depth: 0,\n };\n }\n\n const itemIndex = resolveStructuredLayoutItemIndex(items, pointer.y);\n const item = items[itemIndex]!;\n const edgeZone = resolveRowEdgeZone(item.rect.height);\n const itemBottom = item.rect.top + item.rect.height;\n if (pointer.y <= item.rect.top + edgeZone) {\n return {\n kind: 'sibling-before',\n targetId: item.id,\n previewTargetId: item.id,\n placement: 'before',\n depth: item.depth,\n };\n }\n if (pointer.y >= itemBottom - edgeZone) {\n return resolveAfterItemSlot(layout, item, itemIndex, pointer);\n }\n if (item.canAcceptInside) {\n return {\n kind: 'inside-parent',\n targetId: item.id,\n previewTargetId: item.id,\n placement: 'inside',\n depth: item.depth + 1,\n };\n }\n return pointer.y < item.rect.top + item.rect.height / 2\n ? {\n kind: 'sibling-before',\n targetId: item.id,\n previewTargetId: item.id,\n placement: 'before',\n depth: item.depth,\n }\n : resolveAfterItemSlot(layout, item, itemIndex, pointer);\n}\n\nfunction resolveAfterItemSlot(\n layout: LocalEditorStructuredDragLayout,\n item: LocalEditorStructuredDragLayoutItem,\n itemIndex: number,\n pointer: LocalEditorStructuredDragPointer,\n): LocalEditorStructuredDropSlot {\n const desiredDepth = resolvePointerDepth(layout, pointer.x, item.depth);\n if (desiredDepth < item.depth) {\n const promotedTarget = findAncestorItemAtDepth(layout.items, itemIndex, desiredDepth);\n if (promotedTarget) {\n return {\n kind: 'promote-to-ancestor-sibling',\n targetId: promotedTarget.id,\n previewTargetId: promotedTarget.id,\n placement: 'after',\n depth: promotedTarget.depth,\n };\n }\n }\n const subtreeTarget = findLastVisibleDescendant(layout.items, item, itemIndex);\n return {\n kind: subtreeTarget.id === item.id ? 'sibling-after' : 'subtree-after',\n targetId: item.id,\n previewTargetId: subtreeTarget.id,\n placement: 'after',\n depth: item.depth,\n };\n}\n\nfunction resolvePointerDepth(\n layout: LocalEditorStructuredDragLayout,\n pointerX: number,\n fallbackDepth: number,\n): number {\n const firstItem = layout.items[0];\n if (!firstItem || layout.indentWidth <= 0) return fallbackDepth;\n const relativeX = pointerX - firstItem.rect.left;\n return Math.max(0, Math.min(fallbackDepth, Math.round(relativeX / layout.indentWidth)));\n}\n\nfunction findAncestorItemAtDepth(\n items: readonly LocalEditorStructuredDragLayoutItem[],\n itemIndex: number,\n depth: number,\n): LocalEditorStructuredDragLayoutItem | null {\n const item = items[itemIndex];\n if (!item || depth >= item.depth) return item ?? null;\n for (let index = itemIndex - 1; index >= 0; index -= 1) {\n const candidate = items[index]!;\n if (candidate.depth === depth) return candidate;\n if (candidate.depth < depth) break;\n }\n return null;\n}\n\nfunction findLastVisibleDescendant(\n items: readonly LocalEditorStructuredDragLayoutItem[],\n item: LocalEditorStructuredDragLayoutItem,\n itemIndex: number,\n): LocalEditorStructuredDragLayoutItem {\n if (itemIndex < 0) return item;\n let last = item;\n for (let index = itemIndex + 1; index < items.length; index += 1) {\n const candidate = items[index]!;\n if (candidate.depth <= item.depth) break;\n last = candidate;\n }\n return last;\n}\n\nfunction resolveStructuredLayoutItemIndex(\n items: readonly LocalEditorStructuredDragLayoutItem[],\n pointerY: number,\n): number {\n let nearestIndex = 0;\n let nearestDistance = Number.POSITIVE_INFINITY;\n for (let index = 0; index < items.length; index += 1) {\n const item = items[index]!;\n if (isPointerYInsideRect(pointerY, item.rect)) return index;\n const distance = Math.abs(pointerY - (item.rect.top + item.rect.height / 2));\n if (distance < nearestDistance) {\n nearestDistance = distance;\n nearestIndex = index;\n }\n }\n return nearestIndex;\n}\n\nfunction isPointerYInsideRect(pointerY: number, rect: LocalEditorStructuredDragRect): boolean {\n return pointerY >= rect.top && pointerY <= rect.top + rect.height;\n}\n\nfunction resolveRowEdgeZone(rowHeight: number): number {\n return Math.max(MIN_ROW_EDGE_ZONE, Math.min(MAX_ROW_EDGE_ZONE, rowHeight * ROW_EDGE_ZONE_RATIO));\n}\n\nfunction createIdleStructuredDragOperation<TResolution>(): LocalEditorStructuredDragOperation<TResolution> {\n return {\n status: 'idle',\n slot: null,\n preview: null,\n resolution: null,\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-ui-theme.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAC/D,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,OAAO,CAAC;AACpD,eAAO,MAAM,0BAA0B,EAAE,oBAA6B,CAAC;AAGvE,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,OAAO,GAAG,oBAAoB,CAElF;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,oBAAoB,CAKhG;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"local-editor-ui-theme.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAC/D,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,OAAO,CAAC;AACpD,eAAO,MAAM,0BAA0B,EAAE,oBAA6B,CAAC;AAGvE,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,OAAO,GAAG,oBAAoB,CAElF;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,oBAAoB,CAKhG;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI,CA8K1D"}
|
|
@@ -11,8 +11,10 @@ export function applyLocalEditorTheme(element, theme) {
|
|
|
11
11
|
return normalized;
|
|
12
12
|
}
|
|
13
13
|
export function ensureLocalEditorTheme(doc) {
|
|
14
|
-
if (doc.getElementById(STYLE_ID))
|
|
14
|
+
if (doc.getElementById(STYLE_ID)) {
|
|
15
|
+
ensureEditorUiStyles(doc);
|
|
15
16
|
return;
|
|
17
|
+
}
|
|
16
18
|
const style = doc.createElement('style');
|
|
17
19
|
style.id = STYLE_ID;
|
|
18
20
|
style.textContent = `
|
|
@@ -37,12 +39,16 @@ export function ensureLocalEditorTheme(doc) {
|
|
|
37
39
|
--fps-editor-text-inverse: #ffffff;
|
|
38
40
|
--fps-editor-muted: #a0a0a0;
|
|
39
41
|
--fps-editor-muted-strong: #c8c8c8;
|
|
40
|
-
--fps-editor-accent: #
|
|
41
|
-
--fps-editor-accent-soft: rgba(
|
|
42
|
-
--fps-editor-accent-strong: #
|
|
43
|
-
--fps-editor-
|
|
44
|
-
--fps-editor-
|
|
45
|
-
--fps-editor-
|
|
42
|
+
--fps-editor-accent: #5f88b0;
|
|
43
|
+
--fps-editor-accent-soft: rgba(95, 136, 176, 0.18);
|
|
44
|
+
--fps-editor-accent-strong: #82acd3;
|
|
45
|
+
--fps-editor-control-active-bg: #343a42;
|
|
46
|
+
--fps-editor-control-active-border: #596572;
|
|
47
|
+
--fps-editor-control-on: #556b7f;
|
|
48
|
+
--fps-editor-control-thumb: #f2f4f6;
|
|
49
|
+
--fps-editor-editable-bg: #1d242a;
|
|
50
|
+
--fps-editor-editable-border: rgba(130, 172, 211, 0.38);
|
|
51
|
+
--fps-editor-editable-shadow: 0 0 0 1px rgba(95, 136, 176, 0.14) inset;
|
|
46
52
|
--fps-editor-readonly-bg: rgba(255, 255, 255, 0.035);
|
|
47
53
|
--fps-editor-readonly-border: rgba(255, 255, 255, 0.075);
|
|
48
54
|
--fps-editor-readonly-text: #c8c8c8;
|
|
@@ -55,25 +61,27 @@ export function ensureLocalEditorTheme(doc) {
|
|
|
55
61
|
--fps-editor-danger-soft: rgba(248, 81, 73, 0.16);
|
|
56
62
|
--fps-editor-danger-border: rgba(248, 81, 73, 0.45);
|
|
57
63
|
--fps-editor-danger-strong: #ff8f87;
|
|
58
|
-
--fps-editor-success: #
|
|
64
|
+
--fps-editor-success: #68b88a;
|
|
65
|
+
--fps-editor-success-soft: rgba(104, 184, 138, 0.12);
|
|
66
|
+
--fps-editor-success-border: rgba(104, 184, 138, 0.38);
|
|
59
67
|
--fps-editor-button: #333333;
|
|
60
68
|
--fps-editor-button-hover: #3d3d3d;
|
|
61
|
-
--fps-editor-button-active: #
|
|
69
|
+
--fps-editor-button-active: #343a42;
|
|
62
70
|
--fps-editor-shadow-panel: 0 10px 28px rgba(0, 0, 0, 0.24);
|
|
63
71
|
--fps-editor-shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.35);
|
|
64
72
|
--fps-editor-shadow-modal: 0 16px 42px rgba(0, 0, 0, 0.35);
|
|
65
73
|
--fps-editor-shadow-inset-highlight: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
|
|
66
|
-
--fps-editor-row-selected: rgba(
|
|
74
|
+
--fps-editor-row-selected: rgba(95, 136, 176, 0.16);
|
|
67
75
|
--fps-editor-row-selected-text: #ffffff;
|
|
68
|
-
--fps-editor-row-active: rgba(
|
|
69
|
-
--fps-editor-drop-target:
|
|
76
|
+
--fps-editor-row-active: rgba(95, 136, 176, 0.24);
|
|
77
|
+
--fps-editor-drop-target: #82acd3;
|
|
70
78
|
--fps-editor-locked-bg: #262626;
|
|
71
79
|
--fps-editor-locked-text: #777777;
|
|
72
80
|
--fps-editor-role-root-bg: #3a2f18;
|
|
73
81
|
--fps-editor-role-group-bg: #243426;
|
|
74
82
|
--fps-editor-role-object-bg: #252b34;
|
|
75
83
|
--fps-editor-asset-card-bg: #243426;
|
|
76
|
-
--fps-editor-box-select-bg: rgba(
|
|
84
|
+
--fps-editor-box-select-bg: rgba(95, 136, 176, 0.18);
|
|
77
85
|
--fps-editor-box-select-shadow: 0 0 0 1px rgba(10, 15, 23, 0.55) inset;
|
|
78
86
|
--fps-editor-scrollbar-thumb: #5a5a5a;
|
|
79
87
|
--fps-editor-scrollbar-track: #171717;
|
|
@@ -95,12 +103,16 @@ export function ensureLocalEditorTheme(doc) {
|
|
|
95
103
|
--fps-editor-text-inverse: #ffffff;
|
|
96
104
|
--fps-editor-muted: #6f6f6f;
|
|
97
105
|
--fps-editor-muted-strong: #4f4f4f;
|
|
98
|
-
--fps-editor-accent: #
|
|
99
|
-
--fps-editor-accent-soft: rgba(
|
|
100
|
-
--fps-editor-accent-strong: #
|
|
106
|
+
--fps-editor-accent: #4f78a1;
|
|
107
|
+
--fps-editor-accent-soft: rgba(79, 120, 161, 0.14);
|
|
108
|
+
--fps-editor-accent-strong: #3f678e;
|
|
109
|
+
--fps-editor-control-active-bg: #e7ebef;
|
|
110
|
+
--fps-editor-control-active-border: #9aa7b4;
|
|
111
|
+
--fps-editor-control-on: #607d98;
|
|
112
|
+
--fps-editor-control-thumb: #ffffff;
|
|
101
113
|
--fps-editor-editable-bg: #ffffff;
|
|
102
|
-
--fps-editor-editable-border: rgba(
|
|
103
|
-
--fps-editor-editable-shadow: 0 0 0 1px rgba(
|
|
114
|
+
--fps-editor-editable-border: rgba(79, 120, 161, 0.36);
|
|
115
|
+
--fps-editor-editable-shadow: 0 0 0 1px rgba(79, 120, 161, 0.08) inset;
|
|
104
116
|
--fps-editor-readonly-bg: rgba(0, 0, 0, 0.035);
|
|
105
117
|
--fps-editor-readonly-border: rgba(0, 0, 0, 0.075);
|
|
106
118
|
--fps-editor-readonly-text: #4f4f4f;
|
|
@@ -114,24 +126,26 @@ export function ensureLocalEditorTheme(doc) {
|
|
|
114
126
|
--fps-editor-danger-border: rgba(220, 38, 38, 0.30);
|
|
115
127
|
--fps-editor-danger-strong: #b91c1c;
|
|
116
128
|
--fps-editor-success: #15803d;
|
|
129
|
+
--fps-editor-success-soft: rgba(21, 128, 61, 0.10);
|
|
130
|
+
--fps-editor-success-border: rgba(21, 128, 61, 0.30);
|
|
117
131
|
--fps-editor-button: #ffffff;
|
|
118
132
|
--fps-editor-button-hover: #f1f1f1;
|
|
119
|
-
--fps-editor-button-active: #
|
|
133
|
+
--fps-editor-button-active: #e7ebef;
|
|
120
134
|
--fps-editor-shadow-panel: 0 10px 28px rgba(0, 0, 0, 0.12);
|
|
121
135
|
--fps-editor-shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.16);
|
|
122
136
|
--fps-editor-shadow-modal: 0 16px 42px rgba(0, 0, 0, 0.18);
|
|
123
137
|
--fps-editor-shadow-inset-highlight: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
|
|
124
|
-
--fps-editor-row-selected: rgba(
|
|
125
|
-
--fps-editor-row-selected-text: #
|
|
126
|
-
--fps-editor-row-active: rgba(
|
|
127
|
-
--fps-editor-drop-target: rgba(
|
|
138
|
+
--fps-editor-row-selected: rgba(79, 120, 161, 0.12);
|
|
139
|
+
--fps-editor-row-selected-text: #3f678e;
|
|
140
|
+
--fps-editor-row-active: rgba(79, 120, 161, 0.18);
|
|
141
|
+
--fps-editor-drop-target: rgba(63, 103, 142, 0.92);
|
|
128
142
|
--fps-editor-locked-bg: #f1f1f1;
|
|
129
143
|
--fps-editor-locked-text: #8a8a8a;
|
|
130
144
|
--fps-editor-role-root-bg: #fef3c7;
|
|
131
145
|
--fps-editor-role-group-bg: #dcfce7;
|
|
132
146
|
--fps-editor-role-object-bg: #e0f2fe;
|
|
133
147
|
--fps-editor-asset-card-bg: #eef9ef;
|
|
134
|
-
--fps-editor-box-select-bg: rgba(
|
|
148
|
+
--fps-editor-box-select-bg: rgba(79, 120, 161, 0.12);
|
|
135
149
|
--fps-editor-box-select-shadow: 0 0 0 1px rgba(255, 255, 255, 0.80) inset;
|
|
136
150
|
--fps-editor-scrollbar-thumb: #c7c7c7;
|
|
137
151
|
--fps-editor-scrollbar-track: #f6f6f6;
|
|
@@ -169,5 +183,7 @@ export function ensureLocalEditorTheme(doc) {
|
|
|
169
183
|
}
|
|
170
184
|
`;
|
|
171
185
|
doc.head.appendChild(style);
|
|
186
|
+
ensureEditorUiStyles(doc);
|
|
172
187
|
}
|
|
188
|
+
import { ensureEditorUiStyles } from '@fps-games/editor-ui';
|
|
173
189
|
//# sourceMappingURL=local-editor-ui-theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-ui-theme.js","sourceRoot":"","sources":["../src/local-editor-ui-theme.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AAE/D,MAAM,CAAC,MAAM,0BAA0B,GAAyB,MAAM,CAAC;AACvE,MAAM,QAAQ,GAAG,4BAA4B,CAAC;AAE9C,MAAM,UAAU,6BAA6B,CAAC,KAAc;IAC1D,OAAO,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,0BAA0B,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,OAAoB,EAAE,KAAc;IACxE,MAAM,UAAU,GAAG,6BAA6B,CAAC,KAAK,CAAC,CAAC;IACxD,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IAChD,OAAO,CAAC,OAAO,CAAC,cAAc,GAAG,UAAU,CAAC;IAC5C,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,GAAa;IAClD,IAAI,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC;QAAE,OAAO;IACzC,MAAM,KAAK,GAAG,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC;IACpB,KAAK,CAAC,WAAW,GAAG;OACf,wBAAwB;;;;;OAKxB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DxB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DxB,wBAAwB;;;OAGxB,wBAAwB;OACxB,wBAAwB;OACxB,wBAAwB;;;OAGxB,wBAAwB;;;OAGxB,wBAAwB;OACxB,wBAAwB;OACxB,wBAAwB;;;;OAIxB,wBAAwB;OACxB,wBAAwB;;;;OAIxB,wBAAwB;OACxB,wBAAwB;;;OAGxB,wBAAwB;OACxB,wBAAwB;;;GAG5B,CAAC;IACF,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["export const LOCAL_EDITOR_THEME_CLASS = 'fps-editor-workbench';\nexport type LocalEditorThemeName = 'dark' | 'light';\nexport const DEFAULT_LOCAL_EDITOR_THEME: LocalEditorThemeName = 'dark';\nconst STYLE_ID = 'fps-editor-workbench-theme';\n\nexport function normalizeLocalEditorThemeName(theme: unknown): LocalEditorThemeName {\n return theme === 'light' ? 'light' : DEFAULT_LOCAL_EDITOR_THEME;\n}\n\nexport function applyLocalEditorTheme(element: HTMLElement, theme: unknown): LocalEditorThemeName {\n const normalized = normalizeLocalEditorThemeName(theme);\n element.classList.add(LOCAL_EDITOR_THEME_CLASS);\n element.dataset.fpsEditorTheme = normalized;\n return normalized;\n}\n\nexport function ensureLocalEditorTheme(doc: Document): void {\n if (doc.getElementById(STYLE_ID)) return;\n const style = doc.createElement('style');\n style.id = STYLE_ID;\n style.textContent = `\n .${LOCAL_EDITOR_THEME_CLASS} {\n --fps-editor-font: system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n --fps-editor-z-ui: 2147483639;\n font-family: var(--fps-editor-font);\n }\n .${LOCAL_EDITOR_THEME_CLASS}[data-fps-editor-theme=\"dark\"] {\n --fps-editor-bg: #181818;\n --fps-editor-chrome: #202020;\n --fps-editor-chrome-dark: #131313;\n --fps-editor-panel: #222222;\n --fps-editor-panel-soft: #2b2b2b;\n --fps-editor-field: #141414;\n --fps-editor-border: #383838;\n --fps-editor-border-soft: #303030;\n --fps-editor-inspector-section-border: rgba(255, 255, 255, 0.22);\n --fps-editor-divider: #101010;\n --fps-editor-text: #e6e6e6;\n --fps-editor-text-strong: #ffffff;\n --fps-editor-text-inverse: #ffffff;\n --fps-editor-muted: #a0a0a0;\n --fps-editor-muted-strong: #c8c8c8;\n --fps-editor-accent: #2d75d6;\n --fps-editor-accent-soft: rgba(45, 117, 214, 0.28);\n --fps-editor-accent-strong: #58a6ff;\n --fps-editor-editable-bg: #101821;\n --fps-editor-editable-border: rgba(88, 166, 255, 0.58);\n --fps-editor-editable-shadow: 0 0 0 1px rgba(45, 117, 214, 0.18) inset;\n --fps-editor-readonly-bg: rgba(255, 255, 255, 0.035);\n --fps-editor-readonly-border: rgba(255, 255, 255, 0.075);\n --fps-editor-readonly-text: #c8c8c8;\n --fps-editor-warn: #e5b454;\n --fps-editor-warn-soft: rgba(248, 196, 79, 0.08);\n --fps-editor-warn-border: rgba(229, 180, 84, 0.45);\n --fps-editor-warn-strong: rgba(248, 196, 79, 0.95);\n --fps-editor-danger: #f85149;\n --fps-editor-danger-text: #ffd7d5;\n --fps-editor-danger-soft: rgba(248, 81, 73, 0.16);\n --fps-editor-danger-border: rgba(248, 81, 73, 0.45);\n --fps-editor-danger-strong: #ff8f87;\n --fps-editor-success: #7ee787;\n --fps-editor-button: #333333;\n --fps-editor-button-hover: #3d3d3d;\n --fps-editor-button-active: #2d75d6;\n --fps-editor-shadow-panel: 0 10px 28px rgba(0, 0, 0, 0.24);\n --fps-editor-shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.35);\n --fps-editor-shadow-modal: 0 16px 42px rgba(0, 0, 0, 0.35);\n --fps-editor-shadow-inset-highlight: 0 1px 0 rgba(255, 255, 255, 0.03) inset;\n --fps-editor-row-selected: rgba(45, 117, 214, 0.30);\n --fps-editor-row-selected-text: #ffffff;\n --fps-editor-row-active: rgba(45, 117, 214, 0.50);\n --fps-editor-drop-target: rgba(88, 166, 255, 0.95);\n --fps-editor-locked-bg: #262626;\n --fps-editor-locked-text: #777777;\n --fps-editor-role-root-bg: #3a2f18;\n --fps-editor-role-group-bg: #243426;\n --fps-editor-role-object-bg: #252b34;\n --fps-editor-asset-card-bg: #243426;\n --fps-editor-box-select-bg: rgba(56, 139, 253, 0.18);\n --fps-editor-box-select-shadow: 0 0 0 1px rgba(10, 15, 23, 0.55) inset;\n --fps-editor-scrollbar-thumb: #5a5a5a;\n --fps-editor-scrollbar-track: #171717;\n color-scheme: dark;\n }\n .${LOCAL_EDITOR_THEME_CLASS}[data-fps-editor-theme=\"light\"] {\n --fps-editor-bg: #ffffff;\n --fps-editor-chrome: #f7f7f7;\n --fps-editor-chrome-dark: #eeeeee;\n --fps-editor-panel: #ffffff;\n --fps-editor-panel-soft: #f5f5f5;\n --fps-editor-field: #fafafa;\n --fps-editor-border: #d4d4d4;\n --fps-editor-border-soft: #e5e5e5;\n --fps-editor-inspector-section-border: rgba(0, 0, 0, 0.22);\n --fps-editor-divider: #e5e5e5;\n --fps-editor-text: #242424;\n --fps-editor-text-strong: #111111;\n --fps-editor-text-inverse: #ffffff;\n --fps-editor-muted: #6f6f6f;\n --fps-editor-muted-strong: #4f4f4f;\n --fps-editor-accent: #2563eb;\n --fps-editor-accent-soft: rgba(37, 99, 235, 0.14);\n --fps-editor-accent-strong: #1d4ed8;\n --fps-editor-editable-bg: #ffffff;\n --fps-editor-editable-border: rgba(37, 99, 235, 0.42);\n --fps-editor-editable-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08) inset;\n --fps-editor-readonly-bg: rgba(0, 0, 0, 0.035);\n --fps-editor-readonly-border: rgba(0, 0, 0, 0.075);\n --fps-editor-readonly-text: #4f4f4f;\n --fps-editor-warn: #a16207;\n --fps-editor-warn-soft: rgba(161, 98, 7, 0.10);\n --fps-editor-warn-border: rgba(161, 98, 7, 0.34);\n --fps-editor-warn-strong: rgba(202, 138, 4, 0.92);\n --fps-editor-danger: #dc2626;\n --fps-editor-danger-text: #991b1b;\n --fps-editor-danger-soft: rgba(220, 38, 38, 0.10);\n --fps-editor-danger-border: rgba(220, 38, 38, 0.30);\n --fps-editor-danger-strong: #b91c1c;\n --fps-editor-success: #15803d;\n --fps-editor-button: #ffffff;\n --fps-editor-button-hover: #f1f1f1;\n --fps-editor-button-active: #2563eb;\n --fps-editor-shadow-panel: 0 10px 28px rgba(0, 0, 0, 0.12);\n --fps-editor-shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.16);\n --fps-editor-shadow-modal: 0 16px 42px rgba(0, 0, 0, 0.18);\n --fps-editor-shadow-inset-highlight: 0 1px 0 rgba(255, 255, 255, 0.75) inset;\n --fps-editor-row-selected: rgba(37, 99, 235, 0.12);\n --fps-editor-row-selected-text: #1d4ed8;\n --fps-editor-row-active: rgba(37, 99, 235, 0.20);\n --fps-editor-drop-target: rgba(29, 78, 216, 0.92);\n --fps-editor-locked-bg: #f1f1f1;\n --fps-editor-locked-text: #8a8a8a;\n --fps-editor-role-root-bg: #fef3c7;\n --fps-editor-role-group-bg: #dcfce7;\n --fps-editor-role-object-bg: #e0f2fe;\n --fps-editor-asset-card-bg: #eef9ef;\n --fps-editor-box-select-bg: rgba(37, 99, 235, 0.12);\n --fps-editor-box-select-shadow: 0 0 0 1px rgba(255, 255, 255, 0.80) inset;\n --fps-editor-scrollbar-thumb: #c7c7c7;\n --fps-editor-scrollbar-track: #f6f6f6;\n color-scheme: light;\n }\n .${LOCAL_EDITOR_THEME_CLASS} * {\n box-sizing: border-box;\n }\n .${LOCAL_EDITOR_THEME_CLASS} button,\n .${LOCAL_EDITOR_THEME_CLASS} input,\n .${LOCAL_EDITOR_THEME_CLASS} select {\n font-family: var(--fps-editor-font);\n }\n .${LOCAL_EDITOR_THEME_CLASS} button {\n -webkit-font-smoothing: antialiased;\n }\n .${LOCAL_EDITOR_THEME_CLASS} button:focus-visible,\n .${LOCAL_EDITOR_THEME_CLASS} input:focus-visible,\n .${LOCAL_EDITOR_THEME_CLASS} select:focus-visible {\n outline: 1px solid var(--fps-editor-accent-strong);\n outline-offset: 1px;\n }\n .${LOCAL_EDITOR_THEME_CLASS} [data-editor-panel-content]::-webkit-scrollbar,\n .${LOCAL_EDITOR_THEME_CLASS} [data-editor-workbench-region]::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n .${LOCAL_EDITOR_THEME_CLASS} [data-editor-panel-content]::-webkit-scrollbar-thumb,\n .${LOCAL_EDITOR_THEME_CLASS} [data-editor-workbench-region]::-webkit-scrollbar-thumb {\n background: var(--fps-editor-scrollbar-thumb);\n }\n .${LOCAL_EDITOR_THEME_CLASS} [data-editor-panel-content]::-webkit-scrollbar-track,\n .${LOCAL_EDITOR_THEME_CLASS} [data-editor-workbench-region]::-webkit-scrollbar-track {\n background: var(--fps-editor-scrollbar-track);\n }\n `;\n doc.head.appendCh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;;;OAGxB,wBAAwB;OACxB,wBAAwB;OACxB,wBAAwB;;;;OAIxB,wBAAwB;OACxB,wBAAwB;;;;OAIxB,wBAAwB;OACxB,wBAAwB;;;OAGxB,wBAAwB;OACxB,wBAAwB;;;GAG5B,CAAC;IACF,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC5B,oBAAoB,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC;AACD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["export const LOCAL_EDITOR_THEME_CLASS = 'fps-editor-workbench';\nexport type LocalEditorThemeName = 'dark' | 'light';\nexport const DEFAULT_LOCAL_EDITOR_THEME: LocalEditorThemeName = 'dark';\nconst STYLE_ID = 'fps-editor-workbench-theme';\n\nexport function normalizeLocalEditorThemeName(theme: unknown): LocalEditorThemeName {\n return theme === 'light' ? 'light' : DEFAULT_LOCAL_EDITOR_THEME;\n}\n\nexport function applyLocalEditorTheme(element: HTMLElement, theme: unknown): LocalEditorThemeName {\n const normalized = normalizeLocalEditorThemeName(theme);\n element.classList.add(LOCAL_EDITOR_THEME_CLASS);\n element.dataset.fpsEditorTheme = normalized;\n return normalized;\n}\n\nexport function ensureLocalEditorTheme(doc: Document): void {\n if (doc.getElementById(STYLE_ID)) {\n ensureEditorUiStyles(doc);\n return;\n }\n const style = doc.createElement('style');\n style.id = STYLE_ID;\n style.textContent = `\n .${LOCAL_EDITOR_THEME_CLASS} {\n --fps-editor-font: system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n --fps-editor-z-ui: 2147483639;\n font-family: var(--fps-editor-font);\n }\n .${LOCAL_EDITOR_THEME_CLASS}[data-fps-editor-theme=\"dark\"] {\n --fps-editor-bg: #181818;\n --fps-editor-chrome: #202020;\n --fps-editor-chrome-dark: #131313;\n --fps-editor-panel: #222222;\n --fps-editor-panel-soft: #2b2b2b;\n --fps-editor-field: #141414;\n --fps-editor-border: #383838;\n --fps-editor-border-soft: #303030;\n --fps-editor-inspector-section-border: rgba(255, 255, 255, 0.22);\n --fps-editor-divider: #101010;\n --fps-editor-text: #e6e6e6;\n --fps-editor-text-strong: #ffffff;\n --fps-editor-text-inverse: #ffffff;\n --fps-editor-muted: #a0a0a0;\n --fps-editor-muted-strong: #c8c8c8;\n --fps-editor-accent: #5f88b0;\n --fps-editor-accent-soft: rgba(95, 136, 176, 0.18);\n --fps-editor-accent-strong: #82acd3;\n --fps-editor-control-active-bg: #343a42;\n --fps-editor-control-active-border: #596572;\n --fps-editor-control-on: #556b7f;\n --fps-editor-control-thumb: #f2f4f6;\n --fps-editor-editable-bg: #1d242a;\n --fps-editor-editable-border: rgba(130, 172, 211, 0.38);\n --fps-editor-editable-shadow: 0 0 0 1px rgba(95, 136, 176, 0.14) inset;\n --fps-editor-readonly-bg: rgba(255, 255, 255, 0.035);\n --fps-editor-readonly-border: rgba(255, 255, 255, 0.075);\n --fps-editor-readonly-text: #c8c8c8;\n --fps-editor-warn: #e5b454;\n --fps-editor-warn-soft: rgba(248, 196, 79, 0.08);\n --fps-editor-warn-border: rgba(229, 180, 84, 0.45);\n --fps-editor-warn-strong: rgba(248, 196, 79, 0.95);\n --fps-editor-danger: #f85149;\n --fps-editor-danger-text: #ffd7d5;\n --fps-editor-danger-soft: rgba(248, 81, 73, 0.16);\n --fps-editor-danger-border: rgba(248, 81, 73, 0.45);\n --fps-editor-danger-strong: #ff8f87;\n --fps-editor-success: #68b88a;\n --fps-editor-success-soft: rgba(104, 184, 138, 0.12);\n --fps-editor-success-border: rgba(104, 184, 138, 0.38);\n --fps-editor-button: #333333;\n --fps-editor-button-hover: #3d3d3d;\n --fps-editor-button-active: #343a42;\n --fps-editor-shadow-panel: 0 10px 28px rgba(0, 0, 0, 0.24);\n --fps-editor-shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.35);\n --fps-editor-shadow-modal: 0 16px 42px rgba(0, 0, 0, 0.35);\n --fps-editor-shadow-inset-highlight: 0 1px 0 rgba(255, 255, 255, 0.03) inset;\n --fps-editor-row-selected: rgba(95, 136, 176, 0.16);\n --fps-editor-row-selected-text: #ffffff;\n --fps-editor-row-active: rgba(95, 136, 176, 0.24);\n --fps-editor-drop-target: #82acd3;\n --fps-editor-locked-bg: #262626;\n --fps-editor-locked-text: #777777;\n --fps-editor-role-root-bg: #3a2f18;\n --fps-editor-role-group-bg: #243426;\n --fps-editor-role-object-bg: #252b34;\n --fps-editor-asset-card-bg: #243426;\n --fps-editor-box-select-bg: rgba(95, 136, 176, 0.18);\n --fps-editor-box-select-shadow: 0 0 0 1px rgba(10, 15, 23, 0.55) inset;\n --fps-editor-scrollbar-thumb: #5a5a5a;\n --fps-editor-scrollbar-track: #171717;\n color-scheme: dark;\n }\n .${LOCAL_EDITOR_THEME_CLASS}[data-fps-editor-theme=\"light\"] {\n --fps-editor-bg: #ffffff;\n --fps-editor-chrome: #f7f7f7;\n --fps-editor-chrome-dark: #eeeeee;\n --fps-editor-panel: #ffffff;\n --fps-editor-panel-soft: #f5f5f5;\n --fps-editor-field: #fafafa;\n --fps-editor-border: #d4d4d4;\n --fps-editor-border-soft: #e5e5e5;\n --fps-editor-inspector-section-border: rgba(0, 0, 0, 0.22);\n --fps-editor-divider: #e5e5e5;\n --fps-editor-text: #242424;\n --fps-editor-text-strong: #111111;\n --fps-editor-text-inverse: #ffffff;\n --fps-editor-muted: #6f6f6f;\n --fps-editor-muted-strong: #4f4f4f;\n --fps-editor-accent: #4f78a1;\n --fps-editor-accent-soft: rgba(79, 120, 161, 0.14);\n --fps-editor-accent-strong: #3f678e;\n --fps-editor-control-active-bg: #e7ebef;\n --fps-editor-control-active-border: #9aa7b4;\n --fps-editor-control-on: #607d98;\n --fps-editor-control-thumb: #ffffff;\n --fps-editor-editable-bg: #ffffff;\n --fps-editor-editable-border: rgba(79, 120, 161, 0.36);\n --fps-editor-editable-shadow: 0 0 0 1px rgba(79, 120, 161, 0.08) inset;\n --fps-editor-readonly-bg: rgba(0, 0, 0, 0.035);\n --fps-editor-readonly-border: rgba(0, 0, 0, 0.075);\n --fps-editor-readonly-text: #4f4f4f;\n --fps-editor-warn: #a16207;\n --fps-editor-warn-soft: rgba(161, 98, 7, 0.10);\n --fps-editor-warn-border: rgba(161, 98, 7, 0.34);\n --fps-editor-warn-strong: rgba(202, 138, 4, 0.92);\n --fps-editor-danger: #dc2626;\n --fps-editor-danger-text: #991b1b;\n --fps-editor-danger-soft: rgba(220, 38, 38, 0.10);\n --fps-editor-danger-border: rgba(220, 38, 38, 0.30);\n --fps-editor-danger-strong: #b91c1c;\n --fps-editor-success: #15803d;\n --fps-editor-success-soft: rgba(21, 128, 61, 0.10);\n --fps-editor-success-border: rgba(21, 128, 61, 0.30);\n --fps-editor-button: #ffffff;\n --fps-editor-button-hover: #f1f1f1;\n --fps-editor-button-active: #e7ebef;\n --fps-editor-shadow-panel: 0 10px 28px rgba(0, 0, 0, 0.12);\n --fps-editor-shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.16);\n --fps-editor-shadow-modal: 0 16px 42px rgba(0, 0, 0, 0.18);\n --fps-editor-shadow-inset-highlight: 0 1px 0 rgba(255, 255, 255, 0.75) inset;\n --fps-editor-row-selected: rgba(79, 120, 161, 0.12);\n --fps-editor-row-selected-text: #3f678e;\n --fps-editor-row-active: rgba(79, 120, 161, 0.18);\n --fps-editor-drop-target: rgba(63, 103, 142, 0.92);\n --fps-editor-locked-bg: #f1f1f1;\n --fps-editor-locked-text: #8a8a8a;\n --fps-editor-role-root-bg: #fef3c7;\n --fps-editor-role-group-bg: #dcfce7;\n --fps-editor-role-object-bg: #e0f2fe;\n --fps-editor-asset-card-bg: #eef9ef;\n --fps-editor-box-select-bg: rgba(79, 120, 161, 0.12);\n --fps-editor-box-select-shadow: 0 0 0 1px rgba(255, 255, 255, 0.80) inset;\n --fps-editor-scrollbar-thumb: #c7c7c7;\n --fps-editor-scrollbar-track: #f6f6f6;\n color-scheme: light;\n }\n .${LOCAL_EDITOR_THEME_CLASS} * {\n box-sizing: border-box;\n }\n .${LOCAL_EDITOR_THEME_CLASS} button,\n .${LOCAL_EDITOR_THEME_CLASS} input,\n .${LOCAL_EDITOR_THEME_CLASS} select {\n font-family: var(--fps-editor-font);\n }\n .${LOCAL_EDITOR_THEME_CLASS} button {\n -webkit-font-smoothing: antialiased;\n }\n .${LOCAL_EDITOR_THEME_CLASS} button:focus-visible,\n .${LOCAL_EDITOR_THEME_CLASS} input:focus-visible,\n .${LOCAL_EDITOR_THEME_CLASS} select:focus-visible {\n outline: 1px solid var(--fps-editor-accent-strong);\n outline-offset: 1px;\n }\n .${LOCAL_EDITOR_THEME_CLASS} [data-editor-panel-content]::-webkit-scrollbar,\n .${LOCAL_EDITOR_THEME_CLASS} [data-editor-workbench-region]::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n .${LOCAL_EDITOR_THEME_CLASS} [data-editor-panel-content]::-webkit-scrollbar-thumb,\n .${LOCAL_EDITOR_THEME_CLASS} [data-editor-workbench-region]::-webkit-scrollbar-thumb {\n background: var(--fps-editor-scrollbar-thumb);\n }\n .${LOCAL_EDITOR_THEME_CLASS} [data-editor-panel-content]::-webkit-scrollbar-track,\n .${LOCAL_EDITOR_THEME_CLASS} [data-editor-workbench-region]::-webkit-scrollbar-track {\n background: var(--fps-editor-scrollbar-track);\n }\n `;\n doc.head.appendChild(style);\n ensureEditorUiStyles(doc);\n}\nimport { ensureEditorUiStyles } from '@fps-games/editor-ui';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-ui-tooltip.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,yBAAyB,CAAC;AAMjC,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC5C,IAAI,IAAI,IAAI,CAAC;IACb,OAAO,IAAI,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,mCAAmC;IAClD,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,WAAW,CAAC,CAAC;CACrC;AAED,wBAAgB,kCAAkC,CAChD,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,WAAW,EACjB,KAAK,CAAC,EAAE,oBAAoB,EAC5B,OAAO,GAAE,mCAAwC,GAChD,4BAA4B,
|
|
1
|
+
{"version":3,"file":"local-editor-ui-tooltip.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,yBAAyB,CAAC;AAMjC,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC5C,IAAI,IAAI,IAAI,CAAC;IACb,OAAO,IAAI,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,mCAAmC;IAClD,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,WAAW,CAAC,CAAC;CACrC;AAED,wBAAgB,kCAAkC,CAChD,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,WAAW,EACjB,KAAK,CAAC,EAAE,oBAAoB,EAC5B,OAAO,GAAE,mCAAwC,GAChD,4BAA4B,CAkI9B"}
|
|
@@ -4,28 +4,10 @@ const TOOLTIP_OFFSET_PX = 7;
|
|
|
4
4
|
const TOOLTIP_VIEWPORT_MARGIN_PX = 6;
|
|
5
5
|
export function createLocalEditorTooltipController(doc, root, theme, options = {}) {
|
|
6
6
|
const tooltip = doc.createElement('div');
|
|
7
|
-
tooltip.classList.add(LOCAL_EDITOR_THEME_CLASS);
|
|
7
|
+
tooltip.classList.add(LOCAL_EDITOR_THEME_CLASS, 'fps-editor-ui-tooltip');
|
|
8
8
|
applyLocalEditorTheme(tooltip, theme);
|
|
9
9
|
tooltip.dataset.editorTooltipSurface = 'true';
|
|
10
10
|
tooltip.setAttribute('role', 'tooltip');
|
|
11
|
-
tooltip.style.cssText = [
|
|
12
|
-
'position:fixed',
|
|
13
|
-
'z-index:2147483642',
|
|
14
|
-
'display:none',
|
|
15
|
-
'max-width:min(260px, calc(100vw - 16px))',
|
|
16
|
-
'padding:5px 7px',
|
|
17
|
-
'border:1px solid var(--fps-editor-border)',
|
|
18
|
-
'border-radius:3px',
|
|
19
|
-
'background:var(--fps-editor-panel)',
|
|
20
|
-
'box-shadow:var(--fps-editor-shadow-popover)',
|
|
21
|
-
'color:var(--fps-editor-text)',
|
|
22
|
-
'font-family:var(--fps-editor-font)',
|
|
23
|
-
'font-size:11px',
|
|
24
|
-
'font-weight:800',
|
|
25
|
-
'line-height:1.35',
|
|
26
|
-
'white-space:normal',
|
|
27
|
-
'pointer-events:none',
|
|
28
|
-
].join(';');
|
|
29
11
|
root.appendChild(tooltip);
|
|
30
12
|
let target = null;
|
|
31
13
|
let showTimer = null;
|
|
@@ -103,7 +85,7 @@ export function createLocalEditorTooltipController(doc, root, theme, options = {
|
|
|
103
85
|
};
|
|
104
86
|
function show(nextTarget, text) {
|
|
105
87
|
tooltip.textContent = text;
|
|
106
|
-
tooltip.style.display = '';
|
|
88
|
+
tooltip.style.display = 'block';
|
|
107
89
|
tooltip.style.left = '0px';
|
|
108
90
|
tooltip.style.top = '0px';
|
|
109
91
|
positionTooltip(nextTarget);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-ui-tooltip.js","sourceRoot":"","sources":["../src/local-editor-ui-tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,GAEzB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAC5B,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAYrC,MAAM,UAAU,kCAAkC,CAChD,GAAa,EACb,IAAiB,EACjB,KAA4B,EAC5B,UAA+C,EAAE;IAEjD,MAAM,O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 160;\nconst TOOLTIP_OFFSET_PX = 7;\nconst TOOLTIP_VIEWPORT_MARGIN_PX = 6;\n\nexport interface LocalEditorTooltipController {\n setTheme(theme: LocalEditorThemeName): void;\n hide(): void;\n dispose(): void;\n}\n\nexport interface LocalEditorTooltipControllerOptions {\n scope?: () => Iterable<HTMLElement>;\n}\n\nexport function createLocalEditorTooltipController(\n doc: Document,\n root: HTMLElement,\n theme?: LocalEditorThemeName,\n options: LocalEditorTooltipControllerOptions = {},\n): LocalEditorTooltipController {\n const tooltip = doc.createElement('div');\n tooltip.classList.add(LOCAL_EDITOR_THEME_CLASS);\n applyLocalEditorTheme(tooltip, theme);\n tooltip.dataset.editorTooltipSurface = 'true';\n tooltip.setAttribute('role', 'tooltip');\n tooltip.style.cssText = [\n 'position:fixed',\n 'z-index:2147483642',\n 'display:none',\n 'max-width:min(260px, calc(100vw - 16px))',\n 'padding:5px 7px',\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 'color:var(--fps-editor-text)',\n 'font-family:var(--fps-editor-font)',\n 'font-size:11px',\n 'font-weight:800',\n 'line-height:1.35',\n 'white-space:normal',\n 'pointer-events:none',\n ].join(';');\n root.appendChild(tooltip);\n\n let target: HTMLElement | null = null;\n let showTimer: number | null = null;\n\n const clearShowTimer = (): void => {\n if (showTimer == null) return;\n doc.defaultView?.clearTimeout(showTimer);\n showTimer = null;\n };\n\n const hide = (): void => {\n clearShowTimer();\n target = null;\n tooltip.style.display = 'none';\n tooltip.textContent = '';\n };\n\n const scheduleShow = (nextTarget: HTMLElement): void => {\n const text = readTooltipText(nextTarget);\n if (!text) {\n hide();\n return;\n }\n clearShowTimer();\n target = nextTarget;\n showTimer = doc.defaultView?.setTimeout(() => {\n showTimer = null;\n if (target !== nextTarget) return;\n show(nextTarget, text);\n }, TOOLTIP_DELAY_MS) ?? null;\n };\n\n const onPointerOver = (event: PointerEvent): void => {\n const nextTarget = findTooltipTarget(event.target);\n if (!nextTarget || nextTarget === target) return;\n scheduleShow(nextTarget);\n };\n const onPointerOut = (event: PointerEvent): void => {\n if (!target) return;\n const related = event.relatedTarget instanceof Node ? event.relatedTarget : null;\n if (related && target.contains(related)) return;\n hide();\n };\n const onFocusIn = (event: FocusEvent): void => {\n const nextTarget = findTooltipTarget(event.target);\n if (nextTarget) scheduleShow(nextTarget);\n };\n const onFocusOut = (): void => hide();\n const onCloseEvent = (): void => hide();\n\n doc.addEventListener('pointerover', onPointerOver, true);\n doc.addEventListener('pointerout', onPointerOut, true);\n doc.addEventListener('focusin', onFocusIn, true);\n doc.addEventListener('focusout', onFocusOut, true);\n doc.addEventListener('click', onCloseEvent, true);\n doc.defaultView?.addEventListener('resize', onCloseEvent);\n doc.defaultView?.addEventListener('scroll', onCloseEvent, { capture: true });\n\n return {\n setTheme(nextTheme) {\n applyLocalEditorTheme(tooltip, nextTheme);\n },\n hide,\n dispose() {\n hide();\n doc.removeEventListener('pointerover', onPointerOver, true);\n doc.removeEventListener('pointerout', onPointerOut, true);\n doc.removeEventListener('focusin', onFocusIn, true);\n doc.removeEventListener('focusout', onFocusOut, true);\n doc.removeEventListener('click', onCloseEvent, true);\n doc.defaultView?.removeEventListener('resize', onCloseEvent);\n doc.defaultView?.removeEventListener('scroll', onCloseEvent, { capture: true });\n tooltip.remove();\n },\n };\n\n function show(nextTarget: HTMLElement, text: string): void {\n tooltip.textContent = text;\n tooltip.style.display = '';\n tooltip.style.left = '0px';\n tooltip.style.top = '0px';\n positionTooltip(nextTarget);\n }\n\n function positionTooltip(nextTarget: HTMLElement): void {\n const view = doc.defaultView;\n const viewportWidth = view?.innerWidth ?? doc.documentElement.clientWidth;\n const viewportHeight = view?.innerHeight ?? doc.documentElement.clientHeight;\n const targetRect = nextTarget.getBoundingClientRect();\n const tooltipRect = tooltip.getBoundingClientRect();\n const preferredTop = targetRect.bottom + TOOLTIP_OFFSET_PX;\n const flippedTop = targetRect.top - tooltipRect.height - TOOLTIP_OFFSET_PX;\n const top = preferredTop + tooltipRect.height <= viewportHeight - TOOLTIP_VIEWPORT_MARGIN_PX\n ? preferredTop\n : Math.max(TOOLTIP_VIEWPORT_MARGIN_PX, flippedTop);\n const centeredLeft = targetRect.left + (targetRect.width - tooltipRect.width) / 2;\n const left = Math.max(\n TOOLTIP_VIEWPORT_MARGIN_PX,\n Math.min(centeredLeft, viewportWidth - tooltipRect.width - TOOLTIP_VIEWPORT_MARGIN_PX),\n );\n tooltip.style.left = `${left}px`;\n tooltip.style.top = `${top}px`;\n }\n\n function findTooltipTarget(value: EventTarget | null): HTMLElement | null {\n const element = value instanceof HTMLElement ? value : null;\n const nextTarget = element?.closest<HTMLElement>('[data-editor-tooltip]') ?? null;\n if (!nextTarget || !isOwnedTarget(nextTarget)) return null;\n return nextTarget;\n }\n\n function readTooltipText(element: HTMLElement): string {\n return element.dataset.editorTooltip?.trim() ?? '';\n }\n\n function isOwnedTarget(element: HTMLElement): boolean {\n const scope = options.scope?.();\n if (!scope) return root.contains(element);\n for (const item of scope) {\n if (item.contains(element)) return true;\n }\n return false;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"local-editor-ui-tooltip.js","sourceRoot":"","sources":["../src/local-editor-ui-tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,GAEzB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAC5B,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAYrC,MAAM,UAAU,kCAAkC,CAChD,GAAa,EACb,IAAiB,EACjB,KAA4B,EAC5B,UAA+C,EAAE;IAEjD,MAAM,OAAO,GAAG,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACzC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,wBAAwB,EAAE,uBAAuB,CAAC,CAAC;IACzE,qBAAqB,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M,UAAU,GAAG,OAAO,EAAE,OAAO,CAAc,uBAAuB,CAAC,IAAI,IAAI,CAAC;QAClF,IAAI,CAAC,UAAU,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC;YAAE,OAAO,IAAI,CAAC;QAC3D,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,SAAS,eAAe,CAAC,OAAoB;QAC3C,OAAO,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrD,CAAC;IAED,SAAS,aAAa,CAAC,OAAoB;QACzC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;QAChC,IAAI,CAAC,KAAK;YAAE,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC1C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAAE,OAAO,IAAI,CAAC;QAC1C,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC","sourcesContent":["import {\n applyLocalEditorTheme,\n LOCAL_EDITOR_THEME_CLASS,\n type LocalEditorThemeName,\n} from './local-editor-ui-theme';\n\nconst TOOLTIP_DELAY_MS = 160;\nconst TOOLTIP_OFFSET_PX = 7;\nconst TOOLTIP_VIEWPORT_MARGIN_PX = 6;\n\nexport interface LocalEditorTooltipController {\n setTheme(theme: LocalEditorThemeName): void;\n hide(): void;\n dispose(): void;\n}\n\nexport interface LocalEditorTooltipControllerOptions {\n scope?: () => Iterable<HTMLElement>;\n}\n\nexport function createLocalEditorTooltipController(\n doc: Document,\n root: HTMLElement,\n theme?: LocalEditorThemeName,\n options: LocalEditorTooltipControllerOptions = {},\n): LocalEditorTooltipController {\n const tooltip = doc.createElement('div');\n tooltip.classList.add(LOCAL_EDITOR_THEME_CLASS, 'fps-editor-ui-tooltip');\n applyLocalEditorTheme(tooltip, theme);\n tooltip.dataset.editorTooltipSurface = 'true';\n tooltip.setAttribute('role', 'tooltip');\n root.appendChild(tooltip);\n\n let target: HTMLElement | null = null;\n let showTimer: number | null = null;\n\n const clearShowTimer = (): void => {\n if (showTimer == null) return;\n doc.defaultView?.clearTimeout(showTimer);\n showTimer = null;\n };\n\n const hide = (): void => {\n clearShowTimer();\n target = null;\n tooltip.style.display = 'none';\n tooltip.textContent = '';\n };\n\n const scheduleShow = (nextTarget: HTMLElement): void => {\n const text = readTooltipText(nextTarget);\n if (!text) {\n hide();\n return;\n }\n clearShowTimer();\n target = nextTarget;\n showTimer = doc.defaultView?.setTimeout(() => {\n showTimer = null;\n if (target !== nextTarget) return;\n show(nextTarget, text);\n }, TOOLTIP_DELAY_MS) ?? null;\n };\n\n const onPointerOver = (event: PointerEvent): void => {\n const nextTarget = findTooltipTarget(event.target);\n if (!nextTarget || nextTarget === target) return;\n scheduleShow(nextTarget);\n };\n const onPointerOut = (event: PointerEvent): void => {\n if (!target) return;\n const related = event.relatedTarget instanceof Node ? event.relatedTarget : null;\n if (related && target.contains(related)) return;\n hide();\n };\n const onFocusIn = (event: FocusEvent): void => {\n const nextTarget = findTooltipTarget(event.target);\n if (nextTarget) scheduleShow(nextTarget);\n };\n const onFocusOut = (): void => hide();\n const onCloseEvent = (): void => hide();\n\n doc.addEventListener('pointerover', onPointerOver, true);\n doc.addEventListener('pointerout', onPointerOut, true);\n doc.addEventListener('focusin', onFocusIn, true);\n doc.addEventListener('focusout', onFocusOut, true);\n doc.addEventListener('click', onCloseEvent, true);\n doc.defaultView?.addEventListener('resize', onCloseEvent);\n doc.defaultView?.addEventListener('scroll', onCloseEvent, { capture: true });\n\n return {\n setTheme(nextTheme) {\n applyLocalEditorTheme(tooltip, nextTheme);\n },\n hide,\n dispose() {\n hide();\n doc.removeEventListener('pointerover', onPointerOver, true);\n doc.removeEventListener('pointerout', onPointerOut, true);\n doc.removeEventListener('focusin', onFocusIn, true);\n doc.removeEventListener('focusout', onFocusOut, true);\n doc.removeEventListener('click', onCloseEvent, true);\n doc.defaultView?.removeEventListener('resize', onCloseEvent);\n doc.defaultView?.removeEventListener('scroll', onCloseEvent, { capture: true });\n tooltip.remove();\n },\n };\n\n function show(nextTarget: HTMLElement, text: string): void {\n tooltip.textContent = text;\n tooltip.style.display = 'block';\n tooltip.style.left = '0px';\n tooltip.style.top = '0px';\n positionTooltip(nextTarget);\n }\n\n function positionTooltip(nextTarget: HTMLElement): void {\n const view = doc.defaultView;\n const viewportWidth = view?.innerWidth ?? doc.documentElement.clientWidth;\n const viewportHeight = view?.innerHeight ?? doc.documentElement.clientHeight;\n const targetRect = nextTarget.getBoundingClientRect();\n const tooltipRect = tooltip.getBoundingClientRect();\n const preferredTop = targetRect.bottom + TOOLTIP_OFFSET_PX;\n const flippedTop = targetRect.top - tooltipRect.height - TOOLTIP_OFFSET_PX;\n const top = preferredTop + tooltipRect.height <= viewportHeight - TOOLTIP_VIEWPORT_MARGIN_PX\n ? preferredTop\n : Math.max(TOOLTIP_VIEWPORT_MARGIN_PX, flippedTop);\n const centeredLeft = targetRect.left + (targetRect.width - tooltipRect.width) / 2;\n const left = Math.max(\n TOOLTIP_VIEWPORT_MARGIN_PX,\n Math.min(centeredLeft, viewportWidth - tooltipRect.width - TOOLTIP_VIEWPORT_MARGIN_PX),\n );\n tooltip.style.left = `${left}px`;\n tooltip.style.top = `${top}px`;\n }\n\n function findTooltipTarget(value: EventTarget | null): HTMLElement | null {\n const element = value instanceof HTMLElement ? value : null;\n const nextTarget = element?.closest<HTMLElement>('[data-editor-tooltip]') ?? null;\n if (!nextTarget || !isOwnedTarget(nextTarget)) return null;\n return nextTarget;\n }\n\n function readTooltipText(element: HTMLElement): string {\n return element.dataset.editorTooltip?.trim() ?? '';\n }\n\n function isOwnedTarget(element: HTMLElement): boolean {\n const scope = options.scope?.();\n if (!scope) return root.contains(element);\n for (const item of scope) {\n if (item.contains(element)) return true;\n }\n return false;\n }\n}\n"]}
|