@babylonjs/inspector 8.37.0-preview → 8.37.1-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
@@ -514,21 +514,38 @@ type SceneExplorerSection<T extends EntityBase> = Readonly<{
514
514
  */
515
515
  getEntityMovedObservables?: () => readonly IReadonlyObservable$2<T>[];
516
516
  }>;
517
- type Command = Partial<IDisposable$1> & Readonly<{
517
+ type InlineCommand = {
518
518
  /**
519
- * The display name of the command (e.g. "Delete", "Rename", etc.).
519
+ * An icon component to render for the command. Required for inline commands.
520
520
  */
521
- displayName: string;
521
+ icon: ComponentType;
522
522
  /**
523
- * An icon component to render for the command.
523
+ * The mode of the command. Inline commands are shown directly in the tree item layout. Inline by default.
524
524
  */
525
- icon: ComponentType;
525
+ mode?: "inline";
526
+ };
527
+ type ContextMenuCommand = {
528
+ /**
529
+ * An icon component to render for the command. Optional for context menu commands.
530
+ */
531
+ icon?: ComponentType;
532
+ /**
533
+ * The mode of the command. Context menu commands are shown in the context menu for the tree item.
534
+ */
535
+ mode: "contextMenu";
536
+ };
537
+ type CommandMode = (InlineCommand | ContextMenuCommand)["mode"];
538
+ type CommandType = (ActionCommand | ToggleCommand)["type"];
539
+ type SceneExplorerCommand<ModeT extends CommandMode = CommandMode, TypeT extends CommandType = CommandType> = Partial<IDisposable$1> & Readonly<{
540
+ /**
541
+ * The display name of the command (e.g. "Delete", "Rename", etc.).
542
+ */
543
+ displayName: string;
526
544
  /**
527
545
  * An observable that notifies when the command state changes.
528
546
  */
529
547
  onChange?: IReadonlyObservable$2<unknown>;
530
- }>;
531
- type SceneExplorerCommand = ActionCommand | ToggleCommand;
548
+ }> & (ModeT extends "inline" ? InlineCommand : ContextMenuCommand) & (TypeT extends "action" ? ActionCommand : ToggleCommand);
532
549
  type SceneExplorerCommandProvider<T extends EntityBase> = Readonly<{
533
550
  /**
534
551
  * An optional order for the section, relative to other commands.
@@ -544,7 +561,7 @@ type SceneExplorerCommandProvider<T extends EntityBase> = Readonly<{
544
561
  */
545
562
  getCommand: (entity: T) => SceneExplorerCommand;
546
563
  }>;
