@babylonjs/inspector 8.49.2 → 8.49.4

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/index.d.ts CHANGED
@@ -514,10 +514,6 @@ type LinkToEntityProps = {
514
514
  */
515
515
  declare const LinkToEntityPropertyLine: FunctionComponent<PropertyLineProps<string> & LinkToEntityProps>;
516
516
 
517
- type EntityBase = Readonly<{
518
- uniqueId: number;
519
- reservedDataStore?: Record<PropertyKey, unknown>;
520
- }>;
521
517
  type EntityDisplayInfo = Partial<IDisposable$1> & Readonly<{
522
518
  /**
523
519
  * The name of the entity to display in the Scene Explorer tree.
@@ -528,7 +524,7 @@ type EntityDisplayInfo = Partial<IDisposable$1> & Readonly<{
528
524
  */
529
525
  onChange?: IReadonlyObservable$2<void>;
530
526
  }>;
531
- type SceneExplorerSection<T extends EntityBase> = Readonly<{
527
+ type SceneExplorerSection<T> = Readonly<{
532
528
  /**
533
529
  * The display name of the section (e.g. "Nodes", "Materials", etc.).
534
530
  */
@@ -1012,11 +1008,12 @@ declare function useSidePaneDockOverrides(): readonly [Record<string, Readonly<{
1012
1008
  */
1013
1009
  declare function useAngleConverters(settings: ISettingsContext): readonly [(angle: number, wrap?: boolean) => number, (angle: number, wrap?: boolean) => number, boolean];
1014
1010
 
1015
- type FunctionHooks = {
1011
+ type FunctionHooks<Args extends unknown[] = unknown[]> = {
1016
1012
  /**
1017
1013
  * This function will be called after the hooked function is called.
1014
+ * @param args The arguments that were passed to the original function.
1018
1015
  */
1019
- afterCall?: () => void;
1016
+ afterCall?: (...args: Args) => void;
1020
1017
  };
1021
1018
  /**
1022
1019
  * Intercepts a function on an object and allows you to add hooks that will be called during function execution.
@@ -1025,6 +1022,7 @@ type FunctionHooks = {
1025
1022
  * @param hooks The hooks to call during the function execution.
1026
1023
  * @returns A disposable that removes the hooks when disposed and returns the object to its original state.
1027
1024
  */
1025
+ declare function InterceptFunction<T extends object, K extends keyof T>(target: T, propertyKey: string extends K ? never : number extends K ? never : symbol extends K ? never : K, hooks: NonNullable<T[K]> extends (...args: infer Args) => unknown ? FunctionHooks<Args> : FunctionHooks): IDisposable$1;
1028
1026
  declare function InterceptFunction<T extends object>(target: T, propertyKey: keyof T, hooks: FunctionHooks): IDisposable$1;
1029
1027
 
1030
1028
  /**
@@ -1040,11 +1038,12 @@ declare function GetPropertyDescriptor<T extends object>(target: T, propertyKey:
1040
1038
  * @returns True if the property is readonly, false otherwise.
1041
1039
  */
1042
1040
  declare function IsPropertyReadonly(propertyDescriptor: PropertyDescriptor): boolean;
1043
- type PropertyHooks = {
1041
+ type PropertyHooks<T = unknown> = {
1044
1042
  /**
1045
1043
  * This function will be called after the hooked property is set.
1044
+ * @param value The new value that was set on the property.
1046
1045
  */
1047
- afterSet?: () => void;
1046
+ afterSet?: (value: T) => void;
1048
1047
  };
1049
1048
  /**
1050
1049
  * Intercepts a property on an object and allows you to add hooks that will be called when the property is get or set.
@@ -1053,6 +1052,7 @@ type PropertyHooks = {
1053
1052
  * @param hooks The hooks to call when the property is get or set.
1054
1053
  * @returns A disposable that removes the hooks when disposed and returns the object to its original state.
1055
1054
  */
1055
+ declare function InterceptProperty<T extends object, K extends keyof T>(target: T, propertyKey: string extends K ? never : number extends K ? never : symbol extends K ? never : K, hooks: PropertyHooks<NonNullable<T[K]>>): IDisposable$1;
1056
1056
  declare function InterceptProperty<T extends object>(target: T, propertyKey: keyof T, hooks: PropertyHooks): IDisposable$1;
1057
1057
 
1058
1058
  type PropertyChangeInfo = {
@@ -1126,12 +1126,12 @@ interface ISceneExplorerService extends IService<typeof SceneExplorerServiceIden
1126
1126
  * Adds a new section (e.g. "Nodes", "Materials", etc.) (this includes all descendants within the scene graph).
1127
1127
  * @param section A description of the section to add.
1128
1128
  */
1129
- addSection<T extends EntityBase>(section: SceneExplorerSection<T>): IDisposable$1;
1129
+ addSection<T>(section: SceneExplorerSection<T>): IDisposable$1;
1130
1130
  /**
1131
1131
  * Adds a new command (e.g. "Delete", "Rename", etc.) that can be executed on entities in the scene explorer.
1132
1132
  * @param command A description of the command to add.
1133
1133
  */
1134
- addEntityCommand<T extends EntityBase>(command: SceneExplorerCommandProvider<T>): IDisposable$1;
1134
+ addEntityCommand<T>(command: SceneExplorerCommandProvider<T>): IDisposable$1;
1135
1135
  /**
1136
1136
  * Adds a new command that can be executed on sections in the scene explorer.
1137
1137
  * @param command A description of the command to add.
@@ -73058,4 +73058,4 @@ declare const Vector3PropertyLine: FunctionComponent<TensorPropertyLineProps<Vec
73058
73058
  declare const Vector4PropertyLine: FunctionComponent<TensorPropertyLineProps<Vector4>>;
73059
73059
 
73060
73060
  export { Accordion, AccordionSection, AttachDebugLayer, BooleanBadgePropertyLine, BoundProperty, BuiltInsExtensionFeed, Button, ButtonLine, Checkbox, CheckboxPropertyLine, ChildWindow, Collapse, Color3GradientComponent, Color3GradientList, Color3PropertyLine, Color4GradientComponent, Color4GradientList, Color4PropertyLine, ColorPickerPopup, ColorStepGradientComponent, ComboBox, ConstructorFactory, ConvertOptions, DebugServiceIdentity, DetachDebugLayer, DraggableLine, Dropdown, ExtensibleAccordion, FactorGradientComponent, FactorGradientList, FileUploadLine, GetPropertyDescriptor, HexPropertyLine, InfoLabel, InputHexField, InputHsvField, Inspector, InterceptFunction, InterceptProperty, IsPropertyReadonly, LineContainer, Link, LinkPropertyLine, LinkToEntityPropertyLine, List, MakeDialogTeachingMoment, MakeLazyComponent, MakePopoverTeachingMoment, MakePropertyHook, MakeTeachingMoment, MessageBar, NumberDropdown, NumberDropdownPropertyLine, NumberInputPropertyLine, ObservableCollection, Pane, PlaceholderPropertyLine, PositionedPopover, PropertiesServiceIdentity, Property, PropertyLine, QuaternionPropertyLine, RotationVectorPropertyLine, SceneContextIdentity, SceneExplorerServiceIdentity, SearchBar, SearchBox, SelectionServiceDefinition, SelectionServiceIdentity, SettingsContextIdentity, SettingsServiceIdentity, ShellServiceIdentity, ShowInspector, SidePaneContainer, SpinButton, SpinButtonPropertyLine, StatsServiceIdentity, StringDropdown, StringDropdownPropertyLine, StringifiedPropertyLine, Switch, SwitchPropertyLine, SyncedSliderInput, SyncedSliderPropertyLine, TeachingMoment, TextAreaPropertyLine, TextInput, TextInputPropertyLine, TextPropertyLine, Textarea, Theme, ToggleButton, ToolsServiceIdentity, Vector2PropertyLine, Vector3PropertyLine, Vector4PropertyLine, useAngleConverters, useAsyncResource, useColor3Property, useColor4Property, useCompactMode, useEventfulState, useInterceptObservable, useObservableCollection, useObservableState, useOrderedObservableCollection, usePollingObservable, useProperty, useQuaternionProperty, useResource, useSidePaneDockOverrides, useVector3Property };
73061
- export type { AcceptedDropdownValue, AccordionProps, AccordionSectionProps, BasePrimitiveProps, BoundPropertyProps, BuiltInExtension, ButtonProps, CentralContentDefinition, ChildWindowOptions, ChildWindowProps, ColorPickerProps, ColorPropertyLineProps, ComboBoxOption, ComboBoxProps, DraggableLineProps, DropdownOption, DropdownProps, DynamicAccordionSection, DynamicAccordionSectionContent, EntityBase, EntityDisplayInfo, ExtensionMetadata, ExtensionModule, FunctionHooks, HexPropertyLineProps, IDebugService, IExtensionFeed, IExtensionMetadataQuery, IPropertiesService, ISceneContext, ISceneExplorerService, ISelectionService, IService, ISettingsContext, ISettingsService, IShellService, IStatsService, IToolsService, ImmutablePrimitiveProps, InfoLabelParentProps, InfoLabelProps, InputHexProps, InspectorOptions, InspectorToken, LinkProps, ListItem, NumberInputPropertyLineProps, PaneProps, PersonMetadata, PrimitiveProps, PropertyHooks, PropertyLineProps, PropertyProps, SceneExplorerCommand, SceneExplorerCommandProvider, SceneExplorerSection, SectionsImperativeRef, ServiceDefinition, ServiceFactory, SidePaneDefinition, SpinButtonProps, SwitchProps, SyncedSliderProps, TensorPropertyLineProps, TextInputProps, TextareaProps, ToolbarItemDefinition };
73061
+ export type { AcceptedDropdownValue, AccordionProps, AccordionSectionProps, BasePrimitiveProps, BoundPropertyProps, BuiltInExtension, ButtonProps, CentralContentDefinition, ChildWindowOptions, ChildWindowProps, ColorPickerProps, ColorPropertyLineProps, ComboBoxOption, ComboBoxProps, DraggableLineProps, DropdownOption, DropdownProps, DynamicAccordionSection, DynamicAccordionSectionContent, EntityDisplayInfo, ExtensionMetadata, ExtensionModule, FunctionHooks, HexPropertyLineProps, IDebugService, IExtensionFeed, IExtensionMetadataQuery, IPropertiesService, ISceneContext, ISceneExplorerService, ISelectionService, IService, ISettingsContext, ISettingsService, IShellService, IStatsService, IToolsService, ImmutablePrimitiveProps, InfoLabelParentProps, InfoLabelProps, InputHexProps, InspectorOptions, InspectorToken, LinkProps, ListItem, NumberInputPropertyLineProps, PaneProps, PersonMetadata, PrimitiveProps, PropertyHooks, PropertyLineProps, PropertyProps, SceneExplorerCommand, SceneExplorerCommandProvider, SceneExplorerSection, SectionsImperativeRef, ServiceDefinition, ServiceFactory, SidePaneDefinition, SpinButtonProps, SwitchProps, SyncedSliderProps, TensorPropertyLineProps, TextInputProps, TextareaProps, ToolbarItemDefinition };
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Accordion, d as AccordionSection, p as AttachDebugLayer, aH as BooleanBadgePropertyLine, t as BoundProperty, y as BuiltInsExtensionFeed, B as Button, e as ButtonLine, ab as Checkbox, C as CheckboxPropertyLine, aB as ChildWindow, ac as Collapse, am as Color3GradientComponent, aE as Color3GradientList, aI as Color3PropertyLine, an as Color4GradientComponent, aF as Color4GradientList, aJ as Color4PropertyLine, ad as ColorPickerPopup, ao as ColorStepGradientComponent, ag as ComboBox, a6 as ConstructorFactory, o as ConvertOptions, D as DebugServiceIdentity, q as DetachDebugLayer, ah as DraggableLine, ai as Dropdown, E as ExtensibleAccordion, al as FactorGradientComponent, aD as FactorGradientList, aC as FileUploadLine, a2 as GetPropertyDescriptor, aK as HexPropertyLine, ap as InfoLabel, ae as InputHexField, af as InputHsvField, I as Inspector, a1 as InterceptFunction, a4 as InterceptProperty, a3 as IsPropertyReadonly, aN as LineContainer, L as Link, aL as LinkPropertyLine, w as LinkToEntityPropertyLine, ar as List, a0 as MakeDialogTeachingMoment, aq as MakeLazyComponent, h as MakePopoverTeachingMoment, J as MakePropertyHook, $ as MakeTeachingMoment, M as MessageBar, aj as NumberDropdown, r as NumberDropdownPropertyLine, N as NumberInputPropertyLine, a5 as ObservableCollection, aG as Pane, aO as PlaceholderPropertyLine, as as PositionedPopover, k as PropertiesServiceIdentity, v as Property, aM as PropertyLine, aV as QuaternionPropertyLine, aU as RotationVectorPropertyLine, b as SceneContextIdentity, l as SceneExplorerServiceIdentity, at as SearchBar, au as SearchBox, a8 as SelectionServiceDefinition, a7 as SelectionServiceIdentity, a9 as SettingsContextIdentity, m as SettingsServiceIdentity, a as ShellServiceIdentity, aa as ShowInspector, j as SidePaneContainer, av as SpinButton, S as SpinButtonPropertyLine, n as StatsServiceIdentity, ak as StringDropdown, s as StringDropdownPropertyLine, aP as StringifiedPropertyLine, aw as Switch, aQ as SwitchPropertyLine, ax as SyncedSliderInput, aR as SyncedSliderPropertyLine, i as TeachingMoment, aS as TextAreaPropertyLine, az as TextInput, T as TextInputPropertyLine, aT as TextPropertyLine, ay as Textarea, x as Theme, aA as ToggleButton, f as ToolsServiceIdentity, aW as Vector2PropertyLine, V as Vector3PropertyLine, aX as Vector4PropertyLine, _ as useAngleConverters, X as useAsyncResource, F as useColor3Property, G as useColor4Property, Y as useCompactMode, O as useEventfulState, K as useInterceptObservable, Q as useObservableCollection, c as useObservableState, R as useOrderedObservableCollection, U as usePollingObservable, u as useProperty, H as useQuaternionProperty, W as useResource, Z as useSidePaneDockOverrides, z as useVector3Property } from './index-DB8sTGSM.js';
1
+ export { A as Accordion, d as AccordionSection, p as AttachDebugLayer, aH as BooleanBadgePropertyLine, t as BoundProperty, y as BuiltInsExtensionFeed, B as Button, e as ButtonLine, ab as Checkbox, C as CheckboxPropertyLine, aB as ChildWindow, ac as Collapse, am as Color3GradientComponent, aE as Color3GradientList, aI as Color3PropertyLine, an as Color4GradientComponent, aF as Color4GradientList, aJ as Color4PropertyLine, ad as ColorPickerPopup, ao as ColorStepGradientComponent, ag as ComboBox, a6 as ConstructorFactory, o as ConvertOptions, D as DebugServiceIdentity, q as DetachDebugLayer, ah as DraggableLine, ai as Dropdown, E as ExtensibleAccordion, al as FactorGradientComponent, aD as FactorGradientList, aC as FileUploadLine, a2 as GetPropertyDescriptor, aK as HexPropertyLine, ap as InfoLabel, ae as InputHexField, af as InputHsvField, I as Inspector, a1 as InterceptFunction, a4 as InterceptProperty, a3 as IsPropertyReadonly, aN as LineContainer, L as Link, aL as LinkPropertyLine, w as LinkToEntityPropertyLine, ar as List, a0 as MakeDialogTeachingMoment, aq as MakeLazyComponent, h as MakePopoverTeachingMoment, J as MakePropertyHook, $ as MakeTeachingMoment, M as MessageBar, aj as NumberDropdown, r as NumberDropdownPropertyLine, N as NumberInputPropertyLine, a5 as ObservableCollection, aG as Pane, aO as PlaceholderPropertyLine, as as PositionedPopover, k as PropertiesServiceIdentity, v as Property, aM as PropertyLine, aV as QuaternionPropertyLine, aU as RotationVectorPropertyLine, b as SceneContextIdentity, l as SceneExplorerServiceIdentity, at as SearchBar, au as SearchBox, a8 as SelectionServiceDefinition, a7 as SelectionServiceIdentity, a9 as SettingsContextIdentity, m as SettingsServiceIdentity, a as ShellServiceIdentity, aa as ShowInspector, j as SidePaneContainer, av as SpinButton, S as SpinButtonPropertyLine, n as StatsServiceIdentity, ak as StringDropdown, s as StringDropdownPropertyLine, aP as StringifiedPropertyLine, aw as Switch, aQ as SwitchPropertyLine, ax as SyncedSliderInput, aR as SyncedSliderPropertyLine, i as TeachingMoment, aS as TextAreaPropertyLine, az as TextInput, T as TextInputPropertyLine, aT as TextPropertyLine, ay as Textarea, x as Theme, aA as ToggleButton, f as ToolsServiceIdentity, aW as Vector2PropertyLine, V as Vector3PropertyLine, aX as Vector4PropertyLine, _ as useAngleConverters, X as useAsyncResource, F as useColor3Property, G as useColor4Property, Y as useCompactMode, O as useEventfulState, K as useInterceptObservable, Q as useObservableCollection, c as useObservableState, R as useOrderedObservableCollection, U as usePollingObservable, u as useProperty, H as useQuaternionProperty, W as useResource, Z as useSidePaneDockOverrides, z as useVector3Property } from './index-CyX6FYTL.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import '@fluentui/react-components';
@@ -14,6 +14,7 @@ import '@babylonjs/core/Misc/deferred.js';
14
14
  import '@babylonjs/core/Misc/logger.js';
15
15
  import '@babylonjs/core/Maths/math.scalar.functions.js';
16
16
  import '@fluentui-contrib/react-virtualizer';
17
+ import '@babylonjs/core/Misc/uniqueIdGenerator.js';
17
18
  import '@babylonjs/addons/msdfText/fontAsset.js';
18
19
  import '@babylonjs/addons/msdfText/textRenderer.js';
19
20
  import '@babylonjs/core/Debug/physicsViewer.js';
@@ -49,7 +50,7 @@ import '@babylonjs/core/node.js';
49
50
  import '@babylonjs/core/Animations/animationGroup.js';
50
51
  import '@babylonjs/core/Animations/animation.js';
51
52
  import '@babylonjs/core/Animations/animationPropertiesOverride.js';
52
- import '@babylonjs/addons/atmosphere/atmosphere.js';
53
+ import '@babylonjs/core/Audio/sound.js';
53
54
  import '@babylonjs/core/Cameras/arcRotateCamera.js';
54
55
  import '@babylonjs/core/Cameras/followCamera.js';
55
56
  import '@babylonjs/core/Cameras/freeCamera.js';
@@ -146,7 +147,6 @@ import '@babylonjs/core/Misc/filesInput.js';
146
147
  import '@babylonjs/loaders/glTF/glTFFileLoader.js';
147
148
  import '@babylonjs/loaders/glTF/glTFValidation.js';
148
149
  import '@babylonjs/core/Engines/engineStore.js';
149
- import '@babylonjs/core/Misc/uniqueIdGenerator.js';
150
150
  import '@babylonjs/core/Debug/debugLayer.js';
151
151
  import '@babylonjs/core/Misc/lazy.js';
152
152
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
- import { P as Popover, B as Button, T as TextInputPropertyLine, S as SpinButtonPropertyLine, C as CheckboxPropertyLine, V as Vector3PropertyLine, u as useProperty, M as MessageBar, a as ShellServiceIdentity, b as SceneContextIdentity, c as useObservableState, A as Accordion, d as AccordionSection } from './index-DB8sTGSM.js';
2
+ import { P as Popover, B as Button, T as TextInputPropertyLine, S as SpinButtonPropertyLine, C as CheckboxPropertyLine, V as Vector3PropertyLine, u as useProperty, M as MessageBar, a as ShellServiceIdentity, b as SceneContextIdentity, c as useObservableState, A as Accordion, d as AccordionSection } from './index-CyX6FYTL.js';
3
3
  import { SettingsRegular, CollectionsAdd20Regular } from '@fluentui/react-icons';
4
4
  import '@babylonjs/core/Particles/webgl2ParticleSystem.js';
5
5
  import { MeshBuilder } from '@babylonjs/core/Meshes/meshBuilder.js';
@@ -40,6 +40,7 @@ import '@babylonjs/core/Misc/deferred.js';
40
40
  import '@babylonjs/core/Misc/logger.js';
41
41
  import '@babylonjs/core/Maths/math.scalar.functions.js';
42
42
  import '@fluentui-contrib/react-virtualizer';
43
+ import '@babylonjs/core/Misc/uniqueIdGenerator.js';
43
44
  import '@babylonjs/addons/msdfText/fontAsset.js';
44
45
  import '@babylonjs/addons/msdfText/textRenderer.js';
45
46
  import '@babylonjs/core/Debug/physicsViewer.js';
@@ -73,7 +74,7 @@ import '@babylonjs/core/node.js';
73
74
  import '@babylonjs/core/Animations/animationGroup.js';
74
75
  import '@babylonjs/core/Animations/animation.js';
75
76
  import '@babylonjs/core/Animations/animationPropertiesOverride.js';
76
- import '@babylonjs/addons/atmosphere/atmosphere.js';
77
+ import '@babylonjs/core/Audio/sound.js';
77
78
  import '@babylonjs/core/Cameras/targetCamera.js';
78
79
  import '@babylonjs/core/scene.js';
79
80
  import '@babylonjs/core/FrameGraph/frameGraph.js';
@@ -153,7 +154,6 @@ import '@babylonjs/core/Loading/sceneLoader.js';
153
154
  import '@babylonjs/loaders/glTF/glTFFileLoader.js';
154
155
  import '@babylonjs/loaders/glTF/glTFValidation.js';
155
156
  import '@babylonjs/core/Engines/engineStore.js';
156
- import '@babylonjs/core/Misc/uniqueIdGenerator.js';
157
157
  import '@babylonjs/core/Debug/debugLayer.js';
158
158
  import '@babylonjs/core/Misc/lazy.js';
159
159
 
@@ -703,4 +703,4 @@ var quickCreateToolsService = {
703
703
  };
704
704
 
705
705
  export { CreateToolsServiceDefinition, quickCreateToolsService as default };
706
- //# sourceMappingURL=quickCreateToolsService-CIYZ626Q.js.map
706
+ //# sourceMappingURL=quickCreateToolsService-BljTQeJt.js.map