@babylonjs/inspector 8.34.1-preview → 8.35.0-preview

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
@@ -661,11 +661,33 @@ type WeaklyTypedServiceDefinition = Omit<ServiceDefinition<IService<symbol>[] |
661
661
  factory: (...args: any) => ReturnType<ServiceDefinition<IService<symbol>[] | [], IService<symbol>[] | []>["factory"]>;
662
662
  };
663
663
 
664
+ type PersonMetadata = {
665
+ /**
666
+ * The name of the person.
667
+ */
668
+ readonly name: string;
669
+ /**
670
+ * The email address of the person.
671
+ */
672
+ readonly email?: string;
673
+ /**
674
+ * The URL to the person's website.
675
+ */
676
+ readonly url?: string;
677
+ /**
678
+ * The Babylon forum username of the person.
679
+ */
680
+ readonly forumUserName?: string;
681
+ };
664
682
  type ExtensionMetadata = {
665
683
  /**
666
684
  * The name of the extension.
667
685
  */
668
686
  readonly name: string;
687
+ /**
688
+ * The version of the extension (as valid semver).
689
+ */
690
+ readonly version?: string;
669
691
  /**
670
692
  * The description of the extension.
671
693
  */
@@ -673,7 +695,31 @@ type ExtensionMetadata = {
673
695
  /**
674
696
  * The keywords of the extension.
675
697
  */
676
- readonly keywords: readonly string[];
698
+ readonly keywords?: readonly string[];
699
+ /**
700
+ * The URL to the extension homepage.
701
+ */
702
+ readonly homepage?: string;
703
+ /**
704
+ * Specify the place where your code lives. This is helpful for people who want to contribute.
705
+ */
706
+ readonly repository?: string;
707
+ /**
708
+ * The URL to your extension's issue tracker and / or the email address to which issues should be reported. These are helpful for people who encounter issues with your extension.
709
+ */
710
+ readonly bugs?: string;
711
+ /**
712
+ * A license for your package so that people know how they are permitted to use it, and any restrictions you're placing on it.
713
+ */
714
+ readonly license?: string;
715
+ /**
716
+ * The primary author of the extension.
717
+ */
718
+ readonly author?: string | PersonMetadata;
719
+ /**
720
+ * The contributors to the extension.
721
+ */
722
+ readonly contributors?: readonly (string | PersonMetadata)[];
677
723
  };
678
724
  type ExtensionModule = {
679
725
  /**
@@ -1214,11 +1260,16 @@ interface IVector3Like extends IVector2Like {
1214
1260
  /**
1215
1261
  * @internal
1216
1262
  */
1217
- interface IVector3LikeInternal {
1263
+ interface IDirtyFlagLike {
1264
+ _isDirty?: boolean;
1265
+ }
1266
+ /**
1267
+ * @internal
1268
+ */
1269
+ interface IVector3LikeInternal extends IDirtyFlagLike {
1218
1270
  _x: number;
1219
1271
  _y: number;
1220
1272
  _z: number;
1221
- _isDirty?: boolean;
1222
1273
  }
1223
1274
  /**
1224
1275
  * @internal
@@ -20649,10 +20700,6 @@ declare class NodeParticleBuildState {
20649
20700
  * @returns the value associated with the source
20650
20701
  */
20651
20702
  getContextualValue(source: NodeParticleContextualSources): number | Color4 | Nullable<Vector3> | Vector2;
20652
- /**
20653
- * Gets a boolean indicating if the emitter is a transform node (or a simple vector3)
20654
- */
20655
- get isEmitterTransformNode(): boolean;
20656
20703
  /**
20657
20704
  * Gets the emitter world matrix
20658
20705
  */
@@ -20664,13 +20711,13 @@ declare class NodeParticleBuildState {
20664
20711
  /**
20665
20712
  * Gets the emitter position
20666
20713
  */
20667
- get emitterPosition(): Vector3 | null;
20714
+ get emitterPosition(): Nullable<Vector3>;
20668
20715
  /**
20669
20716
  * Gets the value associated with a system source
20670
20717
  * @param source Source of the system value
20671
20718
  * @returns the value associated with the source
20672
20719
  */
20673
- getSystemValue(source: NodeParticleSystemSources): number | Nullable<Vector3 | AbstractMesh>;
20720
+ getSystemValue(source: NodeParticleSystemSources): number | Nullable<Vector3>;
20674
20721
  }
20675
20722
 
20676
20723
  /**
@@ -21025,6 +21072,10 @@ declare class SystemBlock extends NodeParticleBlock {
21025
21072
  * Gets or sets the emit rate
21026
21073
  */
21027
21074
  emitRate: number;
21075
+ /**
21076
+ * Gets or sets the manual emit count
21077
+ */
21078
+ manualEmitCount: number;
21028
21079
  /**
21029
21080
  * Gets or sets the target stop duration for the particle system
21030
21081
  */
@@ -21037,6 +21088,26 @@ declare class SystemBlock extends NodeParticleBlock {
21037
21088
  * Gets or sets the target stop duration for the particle system
21038
21089
  */
21039
21090
  updateSpeed: number;
21091
+ /**
21092
+ * Gets or sets the number of pre-warm cycles before rendering the particle system
21093
+ */
21094
+ preWarmCycles: number;
21095
+ /**
21096
+ * Gets or sets the time step multiplier used for pre-warm
21097
+ */
21098
+ preWarmStepOffset: number;
21099
+ /**
21100
+ * Gets or sets a boolean indicating if the system is billboard based
21101
+ */
21102
+ isBillboardBased: boolean;
21103
+ /**
21104
+ * Gets or sets a boolean indicating if the system coordinate space is local or global
21105
+ */
21106
+ isLocal: boolean;
21107
+ /**
21108
+ * Gets or sets a boolean indicating if the system should be disposed when stopped
21109
+ */
21110
+ disposeOnStop: boolean;
21040
21111
  /**
21041
21112
  * Gets or sets a boolean indicating if the system should not start automatically
21042
21113
  */
@@ -21069,6 +21140,14 @@ declare class SystemBlock extends NodeParticleBlock {
21069
21140
  * Gets the onEnd input component
21070
21141
  */
21071
21142
  get onEnd(): NodeParticleConnectionPoint;
21143
+ /**
21144
+ * Gets the translationPivot input component
21145
+ */
21146
+ get translationPivot(): NodeParticleConnectionPoint;
21147
+ /**
21148
+ * Gets the gravity input component
21149
+ */
21150
+ get gravity(): NodeParticleConnectionPoint;
21072
21151
  /**
21073
21152
  * Gets the system output component
21074
21153
  */
@@ -33459,6 +33538,8 @@ interface IRaycastQuery {
33459
33538
  collideWith?: number;
33460
33539
  /** Should trigger collisions be considered in the query? */
33461
33540
  shouldHitTriggers?: boolean;
33541
+ /** Ignores the body passed if it is in the query */
33542
+ ignoreBody?: PhysicsBody;
33462
33543
  }
33463
33544
  /**
33464
33545
  * Holds the data for the raycast result
@@ -39454,41 +39535,44 @@ declare module "../scene" {
39454
39535
  /**
39455
39536
  * The main sound track played by the scene.
39456
39537
  * It contains your primary collection of sounds.
39538
+ * @deprecated please use AudioEngineV2 instead
39457
39539
  */
39458
39540
  mainSoundTrack: SoundTrack;
39459
39541
  /**
39460
39542
  * The list of sound tracks added to the scene
39461
- * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic
39543
+ * @deprecated please use AudioEngineV2 instead
39462
39544
  */
39463
39545
  soundTracks: Nullable<Array<SoundTrack>>;
39464
39546
  /**
39465
39547
  * Gets a sound using a given name
39466
39548
  * @param name defines the name to search for
39467
39549
  * @returns the found sound or null if not found at all.
39550
+ * @deprecated please use AudioEngineV2 instead
39468
39551
  */
39469
39552
  getSoundByName(name: string): Nullable<Sound>;
39470
39553
  /**
39471
39554
  * Gets or sets if audio support is enabled
39472
- * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic
39555
+ * @deprecated please use AudioEngineV2 instead
39473
39556
  */
39474
39557
  audioEnabled: boolean;
39475
39558
  /**
39476
39559
  * Gets or sets if audio will be output to headphones
39477
- * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic
39560
+ * @deprecated please use AudioEngineV2 instead
39478
39561
  */
39479
39562
  headphone: boolean;
39480
39563
  /**
39481
39564
  * Gets or sets custom audio listener position provider
39482
- * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic
39565
+ * @deprecated please use AudioEngineV2 instead
39483
39566
  */
39484
39567
  audioListenerPositionProvider: Nullable<() => Vector3>;
39485
39568
  /**
39486
39569
  * Gets or sets custom audio listener rotation provider
39487
- * @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic
39570
+ * @deprecated please use AudioEngineV2 instead
39488
39571
  */
39489
39572
  audioListenerRotationProvider: Nullable<() => Vector3>;
39490
39573
  /**
39491
39574
  * Gets or sets a refresh rate when using 3D audio positioning
39575
+ * @deprecated please use AudioEngineV2 instead
39492
39576
  */
39493
39577
  audioPositioningRefreshRate: number;
39494
39578
  }
@@ -48689,8 +48773,9 @@ declare abstract class FrameGraphTask {
48689
48773
  dependencies?: Set<FrameGraphTextureHandle>;
48690
48774
  /**
48691
48775
  * Records the task in the frame graph. Use this function to add content (render passes, ...) to the task.
48776
+ * @param skipCreationOfDisabledPasses If true, the disabled passe(s) won't be created.
48692
48777
  */
48693
- abstract record(): void;
48778
+ abstract record(skipCreationOfDisabledPasses?: boolean): void;
48694
48779
  /**
48695
48780
  * An observable that is triggered after the textures have been allocated.
48696
48781
  */
@@ -48717,7 +48802,7 @@ declare abstract class FrameGraphTask {
48717
48802
  /** @internal */
48718
48803
  _checkTask(): void;
48719
48804
  /** @internal */
48720
- _getPasses(): IFrameGraphPass[];
48805
+ _execute(): void;
48721
48806
  private _checkSameRenderTarget;
48722
48807
  }
48723
48808
 
@@ -48761,17 +48846,27 @@ declare class NodeRenderGraphOutputBlock extends NodeRenderGraphBlock {
48761
48846
  }
48762
48847
 
48763
48848
  /**
48764
- * @internal
48849
+ * Base class for a frame graph pass.
48765
48850
  */
48766
48851
  declare class FrameGraphPass<T extends FrameGraphContext> implements IFrameGraphPass {
48767
48852
  name: string;
48768
48853
  protected readonly _parentTask: FrameGraphTask;
48769
48854
  protected readonly _context: T;
48770
48855
  private _executeFunc;
48856
+ /**
48857
+ * Whether the pass is disabled. Disabled passes will be skipped during execution.
48858
+ */
48771
48859
  disabled: boolean;
48860
+ /** @internal */
48772
48861
  constructor(name: string, _parentTask: FrameGraphTask, _context: T);
48862
+ /**
48863
+ * Executes the pass.
48864
+ * @param func The function to execute for the pass.
48865
+ */
48773
48866
  setExecuteFunc(func: (context: T) => void): void;
48867
+ /** @internal */
48774
48868
  _execute(): void;
48869
+ /** @internal */
48775
48870
  _isValid(): Nullable<string>;
48776
48871
  }
48777
48872
 
@@ -49289,7 +49384,7 @@ declare class FrameGraph implements IDisposable {
49289
49384
  * Returns a promise that resolves when the frame graph is ready to be executed
49290
49385
  * This method must be called after the graph has been built (FrameGraph.build called)!
49291
49386
  * @param timeStep Time step in ms between retries (default is 16)
49292
- * @param maxTimeout Maximum time in ms to wait for the graph to be ready (default is 30000)
49387
+ * @param maxTimeout Maximum time in ms to wait for the graph to be ready (default is 5000)
49293
49388
  * @returns The promise that resolves when the graph is ready
49294
49389
  */
49295
49390
  whenReadyAsync(timeStep?: number, maxTimeout?: number): Promise<void>;
@@ -49516,7 +49611,7 @@ declare class NodeRenderGraph {
49516
49611
  * Returns a promise that resolves when the node render graph is ready to be executed
49517
49612
  * This method must be called after the graph has been built (NodeRenderGraph.build called)!
49518
49613
  * @param timeStep Time step in ms between retries (default is 16)
49519
- * @param maxTimeout Maximum time in ms to wait for the graph to be ready (default is 30000)
49614
+ * @param maxTimeout Maximum time in ms to wait for the graph to be ready (default is 5000)
49520
49615
  * @returns The promise that resolves when the graph is ready
49521
49616
  */
49522
49617
  whenReadyAsync(timeStep?: number, maxTimeout?: number): Promise<void>;
@@ -61047,6 +61142,10 @@ declare class Camera extends Node {
61047
61142
  * Defines if stereoscopic rendering is done side by side or over under.
61048
61143
  */
61049
61144
  isStereoscopicSideBySide: boolean;
61145
+ /**
61146
+ * Ignores camera maxZ when computing the projection matrix (ie. use 0 instead of maxZ), meaning objects won't be culled by the far plane
61147
+ */
61148
+ ignoreCameraMaxZ: boolean;
61050
61149
  /**
61051
61150
  * Defines the list of custom render target which are rendered to and then used as the input to this camera's render. Eg. display another camera view on a TV in the main scene
61052
61151
  * This is pretty helpful if you wish to make a camera render to a texture you could reuse somewhere
@@ -66955,6 +67054,7 @@ declare class Scene implements IAnimatable, IClipPlanesHolder, IAssetContainer {
66955
67054
  */
66956
67055
  autoClearDepthAndStencil: boolean;
66957
67056
  private _clearColor;
67057
+ private _tempVect3;
66958
67058
  private _tempVect4;
66959
67059
  /**
66960
67060
  * Observable triggered when the performance priority is changed
@@ -67167,6 +67267,7 @@ declare class Scene implements IAnimatable, IClipPlanesHolder, IAssetContainer {
67167
67267
  effectLayers: Array<EffectLayer>;
67168
67268
  /**
67169
67269
  * The list of sounds used in the scene.
67270
+ * @deprecated please use AudioEngineV2 instead
67170
67271
  */
67171
67272
  sounds: Nullable<Array<Sound>>;
67172
67273
  /**
@@ -67609,6 +67710,10 @@ declare class Scene implements IAnimatable, IClipPlanesHolder, IAssetContainer {
67609
67710
  /** If you need to check double click without raising a single click at first click, enable this flag */
67610
67711
  static get ExclusiveDoubleClickMode(): boolean;
67611
67712
  static set ExclusiveDoubleClickMode(value: boolean);
67713
+ /**
67714
+ * Gets the current eye position, in order of forcedViewPosition, mirroredCameraPosition, activeCamera world position, ZeroReadonlyVector3
67715
+ */
67716
+ private get _eyePosition();
67612
67717
  /**
67613
67718
  * Bind the current view position to an effect.
67614
67719
  * @param effect The effect to be bound
@@ -68388,10 +68493,9 @@ declare class Scene implements IAnimatable, IClipPlanesHolder, IAssetContainer {
68388
68493
  * This mode avoids floating point imprecision in huge coordinate system by offsetting uniform values before passing to shader, centering camera at origin and displacing rest of scene by camera position
68389
68494
  */
68390
68495
  get floatingOriginMode(): boolean;
68391
- private _floatingOriginOffsetDefault;
68392
68496
  /**
68393
68497
  * @experimental
68394
- * When floatingOriginMode is enabled, offset is equal to the active camera position in world space. If no active camera or floatingOriginMode is disabled, offset is 0.
68498
+ * When floatingOriginMode is enabled, offset is equal to the eye position. Default to ZeroReadonly when mode is disabled.
68395
68499
  */
68396
68500
  get floatingOriginOffset(): Vector3;
68397
68501
  /**
@@ -71793,4 +71897,4 @@ declare const Vector3PropertyLine: FunctionComponent<TensorPropertyLineProps<Vec
71793
71897
  declare const Vector4PropertyLine: FunctionComponent<TensorPropertyLineProps<Vector4>>;
71794
71898
 
71795
71899
  export { Accordion, AccordionSection, BooleanBadgePropertyLine, BoundProperty, BuiltInsExtensionFeed, Button, ButtonLine, Checkbox, CheckboxPropertyLine, Collapse, Color3GradientComponent, Color3GradientList, Color3PropertyLine, Color4GradientComponent, Color4GradientList, Color4PropertyLine, ColorPickerPopup, ColorStepGradientComponent, ComboBox, ConstructorFactory, DebugServiceIdentity, DraggableLine, Dropdown, ExtensibleAccordion, FactorGradientComponent, FactorGradientList, FileUploadLine, GetPropertyDescriptor, HexPropertyLine, HideInspector, InfoLabel, InputHexField, InputHsvField, Inspector, InterceptFunction, InterceptProperty, IsInspectorVisible, IsPropertyReadonly, LineContainer, Link, LinkPropertyLine, LinkToEntityPropertyLine, List, MakeDialogTeachingMoment, MakeLazyComponent, MakePopoverTeachingMoment, MakePropertyHook, MakeTeachingMoment, MessageBar, NumberDropdown, NumberDropdownPropertyLine, NumberInputPropertyLine, ObservableCollection, Pane, PlaceholderPropertyLine, PositionedPopover, PropertiesServiceIdentity, 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, ToggleButton, ToolsServiceIdentity, Vector2PropertyLine, Vector3PropertyLine, Vector4PropertyLine, useAngleConverters, useAsyncResource, useColor3Property, useColor4Property, useCompactMode, useEventfulState, useInterceptObservable, useObservableCollection, useObservableState, useOrderedObservableCollection, usePollingObservable, useProperty, useQuaternionProperty, useResource, useSidePaneDockOverrides, useVector3Property };
71796
- export type { AcceptedDropdownValue, AccordionSectionProps, BasePrimitiveProps, BoundPropertyProps, BuiltInExtension, ButtonProps, CentralContentDefinition, ColorPickerProps, ColorPropertyLineProps, ComboBoxProps, DraggableLineProps, DropdownOption, DropdownProps, DynamicAccordionSection, DynamicAccordionSectionContent, EntityBase, EntityDisplayInfo, ExtensionMetadata, ExtensionModule, FunctionHooks, IDebugService, IExtensionFeed, IExtensionMetadataQuery, IPropertiesService, ISceneContext, ISceneExplorerService, ISelectionService, IService, ISettingsContext, ISettingsService, IShellService, IStatsService, IToolsService, ImmutablePrimitiveProps, InfoLabelParentProps, InfoLabelProps, InputHexProps, LinkProps, ListItem, NumberInputPropertyLineProps, PaneProps, PrimitiveProps, PropertyHooks, PropertyLineProps, SceneExplorerCommand, SceneExplorerCommandProvider, SceneExplorerSection, ServiceDefinition, ServiceFactory, SidePaneDefinition, SpinButtonProps, SwitchProps, SyncedSliderProps, TensorPropertyLineProps, TextInputProps, TextareaProps, ToolbarItemDefinition };
71900
+ export type { AcceptedDropdownValue, AccordionSectionProps, BasePrimitiveProps, BoundPropertyProps, BuiltInExtension, ButtonProps, CentralContentDefinition, ColorPickerProps, ColorPropertyLineProps, ComboBoxProps, DraggableLineProps, DropdownOption, DropdownProps, DynamicAccordionSection, DynamicAccordionSectionContent, EntityBase, EntityDisplayInfo, ExtensionMetadata, ExtensionModule, FunctionHooks, IDebugService, IExtensionFeed, IExtensionMetadataQuery, IPropertiesService, ISceneContext, ISceneExplorerService, ISelectionService, IService, ISettingsContext, ISettingsService, IShellService, IStatsService, IToolsService, ImmutablePrimitiveProps, InfoLabelParentProps, InfoLabelProps, InputHexProps, LinkProps, ListItem, NumberInputPropertyLineProps, PaneProps, PersonMetadata, PrimitiveProps, PropertyHooks, PropertyLineProps, SceneExplorerCommand, SceneExplorerCommandProvider, SceneExplorerSection, ServiceDefinition, ServiceFactory, SidePaneDefinition, SpinButtonProps, SwitchProps, SyncedSliderProps, TensorPropertyLineProps, TextInputProps, TextareaProps, ToolbarItemDefinition };