547
- type ActionCommand = Command & {
564
+ type ActionCommand = {
548
565
  readonly type: "action";
549
566
  /**
550
567
  * The function that executes the command.
@@ -552,9 +569,9 @@ type ActionCommand = Command & {
552
569
  execute(): void;
553
570
  };
554
571
  declare const ActionCommand: FunctionComponent<{
555
- command: ActionCommand;
572
+ command: SceneExplorerCommand<"inline", "action">;
556
573
  }>;
557
- type ToggleCommand = Command & {
574
+ type ToggleCommand = {
558
575
  readonly type: "toggle";
559
576
  /**
560
577
  * A boolean indicating if the command is enabled.
@@ -562,7 +579,7 @@ type ToggleCommand = Command & {
562
579
  isEnabled: boolean;
563
580
  };
564
581
  declare const ToggleCommand: FunctionComponent<{
565
- command: ToggleCommand;
582
+ command: SceneExplorerCommand<"inline", "toggle">;
566
583
  }>;
567
584
 
568
585
  type DynamicAccordionSection = Readonly<{
@@ -19267,8 +19284,10 @@ declare class ConeDirectedParticleEmitter extends ConeParticleEmitter {
19267
19284
  * Called by the particle System when the direction is computed for the created particle.
19268
19285
  * @param worldMatrix is the world matrix of the particle system
19269
19286
  * @param directionToUpdate is the direction vector to update with the result
19287
+ * @param particle is the particle we are computed the position for
19288
+ * @param isLocal defines if the direction should be set in local space
19270
19289
  */
19271
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3): void;
19290
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
19272
19291
  /**
19273
19292
  * Clones the current emitter and returns a copy of it
19274
19293
  * @returns the new emitter
@@ -19953,8 +19972,6 @@ declare class ThinParticleSystem extends BaseParticleSystem implements IDisposab
19953
19972
  /** @internal */
19954
19973
  _colorDiff: Color4;
19955
19974
  /** @internal */
19956
- _scaledDirection: Vector3;
19957
- /** @internal */
19958
19975
  _scaledGravity: Vector3;
19959
19976
  private _currentRenderId;
19960
19977
  private _alive;
@@ -20028,8 +20045,6 @@ declare class ThinParticleSystem extends BaseParticleSystem implements IDisposab
20028
20045
  private _noiseCreation;
20029
20046
  private _createQueueStart;
20030
20047
  /** @internal */
20031
- _directionScale: number;
20032
- /** @internal */
20033
20048
  _tempScaledUpdateSpeed: number;
20034
20049
  /** @internal */
20035
20050
  _ratio: number;
@@ -20129,14 +20144,14 @@ declare class ThinParticleSystem extends BaseParticleSystem implements IDisposab
20129
20144
  constructor(name: string, capacity: number, sceneOrEngine: Scene | AbstractEngine, customEffect?: Nullable<Effect>, isAnimationSheetEnabled?: boolean, epsilon?: number, noUpdateQueue?: boolean);
20130
20145
  /** @internal */
20131
20146
  _emitFromParticle: (particle: Particle) => void;
20132
- serialize(serializeTexture: boolean): void;
20147
+ serialize(_serializeTexture: boolean): void;
20133
20148
  /**
20134
20149
  * Clones the particle system.
20135
20150
  * @param name The name of the cloned object
20136
20151
  * @param newEmitter The new emitter to use
20137
- * @param cloneTexture Also clone the textures if true
20152
+ * @param _cloneTexture Also clone the textures if true
20138
20153
  */
20139
- clone(name: string, newEmitter: any, cloneTexture?: boolean): ThinParticleSystem;
20154
+ clone(name: string, newEmitter: any, _cloneTexture?: boolean): ThinParticleSystem;
20140
20155
  private _addFactorGradient;
20141
20156
  private _removeFactorGradient;
20142
20157
  private _syncLifeTimeCreation;
@@ -20654,7 +20669,11 @@ declare enum NodeParticleContextualSources {
20654
20669
  /** Scaled Color Step */
20655
20670
  ScaledColorStep = 23,
20656
20671
  /** Local Position Updated */
20657
- LocalPositionUpdated = 24
20672
+ LocalPositionUpdated = 24,
20673
+ /** Size */
20674
+ Size = 25,
20675
+ /** Direction Scale */
20676
+ DirectionScale = 32
20658
20677
  }
20659
20678
 
20660
20679
  /**
@@ -21104,10 +21123,6 @@ declare class SystemBlock extends NodeParticleBlock {
21104
21123
  * Gets or sets the manual emit count
21105
21124
  */
21106
21125
  manualEmitCount: number;
21107
- /**
21108
- * Gets or sets the target stop duration for the particle system
21109
- */
21110
- targetStopDuration: number;
21111
21126
  /**
21112
21127
  * Gets or sets the target stop duration for the particle system
21113
21128
  */
@@ -21160,14 +21175,6 @@ declare class SystemBlock extends NodeParticleBlock {
21160
21175
  * Gets the texture input component
21161
21176
  */
21162
21177
  get texture(): NodeParticleConnectionPoint;
21163
- /**
21164
- * Gets the onStart input component
21165
- */
21166
- get onStart(): NodeParticleConnectionPoint;
21167
- /**
21168
- * Gets the onEnd input component
21169
- */
21170
- get onEnd(): NodeParticleConnectionPoint;
21171
21178
  /**
21172
21179
  * Gets the translationPivot input component
21173
21180
  */
@@ -21176,6 +21183,18 @@ declare class SystemBlock extends NodeParticleBlock {
21176
21183
  * Gets the textureMask input component
21177
21184
  */
21178
21185
  get textureMask(): NodeParticleConnectionPoint;
21186
+ /**
21187
+ * Gets the targetStopDuration input component
21188
+ */
21189
+ get targetStopDuration(): NodeParticleConnectionPoint;
21190
+ /**
21191
+ * Gets the onStart input component
21192
+ */
21193
+ get onStart(): NodeParticleConnectionPoint;
21194
+ /**
21195
+ * Gets the onEnd input component
21196
+ */
21197
+ get onEnd(): NodeParticleConnectionPoint;
21179
21198
  /**
21180
21199
  * Gets the system output component
21181
21200
  */
@@ -21186,7 +21205,15 @@ declare class SystemBlock extends NodeParticleBlock {
21186
21205
  * @returns the built particle system
21187
21206
  */
21188
21207
  createSystem(state: NodeParticleBuildState): ParticleSystem;
21208
+ /**
21209
+ * Serializes the system block
21210
+ * @returns The serialized object
21211
+ */
21189
21212
  serialize(): any;
21213
+ /**
21214
+ * Deserializes the system block
21215
+ * @param serializationObject The serialized system
21216
+ */
21190
21217
  _deserialize(serializationObject: any): void;
21191
21218
  }
21192
21219
 
@@ -21826,6 +21853,10 @@ declare class Particle {
21826
21853
  /** @internal */
21827
21854
  _currentVelocity2: number;
21828
21855
  /** @internal */
21856
+ _directionScale: number;
21857
+ /** @internal */
21858
+ _scaledDirection: Vector3;
21859
+ /** @internal */
21829
21860
  _currentLimitVelocityGradient: Nullable<FactorGradient>;
21830
21861
  /** @internal */
21831
21862
  _currentLimitVelocity1: number;
@@ -25555,6 +25586,7 @@ declare class ShaderMaterial extends PushMaterial {
25555
25586
  private _shaderPath;
25556
25587
  private _options;
25557
25588
  private _textures;
25589
+ private _internalTextures;
25558
25590
  private _textureArrays;
25559
25591
  private _externalTextures;
25560
25592
  private _floats;
@@ -25646,6 +25678,13 @@ declare class ShaderMaterial extends PushMaterial {
25646
25678
  * @returns the material itself allowing "fluent" like uniform updates
25647
25679
  */
25648
25680
  setTexture(name: string, texture: BaseTexture): ShaderMaterial;
25681
+ /**
25682
+ * Set an internal texture in the shader.
25683
+ * @param name Define the name of the uniform samplers as defined in the shader
25684
+ * @param texture Define the texture to bind to this sampler
25685
+ * @returns the material itself allowing "fluent" like uniform updates
25686
+ */
25687
+ setInternalTexture(name: string, texture: InternalTexture): ShaderMaterial;
25649
25688
  /**
25650
25689
  * Remove a texture from the material.
25651
25690
  * @param name Define the name of the texture to remove
@@ -48928,13 +48967,17 @@ declare class FrameGraphRenderPass extends FrameGraphPass<FrameGraphRenderContex
48928
48967
  */
48929
48968
  static IsRenderPass(pass: IFrameGraphPass): pass is FrameGraphRenderPass;
48930
48969
  /**
48931
- * Gets the render target(s) used by the render pass.
48970
+ * Gets the handle(s) of the render target(s) used by the render pass.
48932
48971
  */
48933
48972
  get renderTarget(): FrameGraphTextureHandle | FrameGraphTextureHandle[] | undefined;
48934
48973
  /**
48935
- * Gets the render target depth used by the render pass.
48974
+ * Gets the handle of the render target depth used by the render pass.
48936
48975
  */
48937
48976
  get renderTargetDepth(): FrameGraphTextureHandle | undefined;
48977
+ /**
48978
+ * Gets the frame graph render target used by the render pass.
48979
+ */
48980
+ get frameGraphRenderTarget(): FrameGraphRenderTarget | undefined;
48938
48981
  /**
48939
48982
  * If true, the depth attachment will be read-only (may allow some optimizations in WebGPU)
48940
48983
  */
@@ -48972,24 +49015,24 @@ declare class FrameGraphRenderPass extends FrameGraphPass<FrameGraphRenderContex
48972
49015
  }
48973
49016
 
48974
49017
  /**
48975
- * Cull pass used to filter objects that are not visible.
49018
+ * Object list pass used to generate a list of objects.
48976
49019
  */
48977
- declare class FrameGraphCullPass extends FrameGraphPass<FrameGraphContext> {
49020
+ declare class FrameGraphObjectListPass extends FrameGraphPass<FrameGraphContext> {
48978
49021
  protected readonly _engine: AbstractEngine;
48979
49022
  protected _objectList: FrameGraphObjectList;
48980
49023
  /**
48981
- * Checks if a pass is a cull pass.
49024
+ * Checks if a pass is an object list pass.
48982
49025
  * @param pass The pass to check.
48983
- * @returns True if the pass is a cull pass, else false.
49026
+ * @returns True if the pass is an object list pass, else false.
48984
49027
  */
48985
- static IsCullPass(pass: IFrameGraphPass): pass is FrameGraphCullPass;
49028
+ static IsObjectListPass(pass: IFrameGraphPass): pass is FrameGraphObjectListPass;
48986
49029
  /**
48987
- * Gets the object list used by the cull pass.
49030
+ * Gets the object list used by the pass.
48988
49031
  */
48989
49032
  get objectList(): FrameGraphObjectList;
48990
49033
  /**
48991
- * Sets the object list to use for culling.
48992
- * @param objectList The object list to use for culling.
49034
+ * Sets the object list to use for the pass.
49035
+ * @param objectList The object list to use for the pass.
48993
49036
  */
48994
49037
  setObjectList(objectList: FrameGraphObjectList): void;
48995
49038
  /** @internal */
@@ -49417,18 +49460,24 @@ declare class FrameGraph implements IDisposable {
49417
49460
  */
49418
49461
  addRenderPass(name: string, whenTaskDisabled?: boolean): FrameGraphRenderPass;
49419
49462
  /**
49420
- * Adds a cull pass to a task. This method can only be called during a Task.record execution.
49463
+ * Adds an object list pass to a task. This method can only be called during a Task.record execution.
49421
49464
  * @param name The name of the pass
49422
49465
  * @param whenTaskDisabled If true, the pass will be added to the list of passes to execute when the task is disabled (default is false)
49423
- * @returns The cull pass created
49466
+ * @returns The object list pass created
49424
49467
  */
49425
- addCullPass(name: string, whenTaskDisabled?: boolean): FrameGraphCullPass;
49468
+ addObjectListPass(name: string, whenTaskDisabled?: boolean): FrameGraphObjectListPass;
49426
49469
  private _addPass;
49427
49470
  /**
49428
49471
  * Builds the frame graph.
49429
49472
  * This method should be called after all tasks have been added to the frame graph (FrameGraph.addTask) and before the graph is executed (FrameGraph.execute).
49430
49473
  */
49431
49474
  build(): void;
49475
+ /**
49476
+ * Checks if the frame graph is ready to be executed.
49477
+ * Note that you can use the whenReadyAsync method to wait for the frame graph to be ready.
49478
+ * @returns True if the frame graph is ready to be executed, else false
49479
+ */
49480
+ isReady(): boolean;
49432
49481
  /**
49433
49482
  * Returns a promise that resolves when the frame graph is ready to be executed
49434
49483
  * This method must be called after the graph has been built (FrameGraph.build called)!
@@ -49972,6 +50021,14 @@ declare class FrameGraphObjectRendererTask extends FrameGraphTask {
49972
50021
  */
49973
50022
  get enableOutlineRendering(): boolean;
49974
50023
  set enableOutlineRendering(value: boolean);
50024
+ /**
50025
+ * If true, targetTexture will be resolved at the end of the render pass, if this/these texture(s) is/are MSAA (default: true)
50026
+ */
50027
+ resolveMSAAColors: boolean;
50028
+ /**
50029
+ * If true, depthTexture will be resolved at the end of the render pass, if this texture is provided and is MSAA (default: false).
50030
+ */
50031
+ resolveMSAADepth: boolean;
49975
50032
  /**
49976
50033
  * The output texture.
49977
50034
  * This texture will point to the same texture than the targetTexture property.
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { a2 as Accordion, a1 as AccordionSection, ax as BooleanBadgePropertyLine, j as BoundProperty, l as BuiltInsExtensionFeed, a3 as Button, B as ButtonLine, a4 as Checkbox, ay as CheckboxPropertyLine, C as Collapse, ae as Color3GradientComponent, au as Color3GradientList, az as Color3PropertyLine, af as Color4GradientComponent, av as Color4GradientList, aA as Color4PropertyLine, a5 as ColorPickerPopup, ag as ColorStepGradientComponent, a8 as ComboBox, X as ConstructorFactory, D as DebugServiceIdentity, a9 as DraggableLine, aa as Dropdown, E as ExtensibleAccordion, ad as FactorGradientComponent, at as FactorGradientList, F as FileUploadLine, R as GetPropertyDescriptor, aB as HexPropertyLine, ah as InfoLabel, a6 as InputHexField, a7 as InputHsvField, I as Inspector, Q as InterceptFunction, V as InterceptProperty, U as IsPropertyReadonly, aG as LineContainer, L as Link, aE as LinkPropertyLine, k as LinkToEntityPropertyLine, ai as List, O as MakeDialogTeachingMoment, M as MakeLazyComponent, c as MakePopoverTeachingMoment, r as MakePropertyHook, K as MakeTeachingMoment, aj as MessageBar, ab as NumberDropdown, N as NumberDropdownPropertyLine, aD as NumberInputPropertyLine, W as ObservableCollection, aw as Pane, aH as PlaceholderPropertyLine, ak as PositionedPopover, P as PropertiesServiceIdentity, aF as PropertyLine, aN as QuaternionPropertyLine, aM as RotationVectorPropertyLine, Y as SceneContextIdentity, f as SceneExplorerServiceIdentity, al as SearchBar, am as SearchBox, _ as SelectionServiceDefinition, Z as SelectionServiceIdentity, $ as SettingsContextIdentity, g as SettingsServiceIdentity, b as ShellServiceIdentity, a0 as ShowInspector, e as SidePaneContainer, an as SpinButton, aI as SpinButtonPropertyLine, h as StatsServiceIdentity, ac as StringDropdown, i as StringDropdownPropertyLine, aJ as StringifiedPropertyLine, ao as Switch, S as SwitchPropertyLine, ap as SyncedSliderInput, a as SyncedSliderPropertyLine, d as TeachingMoment, aK as TextAreaPropertyLine, ar as TextInput, aC as TextInputPropertyLine, aL as TextPropertyLine, aq as Textarea, as as ToggleButton, T as ToolsServiceIdentity, aO as Vector2PropertyLine, aP as Vector3PropertyLine, aQ as Vector4PropertyLine, J as useAngleConverters, A as useAsyncResource, o as useColor3Property, p as useColor4Property, G as useCompactMode, t as useEventfulState, s as useInterceptObservable, w as useObservableCollection, v as useObservableState, x as useOrderedObservableCollection, y as usePollingObservable, m as useProperty, q as useQuaternionProperty, z as useResource, H as useSidePaneDockOverrides, n as useVector3Property } from './index-B-XOu4uI.js';
1
+ export { a2 as Accordion, a1 as AccordionSection, ax as BooleanBadgePropertyLine, j as BoundProperty, l as BuiltInsExtensionFeed, a3 as Button, B as ButtonLine, a4 as Checkbox, ay as CheckboxPropertyLine, C as Collapse, ae as Color3GradientComponent, au as Color3GradientList, az as Color3PropertyLine, af as Color4GradientComponent, av as Color4GradientList, aA as Color4PropertyLine, a5 as ColorPickerPopup, ag as ColorStepGradientComponent, a8 as ComboBox, X as ConstructorFactory, D as DebugServiceIdentity, a9 as DraggableLine, aa as Dropdown, E as ExtensibleAccordion, ad as FactorGradientComponent, at as FactorGradientList, F as FileUploadLine, R as GetPropertyDescriptor, aB as HexPropertyLine, ah as InfoLabel, a6 as InputHexField, a7 as InputHsvField, I as Inspector, Q as InterceptFunction, V as InterceptProperty, U as IsPropertyReadonly, aG as LineContainer, L as Link, aE as LinkPropertyLine, k as LinkToEntityPropertyLine, ai as List, O as MakeDialogTeachingMoment, M as MakeLazyComponent, c as MakePopoverTeachingMoment, r as MakePropertyHook, K as MakeTeachingMoment, aj as MessageBar, ab as NumberDropdown, N as NumberDropdownPropertyLine, aD as NumberInputPropertyLine, W as ObservableCollection, aw as Pane, aH as PlaceholderPropertyLine, ak as PositionedPopover, P as PropertiesServiceIdentity, aF as PropertyLine, aN as QuaternionPropertyLine, aM as RotationVectorPropertyLine, Y as SceneContextIdentity, f as SceneExplorerServiceIdentity, al as SearchBar, am as SearchBox, _ as SelectionServiceDefinition, Z as SelectionServiceIdentity, $ as SettingsContextIdentity, g as SettingsServiceIdentity, b as ShellServiceIdentity, a0 as ShowInspector, e as SidePaneContainer, an as SpinButton, aI as SpinButtonPropertyLine, h as StatsServiceIdentity, ac as StringDropdown, i as StringDropdownPropertyLine, aJ as StringifiedPropertyLine, ao as Switch, S as SwitchPropertyLine, ap as SyncedSliderInput, a as SyncedSliderPropertyLine, d as TeachingMoment, aK as TextAreaPropertyLine, ar as TextInput, aC as TextInputPropertyLine, aL as TextPropertyLine, aq as Textarea, as as ToggleButton, T as ToolsServiceIdentity, aO as Vector2PropertyLine, aP as Vector3PropertyLine, aQ as Vector4PropertyLine, J as useAngleConverters, A as useAsyncResource, o as useColor3Property, p as useColor4Property, G as useCompactMode, t as useEventfulState, s as useInterceptObservable, w as useObservableCollection, v as useObservableState, x as useOrderedObservableCollection, y as usePollingObservable, m as useProperty, q as useQuaternionProperty, z as useResource, H as useSidePaneDockOverrides, n as useVector3Property } from './index-ByzP7-y_.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import '@babylonjs/core/Maths/math.color.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/inspector",
3
- "version": "8.37.0-preview",
3
+ "version": "8.37.1-preview",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",