@fps-games/editor 0.1.5-beta.4 → 0.1.6-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-agent-actions.d.ts +8 -1
- package/dist/local-editor-agent-actions.d.ts.map +1 -1
- package/dist/local-editor-agent-actions.js +171 -12
- package/dist/local-editor-agent-actions.js.map +1 -1
- package/dist/local-editor-agent-context.d.ts +29 -1
- package/dist/local-editor-agent-context.d.ts.map +1 -1
- package/dist/local-editor-agent-context.js +403 -0
- package/dist/local-editor-agent-context.js.map +1 -1
- package/dist/local-editor-harness.d.ts +103 -5
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +1982 -101
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-marker-graph.d.ts +92 -0
- package/dist/local-editor-marker-graph.d.ts.map +1 -0
- package/dist/local-editor-marker-graph.js +1432 -0
- package/dist/local-editor-marker-graph.js.map +1 -0
- package/dist/local-editor-performance-stats.js +1 -1
- package/dist/local-editor-performance-stats.js.map +1 -1
- 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-local-editor-host.d.ts +52 -7
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js +23 -1
- package/dist/playable-local-editor-host.js.map +1 -1
- package/dist/playable-sdk.d.ts +4 -2
- package/dist/playable-sdk.d.ts.map +1 -1
- package/dist/playable-sdk.js +2 -1
- package/dist/playable-sdk.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/package.json +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js +11 -0
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-sky.d.ts +3 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-sky.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-sky.js +114 -18
- package/node_modules/@fps-games/editor-babylon/dist/editor-sky.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.d.ts +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.js +3 -0
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts +3 -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 +3 -0
- package/node_modules/@fps-games/editor-babylon/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.d.ts +52 -0
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.js +1395 -0
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.js +4 -65
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.d.ts +28 -0
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js +235 -0
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts +37 -0
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js +451 -0
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js +24 -10
- 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-pick-resolver.d.ts +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.js +20 -4
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-source-owner-path.d.ts +9 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-source-owner-path.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-source-owner-path.js +64 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-source-owner-path.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +44 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js +311 -70
- package/node_modules/@fps-games/editor-babylon/dist/projection.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 +5 -2
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.js +2 -0
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts +5 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js +23 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js +69 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts +2 -0
- 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 +38 -1
- 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-tree.d.ts +1 -1
- 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-view.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js +8 -2
- 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 +7 -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-panel-registry.js +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panel-registry.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts +4 -0
- 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 +1471 -29
- 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 +52 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js +131 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.d.ts +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-shared.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js +9 -2
- 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-types.d.ts +234 -3
- 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-workbench.d.ts +10 -1
- 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 +3 -1
- 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 +4 -3
- 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 +1274 -55
- 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/scene-graph.d.ts +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.d.ts +2 -0
- 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 +1 -0
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.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-library/catalog.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js +17 -3
- 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 +2 -1
- 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/types.d.ts +3 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.d.ts +1 -0
- 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 +68 -2
- 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/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts +56 -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 +531 -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 +103 -2
- 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/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.js.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 +9 -1
- 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/field-schema/validators.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.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 +3 -7
- 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/material-binding/binding.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.d.ts +2 -10
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.d.ts.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 +8 -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/runtime-preview/nodes.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js +66 -31
- 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/protocol.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js +40 -2
- 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/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 +20 -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/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js +68 -27
- 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/serialized-property/object.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js +7 -4
- 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/hierarchy.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.js +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/package.json +3 -3
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts +57 -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/index.d.ts +19 -0
- 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/dist/marker-graph.d.ts +128 -0
- package/node_modules/@fps-games/editor-protocol/dist/marker-graph.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/marker-graph.js +2 -0
- package/node_modules/@fps-games/editor-protocol/dist/marker-graph.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/package.json +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { LocalEditorBrowserPrefabStageComparisonPreviewStatus, LocalEditorBrowserPrefabStageState, LocalEditorBrowserPrefabStageStructureItem, LocalEditorRightDockTab } from './local-editor-ui-types';
|
|
2
|
+
export declare function createLocalEditorPrefabStageTitle(stage: LocalEditorBrowserPrefabStageState | null | undefined): string;
|
|
3
|
+
export type LocalEditorPrefabStageComparisonPreviewTone = 'success' | 'warning' | 'danger';
|
|
4
|
+
export declare function formatLocalEditorPrefabStageComparisonPreviewStatus(status: LocalEditorBrowserPrefabStageComparisonPreviewStatus): string;
|
|
5
|
+
export declare function resolveLocalEditorPrefabStageComparisonPreviewTone(status: LocalEditorBrowserPrefabStageComparisonPreviewStatus): LocalEditorPrefabStageComparisonPreviewTone;
|
|
6
|
+
export declare const LOCAL_EDITOR_PREFAB_COMPARISON_COLUMN_WIDTH_PX = 320;
|
|
7
|
+
export declare const LOCAL_EDITOR_PREFAB_COMPARISON_COLUMN_AUTO_COLLAPSE_WIDTH_PX = 760;
|
|
8
|
+
export interface LocalEditorPrefabComparisonColumnVisibilityInput {
|
|
9
|
+
inPrefabStage: boolean;
|
|
10
|
+
userOpen: boolean;
|
|
11
|
+
sceneWidth: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function shouldShowLocalEditorPrefabComparisonColumn(input: LocalEditorPrefabComparisonColumnVisibilityInput): boolean;
|
|
14
|
+
export interface LocalEditorPrefabComparisonShortcutInput {
|
|
15
|
+
inPrefabStage: boolean;
|
|
16
|
+
handleGlobalShortcut: boolean;
|
|
17
|
+
key: string;
|
|
18
|
+
shiftKey?: boolean;
|
|
19
|
+
metaKey?: boolean;
|
|
20
|
+
ctrlKey?: boolean;
|
|
21
|
+
altKey?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function shouldToggleLocalEditorPrefabComparisonShortcut(input: LocalEditorPrefabComparisonShortcutInput): boolean;
|
|
24
|
+
export declare function flattenLocalEditorPrefabStageStructureItems(items: readonly LocalEditorBrowserPrefabStageStructureItem[]): LocalEditorBrowserPrefabStageStructureItem[];
|
|
25
|
+
export declare function findLocalEditorPrefabStageStructureItem(stage: LocalEditorBrowserPrefabStageState | null | undefined, itemId: string | null | undefined): LocalEditorBrowserPrefabStageStructureItem | null;
|
|
26
|
+
export declare function filterLocalEditorPrefabStageStructureItems(items: readonly LocalEditorBrowserPrefabStageStructureItem[], query: string): LocalEditorBrowserPrefabStageStructureItem[];
|
|
27
|
+
export interface LocalEditorPrefabStageShortcutBlockInput {
|
|
28
|
+
inPrefabStage: boolean;
|
|
29
|
+
handleGlobalShortcut: boolean;
|
|
30
|
+
key: string;
|
|
31
|
+
metaKey?: boolean;
|
|
32
|
+
ctrlKey?: boolean;
|
|
33
|
+
altKey?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare function shouldLocalEditorPrefabStageBlockHierarchyShortcut(input: LocalEditorPrefabStageShortcutBlockInput): boolean;
|
|
36
|
+
export interface LocalEditorPerformanceMonitorCloseInput {
|
|
37
|
+
inEditor: boolean;
|
|
38
|
+
inPrefabStage: boolean;
|
|
39
|
+
performanceMonitorOpen: boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare function shouldLocalEditorClosePerformanceMonitor(input: LocalEditorPerformanceMonitorCloseInput): boolean;
|
|
42
|
+
export interface LocalEditorRightDockVisibilityInput {
|
|
43
|
+
inPrefabStage: boolean;
|
|
44
|
+
activeRightTab: LocalEditorRightDockTab;
|
|
45
|
+
}
|
|
46
|
+
export interface LocalEditorRightDockVisibility {
|
|
47
|
+
tabsDisplay: string;
|
|
48
|
+
inspectorDisplay: string;
|
|
49
|
+
renderingDisplay: string;
|
|
50
|
+
}
|
|
51
|
+
export declare function resolveLocalEditorRightDockVisibility(input: LocalEditorRightDockVisibilityInput): LocalEditorRightDockVisibility;
|
|
52
|
+
//# sourceMappingURL=local-editor-ui-prefab-stage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-editor-ui-prefab-stage.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-prefab-stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oDAAoD,EACpD,kCAAkC,EAClC,0CAA0C,EAC1C,uBAAuB,EACxB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,kCAAkC,GAAG,IAAI,GAAG,SAAS,GAC3D,MAAM,CAER;AAED,MAAM,MAAM,2CAA2C,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3F,wBAAgB,mDAAmD,CACjE,MAAM,EAAE,oDAAoD,GAC3D,MAAM,CASR;AAED,wBAAgB,k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AC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,kDAAkD,CAChE,KAAK,EAAE,wCAAwC,GAC9C,OAAO,CAMT;AAED,MAAM,WAAW,uCAAuC;IACtD,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,wCAAwC,CACtD,KAAK,EAAE,uCAAuC,GAC7C,OAAO,CAIT;AAED,MAAM,WAAW,mCAAmC;IAClD,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,uBAAuB,CAAC;CACzC;AAED,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,mCAAmC,GACzC,8BAA8B,CAahC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export function createLocalEditorPrefabStageTitle(stage) {
|
|
2
|
+
return stage ? `Prefab: ${stage.label}` : 'Preview';
|
|
3
|
+
}
|
|
4
|
+
export function formatLocalEditorPrefabStageComparisonPreviewStatus(status) {
|
|
5
|
+
switch (status) {
|
|
6
|
+
case 'ready':
|
|
7
|
+
return 'READY';
|
|
8
|
+
case 'loading':
|
|
9
|
+
return 'LOADING';
|
|
10
|
+
case 'unavailable':
|
|
11
|
+
return 'UNAVAILABLE';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export function resolveLocalEditorPrefabStageComparisonPreviewTone(status) {
|
|
15
|
+
switch (status) {
|
|
16
|
+
case 'ready':
|
|
17
|
+
return 'success';
|
|
18
|
+
case 'loading':
|
|
19
|
+
return 'warning';
|
|
20
|
+
case 'unavailable':
|
|
21
|
+
return 'danger';
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export const LOCAL_EDITOR_PREFAB_COMPARISON_COLUMN_WIDTH_PX = 320;
|
|
25
|
+
export const LOCAL_EDITOR_PREFAB_COMPARISON_COLUMN_AUTO_COLLAPSE_WIDTH_PX = 760;
|
|
26
|
+
export function shouldShowLocalEditorPrefabComparisonColumn(input) {
|
|
27
|
+
if (!input.inPrefabStage || !input.userOpen)
|
|
28
|
+
return false;
|
|
29
|
+
if (Number.isFinite(input.sceneWidth) && input.sceneWidth > 0) {
|
|
30
|
+
return input.sceneWidth >= LOCAL_EDITOR_PREFAB_COMPARISON_COLUMN_AUTO_COLLAPSE_WIDTH_PX;
|
|
31
|
+
}
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function shouldToggleLocalEditorPrefabComparisonShortcut(input) {
|
|
35
|
+
return input.inPrefabStage
|
|
36
|
+
&& input.handleGlobalShortcut
|
|
37
|
+
&& input.key.toLowerCase() === 'p'
|
|
38
|
+
&& input.shiftKey === true
|
|
39
|
+
&& input.metaKey !== true
|
|
40
|
+
&& input.ctrlKey !== true
|
|
41
|
+
&& input.altKey !== true;
|
|
42
|
+
}
|
|
43
|
+
export function flattenLocalEditorPrefabStageStructureItems(items) {
|
|
44
|
+
const flattened = [];
|
|
45
|
+
const visit = (item) => {
|
|
46
|
+
flattened.push(item);
|
|
47
|
+
for (const child of item.children ?? [])
|
|
48
|
+
visit(child);
|
|
49
|
+
};
|
|
50
|
+
for (const item of items)
|
|
51
|
+
visit(item);
|
|
52
|
+
return flattened;
|
|
53
|
+
}
|
|
54
|
+
export function findLocalEditorPrefabStageStructureItem(stage, itemId) {
|
|
55
|
+
if (!stage || !itemId)
|
|
56
|
+
return null;
|
|
57
|
+
return flattenLocalEditorPrefabStageStructureItems(stage.structureItems)
|
|
58
|
+
.find(item => item.id === itemId)
|
|
59
|
+
?? null;
|
|
60
|
+
}
|
|
61
|
+
export function filterLocalEditorPrefabStageStructureItems(items, query) {
|
|
62
|
+
const normalizedQuery = query.trim().toLowerCase();
|
|
63
|
+
if (!normalizedQuery)
|
|
64
|
+
return items.map(cloneLocalEditorPrefabStageStructureItem);
|
|
65
|
+
const filterItem = (item) => {
|
|
66
|
+
const children = (item.children ?? [])
|
|
67
|
+
.map(filterItem)
|
|
68
|
+
.filter((child) => !!child);
|
|
69
|
+
if (children.length > 0 || localEditorPrefabStageStructureItemMatches(item, normalizedQuery)) {
|
|
70
|
+
return {
|
|
71
|
+
...item,
|
|
72
|
+
...(children.length > 0 ? { children } : { children: undefined }),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
return null;
|
|
76
|
+
};
|
|
77
|
+
return items
|
|
78
|
+
.map(filterItem)
|
|
79
|
+
.filter((item) => !!item);
|
|
80
|
+
}
|
|
81
|
+
function cloneLocalEditorPrefabStageStructureItem(item) {
|
|
82
|
+
return {
|
|
83
|
+
...item,
|
|
84
|
+
...(item.children ? { children: item.children.map(cloneLocalEditorPrefabStageStructureItem) } : {}),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function localEditorPrefabStageStructureItemMatches(item, query) {
|
|
88
|
+
return [
|
|
89
|
+
item.id,
|
|
90
|
+
item.label,
|
|
91
|
+
item.kind,
|
|
92
|
+
item.meta,
|
|
93
|
+
item.sourceAssetId,
|
|
94
|
+
item.slotId,
|
|
95
|
+
item.ownerNodePath,
|
|
96
|
+
item.sourceMaterialName,
|
|
97
|
+
...(item.sourceMaterialNames ?? []),
|
|
98
|
+
].some(value => typeof value === 'string' && value.toLowerCase().includes(query));
|
|
99
|
+
}
|
|
100
|
+
export function shouldLocalEditorPrefabStageBlockHierarchyShortcut(input) {
|
|
101
|
+
if (!input.inPrefabStage || !input.handleGlobalShortcut)
|
|
102
|
+
return false;
|
|
103
|
+
const key = input.key.toLowerCase();
|
|
104
|
+
if (key === 'delete' || key === 'backspace')
|
|
105
|
+
return true;
|
|
106
|
+
if (input.altKey === true || (input.metaKey !== true && input.ctrlKey !== true))
|
|
107
|
+
return false;
|
|
108
|
+
return key === 'a' || key === 'c' || key === 'd' || key === 'v';
|
|
109
|
+
}
|
|
110
|
+
export function shouldLocalEditorClosePerformanceMonitor(input) {
|
|
111
|
+
if (!input.performanceMonitorOpen)
|
|
112
|
+
return false;
|
|
113
|
+
if (input.inPrefabStage)
|
|
114
|
+
return false;
|
|
115
|
+
return !input.inEditor;
|
|
116
|
+
}
|
|
117
|
+
export function resolveLocalEditorRightDockVisibility(input) {
|
|
118
|
+
if (input.inPrefabStage) {
|
|
119
|
+
return {
|
|
120
|
+
tabsDisplay: 'none',
|
|
121
|
+
inspectorDisplay: '',
|
|
122
|
+
renderingDisplay: 'none',
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
tabsDisplay: '',
|
|
127
|
+
inspectorDisplay: input.activeRightTab === 'inspector' ? '' : 'none',
|
|
128
|
+
renderingDisplay: input.activeRightTab === 'rendering' ? '' : 'none',
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=local-editor-ui-prefab-stage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-editor-ui-prefab-stage.js","sourceRoot":"","sources":["../src/local-editor-ui-prefab-stage.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,iCAAiC,CAC/C,KAA4D;IAE5D,OAAO,KAAK,CAAC,CAAC,CAAC,WAAW,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACtD,CAAC;AAID,MAAM,UAAU,mDAAmD,CACjE,MAA4D;IAE5D,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,OAAO;YACV,OAAO,OAAO,CAAC;QACjB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC;QACnB,KAAK,aAAa;YAChB,OAAO,aAAa,CAAC;IACzB,CAAC;AACH,CAAC;AAED,MAAM,UAAU,kDAAkD,CAChE,MAA4D;IAE5D,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,OAAO;YACV,OAAO,SAAS,CAAC;QACnB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC;QACnB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,KAA8C;IAE9C,IAAI,CAAC,KAAK,CAAC,sBAAsB;QAAE,OAAO,KAAK,CAAC;IAChD,IAAI,KAAK,CAAC,aAAa;QAAE,OAAO,KAAK,CAAC;IACtC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC;AACzB,CAAC;AAaD,MAAM,UAAU,qCAAqC,CACnD,KAA0C;IAE1C,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;QACxB,OAAO;YACL,WAAW,EAAE,MAAM;YACnB,gBAAgB,EAAE,EAAE;YACpB,gBAAgB,EAAE,MAAM;SACzB,CAAC;IACJ,CAAC;IACD,OAAO;QACL,WAAW,EAAE,EAAE;QACf,gBAAgB,EAAE,KAAK,CAAC,cAAc,KAAK,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM;QACpE,gBAAgB,EAAE,KAAK,CAAC,cAAc,KAAK,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM;KACrE,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-ui-primitives.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG1F,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"local-editor-ui-primitives.d.ts","sourceRoot":"","sources":["../src/local-editor-ui-primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG1F,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,C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AG,MAAM,CAGxF;AAED,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,+BAA+B,EACrC,KAAK,EAAE,gCAAgC,GACtC,MAAM,CAOR;AAED,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,8BAA8B,GAAG,IAAI,GAAG,SAAS,GACxD,MAAM,CAMR;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,+BAA+B,GAAG,MAAM,CAOlF;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,iCAAiC,GAAG,MAAM,CAWxF;AAED,wBAAgB,0BAA0B,CACxC,QAAQ,GAAE,4CAA0F,GACnG,MAAM,CASR;AAED,wBAAgB,+BAA+B,CAC7C,QAAQ,GAAE,4CAA0F,GACnG,MAAM,CAQR;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,+BAA+B,GAAG,MAAM,CAKlF"}
|
|
@@ -130,8 +130,15 @@ export function createDockTabButton(doc, text, active, options = {}) {
|
|
|
130
130
|
return button;
|
|
131
131
|
}
|
|
132
132
|
export function clearElement(element) {
|
|
133
|
-
|
|
134
|
-
element.
|
|
133
|
+
if (typeof element.replaceChildren === 'function') {
|
|
134
|
+
element.replaceChildren();
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
const children = element.childNodes ?? element.children ?? [];
|
|
138
|
+
for (const child of Array.from(children)) {
|
|
139
|
+
if (child.parentNode === element || child.parentElement === element) {
|
|
140
|
+
element.removeChild(child);
|
|
141
|
+
}
|
|
135
142
|
}
|
|
136
143
|
}
|
|
137
144
|
export function toTitle(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-editor-ui-shared.js","sourceRoot":"","sources":["../src/local-editor-ui-shared.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2CAA2C,EAC3C,yCAAyC,GAE1C,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,qBAAqB,EAA4B,MAAM,yBAAyB,CAAC;AAsB1F,MAAM,UAAU,sBAAsB,C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AI,KAAK,QAAQ;QAAE,OAAO,wBAAwB,CAAC;IACvD,IAAI,IAAI,KAAK,OAAO;QAAE,OAAO,+BAA+B,CAAC;IAC7D,OAAO,wDAAwD,CAAC;AAClE,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAa;IAC1C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IAClD,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpF,CAAC"}
|
|
@@ -95,7 +95,7 @@ export interface LocalEditorBrowserUiHierarchyItem {
|
|
|
95
95
|
label: string;
|
|
96
96
|
parentId?: string | null;
|
|
97
97
|
depth?: number;
|
|
98
|
-
role?: 'root' | 'group' | 'object';
|
|
98
|
+
role?: 'root' | 'group' | 'object' | 'marker';
|
|
99
99
|
icon?: string;
|
|
100
100
|
selectable?: boolean;
|
|
101
101
|
enabled?: boolean;
|
|
@@ -173,6 +173,84 @@ export interface LocalEditorBrowserMaterialAssetEditorData {
|
|
|
173
173
|
};
|
|
174
174
|
profile?: LocalEditorBrowserMaterialProfile;
|
|
175
175
|
}
|
|
176
|
+
export interface LocalEditorBrowserPrefabAssetEditorData {
|
|
177
|
+
id: string;
|
|
178
|
+
name?: string;
|
|
179
|
+
sourceAssetId?: string;
|
|
180
|
+
sourceAssetGuid?: string;
|
|
181
|
+
readonly?: boolean;
|
|
182
|
+
}
|
|
183
|
+
export type LocalEditorBrowserPrefabStageStructureItemKind = 'root' | 'source' | 'group' | 'mesh' | 'material' | 'texture' | 'animation' | 'info';
|
|
184
|
+
export interface LocalEditorBrowserPrefabStageStructureItem {
|
|
185
|
+
id: string;
|
|
186
|
+
label: string;
|
|
187
|
+
kind: LocalEditorBrowserPrefabStageStructureItemKind;
|
|
188
|
+
icon?: string;
|
|
189
|
+
meta?: string;
|
|
190
|
+
readonly?: boolean;
|
|
191
|
+
sourceAssetId?: string;
|
|
192
|
+
slotId?: string;
|
|
193
|
+
ownerNodePath?: string;
|
|
194
|
+
meshIndex?: number;
|
|
195
|
+
primitiveIndex?: number;
|
|
196
|
+
sourceMaterialIndex?: number;
|
|
197
|
+
sourceMaterialIndices?: number[];
|
|
198
|
+
sourceMaterialName?: string;
|
|
199
|
+
sourceMaterialNames?: string[];
|
|
200
|
+
children?: LocalEditorBrowserPrefabStageStructureItem[];
|
|
201
|
+
}
|
|
202
|
+
export interface LocalEditorBrowserPrefabStageImportStats {
|
|
203
|
+
status: 'loading' | 'ready' | 'missing';
|
|
204
|
+
projectionNodeId?: string;
|
|
205
|
+
assetId?: string;
|
|
206
|
+
sourceId?: string;
|
|
207
|
+
nodeCount: number;
|
|
208
|
+
transformCount: number;
|
|
209
|
+
meshCount: number;
|
|
210
|
+
materialCount: number;
|
|
211
|
+
textureCount: number;
|
|
212
|
+
animationCount: number;
|
|
213
|
+
}
|
|
214
|
+
export type LocalEditorBrowserPrefabStageComparisonPreviewMode = 'meshClone' | 'instancedMesh';
|
|
215
|
+
export type LocalEditorBrowserPrefabStageComparisonPreviewStatus = 'loading' | 'ready' | 'unavailable';
|
|
216
|
+
export interface LocalEditorBrowserPrefabStageComparisonPreview {
|
|
217
|
+
id: string;
|
|
218
|
+
label: string;
|
|
219
|
+
mode: LocalEditorBrowserPrefabStageComparisonPreviewMode;
|
|
220
|
+
projectionNodeId: string;
|
|
221
|
+
status: LocalEditorBrowserPrefabStageComparisonPreviewStatus;
|
|
222
|
+
}
|
|
223
|
+
export interface LocalEditorBrowserPrefabComparisonPreviewSurface {
|
|
224
|
+
previewId: string;
|
|
225
|
+
projectionNodeId: string;
|
|
226
|
+
element: HTMLElement;
|
|
227
|
+
rect: DOMRect;
|
|
228
|
+
}
|
|
229
|
+
export type LocalEditorBrowserPrefabComparisonPreviewInteraction = {
|
|
230
|
+
kind: 'orbit';
|
|
231
|
+
previewId: string;
|
|
232
|
+
deltaX: number;
|
|
233
|
+
deltaY: number;
|
|
234
|
+
} | {
|
|
235
|
+
kind: 'zoom';
|
|
236
|
+
previewId: string;
|
|
237
|
+
deltaY: number;
|
|
238
|
+
};
|
|
239
|
+
export interface LocalEditorBrowserPrefabStageState<TDocument = unknown> {
|
|
240
|
+
assetId: string;
|
|
241
|
+
browserAssetId?: string;
|
|
242
|
+
label: string;
|
|
243
|
+
sourceAssetId?: string;
|
|
244
|
+
sourceAssetGuid?: string;
|
|
245
|
+
readonly?: boolean;
|
|
246
|
+
selectedItemId?: string | null;
|
|
247
|
+
structureItems: LocalEditorBrowserPrefabStageStructureItem[];
|
|
248
|
+
inspectorObject?: LocalEditorBrowserInspectorObject<TDocument> | null;
|
|
249
|
+
importStructureReady?: boolean;
|
|
250
|
+
importStats?: LocalEditorBrowserPrefabStageImportStats | null;
|
|
251
|
+
previewNodeId?: string;
|
|
252
|
+
comparisonPreviews?: LocalEditorBrowserPrefabStageComparisonPreview[];
|
|
253
|
+
}
|
|
176
254
|
export interface LocalEditorBrowserInspectorAssetPickerOption {
|
|
177
255
|
label: string;
|
|
178
256
|
value: string;
|
|
@@ -197,6 +275,7 @@ export interface LocalEditorBrowserUiAssetItem {
|
|
|
197
275
|
placeable?: boolean;
|
|
198
276
|
preview?: LocalEditorBrowserAssetPreview;
|
|
199
277
|
material?: LocalEditorBrowserMaterialAssetEditorData;
|
|
278
|
+
prefab?: LocalEditorBrowserPrefabAssetEditorData;
|
|
200
279
|
meta?: string;
|
|
201
280
|
disabled?: boolean;
|
|
202
281
|
}
|
|
@@ -329,6 +408,117 @@ export interface LocalEditorBrowserRenderingPanelAction {
|
|
|
329
408
|
tooltip?: string;
|
|
330
409
|
params?: Record<string, unknown>;
|
|
331
410
|
}
|
|
411
|
+
export interface LocalEditorBrowserMarkerTypeItem {
|
|
412
|
+
type: string;
|
|
413
|
+
label: string;
|
|
414
|
+
kind?: string;
|
|
415
|
+
description?: string;
|
|
416
|
+
defaultTags?: string[];
|
|
417
|
+
builtIn?: boolean;
|
|
418
|
+
usedByCount?: number;
|
|
419
|
+
deletable?: boolean;
|
|
420
|
+
}
|
|
421
|
+
export interface LocalEditorBrowserMarkerRelationEndpointItem {
|
|
422
|
+
kind: string;
|
|
423
|
+
id: string;
|
|
424
|
+
label: string;
|
|
425
|
+
disabled?: boolean;
|
|
426
|
+
status?: string;
|
|
427
|
+
visibility?: 'visible' | 'hidden';
|
|
428
|
+
}
|
|
429
|
+
export interface LocalEditorBrowserMarkerRelationEndpointInput {
|
|
430
|
+
kind: string;
|
|
431
|
+
id: string;
|
|
432
|
+
}
|
|
433
|
+
export interface LocalEditorBrowserMarkerRelationTypeItem {
|
|
434
|
+
type: string;
|
|
435
|
+
label: string;
|
|
436
|
+
directed?: boolean;
|
|
437
|
+
description?: string;
|
|
438
|
+
}
|
|
439
|
+
export interface LocalEditorBrowserMarkerRelationItem {
|
|
440
|
+
id: string;
|
|
441
|
+
type: string;
|
|
442
|
+
typeLabel: string;
|
|
443
|
+
directed: boolean;
|
|
444
|
+
from: LocalEditorBrowserMarkerRelationEndpointItem;
|
|
445
|
+
to: LocalEditorBrowserMarkerRelationEndpointItem;
|
|
446
|
+
selected?: boolean;
|
|
447
|
+
active?: boolean;
|
|
448
|
+
status?: string;
|
|
449
|
+
statusTone?: 'default' | 'success' | 'warning' | 'error';
|
|
450
|
+
}
|
|
451
|
+
export interface LocalEditorBrowserMarkerRelationPickState {
|
|
452
|
+
active: boolean;
|
|
453
|
+
type?: string;
|
|
454
|
+
typeLabel?: string;
|
|
455
|
+
directed?: boolean;
|
|
456
|
+
from?: LocalEditorBrowserMarkerRelationEndpointInput | null;
|
|
457
|
+
status?: string;
|
|
458
|
+
statusTone?: 'default' | 'success' | 'warning' | 'error';
|
|
459
|
+
}
|
|
460
|
+
export interface LocalEditorBrowserMarkerPanelState {
|
|
461
|
+
title?: string;
|
|
462
|
+
summary?: string;
|
|
463
|
+
markerTypes: LocalEditorBrowserMarkerTypeItem[];
|
|
464
|
+
relationTypes?: LocalEditorBrowserMarkerRelationTypeItem[];
|
|
465
|
+
relationEndpointOptions?: LocalEditorBrowserMarkerRelationEndpointItem[];
|
|
466
|
+
relations?: LocalEditorBrowserMarkerRelationItem[];
|
|
467
|
+
activeMarkerId?: string | null;
|
|
468
|
+
activeRelationId?: string | null;
|
|
469
|
+
relationPick?: LocalEditorBrowserMarkerRelationPickState | null;
|
|
470
|
+
markersCount?: number;
|
|
471
|
+
relationsCount?: number;
|
|
472
|
+
markersVisible?: boolean;
|
|
473
|
+
status?: string;
|
|
474
|
+
statusTone?: 'default' | 'success' | 'warning' | 'error';
|
|
475
|
+
}
|
|
476
|
+
export type LocalEditorBrowserMarkerTypeActionInput = {
|
|
477
|
+
action: 'create';
|
|
478
|
+
type: string;
|
|
479
|
+
label: string;
|
|
480
|
+
kind?: string;
|
|
481
|
+
description?: string;
|
|
482
|
+
} | {
|
|
483
|
+
action: 'update';
|
|
484
|
+
type: string;
|
|
485
|
+
label?: string;
|
|
486
|
+
kind?: string;
|
|
487
|
+
description?: string;
|
|
488
|
+
} | {
|
|
489
|
+
action: 'delete';
|
|
490
|
+
type: string;
|
|
491
|
+
};
|
|
492
|
+
export type LocalEditorBrowserMarkerRelationActionInput = {
|
|
493
|
+
action: 'create';
|
|
494
|
+
type: string;
|
|
495
|
+
fromKind?: string;
|
|
496
|
+
fromId?: string;
|
|
497
|
+
toKind?: string;
|
|
498
|
+
toId?: string;
|
|
499
|
+
toEndpoints?: readonly LocalEditorBrowserMarkerRelationEndpointInput[];
|
|
500
|
+
directed?: boolean;
|
|
501
|
+
} | {
|
|
502
|
+
action: 'delete';
|
|
503
|
+
relationId: string;
|
|
504
|
+
} | {
|
|
505
|
+
action: 'delete-connected';
|
|
506
|
+
markerId?: string;
|
|
507
|
+
} | {
|
|
508
|
+
action: 'reverse';
|
|
509
|
+
relationId: string;
|
|
510
|
+
} | {
|
|
511
|
+
action: 'pick-start';
|
|
512
|
+
type: string;
|
|
513
|
+
fromKind?: string;
|
|
514
|
+
fromId?: string;
|
|
515
|
+
directed?: boolean;
|
|
516
|
+
} | {
|
|
517
|
+
action: 'pick-cancel';
|
|
518
|
+
} | {
|
|
519
|
+
action: 'select';
|
|
520
|
+
relationId: string;
|
|
521
|
+
};
|
|
332
522
|
export interface LocalEditorBrowserUiState<TDocument = unknown> {
|
|
333
523
|
mode: 'game' | 'editor';
|
|
334
524
|
busy: boolean;
|
|
@@ -353,6 +543,7 @@ export interface LocalEditorBrowserUiState<TDocument = unknown> {
|
|
|
353
543
|
inspectorObject?: LocalEditorBrowserInspectorObject<TDocument> | null;
|
|
354
544
|
inspectorMultiObject?: LocalEditorBrowserInspectorObject<TDocument> | null;
|
|
355
545
|
renderingPanel?: LocalEditorBrowserRenderingPanelState | null;
|
|
546
|
+
markerPanel?: LocalEditorBrowserMarkerPanelState | null;
|
|
356
547
|
boxSelection?: {
|
|
357
548
|
active: boolean;
|
|
358
549
|
left: number;
|
|
@@ -372,6 +563,7 @@ export interface LocalEditorBrowserUiState<TDocument = unknown> {
|
|
|
372
563
|
enabled: boolean;
|
|
373
564
|
available: boolean;
|
|
374
565
|
} | null;
|
|
566
|
+
prefabStage?: LocalEditorBrowserPrefabStageState<TDocument> | null;
|
|
375
567
|
grid?: {
|
|
376
568
|
visible: boolean;
|
|
377
569
|
available: boolean;
|
|
@@ -467,6 +659,13 @@ export interface LocalEditorBrowserRenderingActionInput {
|
|
|
467
659
|
path?: string;
|
|
468
660
|
params?: Record<string, unknown>;
|
|
469
661
|
}
|
|
662
|
+
export interface LocalEditorBrowserInspectorActionInput {
|
|
663
|
+
actionId: string;
|
|
664
|
+
targetId?: string | null;
|
|
665
|
+
targetIds?: string[];
|
|
666
|
+
path?: string;
|
|
667
|
+
params?: Record<string, unknown>;
|
|
668
|
+
}
|
|
470
669
|
export type LocalEditorBrowserInspectorConflictStrategy = 'error' | 'ignore' | 'replace';
|
|
471
670
|
export interface LocalEditorBrowserInspectorControlBindingOptions {
|
|
472
671
|
source?: LocalEditorBrowserInspectorEditSource;
|
|
@@ -517,6 +716,12 @@ export interface LocalEditorBrowserSceneGraphCreatePrimitiveIntent {
|
|
|
517
716
|
shape: LocalEditorBrowserPrimitiveShape;
|
|
518
717
|
name?: string;
|
|
519
718
|
}
|
|
719
|
+
export interface LocalEditorBrowserSceneGraphCreateMarkerIntent {
|
|
720
|
+
markerType?: string;
|
|
721
|
+
parentId?: string | null;
|
|
722
|
+
activeId?: string | null;
|
|
723
|
+
name?: string;
|
|
724
|
+
}
|
|
520
725
|
export interface LocalEditorBrowserSceneGraphDeleteIntent {
|
|
521
726
|
ids: string[];
|
|
522
727
|
activeId?: string | null;
|
|
@@ -572,6 +777,14 @@ export interface LocalEditorBrowserHierarchyContextActionContext<TDocument = unk
|
|
|
572
777
|
activeId: string | null;
|
|
573
778
|
}
|
|
574
779
|
export type LocalEditorBrowserHierarchyContextActionPlacement = 'top' | 'after-primary' | 'after-create' | 'after-edit' | 'after-clipboard' | 'bottom';
|
|
780
|
+
export interface LocalEditorBrowserHierarchyContextActionChildRegistration<TDocument = unknown> {
|
|
781
|
+
id: string;
|
|
782
|
+
label: string;
|
|
783
|
+
shortcut?: string;
|
|
784
|
+
danger?: boolean;
|
|
785
|
+
disabled?(context: LocalEditorBrowserHierarchyContextActionContext<TDocument>): boolean | string;
|
|
786
|
+
payload?(context: LocalEditorBrowserHierarchyContextActionContext<TDocument>): Record<string, unknown> | undefined;
|
|
787
|
+
}
|
|
575
788
|
export interface LocalEditorBrowserHierarchyContextActionRegistration<TDocument = unknown> {
|
|
576
789
|
id: string;
|
|
577
790
|
label: string;
|
|
@@ -579,6 +792,7 @@ export interface LocalEditorBrowserHierarchyContextActionRegistration<TDocument
|
|
|
579
792
|
danger?: boolean;
|
|
580
793
|
placement?: LocalEditorBrowserHierarchyContextActionPlacement;
|
|
581
794
|
separatorBefore?: boolean;
|
|
795
|
+
children?: readonly LocalEditorBrowserHierarchyContextActionChildRegistration<TDocument>[] | ((context: LocalEditorBrowserHierarchyContextActionContext<TDocument>) => readonly LocalEditorBrowserHierarchyContextActionChildRegistration<TDocument>[]);
|
|
582
796
|
visible?(context: LocalEditorBrowserHierarchyContextActionContext<TDocument>): boolean;
|
|
583
797
|
disabled?(context: LocalEditorBrowserHierarchyContextActionContext<TDocument>): boolean | string;
|
|
584
798
|
payload?(context: LocalEditorBrowserHierarchyContextActionContext<TDocument>): Record<string, unknown> | undefined;
|
|
@@ -604,6 +818,13 @@ export type LocalEditorContextAction = {
|
|
|
604
818
|
activeId?: string | null;
|
|
605
819
|
shape: LocalEditorBrowserPrimitiveShape;
|
|
606
820
|
name?: string;
|
|
821
|
+
} | {
|
|
822
|
+
region: 'hierarchy';
|
|
823
|
+
action: 'create-marker';
|
|
824
|
+
parentId?: string | null;
|
|
825
|
+
activeId?: string | null;
|
|
826
|
+
markerType?: string;
|
|
827
|
+
name?: string;
|
|
607
828
|
} | {
|
|
608
829
|
region: 'hierarchy';
|
|
609
830
|
action: 'delete';
|
|
@@ -649,10 +870,15 @@ export interface LocalEditorBrowserUiCallbacks {
|
|
|
649
870
|
onCreateFromAsset?: (assetId: string) => void;
|
|
650
871
|
onSelectAsset?: (assetId: string) => void;
|
|
651
872
|
onAssetAction?: (input: LocalEditorBrowserAssetActionInput) => void;
|
|
873
|
+
onExitPrefabStage?: () => void;
|
|
874
|
+
onSelectPrefabStageItem?: (itemId: string) => void;
|
|
652
875
|
onAssetFilterChange?: (value: string) => void;
|
|
653
876
|
onPropertyInput?: (input: LocalEditorBrowserUiPropertyInput) => void;
|
|
877
|
+
onInspectorAction?: (input: LocalEditorBrowserInspectorActionInput) => void;
|
|
654
878
|
onRenderingPropertyChange?: (input: LocalEditorBrowserRenderingPropertyChangeInput) => void;
|
|
655
879
|
onRenderingAction?: (input: LocalEditorBrowserRenderingActionInput) => void;
|
|
880
|
+
onMarkerTypeAction?: (input: LocalEditorBrowserMarkerTypeActionInput) => void;
|
|
881
|
+
onMarkerRelationAction?: (input: LocalEditorBrowserMarkerRelationActionInput) => void;
|
|
656
882
|
onTransformToolChange?: (tool: LocalEditorBrowserTransformTool) => void;
|
|
657
883
|
onTransformSpaceChange?: (space: LocalEditorBrowserTransformSpace) => void;
|
|
658
884
|
onTransformConstraintChange?: (constraint: LocalEditorBrowserTransformConstraint) => void;
|
|
@@ -669,14 +895,18 @@ export interface LocalEditorBrowserUiCallbacks {
|
|
|
669
895
|
onViewportUtilityToolChange?: (tool: LocalEditorBrowserViewportUtilityTool) => void;
|
|
670
896
|
onViewportMeasurementClear?: () => void;
|
|
671
897
|
onSceneCameraPreviewToggle?: (enabled: boolean) => void;
|
|
898
|
+
onMarkerViewportVisibilityChange?: (visible: boolean) => void;
|
|
672
899
|
onGridVisibleChange?: (visible: boolean) => void;
|
|
673
900
|
onPerformanceMonitorOpenChange?: (open: boolean) => void;
|
|
901
|
+
onPrefabComparisonPreviewLayoutChange?: () => void;
|
|
902
|
+
onPrefabComparisonPreviewInteraction?: (input: LocalEditorBrowserPrefabComparisonPreviewInteraction) => void;
|
|
674
903
|
onFocusSelection?: () => void;
|
|
675
904
|
onCancelEditorIntent?: () => void;
|
|
676
905
|
onCancelActiveOperation?: () => void;
|
|
677
906
|
onSceneGraphRename?: (intent: LocalEditorBrowserSceneGraphRenameIntent) => void;
|
|
678
907
|
onSceneGraphCreateGroup?: (intent: LocalEditorBrowserSceneGraphCreateGroupIntent) => void;
|
|
679
908
|
onSceneGraphCreatePrimitive?: (intent: LocalEditorBrowserSceneGraphCreatePrimitiveIntent) => void;
|
|
909
|
+
onSceneGraphCreateMarker?: (intent: LocalEditorBrowserSceneGraphCreateMarkerIntent) => void;
|
|
680
910
|
onSceneGraphDelete?: (intent: LocalEditorBrowserSceneGraphDeleteIntent) => void;
|
|
681
911
|
onSceneGraphDuplicate?: (intent: LocalEditorBrowserSceneGraphDuplicateIntent) => void;
|
|
682
912
|
onSceneGraphDrop?: (intent: LocalEditorBrowserSceneGraphDropIntent) => void;
|
|
@@ -704,6 +934,7 @@ export interface LocalEditorBrowserUi<TDocument = unknown> {
|
|
|
704
934
|
updatePreview?(state: LocalEditorBrowserUiPreviewState<TDocument>): void;
|
|
705
935
|
updateSceneFrameStats?(stats: LocalEditorBrowserSceneFrameStats | null): void;
|
|
706
936
|
updatePerformanceStats?(stats: LocalEditorBrowserPerformanceStats | null): void;
|
|
937
|
+
getPrefabComparisonPreviewSurfaces?(): LocalEditorBrowserPrefabComparisonPreviewSurface[];
|
|
707
938
|
setTheme?(theme: LocalEditorThemeName): void;
|
|
708
939
|
getTheme?(): LocalEditorThemeName;
|
|
709
940
|
dispose(): void;
|
|
@@ -713,8 +944,8 @@ export interface LocalEditorThemeController {
|
|
|
713
944
|
getTheme(): LocalEditorThemeName;
|
|
714
945
|
}
|
|
715
946
|
export type LocalEditorBottomDockTab = 'assets' | 'history';
|
|
716
|
-
export type LocalEditorRightDockTab = 'inspector' | 'rendering';
|
|
717
|
-
export type LocalEditorAssetBrowserTab = 'all' | 'models' | 'materials' | 'textures';
|
|
947
|
+
export type LocalEditorRightDockTab = 'inspector' | 'rendering' | 'markers';
|
|
948
|
+
export type LocalEditorAssetBrowserTab = 'all' | 'models' | 'prefabs' | 'materials' | 'textures';
|
|
718
949
|
export type LocalEditorWorkbenchDockArea = 'left' | 'right' | 'bottom';
|
|
719
950
|
export type LocalEditorWorkbenchPanelId = 'hierarchy' | LocalEditorRightDockTab | LocalEditorBottomDockTab;
|
|
720
951
|
export type LocalEditorWorkbenchRegionId = 'top-app-bar' | 'left-dock' | 'scene-view' | 'scene-header' | 'right-dock' | 'bottom-dock';
|