@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,2039 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.observer = {}));
|
|
5
|
+
})(this, (function (exports) { 'use strict';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* EventHandle manages the binding and unbinding of event listeners. It provides a convenient way
|
|
9
|
+
* to add, remove, and invoke event handlers associated with specific event names. Each EventHandle
|
|
10
|
+
* is linked to an 'owner' object, typically an instance of the Events class, allowing for elegant
|
|
11
|
+
* event management and chaining.
|
|
12
|
+
*/
|
|
13
|
+
class EventHandle {
|
|
14
|
+
/**
|
|
15
|
+
* Creates an instance of EventHandle.
|
|
16
|
+
*
|
|
17
|
+
* @param owner - Owner
|
|
18
|
+
* @param name - Name
|
|
19
|
+
* @param fn - Callback function
|
|
20
|
+
*/
|
|
21
|
+
constructor(owner, name, fn) {
|
|
22
|
+
this.owner = owner;
|
|
23
|
+
this.name = name;
|
|
24
|
+
this.fn = fn;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Unbinds the event handle from the owner, effectively removing the event listener. After
|
|
28
|
+
* calling this method, the event handle will no longer trigger the callback function when the
|
|
29
|
+
* event is emitted.
|
|
30
|
+
*/
|
|
31
|
+
unbind() {
|
|
32
|
+
if (!this.owner) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
this.owner.unbind(this.name, this.fn);
|
|
36
|
+
this.owner = null;
|
|
37
|
+
this.name = null;
|
|
38
|
+
this.fn = null;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Invokes the callback function associated with the event handle. This method directly
|
|
42
|
+
* triggers the event's callback without the event being emitted by the event system.
|
|
43
|
+
*/
|
|
44
|
+
call(_events, ..._args) {
|
|
45
|
+
if (!this.fn) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
this.fn.call(this.owner, arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Registers a new event listener on the same owner as the EventHandle. This method allows
|
|
52
|
+
* chaining additional event listeners to the owner of this event handle.
|
|
53
|
+
*
|
|
54
|
+
* @param name - Name
|
|
55
|
+
* @param fn - Callback function
|
|
56
|
+
* @returns EventHandle
|
|
57
|
+
*/
|
|
58
|
+
on(name, fn) {
|
|
59
|
+
return this.owner.on(name, fn);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Base class for event handling, providing mechanisms to register, emit, and unbind events. This
|
|
65
|
+
* class supports adding event listeners, emitting events with up to 8 arguments, and managing
|
|
66
|
+
* multiple emitters.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* // Create an instance of the Events class
|
|
70
|
+
* const events = new Events();
|
|
71
|
+
*
|
|
72
|
+
* // Register an event listener
|
|
73
|
+
* events.on('testEvent', (arg1, arg2) => {
|
|
74
|
+
* console.log('Event triggered with arguments:', arg1, arg2);
|
|
75
|
+
* });
|
|
76
|
+
*
|
|
77
|
+
* // Emit the event
|
|
78
|
+
* events.emit('testEvent', 'value1', 'value2');
|
|
79
|
+
*
|
|
80
|
+
* // Unbind the event listener
|
|
81
|
+
* events.unbind('testEvent');
|
|
82
|
+
*/
|
|
83
|
+
class Events {
|
|
84
|
+
/**
|
|
85
|
+
* Creates a new Events instance.
|
|
86
|
+
*/
|
|
87
|
+
constructor() {
|
|
88
|
+
// Make internal properties non-enumerable so they don't get serialized
|
|
89
|
+
// when the object is converted to JSON (e.g., for ShareDB sync)
|
|
90
|
+
const props = [
|
|
91
|
+
['_additionalEmitters', []],
|
|
92
|
+
['_events', {}],
|
|
93
|
+
['_suspendEvents', false]
|
|
94
|
+
];
|
|
95
|
+
for (const [name, value] of props) {
|
|
96
|
+
Object.defineProperty(this, name, { enumerable: false, writable: true, value });
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Sets whether events are suspended. If true, the observer will not emit events when values
|
|
101
|
+
* are set.
|
|
102
|
+
*/
|
|
103
|
+
set suspendEvents(value) {
|
|
104
|
+
this._suspendEvents = !!value;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Gets whether events are suspended.
|
|
108
|
+
*/
|
|
109
|
+
get suspendEvents() {
|
|
110
|
+
return this._suspendEvents;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Registers an event listener for the specified event name. If the event is emitted,
|
|
114
|
+
* the callback function is executed with up to 8 arguments.
|
|
115
|
+
*
|
|
116
|
+
* @param name - The name of the event to listen for.
|
|
117
|
+
* @param fn - The callback function to be executed when the event is emitted.
|
|
118
|
+
* @returns An EventHandle object that can be used to unbind the event listener.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* // Register an event listener
|
|
122
|
+
* events.on('testEvent', (arg1, arg2) => {
|
|
123
|
+
* console.log('Event triggered with arguments:', arg1, arg2);
|
|
124
|
+
* });
|
|
125
|
+
*
|
|
126
|
+
* // Emit the event
|
|
127
|
+
* events.emit('testEvent', 'value1', 'value2');
|
|
128
|
+
*/
|
|
129
|
+
on(name, fn) {
|
|
130
|
+
const events = this._events[name];
|
|
131
|
+
if (events === undefined) {
|
|
132
|
+
this._events[name] = [fn];
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
if (events.indexOf(fn) === -1) {
|
|
136
|
+
events.push(fn);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return new EventHandle(this, name, fn);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Registers a one-time event listener for the specified event name. The callback function is
|
|
143
|
+
* executed the next time the event is emitted, and then automatically unbound.
|
|
144
|
+
*
|
|
145
|
+
* @param name - The name of the event to listen for.
|
|
146
|
+
* @param fn - The callback function to be executed once when the event is emitted.
|
|
147
|
+
* @returns An EventHandle object that can be used to unbind the event listener
|
|
148
|
+
* before it is triggered.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* // Register a one-time event listener
|
|
152
|
+
* events.once('testEvent', (arg1, arg2) => {
|
|
153
|
+
* console.log('Event triggered once with arguments:', arg1, arg2);
|
|
154
|
+
* });
|
|
155
|
+
*
|
|
156
|
+
* // Emit the event
|
|
157
|
+
* events.emit('testEvent', 'value1', 'value2'); // The callback will be called and then unbound.
|
|
158
|
+
*
|
|
159
|
+
* // Emit the event again
|
|
160
|
+
* events.emit('testEvent', 'value1', 'value2'); // The callback will not be called this time.
|
|
161
|
+
*/
|
|
162
|
+
once(name, fn) {
|
|
163
|
+
const evt = this.on(name, (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) => {
|
|
164
|
+
fn.call(this, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
|
165
|
+
evt.unbind();
|
|
166
|
+
});
|
|
167
|
+
return evt;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Emits the specified event, executing all registered listeners for that event with the
|
|
171
|
+
* provided arguments. If events are suspended, the emit operation will be ignored.
|
|
172
|
+
*
|
|
173
|
+
* @param name - The name of the event to emit.
|
|
174
|
+
* @param arg0 - The first argument to pass to the event listeners.
|
|
175
|
+
* @param arg1 - The second argument to pass to the event listeners.
|
|
176
|
+
* @param arg2 - The third argument to pass to the event listeners.
|
|
177
|
+
* @param arg3 - The fourth argument to pass to the event listeners.
|
|
178
|
+
* @param arg4 - The fifth argument to pass to the event listeners.
|
|
179
|
+
* @param arg5 - The sixth argument to pass to the event listeners.
|
|
180
|
+
* @param arg6 - The seventh argument to pass to the event listeners.
|
|
181
|
+
* @param arg7 - The eighth argument to pass to the event listeners.
|
|
182
|
+
* @returns The current instance for chaining.
|
|
183
|
+
*
|
|
184
|
+
* @example
|
|
185
|
+
* // Register an event listener
|
|
186
|
+
* events.on('testEvent', (arg1, arg2) => {
|
|
187
|
+
* console.log('Event triggered with arguments:', arg1, arg2);
|
|
188
|
+
* });
|
|
189
|
+
*
|
|
190
|
+
* // Emit the event
|
|
191
|
+
* events.emit('testEvent', 'value1', 'value2');
|
|
192
|
+
*
|
|
193
|
+
* // Emit the event with more arguments
|
|
194
|
+
* events.emit('testEvent', 'value1', 'value2', 'value3', 'value4');
|
|
195
|
+
*/
|
|
196
|
+
emit(name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
197
|
+
if (this._suspendEvents)
|
|
198
|
+
return this;
|
|
199
|
+
let events = this._events[name];
|
|
200
|
+
if (events && events.length) {
|
|
201
|
+
events = events.slice(0);
|
|
202
|
+
for (let i = 0; i < events.length; i++) {
|
|
203
|
+
if (!events[i]) {
|
|
204
|
+
continue;
|
|
205
|
+
}
|
|
206
|
+
try {
|
|
207
|
+
events[i].call(this, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
|
208
|
+
}
|
|
209
|
+
catch (ex) {
|
|
210
|
+
console.info('%c%s %c(event error)', 'color: #06f', name, 'color: #f00');
|
|
211
|
+
console.log(ex.stack);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
if (this._additionalEmitters.length) {
|
|
216
|
+
const emitters = this._additionalEmitters.slice();
|
|
217
|
+
emitters.forEach((emitter) => {
|
|
218
|
+
emitter.emit(name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
return this;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Unbinds an event listener for the specified event name. If a callback function is provided,
|
|
225
|
+
* only that specific listener is removed. If no callback is provided, all listeners for the
|
|
226
|
+
* event are removed. If no event name is provided, all listeners for all events are removed.
|
|
227
|
+
*
|
|
228
|
+
* @param name - The name of the event to unbind. If not provided, all events are
|
|
229
|
+
* unbound.
|
|
230
|
+
* @param fn - The specific callback function to remove. If not provided, all
|
|
231
|
+
* listeners for the event are removed.
|
|
232
|
+
* @returns The current instance for chaining.
|
|
233
|
+
*
|
|
234
|
+
* @example
|
|
235
|
+
* // Register an event listener
|
|
236
|
+
* const callback = (arg1, arg2) => {
|
|
237
|
+
* console.log('Event triggered with arguments:', arg1, arg2);
|
|
238
|
+
* };
|
|
239
|
+
* events.on('testEvent', callback);
|
|
240
|
+
*
|
|
241
|
+
* // Unbind the specific event listener
|
|
242
|
+
* events.unbind('testEvent', callback);
|
|
243
|
+
*
|
|
244
|
+
* // Unbind all listeners for a specific event
|
|
245
|
+
* events.unbind('testEvent');
|
|
246
|
+
*
|
|
247
|
+
* // Unbind all listeners for all events
|
|
248
|
+
* events.unbind();
|
|
249
|
+
*/
|
|
250
|
+
unbind(name, fn) {
|
|
251
|
+
if (name) {
|
|
252
|
+
const events = this._events[name];
|
|
253
|
+
if (!events) {
|
|
254
|
+
return this;
|
|
255
|
+
}
|
|
256
|
+
if (fn) {
|
|
257
|
+
const i = events.indexOf(fn);
|
|
258
|
+
if (i !== -1) {
|
|
259
|
+
if (events.length === 1) {
|
|
260
|
+
delete this._events[name];
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
events.splice(i, 1);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
delete this._events[name];
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
this._events = {};
|
|
273
|
+
}
|
|
274
|
+
return this;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Adds another emitter. Any events fired by this instance will also be fired on the additional
|
|
278
|
+
* emitter.
|
|
279
|
+
*
|
|
280
|
+
* @param emitter - The emitter
|
|
281
|
+
*/
|
|
282
|
+
addEmitter(emitter) {
|
|
283
|
+
if (!this._additionalEmitters.includes(emitter)) {
|
|
284
|
+
this._additionalEmitters.push(emitter);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Removes emitter.
|
|
289
|
+
*
|
|
290
|
+
* @param emitter - The emitter
|
|
291
|
+
*/
|
|
292
|
+
removeEmitter(emitter) {
|
|
293
|
+
const idx = this._additionalEmitters.indexOf(emitter);
|
|
294
|
+
if (idx !== -1) {
|
|
295
|
+
this._additionalEmitters.splice(idx, 1);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
301
|
+
function adopt(value) {
|
|
302
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
303
|
+
resolve(value);
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
307
|
+
function fulfilled(value) {
|
|
308
|
+
try {
|
|
309
|
+
step(generator.next(value));
|
|
310
|
+
} catch (e) {
|
|
311
|
+
reject(e);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
function rejected(value) {
|
|
315
|
+
try {
|
|
316
|
+
step(generator["throw"](value));
|
|
317
|
+
} catch (e) {
|
|
318
|
+
reject(e);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
function step(result) {
|
|
322
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
323
|
+
}
|
|
324
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
328
|
+
var e = new Error(message);
|
|
329
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Manages history actions for undo/redo operations. This class keeps track of actions that can be
|
|
334
|
+
* undone and redone, allowing for complex state management in applications such as editors, games,
|
|
335
|
+
* or any interactive applications where state changes need to be reversible.
|
|
336
|
+
*
|
|
337
|
+
* @example
|
|
338
|
+
* const history = new History();
|
|
339
|
+
*
|
|
340
|
+
* // Define an action
|
|
341
|
+
* const action = {
|
|
342
|
+
* name: 'draw',
|
|
343
|
+
* undo: () => { console.log('Undo draw'); },
|
|
344
|
+
* redo: () => { console.log('Redo draw'); }
|
|
345
|
+
* };
|
|
346
|
+
*
|
|
347
|
+
* // Add the action to history
|
|
348
|
+
* history.add(action);
|
|
349
|
+
*
|
|
350
|
+
* // Perform undo
|
|
351
|
+
* history.undo();
|
|
352
|
+
*
|
|
353
|
+
* // Perform redo
|
|
354
|
+
* history.redo();
|
|
355
|
+
*/
|
|
356
|
+
class History extends Events {
|
|
357
|
+
constructor() {
|
|
358
|
+
super(...arguments);
|
|
359
|
+
this._executing = 0;
|
|
360
|
+
this._actions = [];
|
|
361
|
+
this._currentActionIndex = -1;
|
|
362
|
+
this._canUndo = false;
|
|
363
|
+
this._canRedo = false;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Adds a new history action to the stack. If the action has a combine flag and matches the
|
|
367
|
+
* current action's name, the redo function of the current action is updated. If actions have
|
|
368
|
+
* been undone before adding this new action, it removes all actions that come after the
|
|
369
|
+
* current action to maintain a consistent history.
|
|
370
|
+
*
|
|
371
|
+
* @param action - The action to add.
|
|
372
|
+
* @returns Returns `true` if the action is successfully added, `false` otherwise.
|
|
373
|
+
*/
|
|
374
|
+
add(action) {
|
|
375
|
+
if (!action.name) {
|
|
376
|
+
console.error('Trying to add history action without name');
|
|
377
|
+
return false;
|
|
378
|
+
}
|
|
379
|
+
if (!action.undo) {
|
|
380
|
+
console.error('Trying to add history action without undo method', action.name);
|
|
381
|
+
return false;
|
|
382
|
+
}
|
|
383
|
+
if (!action.redo) {
|
|
384
|
+
console.error('Trying to add history action without redo method', action.name);
|
|
385
|
+
return false;
|
|
386
|
+
}
|
|
387
|
+
// If an action is added after some actions have been undone, remove all actions that come
|
|
388
|
+
// after the current action to ensure the history is consistent.
|
|
389
|
+
if (this._currentActionIndex !== this._actions.length - 1) {
|
|
390
|
+
this._actions = this._actions.slice(0, this._currentActionIndex + 1);
|
|
391
|
+
}
|
|
392
|
+
// If the combine flag is true and the current action has the same name, replace the redo
|
|
393
|
+
// function of the current action with the new action's redo function.
|
|
394
|
+
if (action.combine && this.currentAction && this.currentAction.name === action.name) {
|
|
395
|
+
this.currentAction.redo = action.redo;
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
const length = this._actions.push(action);
|
|
399
|
+
this._currentActionIndex = length - 1;
|
|
400
|
+
}
|
|
401
|
+
this.emit('add', action.name);
|
|
402
|
+
this.canUndo = true;
|
|
403
|
+
this.canRedo = false;
|
|
404
|
+
return true;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Adds a new history action and immediately executes its redo function.
|
|
408
|
+
*
|
|
409
|
+
* @param action - The action.
|
|
410
|
+
* @returns A promise that resolves once the redo function has been executed.
|
|
411
|
+
*/
|
|
412
|
+
addAndExecute(action) {
|
|
413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
414
|
+
if (this.add(action)) {
|
|
415
|
+
// execute an action - don't allow history actions till it finishes
|
|
416
|
+
try {
|
|
417
|
+
this.executing++;
|
|
418
|
+
yield action.redo();
|
|
419
|
+
}
|
|
420
|
+
finally {
|
|
421
|
+
this.executing--;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Undoes the last history action. This method retrieves the current action from the history
|
|
428
|
+
* stack and executes the action's undo function.
|
|
429
|
+
*
|
|
430
|
+
* @returns A promise that resolves once the undo function has been executed.
|
|
431
|
+
*/
|
|
432
|
+
undo() {
|
|
433
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
434
|
+
if (!this.canUndo) {
|
|
435
|
+
return;
|
|
436
|
+
}
|
|
437
|
+
const name = this.currentAction.name;
|
|
438
|
+
const undo = this.currentAction.undo;
|
|
439
|
+
this._currentActionIndex--;
|
|
440
|
+
this.emit('undo', name);
|
|
441
|
+
if (this._currentActionIndex < 0) {
|
|
442
|
+
this.canUndo = false;
|
|
443
|
+
}
|
|
444
|
+
this.canRedo = true;
|
|
445
|
+
// execute an undo action - don't allow history actions until it finishes
|
|
446
|
+
try {
|
|
447
|
+
this.executing++;
|
|
448
|
+
yield undo();
|
|
449
|
+
}
|
|
450
|
+
catch (ex) {
|
|
451
|
+
console.info('%c(History#undo)', 'color: #f00');
|
|
452
|
+
console.log(ex.stack);
|
|
453
|
+
}
|
|
454
|
+
finally {
|
|
455
|
+
this.executing--;
|
|
456
|
+
}
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Redoes the next history action. This retrieves the next action from the history stack and
|
|
461
|
+
* executes the action's redo function.
|
|
462
|
+
*
|
|
463
|
+
* @returns A promise that resolves once the redo function has been executed.
|
|
464
|
+
*/
|
|
465
|
+
redo() {
|
|
466
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
467
|
+
if (!this.canRedo) {
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
this._currentActionIndex++;
|
|
471
|
+
const redo = this.currentAction.redo;
|
|
472
|
+
this.emit('redo', this.currentAction.name);
|
|
473
|
+
this.canUndo = true;
|
|
474
|
+
if (this._currentActionIndex === this._actions.length - 1) {
|
|
475
|
+
this.canRedo = false;
|
|
476
|
+
}
|
|
477
|
+
// execute redo action - don't allow history actions till it finishes
|
|
478
|
+
try {
|
|
479
|
+
this.executing++;
|
|
480
|
+
yield redo();
|
|
481
|
+
}
|
|
482
|
+
catch (ex) {
|
|
483
|
+
console.info('%c(History#redo)', 'color: #f00');
|
|
484
|
+
console.log(ex.stack);
|
|
485
|
+
}
|
|
486
|
+
finally {
|
|
487
|
+
this.executing--;
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Clears all history actions.
|
|
493
|
+
*/
|
|
494
|
+
clear() {
|
|
495
|
+
if (!this._actions.length)
|
|
496
|
+
return;
|
|
497
|
+
this._actions.length = 0;
|
|
498
|
+
this._currentActionIndex = -1;
|
|
499
|
+
this.canUndo = false;
|
|
500
|
+
this.canRedo = false;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* The current history action.
|
|
504
|
+
*/
|
|
505
|
+
get currentAction() {
|
|
506
|
+
return this._actions[this._currentActionIndex] || null;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* The last action committed to the history.
|
|
510
|
+
*/
|
|
511
|
+
get lastAction() {
|
|
512
|
+
return this._actions[this._actions.length - 1] || null;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Sets whether we can undo at this time.
|
|
516
|
+
*/
|
|
517
|
+
set canUndo(value) {
|
|
518
|
+
if (this._canUndo === value)
|
|
519
|
+
return;
|
|
520
|
+
this._canUndo = value;
|
|
521
|
+
if (!this.executing) {
|
|
522
|
+
this.emit('canUndo', value);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Gets whether we can undo at this time.
|
|
527
|
+
*/
|
|
528
|
+
get canUndo() {
|
|
529
|
+
return this._canUndo && !this.executing;
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* Sets whether we can redo at this time.
|
|
533
|
+
*/
|
|
534
|
+
set canRedo(value) {
|
|
535
|
+
if (this._canRedo === value)
|
|
536
|
+
return;
|
|
537
|
+
this._canRedo = value;
|
|
538
|
+
if (!this.executing) {
|
|
539
|
+
this.emit('canRedo', value);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* Gets whether we can redo at this time.
|
|
544
|
+
*/
|
|
545
|
+
get canRedo() {
|
|
546
|
+
return this._canRedo && !this.executing;
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Sets the number of async actions currently executing.
|
|
550
|
+
*/
|
|
551
|
+
set executing(value) {
|
|
552
|
+
if (this._executing === value)
|
|
553
|
+
return;
|
|
554
|
+
this._executing = value;
|
|
555
|
+
if (this._executing) {
|
|
556
|
+
this.emit('canUndo', false);
|
|
557
|
+
this.emit('canRedo', false);
|
|
558
|
+
}
|
|
559
|
+
else {
|
|
560
|
+
this.emit('canUndo', this._canUndo);
|
|
561
|
+
this.emit('canRedo', this._canRedo);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Gets the number of async actions currently executing.
|
|
566
|
+
*/
|
|
567
|
+
get executing() {
|
|
568
|
+
return this._executing;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Determines whether two arrays are deeply equal. Two arrays are considered equal if they have the
|
|
574
|
+
* same length and corresponding elements are equal. This function also supports nested arrays,
|
|
575
|
+
* comparing them recursively.
|
|
576
|
+
*
|
|
577
|
+
* @param a - The first array to compare.
|
|
578
|
+
* @param b - The second array to compare.
|
|
579
|
+
* @returns Returns `true` if the arrays are deeply equal, otherwise `false`.
|
|
580
|
+
*
|
|
581
|
+
* @example
|
|
582
|
+
* arrayEquals([1, 2, 3], [1, 2, 3]); // true
|
|
583
|
+
* arrayEquals([1, 2, 3], [3, 2, 1]); // false
|
|
584
|
+
* arrayEquals([1, [2, 3]], [1, [2, 3]]); // true
|
|
585
|
+
* arrayEquals([1, [2, 3]], [1, [3, 2]]); // false
|
|
586
|
+
* arrayEquals([1, 2, 3], null); // false
|
|
587
|
+
* arrayEquals(null, null); // false
|
|
588
|
+
*/
|
|
589
|
+
const arrayEquals = (a, b) => {
|
|
590
|
+
if (!a || !b) {
|
|
591
|
+
return false;
|
|
592
|
+
}
|
|
593
|
+
const l = a.length;
|
|
594
|
+
if (l !== b.length) {
|
|
595
|
+
return false;
|
|
596
|
+
}
|
|
597
|
+
for (let i = 0; i < l; i++) {
|
|
598
|
+
if (a[i] instanceof Array && b[i] instanceof Array) {
|
|
599
|
+
if (!arrayEquals(a[i], b[i])) {
|
|
600
|
+
return false;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
else if (a[i] !== b[i]) {
|
|
604
|
+
return false;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
return true;
|
|
608
|
+
};
|
|
609
|
+
/**
|
|
610
|
+
* Creates a deep copy of an array, recursively copying any nested arrays.
|
|
611
|
+
* Non-array objects within the array are not deep copied (they remain references).
|
|
612
|
+
*
|
|
613
|
+
* @param arr - The array to copy.
|
|
614
|
+
* @returns A deep copy of the array with all nested arrays also copied.
|
|
615
|
+
*
|
|
616
|
+
* @example
|
|
617
|
+
* const original = [[1, 2], [3, 4]];
|
|
618
|
+
* const copy = deepCopyArray(original);
|
|
619
|
+
* copy[0][0] = 99;
|
|
620
|
+
* console.log(original[0][0]); // 1 (unchanged)
|
|
621
|
+
*/
|
|
622
|
+
const deepCopyArray = (arr) => {
|
|
623
|
+
const copy = arr.slice(0);
|
|
624
|
+
for (let i = 0; i < copy.length; i++) {
|
|
625
|
+
if (copy[i] instanceof Array) {
|
|
626
|
+
copy[i] = deepCopyArray(copy[i]);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
return copy;
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* The Observer class is used to observe and manage changes to an object. It allows for tracking
|
|
634
|
+
* modifications to nested properties, emitting events on changes, and maintaining state
|
|
635
|
+
* consistency. This is particularly useful in applications where state management and change
|
|
636
|
+
* tracking are critical, such as in data-driven interfaces or collaborative applications.
|
|
637
|
+
*
|
|
638
|
+
* @example
|
|
639
|
+
* const data = {
|
|
640
|
+
* name: 'John',
|
|
641
|
+
* age: 30,
|
|
642
|
+
* address: {
|
|
643
|
+
* city: 'New York',
|
|
644
|
+
* zip: '10001'
|
|
645
|
+
* }
|
|
646
|
+
* };
|
|
647
|
+
*
|
|
648
|
+
* const observer = new Observer(data);
|
|
649
|
+
*
|
|
650
|
+
* observer.on('name:set', (newValue, oldValue) => {
|
|
651
|
+
* console.log(`Name changed from ${oldValue} to ${newValue}`);
|
|
652
|
+
* });
|
|
653
|
+
*
|
|
654
|
+
* observer.set('name', 'Jane'); // Logs: Name changed from John to Jane
|
|
655
|
+
*/
|
|
656
|
+
class Observer extends Events {
|
|
657
|
+
/**
|
|
658
|
+
* Creates a new Observer instance.
|
|
659
|
+
*
|
|
660
|
+
* @param data - The initial data to observe.
|
|
661
|
+
* @param options - Additional options for the observer.
|
|
662
|
+
*/
|
|
663
|
+
constructor(data, options = {}) {
|
|
664
|
+
super();
|
|
665
|
+
// Make internal properties non-enumerable so they don't get serialized
|
|
666
|
+
// when the object is converted to JSON (e.g., for ShareDB sync)
|
|
667
|
+
const props = [
|
|
668
|
+
['_destroyed', false],
|
|
669
|
+
['_path', ''],
|
|
670
|
+
['_keys', []],
|
|
671
|
+
['_data', {}],
|
|
672
|
+
['_pathsWithDuplicates', options.pathsWithDuplicates ? new Set(options.pathsWithDuplicates) : null],
|
|
673
|
+
['_parent', options.parent || null],
|
|
674
|
+
['_parentPath', options.parentPath || ''],
|
|
675
|
+
['_parentField', options.parentField || null],
|
|
676
|
+
['_parentKey', options.parentKey || null],
|
|
677
|
+
['_latestFn', options.latestFn || null],
|
|
678
|
+
['_silent', false]
|
|
679
|
+
];
|
|
680
|
+
for (const [name, value] of props) {
|
|
681
|
+
Object.defineProperty(this, name, { enumerable: false, writable: true, value });
|
|
682
|
+
}
|
|
683
|
+
this.patch(data);
|
|
684
|
+
const propagate = function (evt) {
|
|
685
|
+
return function (path, arg1, arg2, arg3) {
|
|
686
|
+
if (!this._parent) {
|
|
687
|
+
return;
|
|
688
|
+
}
|
|
689
|
+
let key = this._parentKey;
|
|
690
|
+
if (!key && (this._parentField instanceof Array)) {
|
|
691
|
+
key = this._parentField.indexOf(this);
|
|
692
|
+
if (key === -1) {
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
path = `${this._parentPath}.${key}.${path}`;
|
|
697
|
+
let state;
|
|
698
|
+
if (this._silent) {
|
|
699
|
+
state = this._parent.silence();
|
|
700
|
+
}
|
|
701
|
+
this._parent.emit(`${path}:${evt}`, arg1, arg2, arg3);
|
|
702
|
+
this._parent.emit(`*:${evt}`, path, arg1, arg2, arg3);
|
|
703
|
+
if (this._silent) {
|
|
704
|
+
this._parent.silenceRestore(state);
|
|
705
|
+
}
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
// propagate set
|
|
709
|
+
this.on('*:set', propagate('set'));
|
|
710
|
+
this.on('*:unset', propagate('unset'));
|
|
711
|
+
this.on('*:insert', propagate('insert'));
|
|
712
|
+
this.on('*:remove', propagate('remove'));
|
|
713
|
+
this.on('*:move', propagate('move'));
|
|
714
|
+
}
|
|
715
|
+
static _splitPath(path) {
|
|
716
|
+
const cache = Observer._splitPathsCache;
|
|
717
|
+
let result = cache[path];
|
|
718
|
+
if (!result) {
|
|
719
|
+
result = path.split('.');
|
|
720
|
+
cache[path] = result;
|
|
721
|
+
}
|
|
722
|
+
else {
|
|
723
|
+
result = result.slice();
|
|
724
|
+
}
|
|
725
|
+
return result;
|
|
726
|
+
}
|
|
727
|
+
silence() {
|
|
728
|
+
this._silent = true;
|
|
729
|
+
// history hook to prevent array values to be recorded
|
|
730
|
+
const historyState = this.history && this.history.enabled;
|
|
731
|
+
if (historyState) {
|
|
732
|
+
this.history.enabled = false;
|
|
733
|
+
}
|
|
734
|
+
// sync hook to prevent array values to be recorded as array root already did
|
|
735
|
+
const syncState = this.sync && this.sync.enabled;
|
|
736
|
+
if (syncState) {
|
|
737
|
+
this.sync.enabled = false;
|
|
738
|
+
}
|
|
739
|
+
return [historyState, syncState];
|
|
740
|
+
}
|
|
741
|
+
silenceRestore(state) {
|
|
742
|
+
this._silent = false;
|
|
743
|
+
if (state[0]) {
|
|
744
|
+
this.history.enabled = true;
|
|
745
|
+
}
|
|
746
|
+
if (state[1]) {
|
|
747
|
+
this.sync.enabled = true;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
_prepare(target, key, value, silent = false, remote = false) {
|
|
751
|
+
let i;
|
|
752
|
+
let state;
|
|
753
|
+
const path = (target._path ? (`${target._path}.`) : '') + key;
|
|
754
|
+
const type = typeof value;
|
|
755
|
+
target._keys.push(key);
|
|
756
|
+
if (type === 'object' && (value instanceof Array)) {
|
|
757
|
+
target._data[key] = value.slice(0);
|
|
758
|
+
for (i = 0; i < target._data[key].length; i++) {
|
|
759
|
+
if (typeof target._data[key][i] === 'object' && target._data[key][i] !== null) {
|
|
760
|
+
if (target._data[key][i] instanceof Array) {
|
|
761
|
+
target._data[key][i] = deepCopyArray(target._data[key][i]);
|
|
762
|
+
}
|
|
763
|
+
else {
|
|
764
|
+
target._data[key][i] = new Observer(target._data[key][i], {
|
|
765
|
+
parent: this,
|
|
766
|
+
parentPath: path,
|
|
767
|
+
parentField: target._data[key],
|
|
768
|
+
parentKey: null
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
else {
|
|
773
|
+
state = this.silence();
|
|
774
|
+
this.emit(`${path}.${i}:set`, target._data[key][i], null, remote);
|
|
775
|
+
this.emit('*:set', `${path}.${i}`, target._data[key][i], null, remote);
|
|
776
|
+
this.silenceRestore(state);
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
if (silent) {
|
|
780
|
+
state = this.silence();
|
|
781
|
+
}
|
|
782
|
+
this.emit(`${path}:set`, target._data[key], null, remote);
|
|
783
|
+
this.emit('*:set', path, target._data[key], null, remote);
|
|
784
|
+
if (silent) {
|
|
785
|
+
this.silenceRestore(state);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
else if (type === 'object' && (value instanceof Object)) {
|
|
789
|
+
if (typeof target._data[key] !== 'object') {
|
|
790
|
+
target._data[key] = {
|
|
791
|
+
_path: path,
|
|
792
|
+
_keys: [],
|
|
793
|
+
_data: {}
|
|
794
|
+
};
|
|
795
|
+
}
|
|
796
|
+
for (i in value) {
|
|
797
|
+
if (typeof value[i] === 'object') {
|
|
798
|
+
this._prepare(target._data[key], i, value[i], true, remote);
|
|
799
|
+
}
|
|
800
|
+
else {
|
|
801
|
+
state = this.silence();
|
|
802
|
+
target._data[key]._data[i] = value[i];
|
|
803
|
+
target._data[key]._keys.push(i);
|
|
804
|
+
this.emit(`${path}.${i}:set`, value[i], null, remote);
|
|
805
|
+
this.emit('*:set', `${path}.${i}`, value[i], null, remote);
|
|
806
|
+
this.silenceRestore(state);
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
if (silent) {
|
|
810
|
+
state = this.silence();
|
|
811
|
+
}
|
|
812
|
+
// passing undefined as valueOld here
|
|
813
|
+
// but we should get the old value to be consistent
|
|
814
|
+
this.emit(`${path}:set`, value, undefined, remote);
|
|
815
|
+
this.emit('*:set', path, value, undefined, remote);
|
|
816
|
+
if (silent) {
|
|
817
|
+
this.silenceRestore(state);
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
else {
|
|
821
|
+
if (silent) {
|
|
822
|
+
state = this.silence();
|
|
823
|
+
}
|
|
824
|
+
target._data[key] = value;
|
|
825
|
+
this.emit(`${path}:set`, value, undefined, remote);
|
|
826
|
+
this.emit('*:set', path, value, undefined, remote);
|
|
827
|
+
if (silent) {
|
|
828
|
+
this.silenceRestore(state);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
return true;
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* @param path - Path to the property in the object.
|
|
835
|
+
* @param value - Value to set.
|
|
836
|
+
* @param silent - If true, the change will not be recorded in history.
|
|
837
|
+
* @param remote - State value passed to the set event used to disable remote event emission.
|
|
838
|
+
* @param force - If true, the value will be set even if it is the same as the current value.
|
|
839
|
+
* @returns Returns true if the value was successfully set and false otherwise.
|
|
840
|
+
*/
|
|
841
|
+
set(path, value, silent = false, remote = false, force = false) {
|
|
842
|
+
let i;
|
|
843
|
+
let valueOld;
|
|
844
|
+
let keys = Observer._splitPath(path);
|
|
845
|
+
const length = keys.length;
|
|
846
|
+
const key = keys[length - 1];
|
|
847
|
+
let node = this;
|
|
848
|
+
let nodePath = '';
|
|
849
|
+
let obj = this;
|
|
850
|
+
let state;
|
|
851
|
+
for (i = 0; i < length - 1; i++) {
|
|
852
|
+
if (node instanceof Array) {
|
|
853
|
+
node = node[keys[i]];
|
|
854
|
+
if (node instanceof Observer) {
|
|
855
|
+
path = keys.slice(i + 1).join('.');
|
|
856
|
+
obj = node;
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
else {
|
|
860
|
+
if (i < length && typeof node._data[keys[i]] !== 'object') {
|
|
861
|
+
if (node._data[keys[i]]) {
|
|
862
|
+
obj.unset((node._path ? `${node._path}.` : '') + keys[i]);
|
|
863
|
+
}
|
|
864
|
+
node._data[keys[i]] = {
|
|
865
|
+
_path: path,
|
|
866
|
+
_keys: [],
|
|
867
|
+
_data: {}
|
|
868
|
+
};
|
|
869
|
+
node._keys.push(keys[i]);
|
|
870
|
+
}
|
|
871
|
+
if (i === length - 1 && node._path) {
|
|
872
|
+
nodePath = `${node._path}.${keys[i]}`;
|
|
873
|
+
}
|
|
874
|
+
node = node._data[keys[i]];
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
if (node instanceof Array) {
|
|
878
|
+
const ind = parseInt(key, 10);
|
|
879
|
+
if (node[ind] === value && !force) {
|
|
880
|
+
return false;
|
|
881
|
+
}
|
|
882
|
+
valueOld = node[ind];
|
|
883
|
+
if (valueOld instanceof Observer) {
|
|
884
|
+
valueOld = valueOld.json();
|
|
885
|
+
}
|
|
886
|
+
else {
|
|
887
|
+
valueOld = obj.json(valueOld);
|
|
888
|
+
}
|
|
889
|
+
node[ind] = value;
|
|
890
|
+
if (value instanceof Observer) {
|
|
891
|
+
value._parent = obj;
|
|
892
|
+
value._parentPath = nodePath;
|
|
893
|
+
value._parentField = node;
|
|
894
|
+
value._parentKey = null;
|
|
895
|
+
}
|
|
896
|
+
if (silent) {
|
|
897
|
+
state = obj.silence();
|
|
898
|
+
}
|
|
899
|
+
obj.emit(`${path}:set`, value, valueOld, remote);
|
|
900
|
+
obj.emit('*:set', path, value, valueOld, remote);
|
|
901
|
+
if (silent) {
|
|
902
|
+
obj.silenceRestore(state);
|
|
903
|
+
}
|
|
904
|
+
return true;
|
|
905
|
+
}
|
|
906
|
+
else if (node._data && !node._data.hasOwnProperty(key)) {
|
|
907
|
+
if (typeof value === 'object') {
|
|
908
|
+
return obj._prepare(node, key, value, false, remote);
|
|
909
|
+
}
|
|
910
|
+
node._data[key] = value;
|
|
911
|
+
node._keys.push(key);
|
|
912
|
+
if (silent) {
|
|
913
|
+
state = obj.silence();
|
|
914
|
+
}
|
|
915
|
+
obj.emit(`${path}:set`, value, null, remote);
|
|
916
|
+
obj.emit('*:set', path, value, null, remote);
|
|
917
|
+
if (silent) {
|
|
918
|
+
obj.silenceRestore(state);
|
|
919
|
+
}
|
|
920
|
+
return true;
|
|
921
|
+
}
|
|
922
|
+
if (typeof value === 'object' && (value instanceof Array)) {
|
|
923
|
+
if (arrayEquals(value, node._data[key]) && !force) {
|
|
924
|
+
return false;
|
|
925
|
+
}
|
|
926
|
+
valueOld = node._data[key];
|
|
927
|
+
if (!(valueOld instanceof Observer)) {
|
|
928
|
+
valueOld = obj.json(valueOld);
|
|
929
|
+
}
|
|
930
|
+
if (node._data[key] && node._data[key].length === value.length) {
|
|
931
|
+
state = obj.silence();
|
|
932
|
+
// handle new array instance
|
|
933
|
+
if (value.length === 0) {
|
|
934
|
+
node._data[key] = value;
|
|
935
|
+
}
|
|
936
|
+
for (i = 0; i < node._data[key].length; i++) {
|
|
937
|
+
if (node._data[key][i] instanceof Observer) {
|
|
938
|
+
node._data[key][i].patch(value[i], true);
|
|
939
|
+
}
|
|
940
|
+
else if (node._data[key][i] !== value[i]) {
|
|
941
|
+
node._data[key][i] = value[i];
|
|
942
|
+
obj.emit(`${path}.${i}:set`, node._data[key][i], valueOld && valueOld[i] || null, remote);
|
|
943
|
+
obj.emit('*:set', `${path}.${i}`, node._data[key][i], valueOld && valueOld[i] || null, remote);
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
obj.silenceRestore(state);
|
|
947
|
+
}
|
|
948
|
+
else {
|
|
949
|
+
node._data[key] = [];
|
|
950
|
+
value.forEach((val) => {
|
|
951
|
+
this._doInsert(node, key, val, undefined, true);
|
|
952
|
+
});
|
|
953
|
+
state = obj.silence();
|
|
954
|
+
for (i = 0; i < node._data[key].length; i++) {
|
|
955
|
+
obj.emit(`${path}.${i}:set`, node._data[key][i], valueOld && valueOld[i] || null, remote);
|
|
956
|
+
obj.emit('*:set', `${path}.${i}`, node._data[key][i], valueOld && valueOld[i] || null, remote);
|
|
957
|
+
}
|
|
958
|
+
obj.silenceRestore(state);
|
|
959
|
+
}
|
|
960
|
+
if (silent) {
|
|
961
|
+
state = obj.silence();
|
|
962
|
+
}
|
|
963
|
+
obj.emit(`${path}:set`, value, valueOld, remote);
|
|
964
|
+
obj.emit('*:set', path, value, valueOld, remote);
|
|
965
|
+
if (silent) {
|
|
966
|
+
obj.silenceRestore(state);
|
|
967
|
+
}
|
|
968
|
+
return true;
|
|
969
|
+
}
|
|
970
|
+
else if (typeof value === 'object' && (value instanceof Object)) {
|
|
971
|
+
let changed = false;
|
|
972
|
+
valueOld = node._data[key];
|
|
973
|
+
if (!(valueOld instanceof Observer)) {
|
|
974
|
+
valueOld = obj.json(valueOld);
|
|
975
|
+
}
|
|
976
|
+
keys = Object.keys(value);
|
|
977
|
+
if (!node._data[key] || !node._data[key]._data) {
|
|
978
|
+
if (node._data[key]) {
|
|
979
|
+
obj.unset((node._path ? `${node._path}.` : '') + key);
|
|
980
|
+
}
|
|
981
|
+
else {
|
|
982
|
+
changed = true;
|
|
983
|
+
}
|
|
984
|
+
node._data[key] = {
|
|
985
|
+
_path: path,
|
|
986
|
+
_keys: [],
|
|
987
|
+
_data: {}
|
|
988
|
+
};
|
|
989
|
+
}
|
|
990
|
+
let c;
|
|
991
|
+
for (const n in node._data[key]._data) {
|
|
992
|
+
if (!value.hasOwnProperty(n)) {
|
|
993
|
+
c = obj.unset(`${path}.${n}`, true);
|
|
994
|
+
if (c)
|
|
995
|
+
changed = true;
|
|
996
|
+
}
|
|
997
|
+
else if (node._data[key]._data.hasOwnProperty(n)) {
|
|
998
|
+
if (!obj._equals(node._data[key]._data[n], value[n])) {
|
|
999
|
+
c = obj.set(`${path}.${n}`, value[n], true);
|
|
1000
|
+
if (c)
|
|
1001
|
+
changed = true;
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
else {
|
|
1005
|
+
c = obj._prepare(node._data[key], n, value[n], true, remote);
|
|
1006
|
+
if (c)
|
|
1007
|
+
changed = true;
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
for (i = 0; i < keys.length; i++) {
|
|
1011
|
+
if (value[keys[i]] === undefined && node._data[key]._data.hasOwnProperty(keys[i])) {
|
|
1012
|
+
c = obj.unset(`${path}.${keys[i]}`, true);
|
|
1013
|
+
if (c)
|
|
1014
|
+
changed = true;
|
|
1015
|
+
}
|
|
1016
|
+
else if (typeof value[keys[i]] === 'object') {
|
|
1017
|
+
if (node._data[key]._data.hasOwnProperty(keys[i])) {
|
|
1018
|
+
c = obj.set(`${path}.${keys[i]}`, value[keys[i]], true);
|
|
1019
|
+
if (c)
|
|
1020
|
+
changed = true;
|
|
1021
|
+
}
|
|
1022
|
+
else {
|
|
1023
|
+
c = obj._prepare(node._data[key], keys[i], value[keys[i]], true, remote);
|
|
1024
|
+
if (c)
|
|
1025
|
+
changed = true;
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
else if (!obj._equals(node._data[key]._data[keys[i]], value[keys[i]])) {
|
|
1029
|
+
if (typeof value[keys[i]] === 'object') {
|
|
1030
|
+
c = obj.set(`${node._data[key]._path}.${keys[i]}`, value[keys[i]], true);
|
|
1031
|
+
if (c)
|
|
1032
|
+
changed = true;
|
|
1033
|
+
}
|
|
1034
|
+
else if (node._data[key]._data[keys[i]] !== value[keys[i]]) {
|
|
1035
|
+
changed = true;
|
|
1036
|
+
if (node._data[key]._keys.indexOf(keys[i]) === -1) {
|
|
1037
|
+
node._data[key]._keys.push(keys[i]);
|
|
1038
|
+
}
|
|
1039
|
+
node._data[key]._data[keys[i]] = value[keys[i]];
|
|
1040
|
+
state = obj.silence();
|
|
1041
|
+
obj.emit(`${node._data[key]._path}.${keys[i]}:set`, node._data[key]._data[keys[i]], null, remote);
|
|
1042
|
+
obj.emit('*:set', `${node._data[key]._path}.${keys[i]}`, node._data[key]._data[keys[i]], null, remote);
|
|
1043
|
+
obj.silenceRestore(state);
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
if (changed) {
|
|
1048
|
+
if (silent) {
|
|
1049
|
+
state = obj.silence();
|
|
1050
|
+
}
|
|
1051
|
+
const val = obj.json(node._data[key]);
|
|
1052
|
+
obj.emit(`${node._data[key]._path}:set`, val, valueOld, remote);
|
|
1053
|
+
obj.emit('*:set', node._data[key]._path, val, valueOld, remote);
|
|
1054
|
+
if (silent) {
|
|
1055
|
+
obj.silenceRestore(state);
|
|
1056
|
+
}
|
|
1057
|
+
return true;
|
|
1058
|
+
}
|
|
1059
|
+
return false;
|
|
1060
|
+
}
|
|
1061
|
+
let data;
|
|
1062
|
+
if (!node.hasOwnProperty('_data') && node.hasOwnProperty(key)) {
|
|
1063
|
+
data = node;
|
|
1064
|
+
}
|
|
1065
|
+
else {
|
|
1066
|
+
data = node._data;
|
|
1067
|
+
}
|
|
1068
|
+
if (data[key] === value && !force) {
|
|
1069
|
+
return false;
|
|
1070
|
+
}
|
|
1071
|
+
if (silent) {
|
|
1072
|
+
state = obj.silence();
|
|
1073
|
+
}
|
|
1074
|
+
valueOld = data[key];
|
|
1075
|
+
if (!(valueOld instanceof Observer)) {
|
|
1076
|
+
valueOld = obj.json(valueOld);
|
|
1077
|
+
}
|
|
1078
|
+
data[key] = value;
|
|
1079
|
+
obj.emit(`${path}:set`, value, valueOld, remote);
|
|
1080
|
+
obj.emit('*:set', path, value, valueOld, remote);
|
|
1081
|
+
if (silent) {
|
|
1082
|
+
obj.silenceRestore(state);
|
|
1083
|
+
}
|
|
1084
|
+
return true;
|
|
1085
|
+
}
|
|
1086
|
+
/**
|
|
1087
|
+
* Query whether the object has the specified property.
|
|
1088
|
+
*
|
|
1089
|
+
* @param path - Path to the value.
|
|
1090
|
+
* @returns Returns true if the value is present and false otherwise.
|
|
1091
|
+
*/
|
|
1092
|
+
has(path) {
|
|
1093
|
+
const keys = Observer._splitPath(path);
|
|
1094
|
+
let node = this;
|
|
1095
|
+
for (let i = 0, len = keys.length; i < len; i++) {
|
|
1096
|
+
// eslint-disable-next-line eqeqeq
|
|
1097
|
+
if (node == undefined) {
|
|
1098
|
+
return undefined;
|
|
1099
|
+
}
|
|
1100
|
+
if (node._data) {
|
|
1101
|
+
node = node._data[keys[i]];
|
|
1102
|
+
}
|
|
1103
|
+
else {
|
|
1104
|
+
node = node[keys[i]];
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
return node !== undefined;
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* @param path - Path to the value.
|
|
1111
|
+
* @param raw - Retrieve the observer object without converting it to JSON.
|
|
1112
|
+
* @returns The value at the specified path.
|
|
1113
|
+
*/
|
|
1114
|
+
get(path, raw = false) {
|
|
1115
|
+
const keys = Observer._splitPath(path);
|
|
1116
|
+
let node = this;
|
|
1117
|
+
for (let i = 0; i < keys.length; i++) {
|
|
1118
|
+
// eslint-disable-next-line eqeqeq
|
|
1119
|
+
if (node == undefined) {
|
|
1120
|
+
return undefined;
|
|
1121
|
+
}
|
|
1122
|
+
if (node._data) {
|
|
1123
|
+
node = node._data[keys[i]];
|
|
1124
|
+
}
|
|
1125
|
+
else {
|
|
1126
|
+
node = node[keys[i]];
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
if (raw) {
|
|
1130
|
+
return node;
|
|
1131
|
+
}
|
|
1132
|
+
if (node == null) {
|
|
1133
|
+
return null;
|
|
1134
|
+
}
|
|
1135
|
+
return this.json(node);
|
|
1136
|
+
}
|
|
1137
|
+
getRaw(path) {
|
|
1138
|
+
return this.get(path, true);
|
|
1139
|
+
}
|
|
1140
|
+
_equals(a, b) {
|
|
1141
|
+
if (a === b) {
|
|
1142
|
+
return true;
|
|
1143
|
+
}
|
|
1144
|
+
else if (a instanceof Array && b instanceof Array && arrayEquals(a, b)) {
|
|
1145
|
+
return true;
|
|
1146
|
+
}
|
|
1147
|
+
return false;
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* @param path - Path to the value.
|
|
1151
|
+
* @param silent - If true, the change will not be recorded in history.
|
|
1152
|
+
* @param remote - State value passed to the set event used to disable remote event emission.
|
|
1153
|
+
* @returns Returns true if the value was successfully unset and false otherwise.
|
|
1154
|
+
*/
|
|
1155
|
+
unset(path, silent = false, remote = false) {
|
|
1156
|
+
let i;
|
|
1157
|
+
const keys = Observer._splitPath(path);
|
|
1158
|
+
const key = keys[keys.length - 1];
|
|
1159
|
+
let node = this;
|
|
1160
|
+
let obj = this;
|
|
1161
|
+
for (i = 0; i < keys.length - 1; i++) {
|
|
1162
|
+
if (node instanceof Array) {
|
|
1163
|
+
node = node[keys[i]];
|
|
1164
|
+
if (node instanceof Observer) {
|
|
1165
|
+
path = keys.slice(i + 1).join('.');
|
|
1166
|
+
obj = node;
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
else {
|
|
1170
|
+
node = node._data[keys[i]];
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
if (!node._data || !node._data.hasOwnProperty(key)) {
|
|
1174
|
+
return false;
|
|
1175
|
+
}
|
|
1176
|
+
let valueOld = node._data[key];
|
|
1177
|
+
if (!(valueOld instanceof Observer)) {
|
|
1178
|
+
valueOld = obj.json(valueOld);
|
|
1179
|
+
}
|
|
1180
|
+
// recursive
|
|
1181
|
+
if (node._data[key] && node._data[key]._data) {
|
|
1182
|
+
// do this in reverse order because node._data[key]._keys gets
|
|
1183
|
+
// modified as we loop
|
|
1184
|
+
for (i = node._data[key]._keys.length - 1; i >= 0; i--) {
|
|
1185
|
+
obj.unset(`${path}.${node._data[key]._keys[i]}`, true);
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
node._keys.splice(node._keys.indexOf(key), 1);
|
|
1189
|
+
delete node._data[key];
|
|
1190
|
+
let state;
|
|
1191
|
+
if (silent) {
|
|
1192
|
+
state = obj.silence();
|
|
1193
|
+
}
|
|
1194
|
+
obj.emit(`${path}:unset`, valueOld, remote);
|
|
1195
|
+
obj.emit('*:unset', path, valueOld, remote);
|
|
1196
|
+
if (silent) {
|
|
1197
|
+
obj.silenceRestore(state);
|
|
1198
|
+
}
|
|
1199
|
+
return true;
|
|
1200
|
+
}
|
|
1201
|
+
/**
|
|
1202
|
+
* @param path - Path to the value.
|
|
1203
|
+
* @param ind - Index of the value.
|
|
1204
|
+
* @param silent - If true, the remove event will not be emitted.
|
|
1205
|
+
* @param remote - State value passed to the set event used to disable remote event emission.
|
|
1206
|
+
* @returns Returns true if the value was successfully removed and false otherwise.
|
|
1207
|
+
*/
|
|
1208
|
+
remove(path, ind, silent = false, remote = false) {
|
|
1209
|
+
const keys = Observer._splitPath(path);
|
|
1210
|
+
const key = keys[keys.length - 1];
|
|
1211
|
+
let node = this;
|
|
1212
|
+
let obj = this;
|
|
1213
|
+
for (let i = 0; i < keys.length - 1; i++) {
|
|
1214
|
+
if (node instanceof Array) {
|
|
1215
|
+
node = node[parseInt(keys[i], 10)];
|
|
1216
|
+
if (node instanceof Observer) {
|
|
1217
|
+
path = keys.slice(i + 1).join('.');
|
|
1218
|
+
obj = node;
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
else if (node._data && node._data.hasOwnProperty(keys[i])) {
|
|
1222
|
+
node = node._data[keys[i]];
|
|
1223
|
+
}
|
|
1224
|
+
else {
|
|
1225
|
+
return false;
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
if (!node._data || !node._data.hasOwnProperty(key) || !(node._data[key] instanceof Array)) {
|
|
1229
|
+
return false;
|
|
1230
|
+
}
|
|
1231
|
+
const arr = node._data[key];
|
|
1232
|
+
if (arr.length < ind) {
|
|
1233
|
+
return false;
|
|
1234
|
+
}
|
|
1235
|
+
let value = arr[ind];
|
|
1236
|
+
if (value instanceof Observer) {
|
|
1237
|
+
value._parent = null;
|
|
1238
|
+
}
|
|
1239
|
+
else {
|
|
1240
|
+
value = obj.json(value);
|
|
1241
|
+
}
|
|
1242
|
+
arr.splice(ind, 1);
|
|
1243
|
+
let state;
|
|
1244
|
+
if (silent) {
|
|
1245
|
+
state = obj.silence();
|
|
1246
|
+
}
|
|
1247
|
+
obj.emit(`${path}:remove`, value, ind, remote);
|
|
1248
|
+
obj.emit('*:remove', path, value, ind, remote);
|
|
1249
|
+
if (silent) {
|
|
1250
|
+
obj.silenceRestore(state);
|
|
1251
|
+
}
|
|
1252
|
+
return true;
|
|
1253
|
+
}
|
|
1254
|
+
/**
|
|
1255
|
+
* @param path - Path to the value.
|
|
1256
|
+
* @param value - Value to remove.
|
|
1257
|
+
* @param silent - If true, the remove event will not be emitted.
|
|
1258
|
+
* @param remote - State value passed to the set event used to disable remote event emission.
|
|
1259
|
+
* @returns Returns true if the value was successfully removed and false otherwise.
|
|
1260
|
+
*/
|
|
1261
|
+
removeValue(path, value, silent = false, remote = false) {
|
|
1262
|
+
const keys = Observer._splitPath(path);
|
|
1263
|
+
const key = keys[keys.length - 1];
|
|
1264
|
+
let node = this;
|
|
1265
|
+
let obj = this;
|
|
1266
|
+
for (let i = 0; i < keys.length - 1; i++) {
|
|
1267
|
+
if (node instanceof Array) {
|
|
1268
|
+
node = node[parseInt(keys[i], 10)];
|
|
1269
|
+
if (node instanceof Observer) {
|
|
1270
|
+
path = keys.slice(i + 1).join('.');
|
|
1271
|
+
obj = node;
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
else if (node._data && node._data.hasOwnProperty(keys[i])) {
|
|
1275
|
+
node = node._data[keys[i]];
|
|
1276
|
+
}
|
|
1277
|
+
else {
|
|
1278
|
+
return;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
if (!node._data || !node._data.hasOwnProperty(key) || !(node._data[key] instanceof Array)) {
|
|
1282
|
+
return;
|
|
1283
|
+
}
|
|
1284
|
+
const arr = node._data[key];
|
|
1285
|
+
const ind = arr.indexOf(value);
|
|
1286
|
+
if (ind === -1) {
|
|
1287
|
+
return;
|
|
1288
|
+
}
|
|
1289
|
+
if (arr.length < ind) {
|
|
1290
|
+
return;
|
|
1291
|
+
}
|
|
1292
|
+
value = arr[ind];
|
|
1293
|
+
if (value instanceof Observer) {
|
|
1294
|
+
value._parent = null;
|
|
1295
|
+
}
|
|
1296
|
+
else {
|
|
1297
|
+
value = obj.json(value);
|
|
1298
|
+
}
|
|
1299
|
+
arr.splice(ind, 1);
|
|
1300
|
+
let state;
|
|
1301
|
+
if (silent) {
|
|
1302
|
+
state = obj.silence();
|
|
1303
|
+
}
|
|
1304
|
+
obj.emit(`${path}:remove`, value, ind, remote);
|
|
1305
|
+
obj.emit('*:remove', path, value, ind, remote);
|
|
1306
|
+
if (silent) {
|
|
1307
|
+
obj.silenceRestore(state);
|
|
1308
|
+
}
|
|
1309
|
+
return true;
|
|
1310
|
+
}
|
|
1311
|
+
/**
|
|
1312
|
+
* @param path - Path to the value.
|
|
1313
|
+
* @param value - Value to insert.
|
|
1314
|
+
* @param ind - Index to insert the value at.
|
|
1315
|
+
* @param silent - If true, the insert event will not be emitted.
|
|
1316
|
+
* @param remote - State value passed to the set event used to disable remote event emission.
|
|
1317
|
+
* @returns Returns true if the value was successfully inserted and false otherwise.
|
|
1318
|
+
*/
|
|
1319
|
+
insert(path, value, ind, silent = false, remote = false) {
|
|
1320
|
+
const keys = Observer._splitPath(path);
|
|
1321
|
+
const key = keys[keys.length - 1];
|
|
1322
|
+
let node = this;
|
|
1323
|
+
let obj = this;
|
|
1324
|
+
for (let i = 0; i < keys.length - 1; i++) {
|
|
1325
|
+
if (node instanceof Array) {
|
|
1326
|
+
node = node[parseInt(keys[i], 10)];
|
|
1327
|
+
if (node instanceof Observer) {
|
|
1328
|
+
path = keys.slice(i + 1).join('.');
|
|
1329
|
+
obj = node;
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
else if (node._data && node._data.hasOwnProperty(keys[i])) {
|
|
1333
|
+
node = node._data[keys[i]];
|
|
1334
|
+
}
|
|
1335
|
+
else {
|
|
1336
|
+
return;
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
if (!node._data || !node._data.hasOwnProperty(key) || !(node._data[key] instanceof Array)) {
|
|
1340
|
+
return;
|
|
1341
|
+
}
|
|
1342
|
+
const arr = node._data[key];
|
|
1343
|
+
value = obj._doInsert(node, key, value, ind);
|
|
1344
|
+
if (ind === undefined) {
|
|
1345
|
+
ind = arr.length - 1;
|
|
1346
|
+
}
|
|
1347
|
+
let state;
|
|
1348
|
+
if (silent) {
|
|
1349
|
+
state = obj.silence();
|
|
1350
|
+
}
|
|
1351
|
+
obj.emit(`${path}:insert`, value, ind, remote);
|
|
1352
|
+
obj.emit('*:insert', path, value, ind, remote);
|
|
1353
|
+
if (silent) {
|
|
1354
|
+
obj.silenceRestore(state);
|
|
1355
|
+
}
|
|
1356
|
+
return true;
|
|
1357
|
+
}
|
|
1358
|
+
_doInsert(node, key, value, ind, allowDuplicates = false) {
|
|
1359
|
+
var _a;
|
|
1360
|
+
const arr = node._data[key];
|
|
1361
|
+
if (typeof value === 'object' && !(value instanceof Observer) && value !== null) {
|
|
1362
|
+
if (value instanceof Array) {
|
|
1363
|
+
value = value.slice(0);
|
|
1364
|
+
}
|
|
1365
|
+
else {
|
|
1366
|
+
value = new Observer(value);
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
const path = node._path ? `${node._path}.${key}` : key;
|
|
1370
|
+
if (value !== null && !allowDuplicates && !((_a = this._pathsWithDuplicates) === null || _a === void 0 ? void 0 : _a.has(path))) {
|
|
1371
|
+
if (arr.indexOf(value) !== -1) {
|
|
1372
|
+
return;
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
if (ind === undefined) {
|
|
1376
|
+
arr.push(value);
|
|
1377
|
+
}
|
|
1378
|
+
else {
|
|
1379
|
+
arr.splice(ind, 0, value);
|
|
1380
|
+
}
|
|
1381
|
+
if (value instanceof Observer) {
|
|
1382
|
+
value._parent = this;
|
|
1383
|
+
value._parentPath = path;
|
|
1384
|
+
value._parentField = arr;
|
|
1385
|
+
value._parentKey = null;
|
|
1386
|
+
}
|
|
1387
|
+
else {
|
|
1388
|
+
value = this.json(value);
|
|
1389
|
+
}
|
|
1390
|
+
return value;
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* @param path - Path to the value.
|
|
1394
|
+
* @param indOld - Index of the value to move.
|
|
1395
|
+
* @param indNew - Index to move the value to.
|
|
1396
|
+
* @param silent - If true, the move event will not be emitted.
|
|
1397
|
+
* @param remote - State value passed to the set event used to disable remote event emission.
|
|
1398
|
+
* @returns Returns true if the value was successfully moved and false otherwise.
|
|
1399
|
+
*/
|
|
1400
|
+
move(path, indOld, indNew, silent = false, remote = false) {
|
|
1401
|
+
const keys = Observer._splitPath(path);
|
|
1402
|
+
const key = keys[keys.length - 1];
|
|
1403
|
+
let node = this;
|
|
1404
|
+
let obj = this;
|
|
1405
|
+
for (let i = 0; i < keys.length - 1; i++) {
|
|
1406
|
+
if (node instanceof Array) {
|
|
1407
|
+
node = node[parseInt(keys[i], 10)];
|
|
1408
|
+
if (node instanceof Observer) {
|
|
1409
|
+
path = keys.slice(i + 1).join('.');
|
|
1410
|
+
obj = node;
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
else if (node._data && node._data.hasOwnProperty(keys[i])) {
|
|
1414
|
+
node = node._data[keys[i]];
|
|
1415
|
+
}
|
|
1416
|
+
else {
|
|
1417
|
+
return;
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
if (!node._data || !node._data.hasOwnProperty(key) || !(node._data[key] instanceof Array)) {
|
|
1421
|
+
return;
|
|
1422
|
+
}
|
|
1423
|
+
const arr = node._data[key];
|
|
1424
|
+
if (arr.length < indOld || arr.length < indNew || indOld === indNew) {
|
|
1425
|
+
return;
|
|
1426
|
+
}
|
|
1427
|
+
let value = arr[indOld];
|
|
1428
|
+
arr.splice(indOld, 1);
|
|
1429
|
+
if (indNew === -1) {
|
|
1430
|
+
indNew = arr.length;
|
|
1431
|
+
}
|
|
1432
|
+
arr.splice(indNew, 0, value);
|
|
1433
|
+
if (!(value instanceof Observer)) {
|
|
1434
|
+
value = obj.json(value);
|
|
1435
|
+
}
|
|
1436
|
+
let state;
|
|
1437
|
+
if (silent) {
|
|
1438
|
+
state = obj.silence();
|
|
1439
|
+
}
|
|
1440
|
+
obj.emit(`${path}:move`, value, indNew, indOld, remote);
|
|
1441
|
+
obj.emit('*:move', path, value, indNew, indOld, remote);
|
|
1442
|
+
if (silent) {
|
|
1443
|
+
obj.silenceRestore(state);
|
|
1444
|
+
}
|
|
1445
|
+
return true;
|
|
1446
|
+
}
|
|
1447
|
+
patch(data, removeMissingKeys = false) {
|
|
1448
|
+
if (typeof data !== 'object') {
|
|
1449
|
+
return;
|
|
1450
|
+
}
|
|
1451
|
+
for (const key in data) {
|
|
1452
|
+
if (typeof data[key] === 'object' && !this._data.hasOwnProperty(key)) {
|
|
1453
|
+
this._prepare(this, key, data[key]);
|
|
1454
|
+
}
|
|
1455
|
+
else if (this._data[key] !== data[key]) {
|
|
1456
|
+
this.set(key, data[key]);
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
if (removeMissingKeys) {
|
|
1460
|
+
for (const key in this._data) {
|
|
1461
|
+
if (!data.hasOwnProperty(key)) {
|
|
1462
|
+
this.unset(key);
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
/**
|
|
1468
|
+
* @param target - The object to JSONify.
|
|
1469
|
+
* @returns The current state of the object tracked by the observer.
|
|
1470
|
+
*/
|
|
1471
|
+
json(target) {
|
|
1472
|
+
let key, n;
|
|
1473
|
+
let obj = {};
|
|
1474
|
+
const node = target === undefined ? this : target;
|
|
1475
|
+
let len, nlen;
|
|
1476
|
+
if (node instanceof Object && node._keys) {
|
|
1477
|
+
len = node._keys.length;
|
|
1478
|
+
for (let i = 0; i < len; i++) {
|
|
1479
|
+
key = node._keys[i];
|
|
1480
|
+
const value = node._data[key];
|
|
1481
|
+
const type = typeof value;
|
|
1482
|
+
if (type === 'object' && (value instanceof Array)) {
|
|
1483
|
+
obj[key] = value.slice(0);
|
|
1484
|
+
nlen = obj[key].length;
|
|
1485
|
+
for (n = 0; n < nlen; n++) {
|
|
1486
|
+
if (typeof obj[key][n] === 'object') {
|
|
1487
|
+
obj[key][n] = this.json(obj[key][n]);
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
else if (type === 'object' && (value instanceof Object)) {
|
|
1492
|
+
obj[key] = this.json(value);
|
|
1493
|
+
}
|
|
1494
|
+
else {
|
|
1495
|
+
obj[key] = value;
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
else {
|
|
1500
|
+
if (node === null) {
|
|
1501
|
+
return null;
|
|
1502
|
+
}
|
|
1503
|
+
else if (typeof node === 'object' && (node instanceof Array)) {
|
|
1504
|
+
obj = node.slice(0);
|
|
1505
|
+
len = obj.length;
|
|
1506
|
+
for (n = 0; n < len; n++) {
|
|
1507
|
+
obj[n] = this.json(obj[n]);
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
else if (typeof node === 'object') {
|
|
1511
|
+
for (key in node) {
|
|
1512
|
+
if (node.hasOwnProperty(key)) {
|
|
1513
|
+
obj[key] = node[key];
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
else {
|
|
1518
|
+
obj = node;
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
return obj;
|
|
1522
|
+
}
|
|
1523
|
+
forEach(fn, target, path = '') {
|
|
1524
|
+
const node = target || this;
|
|
1525
|
+
for (let i = 0; i < node._keys.length; i++) {
|
|
1526
|
+
const key = node._keys[i];
|
|
1527
|
+
const value = node._data[key];
|
|
1528
|
+
const type = (this.schema && this.schema.has(path + key) && this.schema.get(path + key).type.name.toLowerCase()) || typeof value;
|
|
1529
|
+
if (type === 'object' && (value instanceof Array)) {
|
|
1530
|
+
fn(path + key, 'array', value, key);
|
|
1531
|
+
}
|
|
1532
|
+
else if (type === 'object' && (value instanceof Object)) {
|
|
1533
|
+
fn(path + key, 'object', value, key);
|
|
1534
|
+
this.forEach(fn, value, `${path + key}.`);
|
|
1535
|
+
}
|
|
1536
|
+
else {
|
|
1537
|
+
fn(path + key, type, value, key);
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
/**
|
|
1542
|
+
* Returns the latest observer instance. This is important when
|
|
1543
|
+
* dealing with undo / redo where the observer might have been deleted
|
|
1544
|
+
* and/or possibly re-created.
|
|
1545
|
+
*
|
|
1546
|
+
* @returns The latest instance of the observer.
|
|
1547
|
+
*/
|
|
1548
|
+
latest() {
|
|
1549
|
+
return this._latestFn ? this._latestFn() : this;
|
|
1550
|
+
}
|
|
1551
|
+
/**
|
|
1552
|
+
* Destroys the observer instance.
|
|
1553
|
+
*/
|
|
1554
|
+
destroy() {
|
|
1555
|
+
if (this._destroyed)
|
|
1556
|
+
return;
|
|
1557
|
+
this._destroyed = true;
|
|
1558
|
+
this.emit('destroy');
|
|
1559
|
+
this.unbind();
|
|
1560
|
+
}
|
|
1561
|
+
set latestFn(value) {
|
|
1562
|
+
this._latestFn = value;
|
|
1563
|
+
}
|
|
1564
|
+
get latestFn() {
|
|
1565
|
+
return this._latestFn;
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
// cache calls to path.split(path, '.')
|
|
1569
|
+
// as they take considerable time especially during loading
|
|
1570
|
+
// if there are a lot of observers like entities, assets etc.
|
|
1571
|
+
Observer._splitPathsCache = {};
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* The ObserverHistory module provides a mechanism for tracking changes to an Observer object and
|
|
1575
|
+
* storing them in a history stack.
|
|
1576
|
+
*/
|
|
1577
|
+
class ObserverHistory extends Events {
|
|
1578
|
+
/**
|
|
1579
|
+
* @param args - Arguments
|
|
1580
|
+
*/
|
|
1581
|
+
constructor(args = {}) {
|
|
1582
|
+
super();
|
|
1583
|
+
this._enabled = true;
|
|
1584
|
+
this._prefix = '';
|
|
1585
|
+
this._combine = false;
|
|
1586
|
+
this._selfEvents = [];
|
|
1587
|
+
this.item = args.item;
|
|
1588
|
+
this._history = args.history;
|
|
1589
|
+
this._enabled = args.enabled || true;
|
|
1590
|
+
this._prefix = args.prefix || '';
|
|
1591
|
+
this._combine = args.combine || false;
|
|
1592
|
+
this._initialize();
|
|
1593
|
+
}
|
|
1594
|
+
_initialize() {
|
|
1595
|
+
this._selfEvents.push(this.item.on('*:set', (path, value, valueOld) => {
|
|
1596
|
+
if (!this._enabled || !this._history)
|
|
1597
|
+
return;
|
|
1598
|
+
// need jsonify
|
|
1599
|
+
if (value instanceof Observer) {
|
|
1600
|
+
value = value.json();
|
|
1601
|
+
}
|
|
1602
|
+
// action
|
|
1603
|
+
const action = {
|
|
1604
|
+
name: this._prefix + path,
|
|
1605
|
+
combine: this._combine,
|
|
1606
|
+
undo: () => {
|
|
1607
|
+
const item = this.item.latest();
|
|
1608
|
+
if (!item)
|
|
1609
|
+
return;
|
|
1610
|
+
item.history.enabled = false;
|
|
1611
|
+
if (valueOld === undefined) {
|
|
1612
|
+
item.unset(path);
|
|
1613
|
+
}
|
|
1614
|
+
else {
|
|
1615
|
+
item.set(path, valueOld);
|
|
1616
|
+
}
|
|
1617
|
+
item.history.enabled = true;
|
|
1618
|
+
},
|
|
1619
|
+
redo: () => {
|
|
1620
|
+
const item = this.item.latest();
|
|
1621
|
+
if (!item)
|
|
1622
|
+
return;
|
|
1623
|
+
item.history.enabled = false;
|
|
1624
|
+
if (value === undefined) {
|
|
1625
|
+
item.unset(path);
|
|
1626
|
+
}
|
|
1627
|
+
else {
|
|
1628
|
+
item.set(path, value);
|
|
1629
|
+
}
|
|
1630
|
+
item.history.enabled = true;
|
|
1631
|
+
}
|
|
1632
|
+
};
|
|
1633
|
+
this._history.add(action);
|
|
1634
|
+
}));
|
|
1635
|
+
this._selfEvents.push(this.item.on('*:unset', (path, valueOld) => {
|
|
1636
|
+
if (!this._enabled || !this._history)
|
|
1637
|
+
return;
|
|
1638
|
+
// action
|
|
1639
|
+
const action = {
|
|
1640
|
+
name: this._prefix + path,
|
|
1641
|
+
combine: this._combine,
|
|
1642
|
+
undo: () => {
|
|
1643
|
+
const item = this.item.latest();
|
|
1644
|
+
if (!item)
|
|
1645
|
+
return;
|
|
1646
|
+
item.history.enabled = false;
|
|
1647
|
+
item.set(path, valueOld);
|
|
1648
|
+
item.history.enabled = true;
|
|
1649
|
+
},
|
|
1650
|
+
redo: () => {
|
|
1651
|
+
const item = this.item.latest();
|
|
1652
|
+
if (!item)
|
|
1653
|
+
return;
|
|
1654
|
+
item.history.enabled = false;
|
|
1655
|
+
item.unset(path);
|
|
1656
|
+
item.history.enabled = true;
|
|
1657
|
+
}
|
|
1658
|
+
};
|
|
1659
|
+
this._history.add(action);
|
|
1660
|
+
}));
|
|
1661
|
+
this._selfEvents.push(this.item.on('*:insert', (path, value, ind) => {
|
|
1662
|
+
if (!this._enabled || !this._history)
|
|
1663
|
+
return;
|
|
1664
|
+
// need jsonify
|
|
1665
|
+
// if (value instanceof Observer)
|
|
1666
|
+
// value = value.json();
|
|
1667
|
+
// action
|
|
1668
|
+
const action = {
|
|
1669
|
+
name: this._prefix + path,
|
|
1670
|
+
combine: this._combine,
|
|
1671
|
+
undo: () => {
|
|
1672
|
+
const item = this.item.latest();
|
|
1673
|
+
if (!item)
|
|
1674
|
+
return;
|
|
1675
|
+
item.history.enabled = false;
|
|
1676
|
+
item.removeValue(path, value);
|
|
1677
|
+
item.history.enabled = true;
|
|
1678
|
+
},
|
|
1679
|
+
redo: () => {
|
|
1680
|
+
const item = this.item.latest();
|
|
1681
|
+
if (!item)
|
|
1682
|
+
return;
|
|
1683
|
+
item.history.enabled = false;
|
|
1684
|
+
item.insert(path, value, ind);
|
|
1685
|
+
item.history.enabled = true;
|
|
1686
|
+
}
|
|
1687
|
+
};
|
|
1688
|
+
this._history.add(action);
|
|
1689
|
+
}));
|
|
1690
|
+
this._selfEvents.push(this.item.on('*:remove', (path, value, ind) => {
|
|
1691
|
+
if (!this._enabled || !this._history)
|
|
1692
|
+
return;
|
|
1693
|
+
// need jsonify
|
|
1694
|
+
// if (value instanceof Observer)
|
|
1695
|
+
// value = value.json();
|
|
1696
|
+
// action
|
|
1697
|
+
const action = {
|
|
1698
|
+
name: this._prefix + path,
|
|
1699
|
+
combine: this._combine,
|
|
1700
|
+
undo: () => {
|
|
1701
|
+
const item = this.item.latest();
|
|
1702
|
+
if (!item)
|
|
1703
|
+
return;
|
|
1704
|
+
item.history.enabled = false;
|
|
1705
|
+
item.insert(path, value, ind);
|
|
1706
|
+
item.history.enabled = true;
|
|
1707
|
+
},
|
|
1708
|
+
redo: () => {
|
|
1709
|
+
const item = this.item.latest();
|
|
1710
|
+
if (!item)
|
|
1711
|
+
return;
|
|
1712
|
+
item.history.enabled = false;
|
|
1713
|
+
item.removeValue(path, value);
|
|
1714
|
+
item.history.enabled = true;
|
|
1715
|
+
}
|
|
1716
|
+
};
|
|
1717
|
+
this._history.add(action);
|
|
1718
|
+
}));
|
|
1719
|
+
this._selfEvents.push(this.item.on('*:move', (path, value, ind, indOld) => {
|
|
1720
|
+
if (!this._enabled || !this._history)
|
|
1721
|
+
return;
|
|
1722
|
+
// action
|
|
1723
|
+
const action = {
|
|
1724
|
+
name: this._prefix + path,
|
|
1725
|
+
combine: this._combine,
|
|
1726
|
+
undo: () => {
|
|
1727
|
+
const item = this.item.latest();
|
|
1728
|
+
if (!item)
|
|
1729
|
+
return;
|
|
1730
|
+
item.history.enabled = false;
|
|
1731
|
+
item.move(path, ind, indOld);
|
|
1732
|
+
item.history.enabled = true;
|
|
1733
|
+
},
|
|
1734
|
+
redo: () => {
|
|
1735
|
+
const item = this.item.latest();
|
|
1736
|
+
if (!item)
|
|
1737
|
+
return;
|
|
1738
|
+
item.history.enabled = false;
|
|
1739
|
+
item.move(path, indOld, ind);
|
|
1740
|
+
item.history.enabled = true;
|
|
1741
|
+
}
|
|
1742
|
+
};
|
|
1743
|
+
this._history.add(action);
|
|
1744
|
+
}));
|
|
1745
|
+
}
|
|
1746
|
+
destroy() {
|
|
1747
|
+
this._selfEvents.forEach((evt) => {
|
|
1748
|
+
evt.unbind();
|
|
1749
|
+
});
|
|
1750
|
+
this._selfEvents.length = 0;
|
|
1751
|
+
this.item = null;
|
|
1752
|
+
}
|
|
1753
|
+
set enabled(value) {
|
|
1754
|
+
this._enabled = !!value;
|
|
1755
|
+
}
|
|
1756
|
+
get enabled() {
|
|
1757
|
+
return this._enabled;
|
|
1758
|
+
}
|
|
1759
|
+
set prefix(value) {
|
|
1760
|
+
this._prefix = value || '';
|
|
1761
|
+
}
|
|
1762
|
+
get prefix() {
|
|
1763
|
+
return this._prefix;
|
|
1764
|
+
}
|
|
1765
|
+
set combine(value) {
|
|
1766
|
+
this._combine = !!value;
|
|
1767
|
+
}
|
|
1768
|
+
get combine() {
|
|
1769
|
+
return this._combine;
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
/**
|
|
1774
|
+
* The ObserverList class is a list of Observer objects.
|
|
1775
|
+
*/
|
|
1776
|
+
class ObserverList extends Events {
|
|
1777
|
+
/**
|
|
1778
|
+
* @param options.sorted - Sorted
|
|
1779
|
+
* @param options.index - Index
|
|
1780
|
+
*/
|
|
1781
|
+
constructor(options = {}) {
|
|
1782
|
+
super();
|
|
1783
|
+
this.data = [];
|
|
1784
|
+
this.sorted = null;
|
|
1785
|
+
this.index = null;
|
|
1786
|
+
// Make internal property non-enumerable so it doesn't get serialized
|
|
1787
|
+
Object.defineProperty(this, '_indexed', { enumerable: false, writable: true, value: {} });
|
|
1788
|
+
this.sorted = options.sorted || null;
|
|
1789
|
+
this.index = options.index || null;
|
|
1790
|
+
}
|
|
1791
|
+
get length() {
|
|
1792
|
+
return this.data.length;
|
|
1793
|
+
}
|
|
1794
|
+
get(index) {
|
|
1795
|
+
if (this.index) {
|
|
1796
|
+
return this._indexed[index] || null;
|
|
1797
|
+
}
|
|
1798
|
+
return this.data[index] || null;
|
|
1799
|
+
}
|
|
1800
|
+
set(index, value) {
|
|
1801
|
+
if (this.index) {
|
|
1802
|
+
this._indexed[index] = value;
|
|
1803
|
+
}
|
|
1804
|
+
else {
|
|
1805
|
+
this.data[index] = value;
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
indexOf(item) {
|
|
1809
|
+
if (this.index) {
|
|
1810
|
+
const index = (item instanceof Observer && item.get(this.index)) || item[this.index];
|
|
1811
|
+
return (this._indexed[index] && index) || null;
|
|
1812
|
+
}
|
|
1813
|
+
const ind = this.data.indexOf(item);
|
|
1814
|
+
return ind !== -1 ? ind : null;
|
|
1815
|
+
}
|
|
1816
|
+
position(b, fn) {
|
|
1817
|
+
const l = this.data;
|
|
1818
|
+
let min = 0;
|
|
1819
|
+
let max = l.length - 1;
|
|
1820
|
+
let cur;
|
|
1821
|
+
let a, i;
|
|
1822
|
+
fn = fn || this.sorted;
|
|
1823
|
+
while (min <= max) {
|
|
1824
|
+
cur = Math.floor((min + max) / 2);
|
|
1825
|
+
a = l[cur];
|
|
1826
|
+
i = fn(a, b);
|
|
1827
|
+
if (i === 1) {
|
|
1828
|
+
max = cur - 1;
|
|
1829
|
+
}
|
|
1830
|
+
else if (i === -1) {
|
|
1831
|
+
min = cur + 1;
|
|
1832
|
+
}
|
|
1833
|
+
else {
|
|
1834
|
+
return cur;
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
return -1;
|
|
1838
|
+
}
|
|
1839
|
+
positionNextClosest(b, fn) {
|
|
1840
|
+
const l = this.data;
|
|
1841
|
+
let min = 0;
|
|
1842
|
+
let max = l.length - 1;
|
|
1843
|
+
let cur;
|
|
1844
|
+
let a, i;
|
|
1845
|
+
fn = fn || this.sorted;
|
|
1846
|
+
if (l.length === 0) {
|
|
1847
|
+
return -1;
|
|
1848
|
+
}
|
|
1849
|
+
if (fn(l[0], b) === 0) {
|
|
1850
|
+
return 0;
|
|
1851
|
+
}
|
|
1852
|
+
while (min <= max) {
|
|
1853
|
+
cur = Math.floor((min + max) / 2);
|
|
1854
|
+
a = l[cur];
|
|
1855
|
+
i = fn(a, b);
|
|
1856
|
+
if (i === 1) {
|
|
1857
|
+
max = cur - 1;
|
|
1858
|
+
}
|
|
1859
|
+
else if (i === -1) {
|
|
1860
|
+
min = cur + 1;
|
|
1861
|
+
}
|
|
1862
|
+
else {
|
|
1863
|
+
return cur;
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
if (fn(a, b) === 1) {
|
|
1867
|
+
return cur;
|
|
1868
|
+
}
|
|
1869
|
+
if ((cur + 1) === l.length) {
|
|
1870
|
+
return -1;
|
|
1871
|
+
}
|
|
1872
|
+
return cur + 1;
|
|
1873
|
+
}
|
|
1874
|
+
has(item) {
|
|
1875
|
+
if (this.index) {
|
|
1876
|
+
const index = (item instanceof Observer && item.get(this.index)) || item[this.index];
|
|
1877
|
+
return !!this._indexed[index];
|
|
1878
|
+
}
|
|
1879
|
+
return this.data.indexOf(item) !== -1;
|
|
1880
|
+
}
|
|
1881
|
+
add(item) {
|
|
1882
|
+
if (this.has(item)) {
|
|
1883
|
+
return null;
|
|
1884
|
+
}
|
|
1885
|
+
let index = this.data.length;
|
|
1886
|
+
if (this.index) {
|
|
1887
|
+
index = (item instanceof Observer && item.get(this.index)) || item[this.index];
|
|
1888
|
+
this._indexed[index] = item;
|
|
1889
|
+
}
|
|
1890
|
+
let pos = 0;
|
|
1891
|
+
if (this.sorted) {
|
|
1892
|
+
pos = this.positionNextClosest(item, undefined);
|
|
1893
|
+
if (pos !== -1) {
|
|
1894
|
+
this.data.splice(pos, 0, item);
|
|
1895
|
+
}
|
|
1896
|
+
else {
|
|
1897
|
+
this.data.push(item);
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
else {
|
|
1901
|
+
this.data.push(item);
|
|
1902
|
+
pos = this.data.length - 1;
|
|
1903
|
+
}
|
|
1904
|
+
this.emit('add', item, index, pos);
|
|
1905
|
+
if (this.index) {
|
|
1906
|
+
const id = item.get(this.index);
|
|
1907
|
+
if (id) {
|
|
1908
|
+
this.emit(`add[${id}]`, item, index, pos);
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
return pos;
|
|
1912
|
+
}
|
|
1913
|
+
move(item, pos) {
|
|
1914
|
+
const ind = this.data.indexOf(item);
|
|
1915
|
+
this.data.splice(ind, 1);
|
|
1916
|
+
if (pos === -1) {
|
|
1917
|
+
this.data.push(item);
|
|
1918
|
+
}
|
|
1919
|
+
else {
|
|
1920
|
+
this.data.splice(pos, 0, item);
|
|
1921
|
+
}
|
|
1922
|
+
this.emit('move', item, pos);
|
|
1923
|
+
}
|
|
1924
|
+
remove(item) {
|
|
1925
|
+
if (!this.has(item)) {
|
|
1926
|
+
return;
|
|
1927
|
+
}
|
|
1928
|
+
const ind = this.data.indexOf(item);
|
|
1929
|
+
let index = ind;
|
|
1930
|
+
if (this.index) {
|
|
1931
|
+
index = (item instanceof Observer && item.get(this.index)) || item[this.index];
|
|
1932
|
+
delete this._indexed[index];
|
|
1933
|
+
}
|
|
1934
|
+
this.data.splice(ind, 1);
|
|
1935
|
+
this.emit('remove', item, index);
|
|
1936
|
+
}
|
|
1937
|
+
removeByKey(index) {
|
|
1938
|
+
let item;
|
|
1939
|
+
if (this.index) {
|
|
1940
|
+
item = this._indexed[index];
|
|
1941
|
+
if (!item) {
|
|
1942
|
+
return;
|
|
1943
|
+
}
|
|
1944
|
+
const ind = this.data.indexOf(item);
|
|
1945
|
+
this.data.splice(ind, 1);
|
|
1946
|
+
delete this._indexed[index];
|
|
1947
|
+
this.emit('remove', item, ind);
|
|
1948
|
+
}
|
|
1949
|
+
else {
|
|
1950
|
+
if (this.data.length < index) {
|
|
1951
|
+
return;
|
|
1952
|
+
}
|
|
1953
|
+
item = this.data[index];
|
|
1954
|
+
this.data.splice(index, 1);
|
|
1955
|
+
this.emit('remove', item, index);
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
removeBy(fn) {
|
|
1959
|
+
let i = this.data.length;
|
|
1960
|
+
while (i--) {
|
|
1961
|
+
if (!fn(this.data[i])) {
|
|
1962
|
+
continue;
|
|
1963
|
+
}
|
|
1964
|
+
if (this.index) {
|
|
1965
|
+
delete this._indexed[this.data[i][this.index]];
|
|
1966
|
+
}
|
|
1967
|
+
this.data.splice(i, 1);
|
|
1968
|
+
this.emit('remove', this.data[i], i);
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
clear() {
|
|
1972
|
+
const items = this.data.slice(0);
|
|
1973
|
+
this.data = [];
|
|
1974
|
+
this._indexed = {};
|
|
1975
|
+
let i = items.length;
|
|
1976
|
+
while (i--) {
|
|
1977
|
+
this.emit('remove', items[i], i);
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
forEach(fn) {
|
|
1981
|
+
for (let i = 0; i < this.data.length; i++) {
|
|
1982
|
+
fn(this.data[i], (this.index && this.data[i][this.index]) || i);
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
find(fn) {
|
|
1986
|
+
const items = [];
|
|
1987
|
+
for (let i = 0; i < this.data.length; i++) {
|
|
1988
|
+
if (!fn(this.data[i])) {
|
|
1989
|
+
continue;
|
|
1990
|
+
}
|
|
1991
|
+
let index = i;
|
|
1992
|
+
if (this.index) {
|
|
1993
|
+
index = this.data[i][this.index];
|
|
1994
|
+
}
|
|
1995
|
+
items.push([index, this.data[i]]);
|
|
1996
|
+
}
|
|
1997
|
+
return items;
|
|
1998
|
+
}
|
|
1999
|
+
findOne(fn) {
|
|
2000
|
+
for (let i = 0; i < this.data.length; i++) {
|
|
2001
|
+
if (!fn(this.data[i])) {
|
|
2002
|
+
continue;
|
|
2003
|
+
}
|
|
2004
|
+
let index = i;
|
|
2005
|
+
if (this.index) {
|
|
2006
|
+
index = this.data[i][this.index];
|
|
2007
|
+
}
|
|
2008
|
+
return [index, this.data[i]];
|
|
2009
|
+
}
|
|
2010
|
+
return null;
|
|
2011
|
+
}
|
|
2012
|
+
map(fn) {
|
|
2013
|
+
return this.data.map(fn);
|
|
2014
|
+
}
|
|
2015
|
+
sort(fn) {
|
|
2016
|
+
this.data.sort(fn);
|
|
2017
|
+
}
|
|
2018
|
+
array() {
|
|
2019
|
+
return this.data.slice(0);
|
|
2020
|
+
}
|
|
2021
|
+
json() {
|
|
2022
|
+
const items = this.array();
|
|
2023
|
+
for (let i = 0; i < items.length; i++) {
|
|
2024
|
+
if (items[i] instanceof Observer) {
|
|
2025
|
+
items[i] = items[i].json();
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
return items;
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
exports.EventHandle = EventHandle;
|
|
2033
|
+
exports.Events = Events;
|
|
2034
|
+
exports.History = History;
|
|
2035
|
+
exports.Observer = Observer;
|
|
2036
|
+
exports.ObserverHistory = ObserverHistory;
|
|
2037
|
+
exports.ObserverList = ObserverList;
|
|
2038
|
+
|
|
2039
|
+
}));
|