@babylonjs/inspector 9.0.0 → 9.2.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/bin/inspector-bridge.mjs +4734 -0
- package/bin/inspector-cli.mjs +4931 -0
- package/lib/cli/protocol.d.ts +180 -0
- 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 +64 -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-eRZtqcfj.js} +8 -8
- package/lib/extensionsListService-eRZtqcfj.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-FWuITINA.js} +1932 -1031
- package/lib/index-FWuITINA.js.map +1 -0
- package/lib/index.d.ts +111 -74767
- package/lib/index.js +6 -6
- package/lib/inspectable.d.ts +67 -0
- 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/defaultPerfStrategies.d.ts +16 -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 +42 -0
- package/lib/modularity/serviceContainer.d.ts +64 -0
- package/lib/modularity/serviceDefinition.d.ts +64 -0
- package/lib/{quickCreateToolsService-BtsSLeMY.js → quickCreateToolsService-MzZbVrvr.js} +7 -7
- package/lib/quickCreateToolsService-MzZbVrvr.js.map +1 -0
- package/lib/{reflectorService-Bzs-Ykos.js → reflectorService-DdPEZLjO.js} +7 -7
- package/lib/reflectorService-DdPEZLjO.js.map +1 -0
- package/lib/services/cli/cliConnectionStatus.d.ts +19 -0
- package/lib/services/cli/entityQueryService.d.ts +8 -0
- package/lib/services/cli/inspectableBridgeService.d.ts +22 -0
- package/lib/services/cli/inspectableCommandRegistry.d.ts +58 -0
- package/lib/services/cli/perfTraceCommandService.d.ts +9 -0
- package/lib/services/cli/screenshotCommandService.d.ts +8 -0
- package/lib/services/cli/shaderCommandService.d.ts +7 -0
- package/lib/services/cli/statsCommandService.d.ts +9 -0
- package/lib/services/cliConnectionStatusService.d.ts +4 -0
- package/lib/services/defaultToolbarMetadata.d.ts +6 -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 +12 -5
- package/readme.md +27 -0
- 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,7 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
import { type Light } from "@babylonjs/core/index.js";
|
|
3
|
+
import { type ISelectionService } from "../../../services/selectionService";
|
|
4
|
+
export declare const LightGeneralProperties: FunctionComponent<{
|
|
5
|
+
light: Light;
|
|
6
|
+
selectionService: ISelectionService;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
import { type ShadowLight } from "@babylonjs/core/index.js";
|
|
3
|
+
import "@babylonjs/core/Lights/Shadows/shadowGeneratorSceneComponent.js";
|
|
4
|
+
export declare const ShadowGeneratorSetupProperties: FunctionComponent<{
|
|
5
|
+
context: ShadowLight;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
import { type Nullable } from "@babylonjs/core/types.js";
|
|
3
|
+
import { type PropertyLineProps } from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/propertyLine.js";
|
|
4
|
+
import { type ISelectionService } from "../../services/selectionService";
|
|
5
|
+
/** Props for the LinkToEntity component */
|
|
6
|
+
export type LinkToEntityProps = {
|
|
7
|
+
/** The entity to link to, or null if no entity is available */
|
|
8
|
+
entity: Nullable<{
|
|
9
|
+
name: string;
|
|
10
|
+
reservedDataStore?: Record<PropertyKey, unknown>;
|
|
11
|
+
}>;
|
|
12
|
+
/** The selection service used to navigate to the entity */
|
|
13
|
+
selectionService: ISelectionService;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A clickable link that navigates to a specific entity in the inspector.
|
|
17
|
+
* Renders nothing when the entity is null or hidden.
|
|
18
|
+
* @param props - The entity and selection service
|
|
19
|
+
* @returns A link component, or null
|
|
20
|
+
*/
|
|
21
|
+
export declare const LinkToEntity: FunctionComponent<LinkToEntityProps>;
|
|
22
|
+
/**
|
|
23
|
+
* A property line that links to a specific entity in the scene.
|
|
24
|
+
* @param props an entity and a selection service
|
|
25
|
+
* @returns A link property line component.
|
|
26
|
+
*/
|
|
27
|
+
export declare const LinkToEntityPropertyLine: FunctionComponent<PropertyLineProps<string> & LinkToEntityProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
import { Material } from "@babylonjs/core/Materials/material.js";
|
|
3
|
+
export declare const MaterialGeneralProperties: FunctionComponent<{
|
|
4
|
+
material: Material;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const MaterialTransparencyProperties: FunctionComponent<{
|
|
7
|
+
material: Material;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const MaterialStencilProperties: FunctionComponent<{
|
|
10
|
+
material: Material;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
import { type MultiMaterial } from "@babylonjs/core/Materials/multiMaterial.js";
|
|
3
|
+
import { type ISelectionService } from "../../../services/selectionService";
|
|
4
|
+
export declare const MultiMaterialChildrenProperties: FunctionComponent<{
|
|
5
|
+
multiMaterial: MultiMaterial;
|
|
6
|
+
selectionService: ISelectionService;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
import { type NodeMaterial } from "@babylonjs/core/index.js";
|
|
3
|
+
export declare const NodeMaterialGeneralProperties: FunctionComponent<{
|
|
4
|
+
material: NodeMaterial;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const NodeMaterialInputProperties: FunctionComponent<{
|
|
7
|
+
material: NodeMaterial;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
type MaterialWithPublicNormalMaps = {
|
|
3
|
+
invertNormalMapX: boolean;
|
|
4
|
+
invertNormalMapY: boolean;
|
|
5
|
+
};
|
|
6
|
+
type MaterialWithInternalNormalMaps = {
|
|
7
|
+
_invertNormalMapX: boolean;
|
|
8
|
+
_invertNormalMapY: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type MaterialWithNormalMaps = MaterialWithPublicNormalMaps | MaterialWithInternalNormalMaps;
|
|
11
|
+
/**
|
|
12
|
+
* Displays the normal map properties of a standard material.
|
|
13
|
+
* @param props - The required properties
|
|
14
|
+
* @returns A JSX element representing the normal map properties.
|
|
15
|
+
*/
|
|
16
|
+
export declare const NormalMapProperties: FunctionComponent<{
|
|
17
|
+
material: MaterialWithNormalMaps;
|
|
18
|
+
}>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
import { type OpenPBRMaterial } from "@babylonjs/core/Materials/PBR/openpbrMaterial.js";
|
|
3
|
+
/**
|
|
4
|
+
* Displays the base layer properties of an OpenPBR material.
|
|
5
|
+
* @param props - The required properties
|
|
6
|
+
* @returns A JSX element representing the base layer properties.
|
|
7
|
+
*/
|
|
8
|
+
export declare const OpenPBRMaterialBaseProperties: FunctionComponent<{
|
|
9
|
+
material: OpenPBRMaterial;
|
|
10
|
+
}>;
|
|
11
|
+
/**
|
|
12
|
+
* Displays the specular layer properties of an OpenPBR material.
|
|
13
|
+
* @param props - The required properties
|
|
14
|
+
* @returns A JSX element representing the specular layer properties.
|
|
15
|
+
*/
|
|
16
|
+
export declare const OpenPBRMaterialSpecularProperties: FunctionComponent<{
|
|
17
|
+
material: OpenPBRMaterial;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const OpenPBRMaterialTransmissionProperties: FunctionComponent<{
|
|
20
|
+
material: OpenPBRMaterial;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const OpenPBRMaterialSubsurfaceProperties: FunctionComponent<{
|
|
23
|
+
material: OpenPBRMaterial;
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Displays the coat layer properties of an OpenPBR material.
|
|
27
|
+
* @param props - The required properties
|
|
28
|
+
* @returns A JSX element representing the coat layer properties.
|
|
29
|
+
*/
|
|
30
|
+
export declare const OpenPBRMaterialCoatProperties: FunctionComponent<{
|
|
31
|
+
material: OpenPBRMaterial;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Displays the fuzz layer properties of an OpenPBR material.
|
|
35
|
+
* @param props - The required properties
|
|
36
|
+
* @returns A JSX element representing the fuzz layer properties.
|
|
37
|
+
*/
|
|
38
|
+
export declare const OpenPBRMaterialFuzzProperties: FunctionComponent<{
|
|
39
|
+
material: OpenPBRMaterial;
|
|
40
|
+
}>;
|
|
41
|
+
/**
|
|
42
|
+
* Displays the emission properties of an OpenPBR material.
|
|
43
|
+
* @param props - The required properties
|
|
44
|
+
* @returns A JSX element representing the emission properties.
|
|
45
|
+
*/
|
|
46
|
+
export declare const OpenPBRMaterialEmissionProperties: FunctionComponent<{
|
|
47
|
+
material: OpenPBRMaterial;
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* Displays the thin film properties of an OpenPBR material.
|
|
51
|
+
* @param props - The required properties
|
|
52
|
+
* @returns A JSX element representing the thin film properties.
|
|
53
|
+
*/
|
|
54
|
+
export declare const OpenPBRMaterialThinFilmProperties: FunctionComponent<{
|
|
55
|
+
material: OpenPBRMaterial;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Displays the geometry properties of an OpenPBR material.
|
|
59
|
+
* @param props - The required properties
|
|
60
|
+
* @returns A JSX element representing the geometry properties.
|
|
61
|
+
*/
|
|
62
|
+
export declare const OpenPBRMaterialGeometryProperties: FunctionComponent<{
|
|
63
|
+
material: OpenPBRMaterial;
|
|
64
|
+
}>;
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
import { PBRBaseMaterial } from "@babylonjs/core/Materials/PBR/pbrBaseMaterial.js";
|
|
3
|
+
import { type ISelectionService } from "../../../services/selectionService";
|
|
4
|
+
declare module "@babylonjs/core/Materials/PBR/pbrSheenConfiguration.js" {
|
|
5
|
+
interface PBRSheenConfiguration {
|
|
6
|
+
_useRoughness: boolean;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare const LightFalloffOptions: [{
|
|
10
|
+
readonly label: "Physical";
|
|
11
|
+
readonly value: 0;
|
|
12
|
+
}, {
|
|
13
|
+
readonly label: "glTF";
|
|
14
|
+
readonly value: 1;
|
|
15
|
+
}, {
|
|
16
|
+
readonly label: "Standard";
|
|
17
|
+
readonly value: 2;
|
|
18
|
+
}];
|
|
19
|
+
export declare const RealTimeFilteringQualityOptions: [{
|
|
20
|
+
readonly label: "Low";
|
|
21
|
+
readonly value: 8;
|
|
22
|
+
}, {
|
|
23
|
+
readonly label: "Medium";
|
|
24
|
+
readonly value: 16;
|
|
25
|
+
}, {
|
|
26
|
+
readonly label: "High";
|
|
27
|
+
readonly value: 64;
|
|
28
|
+
}];
|
|
29
|
+
export declare const BaseDiffuseModelOptions: [{
|
|
30
|
+
readonly label: "Lambert";
|
|
31
|
+
readonly value: 2;
|
|
32
|
+
}, {
|
|
33
|
+
readonly label: "Burley";
|
|
34
|
+
readonly value: 1;
|
|
35
|
+
}, {
|
|
36
|
+
readonly label: "OpenPBR";
|
|
37
|
+
readonly value: 0;
|
|
38
|
+
}];
|
|
39
|
+
export declare const DielectricSpecularModelOptions: [{
|
|
40
|
+
readonly label: "glTF";
|
|
41
|
+
readonly value: 0;
|
|
42
|
+
}, {
|
|
43
|
+
readonly label: "OpenPBR";
|
|
44
|
+
readonly value: 1;
|
|
45
|
+
}];
|
|
46
|
+
export declare const ConductorSpecularModelOptions: [{
|
|
47
|
+
readonly label: "glTF";
|
|
48
|
+
readonly value: 0;
|
|
49
|
+
}, {
|
|
50
|
+
readonly label: "OpenPBR";
|
|
51
|
+
readonly value: 1;
|
|
52
|
+
}];
|
|
53
|
+
export declare const DebugMode: [{
|
|
54
|
+
readonly label: "None";
|
|
55
|
+
readonly value: 0;
|
|
56
|
+
}, {
|
|
57
|
+
readonly label: "Normalized position";
|
|
58
|
+
readonly value: 1;
|
|
59
|
+
}, {
|
|
60
|
+
readonly label: "Normals";
|
|
61
|
+
readonly value: 2;
|
|
62
|
+
}, {
|
|
63
|
+
readonly label: "Tangents";
|
|
64
|
+
readonly value: 3;
|
|
65
|
+
}, {
|
|
66
|
+
readonly label: "Bitangents";
|
|
67
|
+
readonly value: 4;
|
|
68
|
+
}, {
|
|
69
|
+
readonly label: "Bump Normals";
|
|
70
|
+
readonly value: 5;
|
|
71
|
+
}, {
|
|
72
|
+
readonly label: "UV1";
|
|
73
|
+
readonly value: 6;
|
|
74
|
+
}, {
|
|
75
|
+
readonly label: "UV2";
|
|
76
|
+
readonly value: 7;
|
|
77
|
+
}, {
|
|
78
|
+
readonly label: "ClearCoat Normals";
|
|
79
|
+
readonly value: 8;
|
|
80
|
+
}, {
|
|
81
|
+
readonly label: "ClearCoat Tangents";
|
|
82
|
+
readonly value: 9;
|
|
83
|
+
}, {
|
|
84
|
+
readonly label: "ClearCoat Bitangents";
|
|
85
|
+
readonly value: 10;
|
|
86
|
+
}, {
|
|
87
|
+
readonly label: "Anisotropic Normals";
|
|
88
|
+
readonly value: 11;
|
|
89
|
+
}, {
|
|
90
|
+
readonly label: "Anisotropic Tangents";
|
|
91
|
+
readonly value: 12;
|
|
92
|
+
}, {
|
|
93
|
+
readonly label: "Anisotropic Bitangents";
|
|
94
|
+
readonly value: 13;
|
|
95
|
+
}, {
|
|
96
|
+
readonly label: "Albedo Map";
|
|
97
|
+
readonly value: 20;
|
|
98
|
+
}, {
|
|
99
|
+
readonly label: "Ambient Map";
|
|
100
|
+
readonly value: 21;
|
|
101
|
+
}, {
|
|
102
|
+
readonly label: "Opacity Map";
|
|
103
|
+
readonly value: 22;
|
|
104
|
+
}, {
|
|
105
|
+
readonly label: "Emissive Map";
|
|
106
|
+
readonly value: 23;
|
|
107
|
+
}, {
|
|
108
|
+
readonly label: "Light Map";
|
|
109
|
+
readonly value: 24;
|
|
110
|
+
}, {
|
|
111
|
+
readonly label: "Metallic Map";
|
|
112
|
+
readonly value: 25;
|
|
113
|
+
}, {
|
|
114
|
+
readonly label: "Reflectivity Map";
|
|
115
|
+
readonly value: 26;
|
|
116
|
+
}, {
|
|
117
|
+
readonly label: "ClearCoat Map";
|
|
118
|
+
readonly value: 27;
|
|
119
|
+
}, {
|
|
120
|
+
readonly label: "ClearCoat Tint Map";
|
|
121
|
+
readonly value: 28;
|
|
122
|
+
}, {
|
|
123
|
+
readonly label: "Sheen Map";
|
|
124
|
+
readonly value: 29;
|
|
125
|
+
}, {
|
|
126
|
+
readonly label: "Anisotropic Map";
|
|
127
|
+
readonly value: 30;
|
|
128
|
+
}, {
|
|
129
|
+
readonly label: "Thickness Map";
|
|
130
|
+
readonly value: 31;
|
|
131
|
+
}, {
|
|
132
|
+
readonly label: "Bump Map";
|
|
133
|
+
readonly value: 32;
|
|
134
|
+
}, {
|
|
135
|
+
readonly label: "Env Refraction";
|
|
136
|
+
readonly value: 40;
|
|
137
|
+
}, {
|
|
138
|
+
readonly label: "Env Reflection";
|
|
139
|
+
readonly value: 41;
|
|
140
|
+
}, {
|
|
141
|
+
readonly label: "Env Clear Coat";
|
|
142
|
+
readonly value: 42;
|
|
143
|
+
}, {
|
|
144
|
+
readonly label: "Direct Diffuse";
|
|
145
|
+
readonly value: 50;
|
|
146
|
+
}, {
|
|
147
|
+
readonly label: "Direct Specular";
|
|
148
|
+
readonly value: 51;
|
|
149
|
+
}, {
|
|
150
|
+
readonly label: "Direct Clear Coat";
|
|
151
|
+
readonly value: 52;
|
|
152
|
+
}, {
|
|
153
|
+
readonly label: "Direct Sheen";
|
|
154
|
+
readonly value: 53;
|
|
155
|
+
}, {
|
|
156
|
+
readonly label: "Env Irradiance";
|
|
157
|
+
readonly value: 54;
|
|
158
|
+
}, {
|
|
159
|
+
readonly label: "Surface Albedo";
|
|
160
|
+
readonly value: 60;
|
|
161
|
+
}, {
|
|
162
|
+
readonly label: "Reflectance 0";
|
|
163
|
+
readonly value: 61;
|
|
164
|
+
}, {
|
|
165
|
+
readonly label: "Metallic";
|
|
166
|
+
readonly value: 62;
|
|
167
|
+
}, {
|
|
168
|
+
readonly label: "Metallic F0";
|
|
169
|
+
readonly value: 71;
|
|
170
|
+
}, {
|
|
171
|
+
readonly label: "Roughness";
|
|
172
|
+
readonly value: 63;
|
|
173
|
+
}, {
|
|
174
|
+
readonly label: "AlphaG";
|
|
175
|
+
readonly value: 64;
|
|
176
|
+
}, {
|
|
177
|
+
readonly label: "NdotV";
|
|
178
|
+
readonly value: 65;
|
|
179
|
+
}, {
|
|
180
|
+
readonly label: "ClearCoat Color";
|
|
181
|
+
readonly value: 66;
|
|
182
|
+
}, {
|
|
183
|
+
readonly label: "ClearCoat Roughness";
|
|
184
|
+
readonly value: 67;
|
|
185
|
+
}, {
|
|
186
|
+
readonly label: "ClearCoat NdotV";
|
|
187
|
+
readonly value: 68;
|
|
188
|
+
}, {
|
|
189
|
+
readonly label: "Transmittance";
|
|
190
|
+
readonly value: 69;
|
|
191
|
+
}, {
|
|
192
|
+
readonly label: "Refraction Transmittance";
|
|
193
|
+
readonly value: 70;
|
|
194
|
+
}, {
|
|
195
|
+
readonly label: "Glossiness";
|
|
196
|
+
readonly value: 72;
|
|
197
|
+
}, {
|
|
198
|
+
readonly label: "Base Color";
|
|
199
|
+
readonly value: 73;
|
|
200
|
+
}, {
|
|
201
|
+
readonly label: "Specular Color";
|
|
202
|
+
readonly value: 74;
|
|
203
|
+
}, {
|
|
204
|
+
readonly label: "Emissive Color";
|
|
205
|
+
readonly value: 75;
|
|
206
|
+
}, {
|
|
207
|
+
readonly label: "SEO";
|
|
208
|
+
readonly value: 80;
|
|
209
|
+
}, {
|
|
210
|
+
readonly label: "EHO";
|
|
211
|
+
readonly value: 81;
|
|
212
|
+
}, {
|
|
213
|
+
readonly label: "Energy Factor";
|
|
214
|
+
readonly value: 82;
|
|
215
|
+
}, {
|
|
216
|
+
readonly label: "Specular Reflectance";
|
|
217
|
+
readonly value: 83;
|
|
218
|
+
}, {
|
|
219
|
+
readonly label: "Clear Coat Reflectance";
|
|
220
|
+
readonly value: 84;
|
|
221
|
+
}, {
|
|
222
|
+
readonly label: "Sheen Reflectance";
|
|
223
|
+
readonly value: 85;
|
|
224
|
+
}, {
|
|
225
|
+
readonly label: "Luminance Over Alpha";
|
|
226
|
+
readonly value: 86;
|
|
227
|
+
}, {
|
|
228
|
+
readonly label: "Alpha";
|
|
229
|
+
readonly value: 87;
|
|
230
|
+
}, {
|
|
231
|
+
readonly label: "Albedo Alpha";
|
|
232
|
+
readonly value: 88;
|
|
233
|
+
}, {
|
|
234
|
+
readonly label: "Ambient occlusion color";
|
|
235
|
+
readonly value: 89;
|
|
236
|
+
}];
|
|
237
|
+
export declare const PBRBaseMaterialGeneralProperties: FunctionComponent<{
|
|
238
|
+
material: PBRBaseMaterial;
|
|
239
|
+
}>;
|
|
240
|
+
export declare const PBRBaseMaterialTransparencyProperties: FunctionComponent<{
|
|
241
|
+
material: PBRBaseMaterial;
|
|
242
|
+
}>;
|
|
243
|
+
export declare const PBRBaseMaterialChannelsProperties: FunctionComponent<{
|
|
244
|
+
material: PBRBaseMaterial;
|
|
245
|
+
selectionService: ISelectionService;
|
|
246
|
+
}>;
|
|
247
|
+
export declare const PBRBaseMaterialLightingAndColorProperties: FunctionComponent<{
|
|
248
|
+
material: PBRBaseMaterial;
|
|
249
|
+
}>;
|
|
250
|
+
export declare const PBRBaseMaterialMetallicWorkflowProperties: FunctionComponent<{
|
|
251
|
+
material: PBRBaseMaterial;
|
|
252
|
+
selectionService: ISelectionService;
|
|
253
|
+
}>;
|
|
254
|
+
export declare const PBRBaseMaterialClearCoatProperties: FunctionComponent<{
|
|
255
|
+
material: PBRBaseMaterial;
|
|
256
|
+
selectionService: ISelectionService;
|
|
257
|
+
}>;
|
|
258
|
+
export declare const PBRBaseMaterialIridescenceProperties: FunctionComponent<{
|
|
259
|
+
material: PBRBaseMaterial;
|
|
260
|
+
selectionService: ISelectionService;
|
|
261
|
+
}>;
|
|
262
|
+
export declare const PBRBaseMaterialAnisotropicProperties: FunctionComponent<{
|
|
263
|
+
material: PBRBaseMaterial;
|
|
264
|
+
selectionService: ISelectionService;
|
|
265
|
+
}>;
|
|
266
|
+
export declare const PBRBaseMaterialSheenProperties: FunctionComponent<{
|
|
267
|
+
material: PBRBaseMaterial;
|
|
268
|
+
selectionService: ISelectionService;
|
|
269
|
+
}>;
|
|
270
|
+
export declare const PBRBaseMaterialSubSurfaceProperties: FunctionComponent<{
|
|
271
|
+
material: PBRBaseMaterial;
|
|
272
|
+
selectionService: ISelectionService;
|
|
273
|
+
}>;
|
|
274
|
+
export declare const PBRBaseMaterialLevelProperties: FunctionComponent<{
|
|
275
|
+
material: PBRBaseMaterial;
|
|
276
|
+
}>;
|
|
277
|
+
export declare const PBRBaseMaterialRenderingProperties: FunctionComponent<{
|
|
278
|
+
material: PBRBaseMaterial;
|
|
279
|
+
}>;
|
|
280
|
+
export declare const PBRBaseMaterialAdvancedProperties: FunctionComponent<{
|
|
281
|
+
material: PBRBaseMaterial;
|
|
282
|
+
}>;
|
|
283
|
+
export declare const PBRBaseMaterialDebugProperties: FunctionComponent<{
|
|
284
|
+
material: PBRBaseMaterial;
|
|
285
|
+
}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
import { type StandardMaterial } from "@babylonjs/core/Materials/standardMaterial.js";
|
|
3
|
+
import { type ISelectionService } from "../../../services/selectionService";
|
|
4
|
+
export declare const StandardMaterialGeneralProperties: FunctionComponent<{
|
|
5
|
+
material: StandardMaterial;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const StandardMaterialTransparencyProperties: FunctionComponent<{
|
|
8
|
+
material: StandardMaterial;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const StandardMaterialTexturesProperties: FunctionComponent<{
|
|
11
|
+
material: StandardMaterial;
|
|
12
|
+
selectionService: ISelectionService;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* Displays the levels properties of a standard material.
|
|
16
|
+
* @param props - The required properties
|
|
17
|
+
* @returns A JSX element representing the levels properties.
|
|
18
|
+
*/
|
|
19
|
+
export declare const StandardMaterialLevelsProperties: FunctionComponent<{
|
|
20
|
+
standardMaterial: StandardMaterial;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Displays the lighting and color properties of a standard material.
|
|
24
|
+
* @param props - The required properties
|
|
25
|
+
* @returns A JSX element representing the lighting and color properties.
|
|
26
|
+
*/
|
|
27
|
+
export declare const StandardMaterialLightingAndColorProperties: FunctionComponent<{
|
|
28
|
+
standardMaterial: StandardMaterial;
|
|
29
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
export interface IMetadataContainer {
|
|
3
|
+
metadata: unknown;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Component to display metadata properties of an entity.
|
|
7
|
+
* @param props - The properties for the component.
|
|
8
|
+
* @returns A React component that displays metadata properties.
|
|
9
|
+
*/
|
|
10
|
+
export declare const MetadataProperties: FunctionComponent<{
|
|
11
|
+
entity: IMetadataContainer;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
import { type AbstractMesh } from "@babylonjs/core/index.js";
|
|
3
|
+
import { type ISelectionService } from "../../../services/selectionService";
|
|
4
|
+
import "@babylonjs/core/Rendering/edgesRenderer.js";
|
|
5
|
+
import "@babylonjs/core/Rendering/outlineRenderer.js";
|
|
6
|
+
export declare const AbstractMeshGeneralProperties: FunctionComponent<{
|
|
7
|
+
mesh: AbstractMesh;
|
|
8
|
+
selectionService: ISelectionService;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const AbstractMeshDisplayProperties: FunctionComponent<{
|
|
11
|
+
mesh: AbstractMesh;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const AbstractMeshAdvancedProperties: FunctionComponent<{
|
|
14
|
+
mesh: AbstractMesh;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const AbstractMeshOutlineOverlayProperties: FunctionComponent<{
|
|
17
|
+
mesh: AbstractMesh;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const AbstractMeshOcclusionsProperties: FunctionComponent<{
|
|
20
|
+
mesh: AbstractMesh;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const AbstractMeshEdgeRenderingProperties: FunctionComponent<{
|
|
23
|
+
mesh: AbstractMesh;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const AbstractMeshDebugProperties: FunctionComponent<{
|
|
26
|
+
mesh: AbstractMesh;
|
|
27
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
import { type Mesh } from "@babylonjs/core/index.js";
|
|
3
|
+
export declare const MeshGeneralProperties: FunctionComponent<{
|
|
4
|
+
mesh: Mesh;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const MeshDisplayProperties: FunctionComponent<{
|
|
7
|
+
mesh: Mesh;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const MeshMorphTargetsProperties: FunctionComponent<{
|
|
10
|
+
mesh: Mesh;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
import { type Node } from "@babylonjs/core/index.js";
|
|
3
|
+
import { type ISelectionService } from "../../../services/selectionService";
|
|
4
|
+
export declare const NodeGeneralProperties: FunctionComponent<{
|
|
5
|
+
node: Node;
|
|
6
|
+
selectionService: ISelectionService;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type StandardMaterial } from "@babylonjs/core/Materials/standardMaterial.js";
|
|
2
|
+
import { type Color3 } from "@babylonjs/core/Maths/math.color.js";
|
|
3
|
+
import { type AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh.js";
|
|
4
|
+
import { type Scene } from "@babylonjs/core/scene.js";
|
|
5
|
+
import { type FunctionComponent } from "react";
|
|
6
|
+
import { type IAttractorData } from "./attractorAdapter";
|
|
7
|
+
type AttractorProps = {
|
|
8
|
+
attractorData: IAttractorData;
|
|
9
|
+
id: number;
|
|
10
|
+
impostorScale: number;
|
|
11
|
+
impostorColor: Color3;
|
|
12
|
+
impostorMaterial: StandardMaterial;
|
|
13
|
+
scene: Scene;
|
|
14
|
+
isControlled: (impostor: AbstractMesh) => boolean;
|
|
15
|
+
onControl: (impostor?: AbstractMesh) => void;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Represents the UX of an attractor, a sphere with a color/size whose position matches that of the underlying attractor
|
|
19
|
+
* @param props
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
export declare const AttractorComponent: FunctionComponent<AttractorProps>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type Vector3 } from "@babylonjs/core/Maths/math.vector.js";
|
|
2
|
+
import { Attractor } from "@babylonjs/core/Particles/attractor.js";
|
|
3
|
+
import { type ParticleSystem } from "@babylonjs/core/Particles/particleSystem.js";
|
|
4
|
+
import { type NodeParticleSystemSet } from "@babylonjs/core/Particles/Node/nodeParticleSystemSet.js";
|
|
5
|
+
import { UpdateAttractorBlock } from "@babylonjs/core/Particles/Node/Blocks/Update/updateAttractorBlock.js";
|
|
6
|
+
/**
|
|
7
|
+
* Represents an attractor in a normalized way that works for both CPU and Node particle systems.
|
|
8
|
+
*/
|
|
9
|
+
export interface IAttractorData {
|
|
10
|
+
/** The position of the attractor */
|
|
11
|
+
position: Vector3;
|
|
12
|
+
/** The strength of the attractor (null if dynamically computed) */
|
|
13
|
+
strength: number | null;
|
|
14
|
+
/** Sets the strength of the attractor */
|
|
15
|
+
setStrength: (value: number) => void;
|
|
16
|
+
/** The original attractor object (CPU) or UpdateAttractorBlock (Node) */
|
|
17
|
+
source: Attractor | UpdateAttractorBlock;
|
|
18
|
+
/** Whether this attractor is read-only (position and strength cannot be edited in inspector) */
|
|
19
|
+
isReadOnly: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Interface for an attractor source that provides attractors from different particle system types.
|
|
23
|
+
*/
|
|
24
|
+
export interface IAttractorSource {
|
|
25
|
+
/** The attractors from the source */
|
|
26
|
+
attractors: IAttractorData[];
|
|
27
|
+
/** Add a new attractor (only for CPU particle systems) */
|
|
28
|
+
addAttractor?: (attractor?: Attractor) => void;
|
|
29
|
+
/** Remove an attractor (only for CPU particle systems) */
|
|
30
|
+
removeAttractor?: (attractor: Attractor) => void;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Creates an IAttractorData adapter from a CPU particle system Attractor.
|
|
34
|
+
* @param attractor The CPU particle system attractor
|
|
35
|
+
* @returns The IAttractorData adapter
|
|
36
|
+
*/
|
|
37
|
+
export declare function CreateCPUAttractorData(attractor: Attractor): IAttractorData;
|
|
38
|
+
/**
|
|
39
|
+
* Creates an IAttractorData adapter from a Node particle system UpdateAttractorBlock.
|
|
40
|
+
* @param block The UpdateAttractorBlock from a Node particle system
|
|
41
|
+
* @returns The IAttractorData adapter
|
|
42
|
+
*/
|
|
43
|
+
export declare function CreateNodeAttractorData(block: UpdateAttractorBlock): IAttractorData;
|
|
44
|
+
/**
|
|
45
|
+
* Creates an IAttractorSource for a CPU particle system.
|
|
46
|
+
* @param system The CPU particle system
|
|
47
|
+
* @param attractors The current attractors array (from useObservableArray hook)
|
|
48
|
+
* @returns The IAttractorSource adapter
|
|
49
|
+
*/
|
|
50
|
+
export declare function CreateCPUAttractorSource(system: ParticleSystem, attractors: Attractor[]): IAttractorSource;
|
|
51
|
+
/**
|
|
52
|
+
* Creates an IAttractorSource for a Node particle system.
|
|
53
|
+
* @param nodeSet The NodeParticleSystemSet
|
|
54
|
+
* @returns The IAttractorSource adapter
|
|
55
|
+
*/
|
|
56
|
+
export declare function CreateNodeAttractorSource(nodeSet: NodeParticleSystemSet): IAttractorSource;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
import { type Scene } from "@babylonjs/core/scene.js";
|
|
3
|
+
import { type IAttractorSource } from "./attractorAdapter";
|
|
4
|
+
type AttractorListProps = {
|
|
5
|
+
scene: Scene;
|
|
6
|
+
attractorSource: IAttractorSource;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Component that displays a list of attractors with debug visualization and editing controls.
|
|
10
|
+
* Supports both CPU particle systems (editable) and Node particle systems (read-only).
|
|
11
|
+
* @param props The component props containing the scene and attractor source.
|
|
12
|
+
* @returns The rendered AttractorList component.
|
|
13
|
+
*/
|
|
14
|
+
export declare const AttractorList: FunctionComponent<AttractorListProps>;
|
|
15
|
+
export {};
|