@babylonjs/inspector 9.1.0 → 9.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/inspector-bridge.mjs +4734 -0
- package/bin/inspector-cli.mjs +4931 -0
- package/lib/cli/protocol.d.ts +180 -0
- package/lib/components/debug/debugPane.d.ts +1 -1
- package/lib/components/properties/materials/openpbrMaterialProperties.d.ts +3 -0
- package/lib/components/properties/propertiesPane.d.ts +1 -1
- package/lib/components/properties/textures/texturePreview.d.ts +38 -0
- package/lib/components/scene/sceneExplorer.d.ts +5 -0
- package/lib/components/stats/statsPane.d.ts +1 -1
- package/lib/components/tools/toolsPane.d.ts +1 -1
- package/lib/extensibility/defaultInspectorExtensionFeed.d.ts +1 -1
- package/lib/extensions/quickCreate/quickCreateToolsService.d.ts +2 -2
- package/lib/{extensionsListService-BmiNjZiw.js → extensionsListService-CBQwBhYh.js} +3 -3
- package/lib/extensionsListService-CBQwBhYh.js.map +1 -0
- package/lib/hooks/settingsHooks.d.ts +0 -8
- package/lib/{index-BCbXjPTn.js → index-DmfAhsIm.js} +1451 -433
- package/lib/index-DmfAhsIm.js.map +1 -0
- package/lib/index.d.ts +28 -21
- package/lib/index.js +2 -2
- package/lib/inspectable.d.ts +67 -0
- package/lib/inspector.d.ts +1 -1
- package/lib/legacy/inspectableCustomPropertiesService.d.ts +1 -1
- package/lib/misc/defaultPerfStrategies.d.ts +16 -0
- package/lib/misc/textureTools.d.ts +2 -1
- package/lib/{quickCreateToolsService-BoqrJqoM.js → quickCreateToolsService-C38aK2nP.js} +3 -3
- package/lib/{quickCreateToolsService-BoqrJqoM.js.map → quickCreateToolsService-C38aK2nP.js.map} +1 -1
- package/lib/{reflectorService-CFTva2GG.js → reflectorService-Bs9E2OMh.js} +3 -3
- package/lib/reflectorService-Bs9E2OMh.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 +2 -1
- package/lib/services/gizmoService.d.ts +1 -1
- package/lib/services/gizmoToolbarService.d.ts +2 -2
- package/lib/services/globalSettings.d.ts +2 -3
- package/lib/services/highlightService.d.ts +3 -3
- package/lib/services/inspectorSettingsService.d.ts +3 -0
- package/lib/services/miniStatsService.d.ts +2 -2
- package/lib/services/panes/debugService.d.ts +3 -3
- package/lib/services/panes/properties/animationGroupPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/animationPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/atmospherePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/audioPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/cameraPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/commonPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/effectLayerPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/frameGraphPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/lightPropertiesServices.d.ts +1 -1
- package/lib/services/panes/properties/materialPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/metadataPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/nodePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/particleSystemPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/physicsPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/postProcessPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/propertiesService.d.ts +3 -3
- package/lib/services/panes/properties/renderingPipelinePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/scenePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/skeletonPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/spritePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/texturePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/transformPropertiesService.d.ts +1 -1
- package/lib/services/panes/scene/animationGroupExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/atmosphereExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/disposableCommandService.d.ts +1 -1
- package/lib/services/panes/scene/effectLayersExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/frameGraphExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/guiExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/materialExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/nodeExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/particleSystemExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/postProcessExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/renderingPipelinesExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/sceneExplorerService.d.ts +2 -2
- package/lib/services/panes/scene/skeletonExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/soundExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/spriteManagerExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/texturesExplorerService.d.ts +1 -1
- package/lib/services/panes/statsService.d.ts +3 -3
- package/lib/services/panes/tools/captureService.d.ts +1 -1
- package/lib/services/panes/tools/exportService.d.ts +1 -1
- package/lib/services/panes/tools/import/gltfAnimationImportService.d.ts +1 -1
- package/lib/services/panes/tools/import/gltfLoaderOptionsService.d.ts +1 -1
- package/lib/services/panes/tools/import/gltfValidationService.d.ts +1 -1
- package/lib/services/panes/tools/reflectorService.d.ts +1 -1
- package/lib/services/panes/toolsService.d.ts +3 -3
- package/lib/services/pickingService.d.ts +3 -3
- package/lib/services/sceneContext.d.ts +1 -1
- package/lib/services/selectionService.d.ts +4 -4
- package/lib/services/textureEditor/textureEditorService.d.ts +1 -1
- package/lib/services/userFeedbackService.d.ts +2 -2
- package/lib/services/watcherService.d.ts +5 -5
- package/package.json +11 -4
- package/readme.md +27 -0
- package/lib/components/errorBoundary.d.ts +0 -31
- package/lib/components/extensibleAccordion.d.ts +0 -67
- package/lib/components/pane.d.ts +0 -4
- package/lib/components/teachingMoment.d.ts +0 -20
- package/lib/components/theme.d.ts +0 -10
- package/lib/components/uxContextProvider.d.ts +0 -2
- package/lib/contexts/extensionManagerContext.d.ts +0 -6
- package/lib/contexts/settingsContext.d.ts +0 -3
- package/lib/extensibility/builtInsExtensionFeed.d.ts +0 -21
- package/lib/extensibility/extensionFeed.d.ts +0 -113
- package/lib/extensibility/extensionManager.d.ts +0 -111
- package/lib/extensionsListService-BmiNjZiw.js.map +0 -1
- package/lib/hooks/observableHooks.d.ts +0 -35
- package/lib/hooks/resourceHooks.d.ts +0 -20
- package/lib/hooks/teachingMomentHooks.d.ts +0 -34
- package/lib/hooks/themeHooks.d.ts +0 -17
- package/lib/hooks/useResizeHandle.d.ts +0 -35
- package/lib/index-BCbXjPTn.js.map +0 -1
- package/lib/misc/assert.d.ts +0 -5
- package/lib/misc/graphUtils.d.ts +0 -44
- package/lib/misc/observableCollection.d.ts +0 -23
- package/lib/modularTool.d.ts +0 -37
- package/lib/modularity/serviceContainer.d.ts +0 -41
- package/lib/modularity/serviceDefinition.d.ts +0 -64
- package/lib/reflectorService-CFTva2GG.js.map +0 -1
- package/lib/services/extensionsListService.d.ts +0 -3
- package/lib/services/panes/settingsService.d.ts +0 -25
- package/lib/services/reactContextService.d.ts +0 -18
- package/lib/services/settingsStore.d.ts +0 -55
- package/lib/services/shellService.d.ts +0 -256
- package/lib/services/shellSettingsService.d.ts +0 -3
- package/lib/services/themeSelectorService.d.ts +0 -3
- package/lib/services/themeService.d.ts +0 -60
- package/lib/themes/babylonTheme.d.ts +0 -3
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type IReadonlyObservable } from "@babylonjs/core/index.js";
|
|
2
|
-
import { type ObservableCollection } from "../misc/observableCollection";
|
|
3
|
-
/**
|
|
4
|
-
* Returns the current value of the accessor and updates it when the specified event is fired on the specified element.
|
|
5
|
-
* @param accessor A function that returns the current value.
|
|
6
|
-
* @param element The element to listen for the event on.
|
|
7
|
-
* @param eventNames The names of the events to listen for.
|
|
8
|
-
* @returns The current value of the accessor.
|
|
9
|
-
* * @remarks If the accessor function is not idempotent (e.g. it returns a different array or object instance each time it is called),
|
|
10
|
-
* then there is a good chance it should be wrapped in a `useCallback` to prevent unnecessary re-renders or re-render infinite loops.
|
|
11
|
-
*/
|
|
12
|
-
export declare function useEventfulState<T>(accessor: () => T, element: HTMLElement | null | undefined, ...eventNames: string[]): T;
|
|
13
|
-
/**
|
|
14
|
-
* Returns the current value of the accessor and updates it when any of the specified observables change.
|
|
15
|
-
* @param accessor A function that returns the current value.
|
|
16
|
-
* @param observables The observables to listen for changes on.
|
|
17
|
-
* @returns The current value of the accessor.
|
|
18
|
-
* @remarks If the accessor function is not idempotent (e.g. it returns a different array or object instance each time it is called),
|
|
19
|
-
* then there is a good chance it should be wrapped in a `useCallback` to prevent unnecessary re-renders or re-render infinite loops.
|
|
20
|
-
*/
|
|
21
|
-
export declare function useObservableState<T>(accessor: () => T, ...observables: Array<IReadonlyObservable | null | undefined>): T;
|
|
22
|
-
/**
|
|
23
|
-
* Returns a copy of the items in the collection and updates it when the collection changes.
|
|
24
|
-
* @param collection The collection to observe.
|
|
25
|
-
* @returns A copy of the items in the collection.
|
|
26
|
-
*/
|
|
27
|
-
export declare function useObservableCollection<T>(collection: ObservableCollection<T>): T[];
|
|
28
|
-
/**
|
|
29
|
-
* Returns a copy of the items in the collection sorted by the order property and updates it when the collection changes.
|
|
30
|
-
* @param collection The collection to observe.
|
|
31
|
-
* @returns A copy of the items in the collection sorted by the order property.
|
|
32
|
-
*/
|
|
33
|
-
export declare function useOrderedObservableCollection<T extends Readonly<{
|
|
34
|
-
order?: number;
|
|
35
|
-
}>>(collection: ObservableCollection<T>): T[];
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type DependencyList } from "react";
|
|
2
|
-
import { type IDisposable } from "@babylonjs/core/index.js";
|
|
3
|
-
/**
|
|
4
|
-
* Custom hook to manage a resource with automatic disposal. The resource is created once initially, and recreated
|
|
5
|
-
* if the factory function or any dependency changes. Whenever the resource is recreated, the previous instance is
|
|
6
|
-
* disposed. The final instance is disposed when the component using this hook unmounts.
|
|
7
|
-
* @param factory A function that creates the resource.
|
|
8
|
-
* @param deps An optional dependency list. When any dependency changes, the resource is disposed and recreated.
|
|
9
|
-
* @returns The created resource.
|
|
10
|
-
*/
|
|
11
|
-
export declare function useResource<T extends IDisposable | null | undefined>(factory: () => T, deps?: DependencyList): T;
|
|
12
|
-
/**
|
|
13
|
-
* Custom hook to manage an asynchronous resource with automatic disposal. The resource is created once initially, and recreated
|
|
14
|
-
* if the factory function or any dependency changes. Whenever the resource is recreated, the previous instance is
|
|
15
|
-
* disposed. The final instance is disposed when the component using this hook unmounts.
|
|
16
|
-
* @param factory A function that creates the resource.
|
|
17
|
-
* @param deps An optional dependency list. When any dependency changes, the resource is disposed and recreated.
|
|
18
|
-
* @returns The created resource.
|
|
19
|
-
*/
|
|
20
|
-
export declare function useAsyncResource<T extends IDisposable | null | undefined>(factory: (abortSignal: AbortSignal) => Promise<T>, deps?: DependencyList): T | undefined;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { type Nullable } from "@babylonjs/core/index.js";
|
|
2
|
-
import { type OnOpenChangeData, type PositioningImperativeRef } from "@fluentui/react-components";
|
|
3
|
-
/**
|
|
4
|
-
* Creates a hook for managing teaching moment state.
|
|
5
|
-
* @param name The unique name of the teaching moment.
|
|
6
|
-
* @returns A hook that returns the teaching moment state.
|
|
7
|
-
*/
|
|
8
|
-
export declare function MakeTeachingMoment(name: string): (suppress?: boolean) => {
|
|
9
|
-
readonly shouldDisplay: boolean;
|
|
10
|
-
readonly onDismissed: () => void;
|
|
11
|
-
readonly reset: () => void;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Creates a hook for managing teaching moment state for a dialog.
|
|
15
|
-
* @param name The unique name of the teaching moment.
|
|
16
|
-
* @returns A hook that returns the teaching moment state for a dialog.
|
|
17
|
-
*/
|
|
18
|
-
export declare function MakeDialogTeachingMoment(name: string): (suppress?: boolean) => {
|
|
19
|
-
readonly shouldDisplay: boolean;
|
|
20
|
-
readonly onOpenChange: (e: unknown, data: OnOpenChangeData) => void;
|
|
21
|
-
readonly reset: () => void;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Creates a hook for managing teaching moment state for a popover.
|
|
25
|
-
* @param name The unique name of the teaching moment.
|
|
26
|
-
* @returns A hook that returns the teaching moment state for a popover.
|
|
27
|
-
*/
|
|
28
|
-
export declare function MakePopoverTeachingMoment(name: string): (suppress?: boolean) => {
|
|
29
|
-
readonly shouldDisplay: boolean;
|
|
30
|
-
readonly positioningRef: import("react").Dispatch<import("react").SetStateAction<Nullable<PositioningImperativeRef>>>;
|
|
31
|
-
readonly targetRef: import("react").Dispatch<import("react").SetStateAction<Nullable<HTMLElement>>>;
|
|
32
|
-
readonly onOpenChange: (e: unknown, data: OnOpenChangeData) => void;
|
|
33
|
-
readonly reset: () => void;
|
|
34
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type ThemeMode } from "../services/themeService";
|
|
2
|
-
/**
|
|
3
|
-
* Hook that provides the current theme mode state and controls for changing it.
|
|
4
|
-
* @returns An object with the current dark mode state, theme mode, and functions to set or toggle the theme.
|
|
5
|
-
*/
|
|
6
|
-
export declare function useThemeMode(): {
|
|
7
|
-
readonly isDarkMode: boolean;
|
|
8
|
-
readonly themeMode: ThemeMode;
|
|
9
|
-
readonly setThemeMode: (mode: ThemeMode) => void;
|
|
10
|
-
readonly toggleThemeMode: () => void | undefined;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Hook that returns the current Fluent UI theme based on the active theme mode.
|
|
14
|
-
* @param invert If true, inverts the theme (returns light theme in dark mode and vice versa). Defaults to false.
|
|
15
|
-
* @returns The current Fluent UI theme object.
|
|
16
|
-
*/
|
|
17
|
-
export declare function useTheme(invert?: boolean): import("@fluentui/tokens").Theme;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export type GrowDirection = "end" | "start" | "up" | "down";
|
|
2
|
-
export type UseResizeHandleParams = {
|
|
3
|
-
/**
|
|
4
|
-
* The direction in which the element is considered growing in size ('end', 'start', 'up', or 'down').
|
|
5
|
-
*/
|
|
6
|
-
growDirection: GrowDirection;
|
|
7
|
-
/**
|
|
8
|
-
* The name of the CSS variable that will be set on the wrapper element to reflect the current size of the element.
|
|
9
|
-
*/
|
|
10
|
-
variableName: string;
|
|
11
|
-
/**
|
|
12
|
-
* A callback that will be called when the element is resized.
|
|
13
|
-
*
|
|
14
|
-
* @remarks The passed function should be memoized for better performance.
|
|
15
|
-
*/
|
|
16
|
-
onChange?: (value: number) => void;
|
|
17
|
-
/**
|
|
18
|
-
* The minimum change allowed (e.g. the smallest negative number allowed).
|
|
19
|
-
*/
|
|
20
|
-
minValue?: number;
|
|
21
|
-
/**
|
|
22
|
-
* The maximum change allowed (e.g. the largest positive number allowed).
|
|
23
|
-
*/
|
|
24
|
-
maxValue?: number;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* A custom hook that helps with element resizing.
|
|
28
|
-
* @param params The parameters for the resize handle.
|
|
29
|
-
* @returns An object containing refs and a function to set the value.
|
|
30
|
-
*/
|
|
31
|
-
export declare function useResizeHandle(params: UseResizeHandleParams): {
|
|
32
|
-
elementRef: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
|
|
33
|
-
handleRef: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
|
|
34
|
-
setValue: (value: number) => void;
|
|
35
|
-
};
|