@babylonjs/inspector 8.52.0 → 8.52.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/lib/index.d.ts CHANGED
@@ -8,8 +8,8 @@ import { Color3 as Color3$1, Color4 as Color4$1 } from '@babylonjs/core/Maths/ma
8
8
  import { Vector3 as Vector3$1, Quaternion as Quaternion$1 } from '@babylonjs/core/Maths/math.vector.js';
9
9
  import * as _fluentui_tokens from '@fluentui/tokens';
10
10
  import { IDisposable as IDisposable$2, Scene as Scene$2 } from '@babylonjs/core/scene.js';
11
- import { GizmoCoordinatesMode } from '@babylonjs/core/Gizmos/gizmo.js';
12
11
  import { CameraGizmo } from '@babylonjs/core/Gizmos/cameraGizmo.js';
12
+ import { GizmoCoordinatesMode } from '@babylonjs/core/Gizmos/gizmo.js';
13
13
  import { LightGizmo } from '@babylonjs/core/Gizmos/lightGizmo.js';
14
14
  import { UtilityLayerRenderer as UtilityLayerRenderer$1 } from '@babylonjs/core/Rendering/utilityLayerRenderer.js';
15
15
  import { Observable as Observable$2 } from '@babylonjs/core/Misc/observable.js';
@@ -430,6 +430,10 @@ declare class SettingsStore implements ISettingsStore {
430
430
 
431
431
  type HorizontalLocation = "left" | "right";
432
432
  type VerticalLocation = "top" | "bottom";
433
+ type TeachingMomentInfo = boolean | {
434
+ readonly title: string;
435
+ readonly description: string;
436
+ };
433
437
  /**
434
438
  * Describes an item that can be added to one of the shell's toolbars.
435
439
  */
@@ -464,11 +468,12 @@ type ToolbarItemDefinition = {
464
468
  */
465
469
  displayName?: string;
466
470
  /**
467
- * An optional flag to suppress the teaching moment for this toolbar item.
468
- * Defaults to false.
471
+ * An optional teaching moment info. The default assumes the toolbar item was added by an extension and provides a generic title and description based on the display name or id, which is helpful for discoverability of new items.
472
+ * Set this to false to suppress the teaching moment, which may be desirable for built in items or items that are added in a non-dynamic way.
473
+ * Set it to an object with a title and description to provide a custom teaching moment, which may be desirable if the generic title and description are not sufficient.
469
474
  * Teaching moments are more helpful for dynamically added items, possibly from extensions.
470
475
  */
471
- suppressTeachingMoment?: boolean;
476
+ teachingMoment?: TeachingMomentInfo;
472
477
  };
473
478
  /**
474
479
  * Describes a side pane that can be added to the shell's left or right side.
@@ -506,11 +511,12 @@ type SidePaneDefinition = {
506
511
  */
507
512
  title: string;
508
513
  /**
509
- * An optional flag to suppress the teaching moment for this side pane.
510
- * Defaults to false.
514
+ * An optional teaching moment info. The default assumes the side pane was added by an extension and provides a generic title and description based on the display name or id, which is helpful for discoverability of new items.
515
+ * Set this to false to suppress the teaching moment, which may be desirable for built in items or items that are added in a non-dynamic way.
516
+ * Set it to an object with a title and description to provide a custom teaching moment, which may be desirable if the generic title and description are not sufficient.
511
517
  * Teaching moments are more helpful for dynamically added panes, possibly from extensions.
512
518
  */
513
- suppressTeachingMoment?: boolean;
519
+ teachingMoment?: TeachingMomentInfo;
514
520
  /**
515
521
  * Keep the pane mounted even when it is not visible. This is useful if you don't want the
516
522
  * user to lose the complex visual state when switching between tabs.
@@ -1519,7 +1525,10 @@ type KeyCallbacks = {
1519
1525
  onKeyUp?: (e: KeyboardEvent) => void;
1520
1526
  };
1521
1527
  declare function useKeyListener(callbacks: KeyCallbacks, options?: WindowOptions): void;
1522
- declare function useKeyState(key: string, options?: WindowOptions): boolean;
1528
+ type KeyStateOptions = WindowOptions & {
1529
+ preventDefault?: boolean;
1530
+ };
1531
+ declare function useKeyState(key: string, options?: KeyStateOptions): boolean;
1523
1532
 
1524
1533
  type ButtonProps = BasePrimitiveProps & {
1525
1534
  onClick?: (e?: MouseEvent<HTMLButtonElement>) => unknown | Promise<unknown>;
@@ -55807,10 +55816,14 @@ declare module "./mesh" {
55807
55816
  * Applies a partial update to a buffer directly on the GPU
55808
55817
  * Note that the buffer located on the CPU is NOT updated! It's up to you to update it (or not) with the same data you pass to this method
55809
55818
  * @param kind name of the attribute to update. Use "matrix" to update the buffer of matrices
55810
- * @param data the data to set in the GPU buffer
55811
- * @param offset the offset in the GPU buffer where to update the data
55819
+ * @param dataOrLength the data to set in the GPU buffer, or the length (in elements) of data to update starting from the offset.
55820
+ * If you pass a length (number), it is the number of elements to update. For example, if kind is "matrix" and you pass 2 as length, it will update 2 matrices (2*16 floats) in the GPU buffer starting from the offset; in this case {@link offset} should also be expressed as a number of elements.
55821
+ * If you pass a Float32Array, {@link offset} is interpreted in floats in the underlying GPU buffer, consistent with low-level buffer update methods such as updateDirectly.
55822
+ * @param offset the offset in the GPU buffer where to update the data:
55823
+ * - when {@link dataOrLength} is a number, this is an element offset (for example, a matrix index);
55824
+ * - when {@link dataOrLength} is a Float32Array, this is a float offset in the underlying buffer.
55812
55825
  */
55813
- thinInstancePartialBufferUpdate(kind: string, data: Float32Array, offset: number): void;
55826
+ thinInstancePartialBufferUpdate(kind: string, dataOrLength: Float32Array | number, offset: number): void;
55814
55827
  /**
55815
55828
  * Refreshes the bounding info, taking into account all the thin instances defined
55816
55829
  * @param forceRefreshParentInfo true to force recomputing the mesh bounding info and use it to compute the aggregated bounding info
@@ -73793,9 +73806,17 @@ type SpinButtonProps = PrimitiveProps<number> & {
73793
73806
  unit?: string;
73794
73807
  forceInt?: boolean;
73795
73808
  validator?: (value: number) => boolean;
73809
+ /** Optional fixed precision (number of decimal digits). Overrides the automatically computed display precision. */
73810
+ precision?: number;
73796
73811
  /** Optional className for the input element */
73797
73812
  inputClassName?: string;
73813
+ /** When true, hides the drag-to-scrub button */
73814
+ disableDragButton?: boolean;
73798
73815
  };
