@babylonjs/inspector 8.56.2 → 9.1.0
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/components/curveEditor/bottomBar/rangeSelector.d.ts +6 -0
- package/lib/components/curveEditor/bottomBar.d.ts +6 -0
- package/lib/components/curveEditor/canvas/canvas.d.ts +6 -0
- package/lib/components/curveEditor/canvas/curve.d.ts +14 -0
- package/lib/components/curveEditor/canvas/curveData.d.ts +40 -0
- package/lib/components/curveEditor/canvas/frameBar.d.ts +12 -0
- package/lib/components/curveEditor/canvas/graph.d.ts +11 -0
- package/lib/components/curveEditor/canvas/keyPoint.d.ts +34 -0
- package/lib/components/curveEditor/canvas/playHead.d.ts +12 -0
- package/lib/components/curveEditor/canvas/rangeFrameBar.d.ts +10 -0
- package/lib/components/curveEditor/curveEditor.d.ts +29 -0
- package/lib/components/curveEditor/curveEditorButton.d.ts +31 -0
- package/lib/components/curveEditor/curveEditorColors.d.ts +56 -0
- package/lib/components/curveEditor/curveEditorContext.d.ts +267 -0
- package/lib/components/curveEditor/rangeSelector.d.ts +6 -0
- package/lib/components/curveEditor/sideBar/addAnimationPanel.d.ts +10 -0
- package/lib/components/curveEditor/sideBar/animationList.d.ts +6 -0
- package/lib/components/curveEditor/sideBar/editAnimationPanel.d.ts +12 -0
- package/lib/components/curveEditor/sideBar/loadAnimationPanel.d.ts +10 -0
- package/lib/components/curveEditor/sideBar/saveAnimationPanel.d.ts +10 -0
- package/lib/components/curveEditor/sideBar.d.ts +6 -0
- package/lib/components/curveEditor/topBar.d.ts +6 -0
- package/lib/components/debug/debugPane.d.ts +6 -0
- package/lib/components/errorBoundary.d.ts +31 -0
- package/lib/components/extensibleAccordion.d.ts +67 -0
- package/lib/components/gizmoToolbar.d.ts +7 -0
- package/lib/components/pane.d.ts +4 -0
- package/lib/components/performanceViewer/canvasGraph.d.ts +16 -0
- package/lib/components/performanceViewer/canvasGraphService.d.ts +238 -0
- package/lib/components/performanceViewer/graphSupportingTypes.d.ts +90 -0
- package/lib/components/performanceViewer/performanceSidebar.d.ts +10 -0
- package/lib/components/performanceViewer/performanceViewer.d.ts +15 -0
- package/lib/components/pickingToolbar.d.ts +11 -0
- package/lib/components/properties/animation/animationGroupProperties.d.ts +8 -0
- package/lib/components/properties/animation/animationsProperties.d.ts +21 -0
- package/lib/components/properties/animation/targetedAnimationProperties.d.ts +7 -0
- package/lib/components/properties/atmosphereProperties.d.ts +20 -0
- package/lib/components/properties/audio/soundProperties.d.ts +8 -0
- package/lib/components/properties/boundProperty.d.ts +80 -0
- package/lib/components/properties/cameras/arcRotateCameraProperties.d.ts +17 -0
- package/lib/components/properties/cameras/cameraProperties.d.ts +10 -0
- package/lib/components/properties/cameras/followCameraProperties.d.ts +8 -0
- package/lib/components/properties/cameras/freeCameraProperties.d.ts +11 -0
- package/lib/components/properties/cameras/geospatialCameraProperties.d.ts +11 -0
- package/lib/components/properties/cameras/targetCameraProperties.d.ts +8 -0
- package/lib/components/properties/commonGeneralProperties.d.ts +16 -0
- package/lib/components/properties/frameGraph/frameGraphProperties.d.ts +8 -0
- package/lib/components/properties/generateCopyString.d.ts +7 -0
- package/lib/components/properties/lights/areaLightProperties.d.ts +5 -0
- package/lib/components/properties/lights/clusteredLightContainerProperties.d.ts +10 -0
- package/lib/components/properties/lights/directionalLightProperties.d.ts +8 -0
- package/lib/components/properties/lights/hemisphericLightProperties.d.ts +5 -0
- package/lib/components/properties/lights/lightProperties.d.ts +7 -0
- package/lib/components/properties/lights/pointLightProperties.d.ts +5 -0
- package/lib/components/properties/lights/shadowGeneratorProperties.d.ts +6 -0
- package/lib/components/properties/lights/shadowLightProperties.d.ts +5 -0
- package/lib/components/properties/lights/spotLightProperties.d.ts +5 -0
- package/lib/components/properties/linkToEntityPropertyLine.d.ts +27 -0
- package/lib/components/properties/materials/materialProperties.d.ts +11 -0
- package/lib/components/properties/materials/multiMaterialProperties.d.ts +7 -0
- package/lib/components/properties/materials/nodeMaterialProperties.d.ts +8 -0
- package/lib/components/properties/materials/normalMapProperties.d.ts +19 -0
- package/lib/components/properties/materials/openpbrMaterialProperties.d.ts +61 -0
- package/lib/components/properties/materials/pbrBaseMaterialProperties.d.ts +285 -0
- package/lib/components/properties/materials/skyMaterialProperties.d.ts +5 -0
- package/lib/components/properties/materials/standardMaterialProperties.d.ts +29 -0
- package/lib/components/properties/metadataProperties.d.ts +12 -0
- package/lib/components/properties/nodes/abstractMeshProperties.d.ts +27 -0
- package/lib/components/properties/nodes/gaussianSplattingProperties.d.ts +5 -0
- package/lib/components/properties/nodes/meshProperties.d.ts +11 -0
- package/lib/components/properties/nodes/nodeProperties.d.ts +7 -0
- package/lib/components/properties/particles/attractor.d.ts +23 -0
- package/lib/components/properties/particles/attractorAdapter.d.ts +56 -0
- package/lib/components/properties/particles/attractorList.d.ts +15 -0
- package/lib/components/properties/particles/attractorProperties.d.ts +11 -0
- package/lib/components/properties/particles/colorProperties.d.ts +11 -0
- package/lib/components/properties/particles/commandsProperties.d.ts +13 -0
- package/lib/components/properties/particles/emissionProperties.d.ts +11 -0
- package/lib/components/properties/particles/emitterProperties.d.ts +13 -0
- package/lib/components/properties/particles/lifetimeProperties.d.ts +11 -0
- package/lib/components/properties/particles/nodeEditorProperties.d.ts +12 -0
- package/lib/components/properties/particles/rotationProperties.d.ts +11 -0
- package/lib/components/properties/particles/sizeProperties.d.ts +11 -0
- package/lib/components/properties/particles/spritesheetProperties.d.ts +11 -0
- package/lib/components/properties/particles/systemProperties.d.ts +13 -0
- package/lib/components/properties/physics/physicsProperties.d.ts +6 -0
- package/lib/components/properties/postProcesses/postProcessProperties.d.ts +10 -0
- package/lib/components/properties/propertiesPane.d.ts +2 -0
- package/lib/components/properties/renderingPipelines/defaultRenderingPipelineProperties.d.ts +23 -0
- package/lib/components/properties/renderingPipelines/iblShadowsRenderPipelineProperties.d.ts +11 -0
- package/lib/components/properties/renderingPipelines/lensRenderingPipelineProperties.d.ts +8 -0
- package/lib/components/properties/renderingPipelines/postProcessRenderPipelineProperties.d.ts +5 -0
- package/lib/components/properties/renderingPipelines/ssao2RenderingPipelineProperties.d.ts +8 -0
- package/lib/components/properties/renderingPipelines/ssaoRenderingPipelineProperties.d.ts +5 -0
- package/lib/components/properties/renderingPipelines/ssrRenderingPipelineProperties.d.ts +17 -0
- package/lib/components/properties/skeleton/boneProperties.d.ts +7 -0
- package/lib/components/properties/skeleton/skeletonProperties.d.ts +8 -0
- package/lib/components/properties/sprites/spriteManagerProperties.d.ts +25 -0
- package/lib/components/properties/sprites/spriteProperties.d.ts +19 -0
- package/lib/components/properties/textures/advancedDynamicTextureProperties.d.ts +11 -0
- package/lib/components/properties/textures/baseTextureProperties.d.ts +16 -0
- package/lib/components/properties/textures/cubeTextureProperties.d.ts +5 -0
- package/lib/components/properties/textures/multiRenderTargetProperties.d.ts +5 -0
- package/lib/components/properties/textures/renderTargetTextureProperties.d.ts +5 -0
- package/lib/components/properties/textures/textureFormatUtils.d.ts +48 -0
- package/lib/components/properties/textures/texturePreview.d.ts +17 -0
- package/lib/components/properties/textures/textureProperties.d.ts +11 -0
- package/lib/components/properties/textures/thinTextureProperties.d.ts +8 -0
- package/lib/components/properties/transformProperties.d.ts +11 -0
- package/lib/components/scene/sceneExplorer.d.ts +182 -0
- package/lib/components/scene/sceneExplorerDragDrop.d.ts +38 -0
- package/lib/components/scene/sceneProperties.d.ts +19 -0
- package/lib/components/stats/countStats.d.ts +5 -0
- package/lib/components/stats/frameStepStats.d.ts +8 -0
- package/lib/components/stats/performanceStats.d.ts +6 -0
- package/lib/components/stats/statsPane.d.ts +3 -0
- package/lib/components/stats/systemStats.d.ts +5 -0
- package/lib/components/teachingMoment.d.ts +20 -0
- package/lib/components/textureEditor/canvasManager.d.ts +113 -0
- package/lib/components/textureEditor/canvasShader.d.ts +10 -0
- package/lib/components/textureEditor/channels.d.ts +25 -0
- package/lib/components/textureEditor/properties.d.ts +23 -0
- package/lib/components/textureEditor/status.d.ts +13 -0
- package/lib/components/textureEditor/textureEditor.d.ts +113 -0
- package/lib/components/textureEditor/tools.d.ts +20 -0
- package/lib/components/theme.d.ts +10 -0
- package/lib/components/tools/capture/equirectangularCaptureTool.d.ts +5 -0
- package/lib/components/tools/capture/gifCaptureTool.d.ts +7 -0
- package/lib/components/tools/capture/sceneReplayTool.d.ts +5 -0
- package/lib/components/tools/capture/screenshotTool.d.ts +5 -0
- package/lib/components/tools/capture/videoCaptureTool.d.ts +5 -0
- package/lib/components/tools/exportTools.d.ts +11 -0
- package/lib/components/tools/import/gltfAnimationImportTool.d.ts +5 -0
- package/lib/components/tools/import/gltfLoaderOptionsTool.d.ts +8 -0
- package/lib/components/tools/import/gltfValidationTool.d.ts +5 -0
- package/lib/components/tools/reflectorTools.d.ts +5 -0
- package/lib/components/tools/toolsPane.d.ts +3 -0
- package/lib/components/uxContextProvider.d.ts +2 -0
- package/lib/contexts/extensionManagerContext.d.ts +6 -0
- package/lib/contexts/propertyContext.d.ts +30 -0
- package/lib/contexts/settingsContext.d.ts +3 -0
- package/lib/contexts/watcherContext.d.ts +3 -0
- package/lib/extensibility/builtInsExtensionFeed.d.ts +21 -0
- package/lib/extensibility/defaultInspectorExtensionFeed.d.ts +5 -0
- package/lib/extensibility/extensionFeed.d.ts +113 -0
- package/lib/extensibility/extensionManager.d.ts +111 -0
- package/lib/extensions/quickCreate/cameras.d.ts +14 -0
- package/lib/extensions/quickCreate/frameGraphs.d.ts +14 -0
- package/lib/extensions/quickCreate/lights.d.ts +14 -0
- package/lib/extensions/quickCreate/materials.d.ts +14 -0
- package/lib/extensions/quickCreate/meshes.d.ts +10 -0
- package/lib/extensions/quickCreate/particles.d.ts +15 -0
- package/lib/extensions/quickCreate/quickCreateLayout.d.ts +44 -0
- package/lib/extensions/quickCreate/quickCreateToolsService.d.ts +11 -0
- package/lib/extensions/quickCreate/renderingPipelines.d.ts +14 -0
- package/lib/extensions/quickCreate/settingsPopover.d.ts +14 -0
- package/lib/extensions/quickCreate/spriteManagers.d.ts +14 -0
- package/lib/{extensionsListService-zYdKn8uM.js → extensionsListService-BmiNjZiw.js} +7 -7
- package/lib/extensionsListService-BmiNjZiw.js.map +1 -0
- package/lib/hooks/compoundPropertyHooks.d.ts +24 -0
- package/lib/hooks/instrumentationHooks.d.ts +9 -0
- package/lib/hooks/observableHooks.d.ts +35 -0
- package/lib/hooks/pollingHooks.d.ts +7 -0
- package/lib/hooks/resourceHooks.d.ts +20 -0
- package/lib/hooks/settingsHooks.d.ts +13 -0
- package/lib/hooks/teachingMomentHooks.d.ts +34 -0
- package/lib/hooks/themeHooks.d.ts +17 -0
- package/lib/hooks/useObservableArray.d.ts +11 -0
- package/lib/hooks/useResizeHandle.d.ts +35 -0
- package/lib/{index-DuVF9zYN.js → index-BCbXjPTn.js} +791 -758
- package/lib/index-BCbXjPTn.js.map +1 -0
- package/lib/index.d.ts +108 -74767
- package/lib/index.js +5 -5
- package/lib/inspector.d.ts +41 -0
- package/lib/instrumentation/functionInstrumentation.d.ts +20 -0
- package/lib/instrumentation/propertyInstrumentation.d.ts +33 -0
- package/lib/legacy/debugLayer.d.ts +24 -0
- package/lib/legacy/inspectableCustomPropertiesService.d.ts +3 -0
- package/lib/legacy/inspector.d.ts +39 -0
- package/lib/legacy/legacy.d.ts +9 -0
- package/lib/legacy/propertiesSectionMapping.d.ts +99 -0
- package/lib/misc/arrayUtils.d.ts +4 -0
- package/lib/misc/assert.d.ts +5 -0
- package/lib/misc/graphUtils.d.ts +44 -0
- package/lib/misc/nodeGeometryEditor.d.ts +3 -0
- package/lib/misc/nodeMaterialEditor.d.ts +2 -0
- package/lib/misc/nodeParticleEditor.d.ts +2 -0
- package/lib/misc/nodeRenderGraphEditor.d.ts +2 -0
- package/lib/misc/observableCollection.d.ts +23 -0
- package/lib/misc/snippetUtils.d.ts +74 -0
- package/lib/misc/textureTools.d.ts +34 -0
- package/lib/modularTool.d.ts +37 -0
- package/lib/modularity/serviceContainer.d.ts +41 -0
- package/lib/modularity/serviceDefinition.d.ts +64 -0
- package/lib/{quickCreateToolsService-BtsSLeMY.js → quickCreateToolsService-BoqrJqoM.js} +6 -6
- package/lib/quickCreateToolsService-BoqrJqoM.js.map +1 -0
- package/lib/{reflectorService-Bzs-Ykos.js → reflectorService-CFTva2GG.js} +6 -6
- package/lib/reflectorService-CFTva2GG.js.map +1 -0
- package/lib/services/defaultToolbarMetadata.d.ts +5 -0
- package/lib/services/extensionsListService.d.ts +3 -0
- package/lib/services/gizmoService.d.ts +84 -0
- package/lib/services/gizmoToolbarService.d.ts +5 -0
- package/lib/services/globalSettings.d.ts +5 -0
- package/lib/services/highlightService.d.ts +8 -0
- package/lib/services/miniStatsService.d.ts +4 -0
- package/lib/services/panes/debugService.d.ts +25 -0
- package/lib/services/panes/properties/animationGroupPropertiesService.d.ts +4 -0
- package/lib/services/panes/properties/animationPropertiesService.d.ts +5 -0
- package/lib/services/panes/properties/atmospherePropertiesService.d.ts +5 -0
- package/lib/services/panes/properties/audioPropertiesService.d.ts +3 -0
- package/lib/services/panes/properties/cameraPropertiesService.d.ts +7 -0
- package/lib/services/panes/properties/commonPropertiesService.d.ts +3 -0
- package/lib/services/panes/properties/effectLayerPropertiesService.d.ts +3 -0
- package/lib/services/panes/properties/frameGraphPropertiesService.d.ts +3 -0
- package/lib/services/panes/properties/lightPropertiesServices.d.ts +4 -0
- package/lib/services/panes/properties/materialPropertiesService.d.ts +4 -0
- package/lib/services/panes/properties/metadataPropertiesService.d.ts +3 -0
- package/lib/services/panes/properties/nodePropertiesService.d.ts +4 -0
- package/lib/services/panes/properties/particleSystemPropertiesService.d.ts +4 -0
- package/lib/services/panes/properties/physicsPropertiesService.d.ts +3 -0
- package/lib/services/panes/properties/postProcessPropertiesService.d.ts +3 -0
- package/lib/services/panes/properties/propertiesService.d.ts +53 -0
- package/lib/services/panes/properties/renderingPipelinePropertiesService.d.ts +3 -0
- package/lib/services/panes/properties/scenePropertiesService.d.ts +4 -0
- package/lib/services/panes/properties/skeletonPropertiesService.d.ts +4 -0
- package/lib/services/panes/properties/spritePropertiesService.d.ts +4 -0
- package/lib/services/panes/properties/texturePropertiesService.d.ts +4 -0
- package/lib/services/panes/properties/transformPropertiesService.d.ts +3 -0
- package/lib/services/panes/scene/animationGroupExplorerService.d.ts +5 -0
- package/lib/services/panes/scene/atmosphereExplorerService.d.ts +5 -0
- package/lib/services/panes/scene/defaultSectionsMetadata.d.ts +33 -0
- package/lib/services/panes/scene/disposableCommandService.d.ts +4 -0
- package/lib/services/panes/scene/effectLayersExplorerService.d.ts +5 -0
- package/lib/services/panes/scene/frameGraphExplorerService.d.ts +5 -0
- package/lib/services/panes/scene/guiExplorerService.d.ts +5 -0
- package/lib/services/panes/scene/materialExplorerService.d.ts +5 -0
- package/lib/services/panes/scene/nodeExplorerService.d.ts +7 -0
- package/lib/services/panes/scene/particleSystemExplorerService.d.ts +5 -0
- package/lib/services/panes/scene/postProcessExplorerService.d.ts +5 -0
- package/lib/services/panes/scene/renderingPipelinesExplorerService.d.ts +5 -0
- package/lib/services/panes/scene/sceneExplorerService.d.ts +34 -0
- package/lib/services/panes/scene/skeletonExplorerService.d.ts +5 -0
- package/lib/services/panes/scene/soundExplorerService.d.ts +5 -0
- package/lib/services/panes/scene/spriteManagerExplorerService.d.ts +6 -0
- package/lib/services/panes/scene/texturesExplorerService.d.ts +5 -0
- package/lib/services/panes/settingsService.d.ts +25 -0
- package/lib/services/panes/statsService.d.ts +28 -0
- package/lib/services/panes/tools/captureService.d.ts +3 -0
- package/lib/services/panes/tools/exportService.d.ts +3 -0
- package/lib/services/panes/tools/import/gltfAnimationImportService.d.ts +3 -0
- package/lib/services/panes/tools/import/gltfLoaderOptionsDefaults.d.ts +46 -0
- package/lib/services/panes/tools/import/gltfLoaderOptionsService.d.ts +4 -0
- package/lib/services/panes/tools/import/gltfValidationService.d.ts +3 -0
- package/lib/services/panes/tools/reflectorService.d.ts +7 -0
- package/lib/services/panes/toolsService.d.ts +29 -0
- package/lib/services/pickingService.d.ts +7 -0
- package/lib/services/reactContextService.d.ts +18 -0
- package/lib/services/sceneContext.d.ts +19 -0
- package/lib/services/selectionService.d.ts +24 -0
- package/lib/services/settingsStore.d.ts +55 -0
- package/lib/services/shellService.d.ts +256 -0
- package/lib/services/shellSettingsService.d.ts +3 -0
- package/lib/services/textureEditor/textureEditorService.d.ts +21 -0
- package/lib/services/textureEditor/tools/contrast.d.ts +2 -0
- package/lib/services/textureEditor/tools/eyedropper.d.ts +5 -0
- package/lib/services/textureEditor/tools/floodfill.d.ts +5 -0
- package/lib/services/textureEditor/tools/paintbrush.d.ts +2 -0
- package/lib/services/textureEditor/tools/rectangularSelect.d.ts +5 -0
- package/lib/services/themeSelectorService.d.ts +3 -0
- package/lib/services/themeService.d.ts +60 -0
- package/lib/services/userFeedbackService.d.ts +3 -0
- package/lib/services/watcherService.d.ts +38 -0
- package/lib/themes/babylonTheme.d.ts +3 -0
- package/package.json +9 -9
- package/lib/extensionsListService-zYdKn8uM.js.map +0 -1
- package/lib/index-DuVF9zYN.js.map +0 -1
- package/lib/quickCreateToolsService-BtsSLeMY.js.map +0 -1
- package/lib/reflectorService-Bzs-Ykos.js.map +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISelectionService } from "../../selectionService";
|
|
3
|
+
import { type IPropertiesService } from "./propertiesService";
|
|
4
|
+
export declare const LightPropertiesServiceDefinition: ServiceDefinition<[], [IPropertiesService, ISelectionService]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISelectionService } from "../../selectionService";
|
|
3
|
+
import { type IPropertiesService } from "./propertiesService";
|
|
4
|
+
export declare const MaterialPropertiesServiceDefinition: ServiceDefinition<[], [IPropertiesService, ISelectionService]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISelectionService } from "../../selectionService";
|
|
3
|
+
import { type IPropertiesService } from "./propertiesService";
|
|
4
|
+
export declare const NodePropertiesServiceDefinition: ServiceDefinition<[], [IPropertiesService, ISelectionService]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type IPropertiesService } from "./propertiesService";
|
|
3
|
+
import { type ISelectionService } from "../../selectionService";
|
|
4
|
+
export declare const ParticleSystemPropertiesServiceDefinition: ServiceDefinition<[], [IPropertiesService, ISelectionService]>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type IDisposable, type IReadonlyObservable } from "@babylonjs/core/index.js";
|
|
2
|
+
import { type DynamicAccordionSection, type DynamicAccordionSectionContent } from "../../../components/extensibleAccordion";
|
|
3
|
+
import { type PropertyChangeInfo } from "../../../contexts/propertyContext";
|
|
4
|
+
import { type IService, type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
5
|
+
import { type ISelectionService } from "../../selectionService";
|
|
6
|
+
import { type IShellService } from "../../shellService";
|
|
7
|
+
/**
|
|
8
|
+
* The unique identity symbol for the properties service.
|
|
9
|
+
*/
|
|
10
|
+
export declare const PropertiesServiceIdentity: unique symbol;
|
|
11
|
+
type PropertiesSectionContent<EntityT> = {
|
|
12
|
+
/**
|
|
13
|
+
* A unique key for the the content.
|
|
14
|
+
*/
|
|
15
|
+
key: string;
|
|
16
|
+
/**
|
|
17
|
+
* A predicate function to determine if the content applies to the given entity.
|
|
18
|
+
*/
|
|
19
|
+
predicate: (entity: unknown) => entity is EntityT;
|
|
20
|
+
} & {
|
|
21
|
+
content: readonly Omit<DynamicAccordionSectionContent<EntityT>, "key">[];
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Allows new sections or content to be added to the properties pane.
|
|
25
|
+
*/
|
|
26
|
+
export interface IPropertiesService extends IService<typeof PropertiesServiceIdentity> {
|
|
27
|
+
/**
|
|
28
|
+
* Adds a new section (e.g. "General", "Transforms", etc.).
|
|
29
|
+
* @param section A description of the section to add.
|
|
30
|
+
*/
|
|
31
|
+
addSection(section: DynamicAccordionSection): IDisposable;
|
|
32
|
+
/**
|
|
33
|
+
* Adds content to one or more sections.
|
|
34
|
+
* @param content A description of the content to add.
|
|
35
|
+
*/
|
|
36
|
+
addSectionContent<EntityT>(content: PropertiesSectionContent<EntityT>): IDisposable;
|
|
37
|
+
/**
|
|
38
|
+
* Highlights the specified sections temporarily to draw the user's attention to them.
|
|
39
|
+
* @remarks All other sections are collapsed (but can be expanded by the user) until a different entity is selected.
|
|
40
|
+
* @param sectionIds The identities of the sections to highlight.
|
|
41
|
+
*/
|
|
42
|
+
highlightSections(sectionIds: readonly string[]): void;
|
|
43
|
+
/**
|
|
44
|
+
* An observable that notifies when a property has been changed by the user.
|
|
45
|
+
* @remarks This observable only fires for changes made through the properties pane.
|
|
46
|
+
*/
|
|
47
|
+
readonly onPropertyChanged: IReadonlyObservable<PropertyChangeInfo>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Provides a properties pane that enables displaying and editing properties of an entity such as a mesh or a texture.
|
|
51
|
+
*/
|
|
52
|
+
export declare const PropertiesServiceDefinition: ServiceDefinition<[IPropertiesService], [IShellService, ISelectionService]>;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type IPropertiesService } from "./propertiesService";
|
|
3
|
+
import { type ISelectionService } from "../../selectionService";
|
|
4
|
+
export declare const ScenePropertiesServiceDefinition: ServiceDefinition<[], [IPropertiesService, ISelectionService]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISelectionService } from "../../selectionService";
|
|
3
|
+
import { type IPropertiesService } from "./propertiesService";
|
|
4
|
+
export declare const SkeletonPropertiesServiceDefinition: ServiceDefinition<[], [IPropertiesService, ISelectionService]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISelectionService } from "../../selectionService";
|
|
3
|
+
import { type IPropertiesService } from "./propertiesService";
|
|
4
|
+
export declare const SpritePropertiesServiceDefinition: ServiceDefinition<[], [IPropertiesService, ISelectionService]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ITextureEditorService } from "../../textureEditor/textureEditorService";
|
|
3
|
+
import { type IPropertiesService } from "./propertiesService";
|
|
4
|
+
export declare const TexturePropertiesServiceDefinition: ServiceDefinition<[], [IPropertiesService, ITextureEditorService]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
3
|
+
import { type IWatcherService } from "../../watcherService";
|
|
4
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
5
|
+
export declare const AnimationGroupExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IWatcherService]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
3
|
+
import { type IWatcherService } from "../../watcherService";
|
|
4
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
5
|
+
export declare const AtmosphereExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IWatcherService]>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const enum DefaultSectionsOrder {
|
|
2
|
+
Nodes = 100,
|
|
3
|
+
Skeletons = 200,
|
|
4
|
+
Materials = 300,
|
|
5
|
+
Textures = 400,
|
|
6
|
+
PostProcesses = 500,
|
|
7
|
+
RenderingPipelines = 600,
|
|
8
|
+
EffectLayers = 700,
|
|
9
|
+
ParticleSystems = 800,
|
|
10
|
+
SpriteManagers = 900,
|
|
11
|
+
AnimationGroups = 1000,
|
|
12
|
+
GUIs = 1100,
|
|
13
|
+
FrameGraphs = 1200,
|
|
14
|
+
Atmosphere = 1300,
|
|
15
|
+
Sounds = 1400
|
|
16
|
+
}
|
|
17
|
+
export declare const enum DefaultCommandsOrder {
|
|
18
|
+
SpritePlay = 600,
|
|
19
|
+
LightActive = 700,
|
|
20
|
+
CameraActive = 700,
|
|
21
|
+
GizmoActive = 800,
|
|
22
|
+
AnimationGroupPlay = 900,
|
|
23
|
+
FrameGraphPlay = 900,
|
|
24
|
+
MeshBoundingBox = 1000,
|
|
25
|
+
GuiHighlight = 1000,
|
|
26
|
+
MeshVisibility = 1100,
|
|
27
|
+
GuiVisibility = 1100,
|
|
28
|
+
EditNodeMaterial = 1100,
|
|
29
|
+
EditParticleSystem = 1100,
|
|
30
|
+
EditNodeGeometry = 1100,
|
|
31
|
+
EditNodeRenderGraph = 1100,
|
|
32
|
+
Dispose = 10000
|
|
33
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
3
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
4
|
+
export declare const DisposableCommandServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
3
|
+
import { type IWatcherService } from "../../watcherService";
|
|
4
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
5
|
+
export declare const EffectLayerExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IWatcherService]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
3
|
+
import { type IWatcherService } from "../../watcherService";
|
|
4
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
5
|
+
export declare const FrameGraphExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IWatcherService]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
3
|
+
import { type IWatcherService } from "../../watcherService";
|
|
4
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
5
|
+
export declare const GuiExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IWatcherService]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
3
|
+
import { type IWatcherService } from "../../watcherService";
|
|
4
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
5
|
+
export declare const MaterialExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IWatcherService]>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type IGizmoService } from "../../gizmoService";
|
|
3
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
4
|
+
import { type IWatcherService } from "../../watcherService";
|
|
5
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
6
|
+
import "@babylonjs/core/Rendering/boundingBoxRenderer.js";
|
|
7
|
+
export declare const NodeExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IGizmoService, IWatcherService]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
3
|
+
import { type IWatcherService } from "../../watcherService";
|
|
4
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
5
|
+
export declare const ParticleSystemExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IWatcherService]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
3
|
+
import { type IWatcherService } from "../../watcherService";
|
|
4
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
5
|
+
export declare const PostProcessExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IWatcherService]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
3
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
4
|
+
import "@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderPipelineManagerSceneComponent.js";
|
|
5
|
+
export declare const RenderingPipelineExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext]>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type IDisposable } from "@babylonjs/core/index.js";
|
|
2
|
+
import { type SceneExplorerCommandProvider, type SceneExplorerSection } from "../../../components/scene/sceneExplorer";
|
|
3
|
+
import { type IService, type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
4
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
5
|
+
import { type ISelectionService } from "../../selectionService";
|
|
6
|
+
import { type IShellService } from "../../shellService";
|
|
7
|
+
/**
|
|
8
|
+
* The unique identity symbol for the scene explorer service.
|
|
9
|
+
*/
|
|
10
|
+
export declare const SceneExplorerServiceIdentity: unique symbol;
|
|
11
|
+
/**
|
|
12
|
+
* Allows new sections or commands to be added to the scene explorer pane.
|
|
13
|
+
*/
|
|
14
|
+
export interface ISceneExplorerService extends IService<typeof SceneExplorerServiceIdentity> {
|
|
15
|
+
/**
|
|
16
|
+
* Adds a new section (e.g. "Nodes", "Materials", etc.) (this includes all descendants within the scene graph).
|
|
17
|
+
* @param section A description of the section to add.
|
|
18
|
+
*/
|
|
19
|
+
addSection<T extends object>(section: SceneExplorerSection<T>): IDisposable;
|
|
20
|
+
/**
|
|
21
|
+
* Adds a new command (e.g. "Delete", "Rename", etc.) that can be executed on entities in the scene explorer.
|
|
22
|
+
* @param command A description of the command to add.
|
|
23
|
+
*/
|
|
24
|
+
addEntityCommand<T extends object>(command: SceneExplorerCommandProvider<T>): IDisposable;
|
|
25
|
+
/**
|
|
26
|
+
* Adds a new command that can be executed on sections in the scene explorer.
|
|
27
|
+
* @param command A description of the command to add.
|
|
28
|
+
*/
|
|
29
|
+
addSectionCommand<T extends string>(command: SceneExplorerCommandProvider<T, "contextMenu">): IDisposable;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Provides a scene explorer pane that enables browsing the scene graph and executing commands on entities.
|
|
33
|
+
*/
|
|
34
|
+
export declare const SceneExplorerServiceDefinition: ServiceDefinition<[ISceneExplorerService], [ISceneContext, IShellService, ISelectionService]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
3
|
+
import { type IWatcherService } from "../../watcherService";
|
|
4
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
5
|
+
export declare const SkeletonExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IWatcherService]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
3
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
4
|
+
import { type IWatcherService } from "../../watcherService";
|
|
5
|
+
export declare const SoundExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IWatcherService]>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
3
|
+
import { type IWatcherService } from "../../watcherService";
|
|
4
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
5
|
+
import "@babylonjs/core/Sprites/spriteSceneComponent.js";
|
|
6
|
+
export declare const SpriteManagerExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IWatcherService]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type ISceneContext } from "../../sceneContext";
|
|
3
|
+
import { type IWatcherService } from "../../watcherService";
|
|
4
|
+
import { type ISceneExplorerService } from "./sceneExplorerService";
|
|
5
|
+
export declare const TextureExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IWatcherService]>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type IDisposable, type Scene } from "@babylonjs/core/index.js";
|
|
2
|
+
import { type DynamicAccordionSection, type DynamicAccordionSectionContent } from "../../components/extensibleAccordion";
|
|
3
|
+
import { type IService, type ServiceDefinition } from "../../modularity/serviceDefinition";
|
|
4
|
+
import { type ISceneContext } from "../sceneContext";
|
|
5
|
+
import { type IShellService } from "../shellService";
|
|
6
|
+
/**
|
|
7
|
+
* The unique identity symbol for the settings service.
|
|
8
|
+
*/
|
|
9
|
+
export declare const SettingsServiceIdentity: unique symbol;
|
|
10
|
+
/**
|
|
11
|
+
* Allows new sections or content to be added to the Settings pane.
|
|
12
|
+
*/
|
|
13
|
+
export interface ISettingsService extends IService<typeof SettingsServiceIdentity> {
|
|
14
|
+
/**
|
|
15
|
+
* Adds a new section to the settings pane.
|
|
16
|
+
* @param section A description of the section to add.
|
|
17
|
+
*/
|
|
18
|
+
addSection(section: DynamicAccordionSection): IDisposable;
|
|
19
|
+
/**
|
|
20
|
+
* Adds content to one or more sections in the settings pane.
|
|
21
|
+
* @param content A description of the content to add.
|
|
22
|
+
*/
|
|
23
|
+
addSectionContent(content: DynamicAccordionSectionContent<Scene>): IDisposable;
|
|
24
|
+
}
|
|
25
|
+
export declare const SettingsServiceDefinition: ServiceDefinition<[ISettingsService], [IShellService, ISceneContext]>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type IDisposable, type Scene } from "@babylonjs/core/index.js";
|
|
2
|
+
import { type DynamicAccordionSection, type DynamicAccordionSectionContent } from "../../components/extensibleAccordion";
|
|
3
|
+
import { type IService, type ServiceDefinition } from "../../modularity/serviceDefinition";
|
|
4
|
+
import { type ISceneContext } from "../sceneContext";
|
|
5
|
+
import { type IShellService } from "../shellService";
|
|
6
|
+
/**
|
|
7
|
+
* The unique identity symbol for the stats service.
|
|
8
|
+
*/
|
|
9
|
+
export declare const StatsServiceIdentity: unique symbol;
|
|
10
|
+
/**
|
|
11
|
+
* Allows new sections or content to be added to the stats pane.
|
|
12
|
+
*/
|
|
13
|
+
export interface IStatsService extends IService<typeof StatsServiceIdentity> {
|
|
14
|
+
/**
|
|
15
|
+
* Adds a new section (e.g. "Count", "Frame Steps Duration", etc.).
|
|
16
|
+
* @param section A description of the section to add.
|
|
17
|
+
*/
|
|
18
|
+
addSection(section: DynamicAccordionSection): IDisposable;
|
|
19
|
+
/**
|
|
20
|
+
* Adds content to one or more sections.
|
|
21
|
+
* @param content A description of the content to add.
|
|
22
|
+
*/
|
|
23
|
+
addSectionContent(content: DynamicAccordionSectionContent<Scene>): IDisposable;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Provides a scene stats pane.
|
|
27
|
+
*/
|
|
28
|
+
export declare const StatsServiceDefinition: ServiceDefinition<[IStatsService], [IShellService, ISceneContext]>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper type to make all properties of T nullable.
|
|
3
|
+
*/
|
|
4
|
+
export type NullableProperties<T> = {
|
|
5
|
+
[K in keyof T]: T[K] | null;
|
|
6
|
+
};
|
|
7
|
+
export declare const LoaderOptionDefaults: {
|
|
8
|
+
capturePerformanceCounters: false;
|
|
9
|
+
loggingEnabled: false;
|
|
10
|
+
} & {
|
|
11
|
+
alwaysComputeBoundingBox: boolean;
|
|
12
|
+
alwaysComputeSkeletonRootNode: boolean;
|
|
13
|
+
animationStartMode: import("@babylonjs/loaders/glTF/glTFFileLoader.js").GLTFLoaderAnimationStartMode;
|
|
14
|
+
compileMaterials: boolean;
|
|
15
|
+
compileShadowGenerators: boolean;
|
|
16
|
+
coordinateSystemMode: import("@babylonjs/loaders/glTF/glTFFileLoader.js").GLTFLoaderCoordinateSystemMode;
|
|
17
|
+
createInstances: boolean;
|
|
18
|
+
loadAllMaterials: boolean;
|
|
19
|
+
loadMorphTargets: boolean;
|
|
20
|
+
loadNodeAnimations: boolean;
|
|
21
|
+
loadOnlyMaterials: boolean;
|
|
22
|
+
loadSkins: boolean;
|
|
23
|
+
skipMaterials: boolean;
|
|
24
|
+
targetFps: number;
|
|
25
|
+
transparencyAsCoverage: boolean;
|
|
26
|
+
useClipPlane: boolean;
|
|
27
|
+
useGltfTextureNames: boolean;
|
|
28
|
+
useRangeRequests: boolean;
|
|
29
|
+
useSRGBBuffers: boolean;
|
|
30
|
+
validate: boolean;
|
|
31
|
+
useOpenPBR: boolean;
|
|
32
|
+
dontUseTransmissionHelper: boolean;
|
|
33
|
+
};
|
|
34
|
+
export type GLTFLoaderOptionsType = NullableProperties<typeof LoaderOptionDefaults>;
|
|
35
|
+
export declare const ExtensionOptionDefaults: {
|
|
36
|
+
MSFT_lod: {
|
|
37
|
+
maxLODsToLoad: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export type GLTFExtensionOptionsType = Record<string, {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
enabled: boolean | null;
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
}>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../../modularity/serviceDefinition";
|
|
2
|
+
import { type IToolsService } from "../../toolsService";
|
|
3
|
+
export declare const GLTFLoaderServiceIdentity: unique symbol;
|
|
4
|
+
export declare const GLTFLoaderOptionsServiceDefinition: ServiceDefinition<[], [IToolsService]>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
|
|
2
|
+
import { type IToolsService } from "../toolsService";
|
|
3
|
+
export declare const ReflectorServiceDefinition: ServiceDefinition<[], [IToolsService]>;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
readonly serviceDefinitions: readonly [ServiceDefinition<[], [IToolsService]>];
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type IDisposable, type Scene } from "@babylonjs/core/scene.js";
|
|
2
|
+
import { type IService, type ServiceDefinition } from "../../modularity/serviceDefinition";
|
|
3
|
+
import { type IShellService } from "../shellService";
|
|
4
|
+
import { type DynamicAccordionSection, type DynamicAccordionSectionContent } from "../../components/extensibleAccordion";
|
|
5
|
+
import { type ISceneContext } from "../sceneContext";
|
|
6
|
+
/**
|
|
7
|
+
* The unique identity symbol for the tools service.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ToolsServiceIdentity: unique symbol;
|
|
10
|
+
/**
|
|
11
|
+
* A service that provides tools for the user to generate artifacts or perform actions on entities.
|
|
12
|
+
*/
|
|
13
|
+
export interface IToolsService extends IService<typeof ToolsServiceIdentity> {
|
|
14
|
+
/**
|
|
15
|
+
* Adds a new section (e.g. "Export", "Capture", etc.).
|
|
16
|
+
* @param section A description of the section to add.
|
|
17
|
+
*/
|
|
18
|
+
addSection(section: DynamicAccordionSection): IDisposable;
|
|
19
|
+
/**
|
|
20
|
+
* Adds content to one or more sections.
|
|
21
|
+
* @param content A description of the content to add.
|
|
22
|
+
*/
|
|
23
|
+
addSectionContent(content: DynamicAccordionSectionContent<Scene>): IDisposable;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A collection of usually optional, dynamic extensions.
|
|
27
|
+
* Common examples includes importing/exporting, or other general creation tools.
|
|
28
|
+
*/
|
|
29
|
+
export declare const ToolsServiceDefinition: ServiceDefinition<[IToolsService], [IShellService, ISceneContext]>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "../modularity/serviceDefinition";
|
|
2
|
+
import { type IGizmoService } from "./gizmoService";
|
|
3
|
+
import { type ISettingsService } from "./panes/settingsService";
|
|
4
|
+
import { type ISceneContext } from "./sceneContext";
|
|
5
|
+
import { type ISelectionService } from "./selectionService";
|
|
6
|
+
import { type IShellService } from "./shellService";
|
|
7
|
+
export declare const PickingServiceDefinition: ServiceDefinition<[], [ISceneContext, IShellService, ISelectionService, IGizmoService, ISettingsService]>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type Context } from "react";
|
|
2
|
+
import { type IDisposable } from "@babylonjs/core/index.js";
|
|
3
|
+
import { type IService } from "../modularity/serviceDefinition";
|
|
4
|
+
/**
|
|
5
|
+
* The unique identity symbol for the react context service.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ReactContextServiceIdentity: unique symbol;
|
|
8
|
+
export type ReactContextHandle<T> = IDisposable & {
|
|
9
|
+
updateValue: (newValue: T) => void;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* ReactContextService allows global React contexts to be added/removed/updated.
|
|
13
|
+
*/
|
|
14
|
+
export interface IReactContextService extends IService<typeof ReactContextServiceIdentity> {
|
|
15
|
+
addContext<T>(provider: Context<T>["Provider"], initialValue: T, options?: {
|
|
16
|
+
order?: number;
|
|
17
|
+
}): ReactContextHandle<T>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type IReadonlyObservable, type Nullable, type Scene } from "@babylonjs/core/index.js";
|
|
2
|
+
import { type IService } from "../modularity/serviceDefinition";
|
|
3
|
+
/**
|
|
4
|
+
* The unique identity symbol for the scene context service.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SceneContextIdentity: unique symbol;
|
|
7
|
+
/**
|
|
8
|
+
* SceneContext provides the current scene, but could have different implementations depending on the context (e.g. inspector, sandbox, etc.)
|
|
9
|
+
*/
|
|
10
|
+
export interface ISceneContext extends IService<typeof SceneContextIdentity> {
|
|
11
|
+
/**
|
|
12
|
+
* Gets the current scene.
|
|
13
|
+
*/
|
|
14
|
+
readonly currentScene: Nullable<Scene>;
|
|
15
|
+
/**
|
|
16
|
+
* Observable that fires whenever the current scene changes.
|
|
17
|
+
*/
|
|
18
|
+
readonly currentSceneObservable: IReadonlyObservable<Nullable<Scene>>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type IReadonlyObservable, type Nullable } from "@babylonjs/core/index.js";
|
|
2
|
+
import { type IService, type ServiceDefinition } from "../modularity/serviceDefinition";
|
|
3
|
+
import { type ISettingsService } from "./panes/settingsService";
|
|
4
|
+
import { type ISceneContext } from "./sceneContext";
|
|
5
|
+
import { type ISettingsStore } from "./settingsStore";
|
|
6
|
+
import { type IShellService } from "./shellService";
|
|
7
|
+
/**
|
|
8
|
+
* The unique identity symbol for the selection service.
|
|
9
|
+
*/
|
|
10
|
+
export declare const SelectionServiceIdentity: unique symbol;
|
|
11
|
+
/**
|
|
12
|
+
* Tracks the currently selected entity.
|
|
13
|
+
*/
|
|
14
|
+
export interface ISelectionService extends IService<typeof SelectionServiceIdentity> {
|
|
15
|
+
/**
|
|
16
|
+
* Gets or sets the currently selected entity.
|
|
17
|
+
*/
|
|
18
|
+
selectedEntity: Nullable<object>;
|
|
19
|
+
/**
|
|
20
|
+
* An observable that notifies when the selected entity changes.
|
|
21
|
+
*/
|
|
22
|
+
readonly onSelectedEntityChanged: IReadonlyObservable<void>;
|
|
23
|
+
}
|
|
24
|
+
export declare const SelectionServiceDefinition: ServiceDefinition<[ISelectionService], [IShellService, ISettingsStore, ISettingsService, ISceneContext]>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type IReadonlyObservable } from "@babylonjs/core/index.js";
|
|
2
|
+
import { type IService } from "../modularity/serviceDefinition";
|
|
3
|
+
/**
|
|
4
|
+
* The unique identity symbol for the settings store service.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SettingsStoreIdentity: unique symbol;
|
|
7
|
+
/**
|
|
8
|
+
* Describes a setting by its key and default value.
|
|
9
|
+
*/
|
|
10
|
+
export type SettingDescriptor<T> = {
|
|
11
|
+
/**
|
|
12
|
+
* The unique key used to identify this setting in the store.
|
|
13
|
+
*/
|
|
14
|
+
readonly key: string;
|
|
15
|
+
/**
|
|
16
|
+
* The default value to use when the setting has not been explicitly set.
|
|
17
|
+
*/
|
|
18
|
+
readonly defaultValue: T;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Provides a key-value store for persisting user settings.
|
|
22
|
+
*/
|
|
23
|
+
export interface ISettingsStore extends IService<typeof SettingsStoreIdentity> {
|
|
24
|
+
/**
|
|
25
|
+
* An observable that notifies when a setting has changed, providing the key of the changed setting.
|
|
26
|
+
*/
|
|
27
|
+
onChanged: IReadonlyObservable<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Reads a setting from the store.
|
|
30
|
+
* @param descriptor The descriptor of the setting to read.
|
|
31
|
+
* @returns The current value of the setting, or the default value if it has not been set.
|
|
32
|
+
*/
|
|
33
|
+
readSetting<T>(descriptor: SettingDescriptor<T>): T;
|
|
34
|
+
/**
|
|
35
|
+
* Writes a setting to the store.
|
|
36
|
+
* @param descriptor The descriptor of the setting to write.
|
|
37
|
+
* @param value The value to write.
|
|
38
|
+
*/
|
|
39
|
+
writeSetting<T>(descriptor: SettingDescriptor<T>, value: T): void;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Default implementation of {@link ISettingsStore} that persists settings using browser local storage.
|
|
43
|
+
*/
|
|
44
|
+
export declare class SettingsStore implements ISettingsStore {
|
|
45
|
+
private readonly _namespace;
|
|
46
|
+
private readonly _onChanged;
|
|
47
|
+
/**
|
|
48
|
+
* Creates a new settings store.
|
|
49
|
+
* @param _namespace A namespace used to scope the settings keys to avoid collisions with other stores.
|
|
50
|
+
*/
|
|
51
|
+
constructor(_namespace: string);
|
|
52
|
+
get onChanged(): IReadonlyObservable<Readonly<string>>;
|
|
53
|
+
readSetting<T>(descriptor: SettingDescriptor<T>): T;
|
|
54
|
+
writeSetting<T>(descriptor: SettingDescriptor<T>, value: T): void;
|
|
55
|
+
}
|