@fps-games/editor 0.1.4-beta.5 → 0.1.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +16 -16
- package/dist/local-editor-harness.d.ts +24 -5
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +456 -90
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-performance-stats.d.ts +12 -0
- package/dist/local-editor-performance-stats.d.ts.map +1 -0
- package/dist/local-editor-performance-stats.js +46 -0
- package/dist/local-editor-performance-stats.js.map +1 -0
- package/dist/playable-babylon-facade.d.ts +2 -2
- package/dist/playable-babylon-facade.d.ts.map +1 -1
- package/dist/playable-babylon-facade.js +1 -1
- package/dist/playable-babylon-facade.js.map +1 -1
- package/dist/playable-babylon-rendering.d.ts +57 -12
- package/dist/playable-babylon-rendering.d.ts.map +1 -1
- package/dist/playable-babylon-rendering.js +529 -20
- package/dist/playable-babylon-rendering.js.map +1 -1
- package/dist/playable-local-editor-host.d.ts +10 -9
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js.map +1 -1
- package/dist/playable-sdk.d.ts +5 -3
- package/dist/playable-sdk.d.ts.map +1 -1
- package/dist/playable-sdk.js +3 -2
- package/dist/playable-sdk.js.map +1 -1
- package/dist/static-shadow-cpu-worker.d.ts +7 -0
- package/dist/static-shadow-cpu-worker.d.ts.map +1 -0
- package/dist/static-shadow-cpu-worker.js +221 -0
- package/dist/static-shadow-cpu-worker.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts +3 -1
- 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 -1
- package/node_modules/@fps-games/babylon-renderer/dist/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.js +584 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-atlas.d.ts +61 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-atlas.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-atlas.js +382 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-atlas.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-bake.d.ts +47 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-bake.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-bake.js +285 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-bake.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.d.ts +88 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.js +813 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-rendering.d.ts +27 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-rendering.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-rendering.js +220 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-rendering.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-system.d.ts +35 -3
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-system.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-system.js +65 -609
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-system.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.d.ts +169 -14
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.js +9 -3
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/package.json +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts +2 -0
- 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 -0
- package/node_modules/@fps-games/editor-babylon/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/performance-monitor.d.ts +34 -0
- package/node_modules/@fps-games/editor-babylon/dist/performance-monitor.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/performance-monitor.js +272 -0
- package/node_modules/@fps-games/editor-babylon/dist/performance-monitor.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +6 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js +65 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/rendering.d.ts +19 -0
- package/node_modules/@fps-games/editor-babylon/dist/rendering.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/rendering.js +66 -0
- package/node_modules/@fps-games/editor-babylon/dist/rendering.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts +5 -2
- 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 +65 -32
- 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.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js +19 -2
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/package.json +5 -5
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-rendering-actions.d.ts +8 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-rendering-actions.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-rendering-actions.js +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-rendering-actions.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js +10 -2
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.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 +17 -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-panels.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +466 -42
- 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-types.d.ts +70 -5
- 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.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +595 -5
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/package.json +3 -3
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts +14 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.js +34 -10
- package/node_modules/@fps-games/editor-core/dist/editor-session.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts +2 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.js +11 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/serialized-object.d.ts +7 -0
- package/node_modules/@fps-games/editor-core/dist/serialized-object.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/serialized-object.js +1 -0
- package/node_modules/@fps-games/editor-core/dist/serialized-object.js.map +1 -1
- package/node_modules/@fps-games/editor-core/package.json +2 -2
- package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.js +10 -5
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.js +3 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts +4 -1
- 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 +29 -0
- 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/types.d.ts +10 -0
- 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/field-schema/schema.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts +1 -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 +1 -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 +33 -2
- 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 +232 -16
- 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/inspector/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.d.ts +12 -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 +153 -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/index.d.ts +4 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.js +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.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 +4 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/rendering-alpha-index.d.ts +19 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/rendering-alpha-index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/rendering-alpha-index.js +57 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/rendering-alpha-index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.d.ts +7 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js +620 -36
- 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/profile.d.ts +8 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.js +258 -10
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts +110 -3
- 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/runtime-preview/nodes.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js +25 -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/scene-source/client.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +4 -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/companion-configs.d.ts +9 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.js +12 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts +2 -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/serialized-property/descriptors.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js +75 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.d.ts +17 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js +262 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js +7 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.js +31 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.js.map +1 -1
- 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 +21 -9
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.d.ts +151 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.js +445 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/index.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/index.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/package.json +3 -3
- package/node_modules/@fps-games/editor-protocol/package.json +1 -1
- package/package.json +8 -8
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { readRecord } from '../shared/json.js';
|
|
2
|
+
import { EDITOR_SCENE_STATIC_SHADOWS_COMPANION_CONFIG_KEY, readEditorSceneStaticShadowArtifact, } from '../static-shadows/index.js';
|
|
2
3
|
export const SCENE_MAIN_SOURCE_RENDERING_COMPANION_CONFIG_KEY = 'rendering';
|
|
4
|
+
export const SCENE_MAIN_SOURCE_STATIC_SHADOWS_COMPANION_CONFIG_KEY = EDITOR_SCENE_STATIC_SHADOWS_COMPANION_CONFIG_KEY;
|
|
3
5
|
export function createSceneMainSourceSaveCompanionConfigPayload(options) {
|
|
4
6
|
const companionConfigs = normalizeSceneMainSourceCompanionConfigs(options?.companionConfigs);
|
|
5
7
|
const renderingConfig = readRecord(options?.renderingConfig);
|
|
@@ -26,6 +28,9 @@ export function readSceneMainSourceSaveCompanionConfigs(value) {
|
|
|
26
28
|
export function readSceneMainSourceRenderingConfig(value) {
|
|
27
29
|
return readSceneMainSourceSaveCompanionConfigs(value)[SCENE_MAIN_SOURCE_RENDERING_COMPANION_CONFIG_KEY] ?? null;
|
|
28
30
|
}
|
|
31
|
+
export function readSceneMainSourceStaticShadowsArtifact(value) {
|
|
32
|
+
return readEditorSceneStaticShadowArtifact(readSceneMainSourceSaveCompanionConfigs(value)[SCENE_MAIN_SOURCE_STATIC_SHADOWS_COMPANION_CONFIG_KEY]);
|
|
33
|
+
}
|
|
29
34
|
function normalizeSceneMainSourceCompanionConfigs(value) {
|
|
30
35
|
const record = readRecord(value);
|
|
31
36
|
if (!record)
|
|
@@ -33,8 +38,14 @@ function normalizeSceneMainSourceCompanionConfigs(value) {
|
|
|
33
38
|
const companionConfigs = {};
|
|
34
39
|
for (const [key, config] of Object.entries(record)) {
|
|
35
40
|
const normalizedKey = key.trim();
|
|
41
|
+
if (!normalizedKey)
|
|
42
|
+
continue;
|
|
43
|
+
if (config === null) {
|
|
44
|
+
companionConfigs[normalizedKey] = null;
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
36
47
|
const normalizedConfig = readRecord(config);
|
|
37
|
-
if (!
|
|
48
|
+
if (!normalizedConfig)
|
|
38
49
|
continue;
|
|
39
50
|
companionConfigs[normalizedKey] = normalizedConfig;
|
|
40
51
|
}
|
package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-configs.js","sourceRoot":"","sources":["../../src/scene-source/companion-configs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"companion-configs.js","sourceRoot":"","sources":["../../src/scene-source/companion-configs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EACL,gDAAgD,EAChD,mCAAmC,GAEpC,MAAM,mBAAmB,CAAC;AAG3B,MAAM,CAAC,MAAM,gDAAgD,GAAG,WAAW,CAAC;AAC5E,MAAM,CAAC,MAAM,qDAAqD,GAAG,gDAAgD,CAAC;AAatH,MAAM,UAAU,+CAA+C,CAC7D,OAAkF;IAKlF,MAAM,gBAAgB,GAAG,wCAAwC,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;IAC7F,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;IAC7D,IAAI,eAAe,EAAE,CAAC;QACpB,gBAAgB,CAAC,gDAAgD,CAAC,GAAG,eAAe,CAAC;IACvF,CAAC;IACD,MAAM,mBAAmB,GAAG,MAAM,CAAC,IAA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AC;QACnD,MAAM,aAAa,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;QACjC,IAAI,CAAC,aAAa;YAAE,SAAS;QAC7B,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YACpB,gBAAgB,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;YACvC,SAAS;QACX,CAAC;QACD,MAAM,gBAAgB,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,gBAAgB;YAAE,SAAS;QAChC,gBAAgB,CAAC,aAAa,CAAC,GAAG,gBAAgB,CAAC;IACrD,CAAC;IACD,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
|
|
@@ -12,6 +12,8 @@ export interface SceneMainSourceDriverLoadResult<TDocument extends EditorSceneDo
|
|
|
12
12
|
source: AuthoringSourceDescriptor;
|
|
13
13
|
document: TDocument;
|
|
14
14
|
drift: EditorSceneRuntimeInputDrift | null;
|
|
15
|
+
companionConfigs?: SceneMainSourceCompanionConfigs;
|
|
16
|
+
renderingConfig?: Record<string, unknown>;
|
|
15
17
|
summary?: string;
|
|
16
18
|
}
|
|
17
19
|
export interface SceneMainSourceSaveOptions extends SceneMainSourceClientOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/scene-source/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EACzB,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAE3E,MAAM,MAAM,oBAAoB,GAAG,CACjC,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,WAAW,KACf,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO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AQ,4BAA4B;IAC9E,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC,+BAA+B,CAAC,GAAG,IAAI,CAAC;IACnE,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAClD;AAED,MAAM,WAAW,yBAAyB,CACxC,SAAS,SAAS,mBAAmB,GAAG,mBAAmB,CAC3D,SAAQ,yBAAyB,CAAC,SAAS,CAAC;IAC5C,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,gBAAgB,CAAC,EAAE,+BAA+B,CAAC;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,MAAM,4BAA4B,GACpC,gBAAgB,GAChB,gBAAgB,EAAE,GAClB,IAAI,GACJ,SAAS,CAAC;AAEd,MAAM,MAAM,sBAAsB,CAChC,SAAS,SAAS,mBAAmB,GAAG,mBAAmB,IACzD,CAAC,KAAK,EAAE;IACV,MAAM,EAAE,yBAAyB,CAAC;IAClC,QAAQ,EAAE,SAAS,CAAC;CACrB,KAAK,4BAA4B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAE3E,MAAM,WAAW,4BAA4B,CAC3C,SAAS,SAAS,mBAAmB,GAAG,mBAAmB,CAC3D,SAAQ,4BAA4B;IACpC,OAAO,CAAC,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;CAC7C"}
|
package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ import { type EditorSceneDocument, type EditorSceneGameObject } from '../documen
|
|
|
3
3
|
import type { EditorSceneSerializedPropertyDescriptorInput } from './types';
|
|
4
4
|
export declare function createEditorSceneSerializedPropertyDescriptors<TDocument extends EditorSceneDocument = EditorSceneDocument>(input: EditorSceneSerializedPropertyDescriptorInput<TDocument>): SerializedPropertyDescriptor<TDocument>[];
|
|
5
5
|
export declare function createEditorSceneSerializedMultiTransformProperties<TDocument extends EditorSceneDocument = EditorSceneDocument>(gameObjects: readonly EditorSceneGameObject[]): SerializedProperty<TDocument>[];
|
|
6
|
+
export declare function createEditorSceneSerializedMultiShadowProperties<TDocument extends EditorSceneDocument = EditorSceneDocument>(gameObjects: readonly EditorSceneGameObject[]): SerializedProperty<TDocument>[];
|
|
6
7
|
//# sourceMappingURL=descriptors.d.ts.map
|
package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptors.d.ts","sourceRoot":"","sources":["../../src/serialized-property/descriptors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EAClC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAIL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,
|
|
1
|
+
{"version":3,"file":"descriptors.d.ts","sourceRoot":"","sources":["../../src/serialized-property/descriptors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EAClC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAIL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAG3B,MAAM,mBAAmB,CAAC;AAoB3B,OAAO,KAAK,EACV,4CAA4C,EAE7C,MAAM,SAAS,CAAC;AAmBjB,wBAAgB,8CAA8C,CAC5D,SAAS,SAAS,mBAAmB,GAAG,mBAAmB,EAE3D,KAAK,EAAE,4CAA4C,CAAC,SAAS,CAAC,GAC7D,4BAA4B,CAAC,SAAS,CAAC,EAAE,CAuD3C;AAED,wBAAgB,mDAAmD,CACjE,SAAS,SAAS,mBAAmB,GAAG,mBAAmB,EAE3D,WAAW,EAAE,SAAS,qBAAqB,EAAE,GAC5C,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAkCjC;AAED,wBAAgB,gDAAgD,CAC9D,SAAS,SAAS,mBAAmB,GAAG,mBAAmB,EAE3D,WAAW,EAAE,SAAS,qBAAqB,EAAE,GAC5C,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAoBjC"}
|
|
@@ -3,9 +3,17 @@ import { findEditorSceneModelRenderer, findEditorSceneTransform, readEditorScene
|
|
|
3
3
|
import { isEditorSceneRootGameObject, } from '../session/identity.js';
|
|
4
4
|
import { findEditorSceneGameObject, patchEditorSceneGameObjectLocalTransform, } from '../session/transform.js';
|
|
5
5
|
import { degreesToEditorSceneRadians, radiansToEditorSceneDegrees, readEditorSceneTransformVector, roundEditorSceneInspectorNumber, } from '../inspector/format.js';
|
|
6
|
+
import { patchEditorSceneGameObjectField, } from '../mutation/field-patch.js';
|
|
6
7
|
const TRANSFORM_VECTOR_NAMES = ['position', 'rotation', 'scale'];
|
|
7
8
|
const TRANSFORM_AXES = ['x', 'y', 'z'];
|
|
8
9
|
const EPSILON = 0.000001;
|
|
10
|
+
const DEFAULT_EDITOR_SCENE_SERIALIZED_SHADOW_MODE_OPTIONS = [
|
|
11
|
+
{ label: 'Project Default', value: 'default' },
|
|
12
|
+
{ label: 'No Shadow', value: 'none' },
|
|
13
|
+
{ label: 'Blob Shadow', value: 'blob' },
|
|
14
|
+
{ label: 'Static Baked Shadow', value: 'static' },
|
|
15
|
+
{ label: 'Planar Shadow', value: 'planar' },
|
|
16
|
+
];
|
|
9
17
|
export function createEditorSceneSerializedPropertyDescriptors(input) {
|
|
10
18
|
const descriptors = [
|
|
11
19
|
{
|
|
@@ -50,6 +58,12 @@ export function createEditorSceneSerializedPropertyDescriptors(input) {
|
|
|
50
58
|
getValue: () => renderer.assetId,
|
|
51
59
|
});
|
|
52
60
|
}
|
|
61
|
+
if (canEditEditorSceneShadowMode(input.gameObject)) {
|
|
62
|
+
descriptors.push(createShadowModeDescriptor({
|
|
63
|
+
gameObject: input.gameObject,
|
|
64
|
+
validateField: input.validateField,
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
53
67
|
return descriptors;
|
|
54
68
|
}
|
|
55
69
|
export function createEditorSceneSerializedMultiTransformProperties(gameObjects) {
|
|
@@ -87,6 +101,67 @@ export function createEditorSceneSerializedMultiTransformProperties(gameObjects)
|
|
|
87
101
|
}
|
|
88
102
|
return properties;
|
|
89
103
|
}
|
|
104
|
+
export function createEditorSceneSerializedMultiShadowProperties(gameObjects) {
|
|
105
|
+
if (gameObjects.length === 0 || gameObjects.some(gameObject => !canEditEditorSceneShadowMode(gameObject)))
|
|
106
|
+
return [];
|
|
107
|
+
const values = gameObjects.map(gameObject => readEditorSceneSerializedShadowMode(gameObject.shadowMode));
|
|
108
|
+
const firstValue = values[0] ?? 'default';
|
|
109
|
+
return [{
|
|
110
|
+
path: 'shadowMode',
|
|
111
|
+
label: 'Shadow Mode',
|
|
112
|
+
valueType: 'enum',
|
|
113
|
+
value: firstValue,
|
|
114
|
+
mixed: values.some(value => value !== firstValue),
|
|
115
|
+
readOnly: false,
|
|
116
|
+
options: DEFAULT_EDITOR_SCENE_SERIALIZED_SHADOW_MODE_OPTIONS,
|
|
117
|
+
descriptor: {
|
|
118
|
+
path: 'shadowMode',
|
|
119
|
+
label: 'Shadow Mode',
|
|
120
|
+
valueType: 'enum',
|
|
121
|
+
options: DEFAULT_EDITOR_SCENE_SERIALIZED_SHADOW_MODE_OPTIONS,
|
|
122
|
+
getValue: () => firstValue,
|
|
123
|
+
},
|
|
124
|
+
}];
|
|
125
|
+
}
|
|
126
|
+
function createShadowModeDescriptor(input) {
|
|
127
|
+
return {
|
|
128
|
+
path: 'shadowMode',
|
|
129
|
+
label: 'Shadow Mode',
|
|
130
|
+
valueType: 'enum',
|
|
131
|
+
options: DEFAULT_EDITOR_SCENE_SERIALIZED_SHADOW_MODE_OPTIONS,
|
|
132
|
+
getValue: () => readEditorSceneSerializedShadowMode(input.gameObject.shadowMode),
|
|
133
|
+
setValue: (document, value, context) => {
|
|
134
|
+
if (!context.targetId)
|
|
135
|
+
return document;
|
|
136
|
+
const mode = readEditorSceneSerializedShadowMode(value);
|
|
137
|
+
const validation = input.validateField?.({
|
|
138
|
+
document,
|
|
139
|
+
gameObject: input.gameObject,
|
|
140
|
+
nodeKind: readEditorSceneNodeKind(input.gameObject),
|
|
141
|
+
path: 'shadowMode',
|
|
142
|
+
value: mode,
|
|
143
|
+
});
|
|
144
|
+
if (validation && !validation.ok)
|
|
145
|
+
return document;
|
|
146
|
+
return patchEditorSceneGameObjectField(document, context.targetId, 'shadowMode', mode);
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
function canEditEditorSceneShadowMode(gameObject) {
|
|
151
|
+
if (isEditorSceneRootGameObject(gameObject))
|
|
152
|
+
return false;
|
|
153
|
+
if (gameObject.transformType === 'camera' || gameObject.transformType === 'light')
|
|
154
|
+
return false;
|
|
155
|
+
if (gameObject.camera || gameObject.light)
|
|
156
|
+
return false;
|
|
157
|
+
const nodeKind = readEditorSceneNodeKind(gameObject);
|
|
158
|
+
return nodeKind === 'instance' || nodeKind === 'primitive' || nodeKind === 'transform';
|
|
159
|
+
}
|
|
160
|
+
function readEditorSceneSerializedShadowMode(value) {
|
|
161
|
+
return value === 'none' || value === 'blob' || value === 'static' || value === 'planar'
|
|
162
|
+
? value
|
|
163
|
+
: 'default';
|
|
164
|
+
}
|
|
90
165
|
function createTransformAxisDescriptor(input) {
|
|
91
166
|
const path = `transform.${input.vectorName}.${input.axis}`;
|
|
92
167
|
return {
|
package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptors.js","sourceRoot":"","sources":["../../src/serialized-property/descriptors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,GAG9B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,4BAA4B,EAC5B,wBAA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C;IACvB,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,KAAK,UAAU;QAC9C,CAAC,CAAC,EAAE,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE;QACtD,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC;IACvB,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,KAAK,OAAO;QACxC,CAAC,CAAC,EAAE,GAAG,8BAA8B,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE;QACtF,CAAC,CAAC,8BAA8B,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAEvD,OAAO,2CAA2C,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE;QACjF,QAAQ;QACR,QAAQ;QACR,KAAK;KACN,CAAC,CAAC;AACL,CAAC;AAED,SAAS,2CAA2C,CAClD,QAAmB,EACnB,QAAgB,EAChB,SAIC;IAED,OAAO;QACL,GAAG,QAAQ;QACX,KAAK,EAAE;YACL,GAAG,QAAQ,CAAC,KAAK;YACjB,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAC1D,UAAU,CAAC,EAAE,KAAK,QAAQ;gBACxB,CAAC,CAAC,wCAAwC,CAAC,UAAU,EAAE,SAAS,CAAC;gBACjE,CAAC,CAAC,UAAU,CACf,CAAC;SACH;KACW,CAAC;AACjB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { EditorSceneSerializedMultiObjectInput, EditorSceneSerializedMultiObjectResult, EditorSceneSerializedObjectInput, EditorSceneSerializedObjectResult, EditorSceneSerializedPropertyDescriptorInput, EditorSceneSerializedPropertyPatchInput, EditorSceneSerializedPropertyValidationInput, EditorSceneSerializedPropertyValidator, } from './types';
|
|
2
2
|
export { createEditorSceneSerializedPropertyDescriptors, } from './descriptors';
|
|
3
3
|
export { createEditorSceneSerializedMultiObject, createEditorSceneSerializedObject, } from './object';
|
|
4
|
+
export { EDITOR_SCENE_LARGE_SELECTION_LIGHTWEIGHT_INSPECTOR_THRESHOLD, createEditorSceneSerializedMultiInspectorObject, createEditorSceneSerializedMultiInspectorSections, type EditorSceneSerializedMultiInspectorObjectInput, } from './inspector';
|
|
4
5
|
export { applyEditorSceneSerializedPropertyPatch, } from './patch';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/serialized-property/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,qCAAqC,EACrC,sCAAsC,EACtC,gCAAgC,EAChC,iCAAiC,EACjC,4CAA4C,EAC5C,uCAAuC,EACvC,4CAA4C,EAC5C,sCAAsC,GACvC,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,8CAA8C,GAC/C,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,sCAAsC,EACtC,iCAAiC,GAClC,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,uCAAuC,GACxC,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/serialized-property/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,qCAAqC,EACrC,sCAAsC,EACtC,gCAAgC,EAChC,iCAAiC,EACjC,4CAA4C,EAC5C,uCAAuC,EACvC,4CAA4C,EAC5C,sCAAsC,GACvC,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,8CAA8C,GAC/C,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,sCAAsC,EACtC,iCAAiC,GAClC,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,4DAA4D,EAC5D,+CAA+C,EAC/C,iDAAiD,EACjD,KAAK,8CAA8C,GACpD,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,uCAAuC,GACxC,MAAM,SAAS,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { createEditorSceneSerializedPropertyDescriptors, } from './descriptors.js';
|
|
2
2
|
export { createEditorSceneSerializedMultiObject, createEditorSceneSerializedObject, } from './object.js';
|
|
3
|
+
export { EDITOR_SCENE_LARGE_SELECTION_LIGHTWEIGHT_INSPECTOR_THRESHOLD, createEditorSceneSerializedMultiInspectorObject, createEditorSceneSerializedMultiInspectorSections, } from './inspector.js';
|
|
3
4
|
export { applyEditorSceneSerializedPropertyPatch, } from './patch.js';
|
|
4
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/serialized-property/index.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,8CAA8C,GAC/C,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,sCAAsC,EACtC,iCAAiC,GAClC,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,uCAAuC,GACxC,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/serialized-property/index.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,8CAA8C,GAC/C,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,sCAAsC,EACtC,iCAAiC,GAClC,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,4DAA4D,EAC5D,+CAA+C,EAC/C,iDAAiD,GAElD,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,uCAAuC,GACxC,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { InspectorObject, InspectorSection, SerializedMultiObject } from '@fps-games/editor-core';
|
|
2
|
+
import { type EditorSceneDocument } from '../document/index';
|
|
3
|
+
export declare const EDITOR_SCENE_LARGE_SELECTION_LIGHTWEIGHT_INSPECTOR_THRESHOLD = 200;
|
|
4
|
+
export interface EditorSceneSerializedMultiInspectorObjectInput<TDocument extends EditorSceneDocument = EditorSceneDocument> {
|
|
5
|
+
document: TDocument;
|
|
6
|
+
selectedIds: readonly string[];
|
|
7
|
+
activeId: string | null;
|
|
8
|
+
label?: string;
|
|
9
|
+
largeSelectionThreshold?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function createEditorSceneSerializedMultiInspectorObject<TDocument extends EditorSceneDocument = EditorSceneDocument>(input: EditorSceneSerializedMultiInspectorObjectInput<TDocument>): InspectorObject<TDocument> | null;
|
|
12
|
+
export declare function createEditorSceneSerializedMultiInspectorSections<TDocument extends EditorSceneDocument = EditorSceneDocument>(input: {
|
|
13
|
+
document: TDocument;
|
|
14
|
+
serialized: SerializedMultiObject<TDocument>;
|
|
15
|
+
shadowOnly?: boolean;
|
|
16
|
+
}): InspectorSection<TDocument>[];
|
|
17
|
+
//# sourceMappingURL=inspector.d.ts.map
|
package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../../src/serialized-property/inspector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EAEf,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,KAAK,mBAAmB,EAEzB,MAAM,mBAAmB,CAAC;AAoB3B,eAAO,MAAM,4DAA4D,MAAM,CAAC;AAEhF,MAAM,WAAW,8CAA8C,CAC7D,SAAS,SAAS,mBAAmB,GAAG,mBAAmB;IAE3D,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,wBAAgB,+CAA+C,CAC7D,SAAS,SAAS,mBAAmB,GAAG,mBAAmB,EAE3D,KAAK,EAAE,8CAA8C,CAAC,SAAS,CAAC,GAC/D,eAAe,CAAC,SAAS,CAAC,GAAG,IAAI,CA2CnC;AAED,wBAAgB,iDAAiD,CAC/D,SAAS,SAAS,mBAAmB,GAAG,mBAAmB,EAC3D,KAAK,EAAE;IACP,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAC7C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,gBAAgB,CAAC,SAAS,CAAC,EAAE,CA0BhC"}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { readEditorSceneNodeKind, } from '../document/index.js';
|
|
2
|
+
import { EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_OPTIONS, EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_PATH, canEditEditorSceneShadowMode, createEditorSceneShadowModeOptions, createEditorSceneStaticShadowBakeActionProperty, getEditorSceneShadowInspectorText, readEditorSceneInspectorShadowMode, readEditorSceneShadowInspectorLanguage, } from '../inspector/document-sections.js';
|
|
3
|
+
import { createEditorSceneFieldInspectorValidator, } from '../inspector/validation.js';
|
|
4
|
+
import { createEditorSceneSerializedMultiObject, } from './object.js';
|
|
5
|
+
const SHADOW_MODE_PATH = 'shadowMode';
|
|
6
|
+
export const EDITOR_SCENE_LARGE_SELECTION_LIGHTWEIGHT_INSPECTOR_THRESHOLD = 200;
|
|
7
|
+
export function createEditorSceneSerializedMultiInspectorObject(input) {
|
|
8
|
+
const gameObjects = collectEditorSceneMultiInspectorShadowTargets(input.document, input.selectedIds);
|
|
9
|
+
if (gameObjects.length === 0)
|
|
10
|
+
return null;
|
|
11
|
+
const targetIds = gameObjects.map((gameObject) => gameObject.id);
|
|
12
|
+
const activeId = input.activeId && targetIds.includes(input.activeId)
|
|
13
|
+
? input.activeId
|
|
14
|
+
: targetIds[0] ?? null;
|
|
15
|
+
const threshold = input.largeSelectionThreshold ?? EDITOR_SCENE_LARGE_SELECTION_LIGHTWEIGHT_INSPECTOR_THRESHOLD;
|
|
16
|
+
const serialized = gameObjects.length > threshold
|
|
17
|
+
? createEditorSceneLargeSelectionSerializedShadowMultiObject({
|
|
18
|
+
document: input.document,
|
|
19
|
+
gameObjects,
|
|
20
|
+
activeId,
|
|
21
|
+
label: input.label,
|
|
22
|
+
})
|
|
23
|
+
: createEditorSceneSerializedMultiObject({
|
|
24
|
+
document: input.document,
|
|
25
|
+
targetIds,
|
|
26
|
+
activeId,
|
|
27
|
+
label: input.label,
|
|
28
|
+
});
|
|
29
|
+
if (!serialized)
|
|
30
|
+
return null;
|
|
31
|
+
const sections = createEditorSceneSerializedMultiInspectorSections({
|
|
32
|
+
document: input.document,
|
|
33
|
+
serialized,
|
|
34
|
+
shadowOnly: gameObjects.length > threshold,
|
|
35
|
+
});
|
|
36
|
+
if (sections.length === 0)
|
|
37
|
+
return null;
|
|
38
|
+
return {
|
|
39
|
+
targetIds: serialized.targetIds,
|
|
40
|
+
activeId: serialized.activeId,
|
|
41
|
+
label: serialized.label,
|
|
42
|
+
document: input.document,
|
|
43
|
+
selection: {
|
|
44
|
+
targetIds: serialized.targetIds,
|
|
45
|
+
activeId: serialized.activeId,
|
|
46
|
+
document: input.document,
|
|
47
|
+
},
|
|
48
|
+
sections,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function createEditorSceneSerializedMultiInspectorSections(input) {
|
|
52
|
+
const shadow = createEditorSceneSerializedMultiShadowInspectorSection(input.document, input.serialized, input.serialized.properties.filter((property) => property.path === SHADOW_MODE_PATH));
|
|
53
|
+
if (input.shadowOnly)
|
|
54
|
+
return shadow ? [shadow] : [];
|
|
55
|
+
return [
|
|
56
|
+
createEditorSceneSerializedMultiInspectorSection('transform', 'Transform', 20, input.serialized.properties.filter((property) => property.path.startsWith('transform.')), input.document),
|
|
57
|
+
shadow,
|
|
58
|
+
createEditorSceneSerializedMultiInspectorSection('properties', 'Properties', 90, input.serialized.properties.filter((property) => (!property.path.startsWith('transform.') && property.path !== SHADOW_MODE_PATH)), input.document),
|
|
59
|
+
].filter((section) => !!section);
|
|
60
|
+
}
|
|
61
|
+
function collectEditorSceneMultiInspectorShadowTargets(document, selectedIds) {
|
|
62
|
+
const gameObjectById = new Map(document.scene.gameObjects.map((gameObject) => [gameObject.id, gameObject]));
|
|
63
|
+
const seen = new Set();
|
|
64
|
+
const gameObjects = [];
|
|
65
|
+
for (const selectedId of selectedIds) {
|
|
66
|
+
if (!selectedId || seen.has(selectedId))
|
|
67
|
+
continue;
|
|
68
|
+
seen.add(selectedId);
|
|
69
|
+
const gameObject = gameObjectById.get(selectedId);
|
|
70
|
+
if (!gameObject)
|
|
71
|
+
continue;
|
|
72
|
+
if (canEditEditorSceneShadowMode({
|
|
73
|
+
gameObject,
|
|
74
|
+
nodeKind: readEditorSceneNodeKind(gameObject),
|
|
75
|
+
})) {
|
|
76
|
+
gameObjects.push(gameObject);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return gameObjects;
|
|
80
|
+
}
|
|
81
|
+
function createEditorSceneLargeSelectionSerializedShadowMultiObject(input) {
|
|
82
|
+
if (input.gameObjects.length === 0)
|
|
83
|
+
return null;
|
|
84
|
+
const values = input.gameObjects.map((gameObject) => readEditorSceneInspectorShadowMode(gameObject.shadowMode));
|
|
85
|
+
const firstValue = values[0] ?? 'default';
|
|
86
|
+
const options = createEditorSceneShadowModeOptions(getEditorSceneShadowInspectorText('zh'));
|
|
87
|
+
return {
|
|
88
|
+
targetIds: input.gameObjects.map((gameObject) => gameObject.id),
|
|
89
|
+
activeId: input.activeId,
|
|
90
|
+
label: input.label ?? `${input.gameObjects.length} GameObjects`,
|
|
91
|
+
properties: [{
|
|
92
|
+
path: SHADOW_MODE_PATH,
|
|
93
|
+
label: 'Shadow Mode',
|
|
94
|
+
valueType: 'enum',
|
|
95
|
+
value: firstValue,
|
|
96
|
+
mixed: values.some((value) => value !== firstValue),
|
|
97
|
+
readOnly: false,
|
|
98
|
+
options,
|
|
99
|
+
descriptor: {
|
|
100
|
+
path: SHADOW_MODE_PATH,
|
|
101
|
+
label: 'Shadow Mode',
|
|
102
|
+
valueType: 'enum',
|
|
103
|
+
options,
|
|
104
|
+
getValue: () => firstValue,
|
|
105
|
+
},
|
|
106
|
+
}],
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
function createEditorSceneSerializedMultiShadowInspectorSection(document, serialized, shadowModeProperties) {
|
|
110
|
+
if (shadowModeProperties.length === 0)
|
|
111
|
+
return null;
|
|
112
|
+
const gameObjectById = new Map(document.scene.gameObjects.map((gameObject) => [gameObject.id, gameObject]));
|
|
113
|
+
const selectedObjects = serialized.targetIds
|
|
114
|
+
.map((targetId) => gameObjectById.get(targetId))
|
|
115
|
+
.filter((gameObject) => !!gameObject);
|
|
116
|
+
const activeObject = gameObjectById.get(serialized.activeId ?? '') ?? selectedObjects[0] ?? null;
|
|
117
|
+
if (!activeObject)
|
|
118
|
+
return null;
|
|
119
|
+
const language = readEditorSceneShadowInspectorLanguage(activeObject);
|
|
120
|
+
const mixedLanguage = selectedObjects
|
|
121
|
+
.map(readEditorSceneShadowInspectorLanguage)
|
|
122
|
+
.some((candidate) => candidate !== language);
|
|
123
|
+
const text = getEditorSceneShadowInspectorText(language);
|
|
124
|
+
const activeNodeKind = readEditorSceneNodeKind(activeObject);
|
|
125
|
+
const shadowModeSource = shadowModeProperties[0];
|
|
126
|
+
const mode = readEditorSceneInspectorShadowMode(shadowModeSource.value);
|
|
127
|
+
const mixedMode = shadowModeSource.mixed === true;
|
|
128
|
+
const modeProperty = createEditorSceneSerializedMultiInspectorProperty({
|
|
129
|
+
...shadowModeSource,
|
|
130
|
+
label: text.mode,
|
|
131
|
+
options: createEditorSceneShadowModeOptions(text),
|
|
132
|
+
descriptor: {
|
|
133
|
+
...shadowModeSource.descriptor,
|
|
134
|
+
label: text.mode,
|
|
135
|
+
options: createEditorSceneShadowModeOptions(text),
|
|
136
|
+
},
|
|
137
|
+
}, 1);
|
|
138
|
+
return {
|
|
139
|
+
id: 'shadow',
|
|
140
|
+
title: text.title,
|
|
141
|
+
order: 25,
|
|
142
|
+
placement: 'body',
|
|
143
|
+
summary: text.summaryMode(mode, mixedMode),
|
|
144
|
+
persistence: 'document',
|
|
145
|
+
collapsedByDefault: false,
|
|
146
|
+
properties: [
|
|
147
|
+
createEditorSceneSerializedMultiShadowLanguageInspectorProperty({
|
|
148
|
+
document,
|
|
149
|
+
text,
|
|
150
|
+
language,
|
|
151
|
+
mixed: mixedLanguage,
|
|
152
|
+
nodeKind: activeNodeKind,
|
|
153
|
+
order: 0,
|
|
154
|
+
}),
|
|
155
|
+
{
|
|
156
|
+
...modeProperty,
|
|
157
|
+
tooltip: text.tooltips.mode,
|
|
158
|
+
validate: createEditorSceneFieldInspectorValidator({
|
|
159
|
+
path: SHADOW_MODE_PATH,
|
|
160
|
+
nodeKind: activeNodeKind,
|
|
161
|
+
document,
|
|
162
|
+
}),
|
|
163
|
+
},
|
|
164
|
+
...(mode === 'static' && !mixedMode
|
|
165
|
+
? [createEditorSceneStaticShadowBakeActionProperty(text, 2)]
|
|
166
|
+
: []),
|
|
167
|
+
],
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
function createEditorSceneSerializedMultiShadowLanguageInspectorProperty(input) {
|
|
171
|
+
return {
|
|
172
|
+
path: EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_PATH,
|
|
173
|
+
label: input.text.language,
|
|
174
|
+
valueType: 'enum',
|
|
175
|
+
control: 'enum',
|
|
176
|
+
value: input.language,
|
|
177
|
+
options: EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_OPTIONS,
|
|
178
|
+
mixed: input.mixed,
|
|
179
|
+
readOnly: false,
|
|
180
|
+
persistence: 'document',
|
|
181
|
+
commitMode: 'immediate',
|
|
182
|
+
order: input.order,
|
|
183
|
+
controlOptions: { variant: 'segmented' },
|
|
184
|
+
tooltip: input.text.tooltips.language,
|
|
185
|
+
validate: createEditorSceneFieldInspectorValidator({
|
|
186
|
+
path: EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_PATH,
|
|
187
|
+
nodeKind: input.nodeKind,
|
|
188
|
+
document: input.document,
|
|
189
|
+
}),
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
function createEditorSceneSerializedMultiInspectorSection(id, title, order, properties, document) {
|
|
193
|
+
if (properties.length === 0)
|
|
194
|
+
return null;
|
|
195
|
+
return {
|
|
196
|
+
id,
|
|
197
|
+
title,
|
|
198
|
+
order,
|
|
199
|
+
placement: 'body',
|
|
200
|
+
persistence: 'document',
|
|
201
|
+
properties: properties.map((property, propertyOrder) => {
|
|
202
|
+
const inspectorProperty = createEditorSceneSerializedMultiInspectorProperty(property, propertyOrder);
|
|
203
|
+
const nodeKind = resolveEditorSceneSerializedMultiPropertyNodeKind(document, property.path);
|
|
204
|
+
return {
|
|
205
|
+
...inspectorProperty,
|
|
206
|
+
step: property.valueType === 'number'
|
|
207
|
+
? property.path.startsWith('transform.rotation.') ? 1 : 0.1
|
|
208
|
+
: inspectorProperty.step,
|
|
209
|
+
validate: nodeKind
|
|
210
|
+
? createEditorSceneFieldInspectorValidator({
|
|
211
|
+
path: property.path,
|
|
212
|
+
nodeKind,
|
|
213
|
+
document,
|
|
214
|
+
})
|
|
215
|
+
: inspectorProperty.validate,
|
|
216
|
+
};
|
|
217
|
+
}),
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
function createEditorSceneSerializedMultiInspectorProperty(property, order) {
|
|
221
|
+
const readOnly = property.readOnly === true;
|
|
222
|
+
return {
|
|
223
|
+
path: property.path,
|
|
224
|
+
label: property.label,
|
|
225
|
+
valueType: property.valueType,
|
|
226
|
+
control: readOnly ? 'readonly' : inferEditorSceneSerializedMultiInspectorControl(property.valueType),
|
|
227
|
+
value: property.value,
|
|
228
|
+
options: property.options,
|
|
229
|
+
mixed: property.mixed,
|
|
230
|
+
readOnly,
|
|
231
|
+
persistence: readOnly ? 'readonly' : 'document',
|
|
232
|
+
commitMode: inferEditorSceneSerializedMultiInspectorCommitMode(property.valueType),
|
|
233
|
+
order,
|
|
234
|
+
source: property,
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
function resolveEditorSceneSerializedMultiPropertyNodeKind(document, path) {
|
|
238
|
+
if (path.startsWith('transform.'))
|
|
239
|
+
return 'transform';
|
|
240
|
+
if (path === SHADOW_MODE_PATH || path === EDITOR_SCENE_SHADOW_INSPECTOR_LANGUAGE_PATH) {
|
|
241
|
+
const gameObject = document.scene.gameObjects.find((entry) => canEditEditorSceneShadowMode({
|
|
242
|
+
gameObject: entry,
|
|
243
|
+
nodeKind: readEditorSceneNodeKind(entry),
|
|
244
|
+
}));
|
|
245
|
+
return gameObject ? readEditorSceneNodeKind(gameObject) : null;
|
|
246
|
+
}
|
|
247
|
+
return null;
|
|
248
|
+
}
|
|
249
|
+
function inferEditorSceneSerializedMultiInspectorControl(valueType) {
|
|
250
|
+
if (valueType === 'string' || valueType === 'number' || valueType === 'boolean' || valueType === 'enum' || valueType === 'asset' || valueType === 'object') {
|
|
251
|
+
return valueType;
|
|
252
|
+
}
|
|
253
|
+
return 'readonly';
|
|
254
|
+
}
|
|
255
|
+
function inferEditorSceneSerializedMultiInspectorCommitMode(valueType) {
|
|
256
|
+
if (valueType === 'number')
|
|
257
|
+
return 'live';
|
|
258
|
+
if (valueType === 'boolean' || valueType === 'enum' || valueType === 'asset')
|
|
259
|
+
return 'immediate';
|
|
260
|
+
return 'blur';
|
|
261
|
+
}
|
|
262
|
+
//# sourceMappingURL=inspector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspector.js","sourceRoot":"","sources":["../../src/serialized-property/inspector.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,uBAAuB,GAGxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,8CAA8C,EAC9C,2CAA2C,EAC3C,4BAA4B,EAC5B,kCAAkC,EAClC,+CAA+C,EAC/C,iCAA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IAAI,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,MAAM,IAAI,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,QAAQ,EAAE,CAAC;QAC3J,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,kDAAkD,CACzD,SAAmE;IAEnE,IAAI,SAAS,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC;IAC1C,IAAI,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,MAAM,IAAI,SAAS,KAAK,OAAO;QAAE,OAAO,WAAW,CAAC;IACjG,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../src/serialized-property/object.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../src/serialized-property/object.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,mBAAmB,CAAC;AAS3B,OAAO,KAAK,EACV,qCAAqC,EACrC,gCAAgC,EACjC,MAAM,SAAS,CAAC;AAEjB,wBAAgB,iCAAiC,CAC/C,SAAS,SAAS,mBAAmB,GAAG,mBAAmB,EAE3D,KAAK,EAAE,gCAAgC,CAAC,SAAS,CAAC,GACjD,gBAAgB,CAAC,SAAS,CAAC,GAAG,IAAI,CAYpC;AAED,wBAAgB,sCAAsC,CACpD,SAAS,SAAS,mBAAmB,GAAG,mBAAmB,EAE3D,KAAK,EAAE,qCAAqC,CAAC,SAAS,CAAC,GACtD,qBAAqB,CAAC,SAAS,CAAC,GAAG,IAAI,CAiBzC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSerializedObject, } from '@fps-games/editor-core';
|
|
2
2
|
import { findEditorSceneGameObject, } from '../session/transform.js';
|
|
3
|
-
import { createEditorSceneSerializedMultiTransformProperties, createEditorSceneSerializedPropertyDescriptors, } from './descriptors.js';
|
|
3
|
+
import { createEditorSceneSerializedMultiShadowProperties, createEditorSceneSerializedMultiTransformProperties, createEditorSceneSerializedPropertyDescriptors, } from './descriptors.js';
|
|
4
4
|
export function createEditorSceneSerializedObject(input) {
|
|
5
5
|
const gameObject = findEditorSceneGameObject(input.document, input.targetId);
|
|
6
6
|
if (!gameObject)
|
|
@@ -16,8 +16,9 @@ export function createEditorSceneSerializedObject(input) {
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
export function createEditorSceneSerializedMultiObject(input) {
|
|
19
|
+
const gameObjectById = new Map(input.document.scene.gameObjects.map((gameObject) => [gameObject.id, gameObject]));
|
|
19
20
|
const gameObjects = input.targetIds
|
|
20
|
-
.map((gameObjectId) =>
|
|
21
|
+
.map((gameObjectId) => gameObjectById.get(gameObjectId) ?? null)
|
|
21
22
|
.filter((gameObject) => !!gameObject);
|
|
22
23
|
if (gameObjects.length === 0)
|
|
23
24
|
return null;
|
|
@@ -25,7 +26,10 @@ export function createEditorSceneSerializedMultiObject(input) {
|
|
|
25
26
|
targetIds: gameObjects.map((gameObject) => gameObject.id),
|
|
26
27
|
activeId: input.activeId,
|
|
27
28
|
label: input.label ?? `${gameObjects.length} GameObjects`,
|
|
28
|
-
properties:
|
|
29
|
+
properties: [
|
|
30
|
+
...createEditorSceneSerializedMultiTransformProperties(gameObjects),
|
|
31
|
+
...createEditorSceneSerializedMultiShadowProperties(gameObjects),
|
|
32
|
+
],
|
|
29
33
|
};
|
|
30
34
|
}
|
|
31
35
|
//# sourceMappingURL=object.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.js","sourceRoot":"","sources":["../../src/serialized-property/object.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,GAGvB,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EACL,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mDAAmD,EACnD,8CAA8C,GAC/C,MAAM,eAAe,CAAC;AAMvB,MAAM,UAAU,iCAAiC,CAG/C,KAAkD;IAElD,MAAM,UAAU,GAAG,yBAAyB,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7E,IAAI,CAAC,UAAU;QAAE,OAAO,IAAI,CAAC;IAC7B,OAAO,sBAAsB,CAAC;QAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,EAAE;QACtD,WAAW,EAAE,8CAA8C,CAAC;YAC1D,UAAU;YACV,aAAa,EAAE,KAAK,CAAC,aAAa;SACnC,CAAC;KACH,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,sCAAsC,CAGpD,KAAuD;IAEvD,MAAM,WAAW,GAAG,KAAK,CAAC,SAAS;SAChC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"object.js","sourceRoot":"","sources":["../../src/serialized-property/object.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,GAGvB,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EACL,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gDAAgD,EAChD,mDAAmD,EACnD,8CAA8C,GAC/C,MAAM,eAAe,CAAC;AAMvB,MAAM,UAAU,iCAAiC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E;YACV,GAAG,mDAAmD,CAAY,WAAW,CAAC;YAC9E,GAAG,gDAAgD,CAAY,WAAW,CAAC;SAC5E;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { EditorSceneDocument, EditorSceneGameObject } from '../document/index';
|
|
2
2
|
export declare const EDITOR_SCENE_ROOT_ID = "root";
|
|
3
|
+
export interface CreateUniqueEditorSceneGameObjectDisplayNameOptions {
|
|
4
|
+
alwaysAppendSuffix?: boolean;
|
|
5
|
+
fallbackName?: string;
|
|
6
|
+
}
|
|
3
7
|
export declare function isEditorSceneRootGameObjectId(gameObjectId: string | null | undefined): boolean;
|
|
4
8
|
export declare function isEditorSceneRootGameObject(gameObject: Pick<EditorSceneGameObject, 'id'>): boolean;
|
|
5
9
|
export declare function ensureEditorSceneGameObjectGuids<TDocument extends EditorSceneDocument>(document: TDocument): TDocument;
|
|
6
10
|
export declare function createEditorSceneGameObjectGuid(): string;
|
|
11
|
+
export declare function normalizeEditorSceneGameObjectDisplayName(value: unknown, fallback?: string): string;
|
|
12
|
+
export declare function createUniqueEditorSceneGameObjectDisplayName(existingNames: readonly unknown[], preferredName: unknown, options?: CreateUniqueEditorSceneGameObjectDisplayNameOptions): string;
|
|
7
13
|
//# sourceMappingURL=identity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/session/identity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAEpF,eAAO,MAAM,oBAAoB,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/session/identity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAEpF,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAI3C,MAAM,WAAW,mDAAmD;IAClE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,6BAA6B,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAE9F;AAED,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,IAAI,CAAC,qBAAqB,EAAE,IAAI,CAAC,GAAG,OAAO,CAElG;AAED,wBAAgB,gCAAgC,CAAC,SAAS,SAAS,mBAAmB,EACpF,QAAQ,EAAE,SAAS,GAClB,SAAS,CAiBX;AAED,wBAAgB,+BAA+B,IAAI,MAAM,CAGxD;AAED,wBAAgB,yCAAyC,CACvD,KAAK,EAAE,OAAO,EACd,QAAQ,SAAwC,GAC/C,MAAM,CAIR;AAED,wBAAgB,4CAA4C,CAC1D,aAAa,EAAE,SAAS,OAAO,EAAE,EACjC,aAAa,EAAE,OAAO,EACtB,OAAO,GAAE,mDAAwD,GAChE,MAAM,CAmBR"}
|