73816
+ /**
73817
+ * A numeric input with a vertical drag-to-scrub icon (ArrowsBidirectionalRegular rotated 90°).
73818
+ * Click-and-drag up/down on the icon to increment/decrement the value.
73819
+ */
73799
73820
  declare const SpinButton: react.ForwardRefExoticComponent<BasePrimitiveProps & {
73800
73821
  value: number;
73801
73822
  infoLabel?: InfoLabelParentProps;
@@ -73810,8 +73831,12 @@ declare const SpinButton: react.ForwardRefExoticComponent<BasePrimitiveProps & {
73810
73831
  unit?: string;
73811
73832
  forceInt?: boolean;
73812
73833
  validator?: (value: number) => boolean;
73834
+ /** Optional fixed precision (number of decimal digits). Overrides the automatically computed display precision. */
73835
+ precision?: number;
73813
73836
  /** Optional className for the input element */
73814
73837
  inputClassName?: string;
73838
+ /** When true, hides the drag-to-scrub button */
73839
+ disableDragButton?: boolean;
73815
73840
  } & react.RefAttributes<HTMLInputElement>>;
73816
73841
 
73817
73842
  type SwitchProps = PrimitiveProps<boolean>;
@@ -73829,6 +73854,8 @@ type SyncedSliderProps = PrimitiveProps<number> & {
73829
73854
  max?: number;
73830
73855
  /** Step size for the slider */
73831
73856
  step?: number;
73857
+ /** Optional fixed precision (number of decimal digits). Overrides the automatically computed display precision. */
73858
+ precision?: number;
73832
73859
  /** Displayed in the ux to indicate unit of measurement */
73833
73860
  unit?: string;
73834
73861
  /** When true, onChange is only called when the user releases the slider, not during drag */
@@ -74202,6 +74229,8 @@ type TensorPropertyLineProps<V extends Vector2 | Vector3 | Vector4 | Quaternion>
74202
74229
  * Internal spinbutton's step
74203
74230
  */
74204
74231
  step?: number;
74232
+ /** Optional fixed precision (number of decimal digits). Overrides the automatically computed display precision. */
74233
+ precision?: number;
74205
74234
  /**
74206
74235
  * If passed, the UX will use the conversion functions to display/update values
74207
74236
  */
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Accordion, f as AccordionSection, an as AccordionSectionItem, v as AttachDebugLayer, b1 as BooleanBadgePropertyLine, z as BoundProperty, R as BuiltInsExtensionFeed, B as Button, g as ButtonLine, ao as Checkbox, C as CheckboxPropertyLine, aW as ChildWindow, ap as Collapse, aA as Color3GradientComponent, aZ as Color3GradientList, b2 as Color3PropertyLine, aB as Color4GradientComponent, a_ as Color4GradientList, b3 as Color4PropertyLine, aq as ColorPickerPopup, aC as ColorStepGradientComponent, at as ComboBox, b4 as ComboBoxPropertyLine, ag as ConstructorFactory, t as ConvertOptions, D as DebugServiceIdentity, w as DetachDebugLayer, au as DraggableLine, av as Dropdown, ay as EntitySelector, H as ErrorBoundary, J as ExtensibleAccordion, az as FactorGradientComponent, aY as FactorGradientList, aX as FileUploadLine, ac as GetPropertyDescriptor, G as GizmoServiceIdentity, b5 as HexPropertyLine, aD as InfoLabel, ar as InputHexField, as as InputHsvField, I as Inspector, ab as InterceptFunction, ae as InterceptProperty, ad as IsPropertyReadonly, b8 as LineContainer, l as Link, b6 as LinkPropertyLine, L as LinkToEntity, F as LinkToEntityPropertyLine, aF as List, a8 as MakeDialogTeachingMoment, aE as MakeLazyComponent, j as MakePopoverTeachingMoment, Z as MakePropertyHook, a7 as MakeTeachingMoment, aG as MaterialSelector, M as MessageBar, aH as NodeSelector, aw as NumberDropdown, x as NumberDropdownPropertyLine, N as NumberInputPropertyLine, af as ObservableCollection, a$ as Pane, b9 as PlaceholderPropertyLine, P as Popover, aI as PositionedPopover, n as PropertiesServiceIdentity, E as Property, O as PropertyContext, b7 as PropertyLine, bg as QuaternionPropertyLine, bf as RotationVectorPropertyLine, c as SceneContextIdentity, o as SceneExplorerServiceIdentity, aJ as SearchBar, aK as SearchBox, ah as SelectionServiceDefinition, d as SelectionServiceIdentity, p as SettingsServiceIdentity, ai as SettingsStore, s as SettingsStoreIdentity, b as ShellServiceIdentity, aj as ShowInspector, m as SidePaneContainer, aL as SkeletonSelector, aM as SpinButton, S as SpinButtonPropertyLine, q as StatsServiceIdentity, ax as StringDropdown, y as StringDropdownPropertyLine, ba as StringifiedPropertyLine, aN as Switch, bb as SwitchPropertyLine, aO as SyncedSliderInput, bc as SyncedSliderPropertyLine, k as TeachingMoment, bd as TextAreaPropertyLine, aQ as TextInput, T as TextInputPropertyLine, be as TextPropertyLine, aP as Textarea, aR as TextureSelector, b0 as TextureUpload, K as Theme, r as ThemeServiceIdentity, aS as ToastProvider, aT as ToggleButton, h as ToolsServiceIdentity, aU as Tooltip, aV as UploadButton, bh as Vector2PropertyLine, V as Vector3PropertyLine, bi as Vector4PropertyLine, a6 as useAngleConverters, a4 as useAsyncResource, W as useColor3Property, X as useColor4Property, am as useEventListener, $ as useEventfulState, _ as useInterceptObservable, ak as useKeyListener, al as useKeyState, a0 as useObservableCollection, e as useObservableState, a1 as useOrderedObservableCollection, a2 as usePollingObservable, a as useProperty, Q as usePropertyChangedNotifier, Y as useQuaternionProperty, a3 as useResource, a5 as useSetting, aa as useTheme, a9 as useThemeMode, u as useToast, U as useVector3Property } from './index-Cmd13UXt.js';
1
+ export { A as Accordion, f as AccordionSection, an as AccordionSectionItem, s as AttachDebugLayer, b1 as BooleanBadgePropertyLine, x as BoundProperty, Q as BuiltInsExtensionFeed, B as Button, g as ButtonLine, ao as Checkbox, C as CheckboxPropertyLine, aW as ChildWindow, ap as Collapse, aA as Color3GradientComponent, aZ as Color3GradientList, b2 as Color3PropertyLine, aB as Color4GradientComponent, a_ as Color4GradientList, b3 as Color4PropertyLine, aq as ColorPickerPopup, aC as ColorStepGradientComponent, at as ComboBox, b4 as ComboBoxPropertyLine, ag as ConstructorFactory, r as ConvertOptions, D as DebugServiceIdentity, t as DetachDebugLayer, au as DraggableLine, av as Dropdown, ay as EntitySelector, E as ErrorBoundary, F as ExtensibleAccordion, az as FactorGradientComponent, aY as FactorGradientList, aX as FileUploadLine, ac as GetPropertyDescriptor, G as GizmoServiceIdentity, b5 as HexPropertyLine, aD as InfoLabel, ar as InputHexField, as as InputHsvField, I as Inspector, ab as InterceptFunction, ae as InterceptProperty, ad as IsPropertyReadonly, b8 as LineContainer, j as Link, b6 as LinkPropertyLine, L as LinkToEntity, z as LinkToEntityPropertyLine, aF as List, a7 as MakeDialogTeachingMoment, aE as MakeLazyComponent, a8 as MakePopoverTeachingMoment, Y as MakePropertyHook, a6 as MakeTeachingMoment, aG as MaterialSelector, M as MessageBar, aH as NodeSelector, aw as NumberDropdown, v as NumberDropdownPropertyLine, N as NumberInputPropertyLine, af as ObservableCollection, a$ as Pane, b9 as PlaceholderPropertyLine, P as Popover, aI as PositionedPopover, l as PropertiesServiceIdentity, y as Property, K as PropertyContext, b7 as PropertyLine, bg as QuaternionPropertyLine, bf as RotationVectorPropertyLine, c as SceneContextIdentity, m as SceneExplorerServiceIdentity, aJ as SearchBar, aK as SearchBox, ah as SelectionServiceDefinition, d as SelectionServiceIdentity, n as SettingsServiceIdentity, ai as SettingsStore, q as SettingsStoreIdentity, b as ShellServiceIdentity, aj as ShowInspector, k as SidePaneContainer, aL as SkeletonSelector, aM as SpinButton, S as SpinButtonPropertyLine, o as StatsServiceIdentity, ax as StringDropdown, w as StringDropdownPropertyLine, ba as StringifiedPropertyLine, aN as Switch, bb as SwitchPropertyLine, aO as SyncedSliderInput, bc as SyncedSliderPropertyLine, J as TeachingMoment, bd as TextAreaPropertyLine, aQ as TextInput, T as TextInputPropertyLine, be as TextPropertyLine, aP as Textarea, aR as TextureSelector, b0 as TextureUpload, H as Theme, p as ThemeServiceIdentity, aS as ToastProvider, aT as ToggleButton, h as ToolsServiceIdentity, aU as Tooltip, aV as UploadButton, bh as Vector2PropertyLine, V as Vector3PropertyLine, bi as Vector4PropertyLine, a5 as useAngleConverters, a3 as useAsyncResource, U as useColor3Property, W as useColor4Property, am as useEventListener, _ as useEventfulState, Z as useInterceptObservable, ak as useKeyListener, al as useKeyState, $ as useObservableCollection, e as useObservableState, a0 as useOrderedObservableCollection, a1 as usePollingObservable, a as useProperty, O as usePropertyChangedNotifier, X as useQuaternionProperty, a2 as useResource, a4 as useSetting, aa as useTheme, a9 as useThemeMode, u as useToast, R as useVector3Property } from './index-BvYg0Psk.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import '@fluentui/react-components';
@@ -46,6 +46,8 @@ import '@babylonjs/core/Lights/light.js';
46
46
  import '@babylonjs/core/Meshes/abstractMesh.js';
47
47
  import '@babylonjs/core/node.js';
48
48
  import 'react-dom/client';
49
+ import '@babylonjs/core/Layers/selectionOutlineLayer.js';
50
+ import '@babylonjs/core/Meshes/GaussianSplatting/gaussianSplattingMesh.js';
49
51
  import '@babylonjs/core/Animations/animationGroup.js';
50
52
  import '@babylonjs/core/Animations/animation.js';
51
53
  import '@babylonjs/core/Animations/animationPropertiesOverride.js';
@@ -81,7 +83,6 @@ import '@babylonjs/core/Materials/Node/Enums/nodeMaterialBlockConnectionPointTyp
81
83
  import '@babylonjs/core/Misc/gradients.js';
82
84
  import '@babylonjs/core/Misc/fileTools.js';
83
85
  import '@babylonjs/core/Materials/Textures/cubeTexture.js';
84
- import '@babylonjs/core/Meshes/GaussianSplatting/gaussianSplattingMesh.js';
85
86
  import '@babylonjs/core/Meshes/mesh.js';
86
87
  import '@babylonjs/core/Debug/skeletonViewer.js';
87
88
  import '@babylonjs/core/Meshes/buffer.js';
@@ -145,7 +146,6 @@ import '@babylonjs/core/Loading/sceneLoader.js';
145
146
  import '@babylonjs/core/Misc/filesInput.js';
146
147
  import '@babylonjs/loaders/glTF/glTFFileLoader.js';
147
148
  import '@babylonjs/loaders/glTF/glTFValidation.js';
148
- import '@babylonjs/core/Layers/selectionOutlineLayer.js';
149
149
  import '@babylonjs/core/Engines/engineStore.js';
150
150
  import '@babylonjs/core/Debug/debugLayer.js';
151
151
  import '@babylonjs/core/Misc/lazy.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import { P as Popover, u as useToast, B as Button, L as LinkToEntity, T as TextInputPropertyLine, S as SpinButtonPropertyLine, C as CheckboxPropertyLine, V as Vector3PropertyLine, a as useProperty, M as MessageBar, b as ShellServiceIdentity, c as SceneContextIdentity, d as SelectionServiceIdentity, e as useObservableState, A as Accordion, f as AccordionSection } from './index-Cmd13UXt.js';
2
+ import { P as Popover, u as useToast, B as Button, L as LinkToEntity, T as TextInputPropertyLine, S as SpinButtonPropertyLine, C as CheckboxPropertyLine, V as Vector3PropertyLine, a as useProperty, M as MessageBar, b as ShellServiceIdentity, c as SceneContextIdentity, d as SelectionServiceIdentity, e as useObservableState, A as Accordion, f as AccordionSection } from './index-BvYg0Psk.js';
3
3
  import { SettingsRegular, CollectionsAdd20Regular } from '@fluentui/react-icons';
4
4
  import '@babylonjs/core/Particles/webgl2ParticleSystem.js';
5
5
  import '@babylonjs/core/Rendering/prePassRendererSceneComponent.js';
@@ -71,6 +71,8 @@ import '@babylonjs/core/Lights/light.js';
71
71
  import '@babylonjs/core/Meshes/abstractMesh.js';
72
72
  import '@babylonjs/core/node.js';
73
73
  import 'react-dom/client';
74
+ import '@babylonjs/core/Layers/selectionOutlineLayer.js';
75
+ import '@babylonjs/core/Meshes/GaussianSplatting/gaussianSplattingMesh.js';
74
76
  import '@babylonjs/core/Animations/animationGroup.js';
75
77
  import '@babylonjs/core/Animations/animation.js';
76
78
  import '@babylonjs/core/Animations/animationPropertiesOverride.js';
@@ -97,7 +99,6 @@ import '@babylonjs/core/Materials/Node/Enums/nodeMaterialBlockConnectionPointTyp
97
99
  import '@babylonjs/core/Misc/gradients.js';
98
100
  import '@babylonjs/core/Misc/fileTools.js';
99
101
  import '@babylonjs/core/Materials/Textures/cubeTexture.js';
100
- import '@babylonjs/core/Meshes/GaussianSplatting/gaussianSplattingMesh.js';
101
102
  import '@babylonjs/core/Meshes/mesh.js';
102
103
  import '@babylonjs/core/Debug/skeletonViewer.js';
103
104
  import '@babylonjs/core/Meshes/buffer.js';
@@ -153,7 +154,6 @@ import '@babylonjs/core/Misc/environmentTextureTools.js';
153
154
  import '@babylonjs/core/Loading/sceneLoader.js';
154
155
  import '@babylonjs/loaders/glTF/glTFFileLoader.js';
155
156
  import '@babylonjs/loaders/glTF/glTFValidation.js';
156
- import '@babylonjs/core/Layers/selectionOutlineLayer.js';
157
157
  import '@babylonjs/core/Engines/engineStore.js';
158
158
  import '@babylonjs/core/Debug/debugLayer.js';
159
159
  import '@babylonjs/core/Misc/lazy.js';
@@ -746,4 +746,4 @@ var quickCreateToolsService = {
746
746
  };
747
747
 
748
748
  export { CreateToolsServiceDefinition, quickCreateToolsService as default };
749
- //# sourceMappingURL=quickCreateToolsService-C9jZpIAl.js.map
749
+ //# sourceMappingURL=quickCreateToolsService-DHfs_EZ6.js.map