@babylonjs/inspector 9.9.0 → 9.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser-CANgtOiM.js +1277 -0
- package/lib/browser-CANgtOiM.js.map +1 -0
- package/lib/components/properties/audio/audioV2Properties.d.ts +93 -0
- package/lib/components/properties/audio/audioV2SpatialProperties.d.ts +12 -0
- package/lib/components/properties/materials/materialTextureDebugPropertyLine.d.ts +18 -0
- package/lib/{extensionsListService-DTrjNf_v.js → extensionsListService-j6viqje8.js} +13 -2
- package/lib/{extensionsListService-DTrjNf_v.js.map → extensionsListService-j6viqje8.js.map} +1 -1
- package/lib/{index-PYblOaAV.js → index--oJsOVVX.js} +2775 -384
- package/lib/index--oJsOVVX.js.map +1 -0
- package/lib/index.js +12 -1
- package/lib/index.js.map +1 -1
- package/lib/projects/overrideEntry.d.ts +36 -0
- package/lib/projects/overrideManager.d.ts +176 -0
- package/lib/projects/projectFile.d.ts +143 -0
- package/lib/{quickCreateToolsService-8d6rBO-A.js → quickCreateToolsService-eZ4MCuJ2.js} +13 -2
- package/lib/{quickCreateToolsService-8d6rBO-A.js.map → quickCreateToolsService-eZ4MCuJ2.js.map} +1 -1
- package/lib/{reflectorService-B7LcD1Sn.js → reflectorService-2dP-GJrK.js} +13 -2
- package/lib/{reflectorService-B7LcD1Sn.js.map → reflectorService-2dP-GJrK.js.map} +1 -1
- package/lib/services/gizmoService.d.ts +9 -0
- package/lib/services/overrideCaptureService.d.ts +16 -0
- package/lib/services/panes/{smartAssetsService.d.ts → babylonProjectAuthoringService.d.ts} +4 -2
- package/lib/services/panes/properties/audioPropertiesService.d.ts +2 -1
- package/lib/services/panes/scene/audioV2ExplorerService.d.ts +6 -0
- package/lib/services/panes/scene/defaultSectionsMetadata.d.ts +2 -1
- package/package.json +1 -1
- package/lib/index-PYblOaAV.js.map +0 -1
- package/lib/services/panes/tools/smartAssetToolsService.d.ts +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflectorService-
|
|
1
|
+
{"version":3,"file":"reflectorService-2dP-GJrK.js","sources":["../../../../../../../../dev/inspector-v2/src/components/tools/reflectorTools.tsx","../../../../../../../../dev/inspector-v2/src/services/panes/tools/reflectorService.tsx"],"sourcesContent":["import { ButtonLine } from \"shared-ui-components/fluent/hoc/buttonLine\";\r\nimport { useState, useCallback, useRef, type FunctionComponent } from \"react\";\r\nimport { type Scene } from \"core/scene\";\r\nimport { TextInputPropertyLine, NumberInputPropertyLine } from \"shared-ui-components/fluent/hoc/propertyLines/inputPropertyLine\";\r\nimport { Reflector } from \"core/Misc/reflector\";\r\nimport { PlugConnectedRegular } from \"@fluentui/react-icons\";\r\n\r\nexport const ReflectorTools: FunctionComponent<{ scene: Scene }> = ({ scene }) => {\r\n const [hostname, setHostname] = useState(\"localhost\");\r\n const [port, setPort] = useState(1234);\r\n const reflectorRef = useRef<Reflector | null>(null);\r\n\r\n const connectReflector = useCallback(() => {\r\n if (reflectorRef.current) {\r\n reflectorRef.current.close();\r\n }\r\n\r\n reflectorRef.current = new Reflector(scene, hostname, port);\r\n }, [scene, hostname, port]);\r\n\r\n return (\r\n <>\r\n <TextInputPropertyLine label=\"Hostname\" value={hostname} onChange={(value) => setHostname(value)} />\r\n <NumberInputPropertyLine label=\"Port\" value={port} onChange={(value) => setPort(value)} forceInt />\r\n <ButtonLine label=\"Connect\" icon={PlugConnectedRegular} onClick={connectReflector} />\r\n </>\r\n );\r\n};\r\n","import { type ServiceDefinition } from \"shared-ui-components/modularTool/modularity/serviceDefinition\";\r\nimport { ToolsServiceIdentity, type IToolsService } from \"../toolsService\";\r\nimport { type IDisposable } from \"core/scene\";\r\nimport { ReflectorTools } from \"../../../components/tools/reflectorTools\";\r\n\r\nexport const ReflectorServiceDefinition: ServiceDefinition<[], [IToolsService]> = {\r\n friendlyName: \"Reflector Tools\",\r\n consumes: [ToolsServiceIdentity],\r\n factory: (toolsService) => {\r\n const contentRegistrations: IDisposable[] = [];\r\n\r\n // Reflector content\r\n contentRegistrations.push(\r\n toolsService.addSectionContent({\r\n key: \"Reflector\",\r\n section: \"Reflector\",\r\n component: ({ context }) => <ReflectorTools scene={context} />,\r\n })\r\n );\r\n\r\n return {\r\n dispose: () => {\r\n contentRegistrations.forEach((registration) => registration.dispose());\r\n },\r\n };\r\n },\r\n};\r\n\r\nexport default {\r\n serviceDefinitions: [ReflectorServiceDefinition],\r\n} as const;\r\n"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,MAAM,cAAc,GAAwC,CAAC,EAAE,KAAK,EAAE,KAAI;IAC7E,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC;IACrD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC;AACtC,IAAA,MAAM,YAAY,GAAG,MAAM,CAAmB,IAAI,CAAC;AAEnD,IAAA,MAAM,gBAAgB,GAAG,WAAW,CAAC,MAAK;AACtC,QAAA,IAAI,YAAY,CAAC,OAAO,EAAE;AACtB,YAAA,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE;QAChC;AAEA,QAAA,YAAY,CAAC,OAAO,GAAG,IAAI,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC;IAC/D,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;AAE3B,IAAA,QACIA,IAAA,CAAAC,QAAA,EAAA,EAAA,QAAA,EAAA,CACIC,GAAA,CAAC,qBAAqB,IAAC,KAAK,EAAC,UAAU,EAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,KAAK,KAAK,WAAW,CAAC,KAAK,CAAC,EAAA,CAAI,EACpGA,GAAA,CAAC,uBAAuB,EAAA,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAK,KAAK,OAAO,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAA,IAAA,EAAA,CAAG,EACnGA,GAAA,CAAC,UAAU,EAAA,EAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,EAAE,gBAAgB,EAAA,CAAI,CAAA,EAAA,CACtF;AAEX,CAAC;;ACtBM,MAAM,0BAA0B,GAA2C;AAC9E,IAAA,YAAY,EAAE,iBAAiB;IAC/B,QAAQ,EAAE,CAAC,oBAAoB,CAAC;AAChC,IAAA,OAAO,EAAE,CAAC,YAAY,KAAI;QACtB,MAAM,oBAAoB,GAAkB,EAAE;;AAG9C,QAAA,oBAAoB,CAAC,IAAI,CACrB,YAAY,CAAC,iBAAiB,CAAC;AAC3B,YAAA,GAAG,EAAE,WAAW;AAChB,YAAA,OAAO,EAAE,WAAW;AACpB,YAAA,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,KAAKA,GAAA,CAAC,cAAc,EAAA,EAAC,KAAK,EAAE,OAAO,EAAA,CAAI;AACjE,SAAA,CAAC,CACL;QAED,OAAO;YACH,OAAO,EAAE,MAAK;AACV,gBAAA,oBAAoB,CAAC,OAAO,CAAC,CAAC,YAAY,KAAK,YAAY,CAAC,OAAO,EAAE,CAAC;YAC1E,CAAC;SACJ;IACL,CAAC;;AAGL,uBAAe;IACX,kBAAkB,EAAE,CAAC,0BAA0B,CAAC;CAC1C;;;;"}
|
|
@@ -6,7 +6,9 @@ import { type IWatcherService } from "./watcherService";
|
|
|
6
6
|
import { CameraGizmo } from "@babylonjs/core/Gizmos/cameraGizmo.js";
|
|
7
7
|
import { GizmoCoordinatesMode } from "@babylonjs/core/Gizmos/gizmo.js";
|
|
8
8
|
import { LightGizmo } from "@babylonjs/core/Gizmos/lightGizmo.js";
|
|
9
|
+
import { SpatialAudioGizmo } from "@babylonjs/core/Gizmos/spatialAudioGizmo.js";
|
|
9
10
|
import { UtilityLayerRenderer } from "@babylonjs/core/Rendering/utilityLayerRenderer.js";
|
|
11
|
+
import { type AbstractSoundSource } from "@babylonjs/core/AudioV2/abstractAudio/abstractSoundSource.js";
|
|
10
12
|
type Reference<T> = {
|
|
11
13
|
value: T;
|
|
12
14
|
} & IDisposable;
|
|
@@ -43,6 +45,13 @@ export interface IGizmoService extends IService<typeof GizmoServiceIdentity> {
|
|
|
43
45
|
* @returns A ref-counted reference to the light gizmo. Dispose to release.
|
|
44
46
|
*/
|
|
45
47
|
getLightGizmo(light: Light): Reference<LightGizmo>;
|
|
48
|
+
/**
|
|
49
|
+
* Gets a ref-counted spatial-audio gizmo for the specified v2 sound source.
|
|
50
|
+
* @param soundSource The sound source to get the gizmo for.
|
|
51
|
+
* @param scene The scene that will host the gizmo's utility layer.
|
|
52
|
+
* @returns A ref-counted reference to the gizmo. Dispose to release.
|
|
53
|
+
*/
|
|
54
|
+
getSpatialAudioGizmo(soundSource: AbstractSoundSource, scene: Scene): Reference<SpatialAudioGizmo>;
|
|
46
55
|
/**
|
|
47
56
|
* Gets all camera gizmos currently active for the specified scene.
|
|
48
57
|
* @param scene The scene to get camera gizmos for.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
2
|
+
import { type ISceneContext } from "./sceneContext";
|
|
3
|
+
import { type IPropertiesService } from "./panes/properties/propertiesService";
|
|
4
|
+
/**
|
|
5
|
+
* Inspector service that captures property edits made through Inspector and
|
|
6
|
+
* feeds them to the OverrideManager as persistent overrides.
|
|
7
|
+
*
|
|
8
|
+
* Works on any scene object — overrides have no concept of "which asset"
|
|
9
|
+
* owns an object. When multiple objects share a name, an entity's position
|
|
10
|
+
* among same-named siblings (`targetIndex`) is captured so the override
|
|
11
|
+
* re-applies to the same object after reload.
|
|
12
|
+
*
|
|
13
|
+
* The service re-attaches to the current scene whenever it changes, so
|
|
14
|
+
* overrides are captured against the active scene even after loads/swaps.
|
|
15
|
+
*/
|
|
16
|
+
export declare const OverrideCaptureServiceDefinition: ServiceDefinition<[], [ISceneContext, IPropertiesService]>;
|
|
@@ -3,6 +3,8 @@ import { type IShellService } from "@babylonjs/shared-ui-components/modularTool/
|
|
|
3
3
|
import { type ISceneContext } from "../sceneContext";
|
|
4
4
|
import { type ISelectionService } from "../selectionService";
|
|
5
5
|
/**
|
|
6
|
-
* Inspector pane service that hosts the
|
|
6
|
+
* Inspector pane service that hosts the Project Authoring pane. Combines
|
|
7
|
+
* smart-asset management (assets list, asset map I/O) with override-driven
|
|
8
|
+
* scene authoring (material assignment, override summary).
|
|
7
9
|
*/
|
|
8
|
-
export declare const
|
|
10
|
+
export declare const BabylonProjectAuthoringServiceDefinition: ServiceDefinition<[], [IShellService, ISceneContext, ISelectionService]>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type ServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
2
|
+
import { type ISelectionService } from "../../selectionService";
|
|
2
3
|
import { type IPropertiesService } from "./propertiesService";
|
|
3
|
-
export declare const AudioPropertiesServiceDefinition: ServiceDefinition<[], [IPropertiesService]>;
|
|
4
|
+
export declare const AudioPropertiesServiceDefinition: ServiceDefinition<[], [IPropertiesService, ISelectionService]>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
2
|
+
import { type IGizmoService } from "../../gizmoService";
|
|
3
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
4
|
+
import { type ISelectionService } from "../../selectionService";
|
|
5
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
6
|
+
export declare const AudioV2ExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IGizmoService, ISelectionService]>;
|