babylonjs-editor 4.4.0 → 4.5.0
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/index.d.ts +125 -105
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
// ../../@blueprintjs/select
|
|
10
10
|
// renderer/editor/graph/node.d.ts
|
|
11
11
|
// ../../xterm
|
|
12
|
-
// ../../rc-tree/lib/interface
|
|
13
12
|
// ../../node-pty
|
|
14
13
|
|
|
15
14
|
declare module 'babylonjs-editor' {
|
|
@@ -243,11 +242,12 @@ declare module 'babylonjs-editor/renderer/editor/editor' {
|
|
|
243
242
|
import { IStringDictionary, Nullable, Undefinable } from "babylonjs-editor/shared/types";
|
|
244
243
|
import { Toaster, Intent, IconName, MaybeElement } from "@blueprintjs/core";
|
|
245
244
|
import { Layout, Rect } from "flexlayout-react";
|
|
246
|
-
import { Engine, Scene, Observable, ISize, Node, BaseTexture, Material, SubMesh, IParticleSystem, Sound, KeyboardInfo, Skeleton } from "babylonjs";
|
|
245
|
+
import { Engine, Scene, Observable, ISize, Node, BaseTexture, Material, SubMesh, IParticleSystem, Sound, KeyboardInfo, Skeleton, ReflectionProbe } from "babylonjs";
|
|
247
246
|
import { IObjectModified, IEditorPreferences, EditorPlayMode } from "babylonjs-editor/renderer/editor/tools/types";
|
|
248
247
|
import { AbstractEditorPlugin } from "babylonjs-editor/renderer/editor/tools/plugin";
|
|
249
248
|
import { SceneUtils } from "babylonjs-editor/renderer/editor/scene/utils";
|
|
250
249
|
import { IPlugin } from "babylonjs-editor/renderer/editor/plugins/plugin";
|
|
250
|
+
import "./scene/register";
|
|
251
251
|
import "./painting/material-mixer/material";
|
|
252
252
|
import { Inspector } from "babylonjs-editor/renderer/editor/components/inspector";
|
|
253
253
|
import { Graph } from "babylonjs-editor/renderer/editor/components/graph";
|
|
@@ -276,19 +276,23 @@ declare module 'babylonjs-editor/renderer/editor/editor' {
|
|
|
276
276
|
import "./components/inspectors/cameras/camera-inspector";
|
|
277
277
|
import "./components/inspectors/cameras/free-camera-inspector";
|
|
278
278
|
import "./components/inspectors/cameras/arc-rotate-camera-inspector";
|
|
279
|
+
import "./components/inspectors/cameras/target-camera-inspector";
|
|
279
280
|
import "./components/inspectors/materials/standard-inspector";
|
|
280
281
|
import "./components/inspectors/materials/pbr-inspector";
|
|
282
|
+
import "./components/inspectors/materials/pbr-metallic-rougness-inspector";
|
|
281
283
|
import "./components/inspectors/materials/sky-inspector";
|
|
282
284
|
import "./components/inspectors/materials/node-inspector";
|
|
283
285
|
import "./components/inspectors/materials/cell-inspector";
|
|
284
286
|
import "./components/inspectors/materials/fire-inspector";
|
|
285
287
|
import "./components/inspectors/materials/lava-inspector";
|
|
286
288
|
import "./components/inspectors/materials/water-inspector";
|
|
289
|
+
import "./components/inspectors/materials/gradient-inspector";
|
|
287
290
|
import "./components/inspectors/materials/tri-planar-inspector";
|
|
288
291
|
import "./components/inspectors/textures/texture-inspector";
|
|
289
292
|
import "./components/inspectors/particle-systems/particle-system-inspector";
|
|
290
293
|
import "./components/inspectors/particle-systems/particle-system-gradients-inspector";
|
|
291
294
|
import "./components/inspectors/sound/sound-inspector";
|
|
295
|
+
import "./components/inspectors/textures/reflection-probe-inspector";
|
|
292
296
|
export interface ILayoutTabNodeConfiguration {
|
|
293
297
|
/**
|
|
294
298
|
* Defines the name of the layout tab node.
|
|
@@ -388,6 +392,10 @@ declare module 'babylonjs-editor/renderer/editor/editor' {
|
|
|
388
392
|
* Notifies observers that a particle system has been selected in the editor (preview or graph).
|
|
389
393
|
*/
|
|
390
394
|
selectedParticleSystemObservable: Observable<IParticleSystem>;
|
|
395
|
+
/**
|
|
396
|
+
* Notifies observers that a reflection probe has been selected in the editor (preview or graph).
|
|
397
|
+
*/
|
|
398
|
+
selectedReflectionProbeObservable: Observable<ReflectionProbe>;
|
|
391
399
|
/**
|
|
392
400
|
* Notifies observers that a texture has been selected in the editor (assets).
|
|
393
401
|
*/
|
|
@@ -815,6 +823,12 @@ declare module 'babylonjs-editor/renderer/editor/tools/fs' {
|
|
|
815
823
|
* @param directoryPath defines the absolute path to the directory to remove.
|
|
816
824
|
*/
|
|
817
825
|
static RemoveDirectory(directoryPath: string): Promise<void>;
|
|
826
|
+
/**
|
|
827
|
+
* Waits until the given file (absolute path) exists.
|
|
828
|
+
* @param filePath defines the absolute path to the file to test until it exists.
|
|
829
|
+
* @param timeout defines the optional timeout to resolve the promise @default 10000
|
|
830
|
+
*/
|
|
831
|
+
static WaitUntilFileExists(filePath: string, timeout?: number): Promise<void>;
|
|
818
832
|
}
|
|
819
833
|
}
|
|
820
834
|
|
|
@@ -1282,6 +1296,10 @@ declare module 'babylonjs-editor/renderer/editor/components/assets-browser/files
|
|
|
1282
1296
|
* Computes the image to render as a preview.
|
|
1283
1297
|
*/
|
|
1284
1298
|
abstract computePreview(): React.ReactNode | Promise<React.ReactNode>;
|
|
1299
|
+
/**
|
|
1300
|
+
* Refreshes the preview thumbnail of the asset.
|
|
1301
|
+
*/
|
|
1302
|
+
_handleRefreshPreview(): Promise<void>;
|
|
1285
1303
|
/**
|
|
1286
1304
|
* Called on the user clicks on the asset.
|
|
1287
1305
|
* @param ev defines the reference to the event object.
|
|
@@ -1592,6 +1610,11 @@ declare module 'babylonjs-editor/renderer/editor/components/inspector' {
|
|
|
1592
1610
|
* @param callback defines the callback called on the update is done.
|
|
1593
1611
|
*/
|
|
1594
1612
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
1613
|
+
/**
|
|
1614
|
+
* Catches exceptions generated in descendant components.
|
|
1615
|
+
* Unhandled exceptions will cause the entire component tree to unmount.
|
|
1616
|
+
*/
|
|
1617
|
+
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
1595
1618
|
/**
|
|
1596
1619
|
* Sets the selected object in the scene or graph to be edited.
|
|
1597
1620
|
* @param object the selected object reference used by the inspector to be modified.
|
|
@@ -1611,7 +1634,7 @@ declare module 'babylonjs-editor/renderer/editor/components/inspector' {
|
|
|
1611
1634
|
declare module 'babylonjs-editor/renderer/editor/components/inspectors/abstract-inspector' {
|
|
1612
1635
|
import { Nullable } from "babylonjs-editor/shared/types";
|
|
1613
1636
|
import * as React from "react";
|
|
1614
|
-
import { Texture, Material, ISize } from "babylonjs";
|
|
1637
|
+
import { Texture, Material, ISize, BaseTexture } from "babylonjs";
|
|
1615
1638
|
import { IObjectInspectorProps } from "babylonjs-editor/renderer/editor/components/inspector";
|
|
1616
1639
|
import { IInspectorListItem } from "babylonjs-editor/renderer/editor/gui/inspector/fields/list";
|
|
1617
1640
|
import { IInspectorNotifierUndoRedo } from "babylonjs-editor/renderer/editor/gui/inspector/utils";
|
|
@@ -1675,11 +1698,15 @@ declare module 'babylonjs-editor/renderer/editor/components/inspectors/abstract-
|
|
|
1675
1698
|
/**
|
|
1676
1699
|
* Returns the list of available textures in the assets to be drawn.
|
|
1677
1700
|
*/
|
|
1678
|
-
getTexturesList(): IInspectorListItem<Nullable<Texture>>[];
|
|
1701
|
+
getTexturesList(predicate?: (t: BaseTexture) => unknown): IInspectorListItem<Nullable<Texture>>[];
|
|
1679
1702
|
/**
|
|
1680
1703
|
* Returns the list of available materials in the assets to be drawn.
|
|
1681
1704
|
*/
|
|
1682
1705
|
getMaterialsList(): IInspectorListItem<Nullable<Material>>[];
|
|
1706
|
+
/**
|
|
1707
|
+
* Gets all nodes in the current scene, or returns an empty array if no scene.
|
|
1708
|
+
*/
|
|
1709
|
+
getSceneNodes(allowedType?: "TransformNode" | "Mesh" | "Light" | "Camera" | "AbstractMesh"): IInspectorListItem<string>[];
|
|
1683
1710
|
}
|
|
1684
1711
|
}
|
|
1685
1712
|
|
|
@@ -2932,6 +2959,15 @@ declare module 'babylonjs-editor/renderer/editor/project/typings' {
|
|
|
2932
2959
|
*/
|
|
2933
2960
|
url: string;
|
|
2934
2961
|
};
|
|
2962
|
+
/**
|
|
2963
|
+
* Defines the options of the Basis compression tool.
|
|
2964
|
+
*/
|
|
2965
|
+
basisCompressedTextures?: {
|
|
2966
|
+
/**
|
|
2967
|
+
* Defines wether or not Basis compressed texture is enabled using KTX Software.
|
|
2968
|
+
*/
|
|
2969
|
+
enabled?: boolean;
|
|
2970
|
+
};
|
|
2935
2971
|
/**
|
|
2936
2972
|
* Defines the options of the KTX2 compression tool.
|
|
2937
2973
|
*/
|
|
@@ -2941,9 +2977,16 @@ declare module 'babylonjs-editor/renderer/editor/project/typings' {
|
|
|
2941
2977
|
*/
|
|
2942
2978
|
enabled?: boolean;
|
|
2943
2979
|
/**
|
|
2944
|
-
* Defines the path to the PVRTexToolCLI program executed to
|
|
2980
|
+
* Defines the path to the PVRTexToolCLI program executed to generate all compressed textures files.
|
|
2945
2981
|
*/
|
|
2946
|
-
pvrTexToolCliPath?: string
|
|
2982
|
+
pvrTexToolCliPath?: string | Record<string, string>;
|
|
2983
|
+
/**
|
|
2984
|
+
* Defines the path to the NVidia Texture Tools program executed to generate DXT and ASTC files.
|
|
2985
|
+
*/
|
|
2986
|
+
nvidiaTextureTools?: {
|
|
2987
|
+
enabled?: boolean;
|
|
2988
|
+
cliPath?: string;
|
|
2989
|
+
};
|
|
2947
2990
|
/**
|
|
2948
2991
|
* Defines wether or not the Editor automatically generates compressed textures
|
|
2949
2992
|
* to be used in the Editor's preview scene.
|
|
@@ -2966,6 +3009,10 @@ declare module 'babylonjs-editor/renderer/editor/project/typings' {
|
|
|
2966
3009
|
* Defines the options of the PVRTC format.
|
|
2967
3010
|
*/
|
|
2968
3011
|
pvrtcOptions?: {
|
|
3012
|
+
/**
|
|
3013
|
+
* Defines wether or not PVRTC is enabled.
|
|
3014
|
+
*/
|
|
3015
|
+
enabled?: boolean;
|
|
2969
3016
|
/**
|
|
2970
3017
|
* Defines the quality of the PVRTC generated textures.
|
|
2971
3018
|
*/
|
|
@@ -3087,6 +3134,10 @@ declare module 'babylonjs-editor/renderer/editor/project/typings' {
|
|
|
3087
3134
|
* Defines the list of all scene's morph target managers.
|
|
3088
3135
|
*/
|
|
3089
3136
|
morphTargetManagers?: string[];
|
|
3137
|
+
/**
|
|
3138
|
+
* Defines the list of all reflection probes.
|
|
3139
|
+
*/
|
|
3140
|
+
reflectionProbes?: string[];
|
|
3090
3141
|
/**
|
|
3091
3142
|
* Saves the scene's settings.
|
|
3092
3143
|
*/
|
|
@@ -4370,66 +4421,40 @@ declare module 'babylonjs-editor/renderer/editor/scene/utils' {
|
|
|
4370
4421
|
|
|
4371
4422
|
declare module 'babylonjs-editor/renderer/editor/components/graph' {
|
|
4372
4423
|
import * as React from "react";
|
|
4373
|
-
import {
|
|
4374
|
-
import { Nullable, Undefinable } from "babylonjs-editor/shared/types";
|
|
4375
|
-
import { Node, Scene, IParticleSystem, Sound } from "babylonjs";
|
|
4424
|
+
import { TreeNodeInfo } from "@blueprintjs/core";
|
|
4376
4425
|
import { Editor } from "babylonjs-editor/renderer/editor/editor";
|
|
4426
|
+
export interface _IDragAndDroppedItem {
|
|
4427
|
+
nodeId: string;
|
|
4428
|
+
onDropInInspector: (ev: React.DragEvent<HTMLElement>, object: any, property: string) => Promise<void>;
|
|
4429
|
+
}
|
|
4377
4430
|
export interface IGraphProps {
|
|
4378
4431
|
/**
|
|
4379
|
-
* Defines the editor
|
|
4432
|
+
* Defines the reference to the editor.
|
|
4380
4433
|
*/
|
|
4381
4434
|
editor: Editor;
|
|
4382
|
-
/**
|
|
4383
|
-
* Defines the reference to the scene to traverse.
|
|
4384
|
-
*/
|
|
4385
|
-
scene?: Undefinable<Scene>;
|
|
4386
4435
|
}
|
|
4387
4436
|
export interface IGraphState {
|
|
4388
4437
|
/**
|
|
4389
|
-
* Defines the
|
|
4390
|
-
*/
|
|
4391
|
-
nodes: DataNode[];
|
|
4392
|
-
/**
|
|
4393
|
-
* Defines the list of all expanded nodes.
|
|
4394
|
-
*/
|
|
4395
|
-
expandedNodeIds?: Undefinable<string[]>;
|
|
4396
|
-
/**
|
|
4397
|
-
* Defines the list of all selected nodes.
|
|
4398
|
-
*/
|
|
4399
|
-
selectedNodeIds?: Undefinable<string[]>;
|
|
4400
|
-
/**
|
|
4401
|
-
* Defines the current filter to search nodes.
|
|
4438
|
+
* Defines the current string of the filter box.
|
|
4402
4439
|
*/
|
|
4403
4440
|
filter: string;
|
|
4404
4441
|
/**
|
|
4405
|
-
* Defines the
|
|
4406
|
-
*/
|
|
4407
|
-
width?: number;
|
|
4408
|
-
/**
|
|
4409
|
-
* Defines wether or not the graphs options should be drawn.
|
|
4410
|
-
*/
|
|
4411
|
-
showOptions: boolean;
|
|
4412
|
-
/**
|
|
4413
|
-
* Defines wether or not the instances should be shown in the graph.
|
|
4442
|
+
* Defines the list of all nodes drawn in the graph.
|
|
4414
4443
|
*/
|
|
4415
|
-
|
|
4444
|
+
nodes: TreeNodeInfo<any>[];
|
|
4416
4445
|
/**
|
|
4417
|
-
* Defines
|
|
4446
|
+
* Defines the list of all selected nodes in the graph.
|
|
4418
4447
|
*/
|
|
4419
|
-
|
|
4420
|
-
}
|
|
4421
|
-
export interface _IDragAndDroppedItem {
|
|
4422
|
-
nodeId: string;
|
|
4423
|
-
onDropInInspector: (ev: React.DragEvent<HTMLElement>, object: any, property: string) => Promise<void>;
|
|
4448
|
+
selectedNodes: TreeNodeInfo<any>[];
|
|
4424
4449
|
}
|
|
4425
4450
|
export class Graph extends React.Component<IGraphProps, IGraphState> {
|
|
4426
4451
|
/**
|
|
4427
|
-
* Defines the
|
|
4452
|
+
* Defines the reference to the last selected object.
|
|
4428
4453
|
*/
|
|
4429
|
-
lastSelectedObject:
|
|
4454
|
+
lastSelectedObject: any;
|
|
4430
4455
|
/**
|
|
4431
4456
|
* Constructor.
|
|
4432
|
-
* @param props the component's props.
|
|
4457
|
+
* @param props defines the component's props.
|
|
4433
4458
|
*/
|
|
4434
4459
|
constructor(props: IGraphProps);
|
|
4435
4460
|
/**
|
|
@@ -4437,68 +4462,33 @@ declare module 'babylonjs-editor/renderer/editor/components/graph' {
|
|
|
4437
4462
|
*/
|
|
4438
4463
|
render(): React.ReactNode;
|
|
4439
4464
|
/**
|
|
4440
|
-
*
|
|
4441
|
-
|
|
4442
|
-
resize(): void;
|
|
4443
|
-
/**
|
|
4444
|
-
* Refreshes the graph.
|
|
4445
|
-
* @param done called on the refresh process finished.
|
|
4446
|
-
*/
|
|
4447
|
-
refresh(done?: Undefinable<() => void>): void;
|
|
4448
|
-
/**
|
|
4449
|
-
* Clears the graph.
|
|
4450
|
-
*/
|
|
4451
|
-
clear(): void;
|
|
4452
|
-
/**
|
|
4453
|
-
* Selecs the given node in the graph.
|
|
4454
|
-
* @param node the node to select in the graph.
|
|
4455
|
-
* @param appendToSelected defines wether or not the selected node should be appended to the currently selected nodes.
|
|
4456
|
-
*/
|
|
4457
|
-
setSelected(node: Node | IParticleSystem | Sound, appendToSelected?: boolean): void;
|
|
4458
|
-
/**
|
|
4459
|
-
* Refreshes the graph and selects the given node. Mainly used by assets.
|
|
4460
|
-
* @param node the node to select in the graph.
|
|
4465
|
+
* Removes the given object from the scene graph.
|
|
4466
|
+
* @param node defines the reference to the object to remove.
|
|
4461
4467
|
*/
|
|
4462
|
-
|
|
4468
|
+
removeObject(node: any): void;
|
|
4463
4469
|
/**
|
|
4464
|
-
*
|
|
4470
|
+
* Resizes the component.
|
|
4465
4471
|
*/
|
|
4466
|
-
|
|
4472
|
+
resize(): void;
|
|
4467
4473
|
/**
|
|
4468
|
-
*
|
|
4469
|
-
* @param node the node to clone.
|
|
4474
|
+
* Called on the user clicks on a node.
|
|
4470
4475
|
*/
|
|
4471
|
-
|
|
4476
|
+
_handleNodeClick(node: TreeNodeInfo<any>, event: React.MouseEvent<HTMLElement, MouseEvent>): void;
|
|
4472
4477
|
/**
|
|
4473
|
-
*
|
|
4474
|
-
* @param
|
|
4478
|
+
* Refreshes the entire graph.
|
|
4479
|
+
* @param done defines the reference to the callback called on the graph has been updated.
|
|
4475
4480
|
*/
|
|
4476
|
-
|
|
4481
|
+
refresh(done?: () => void): void;
|
|
4477
4482
|
/**
|
|
4478
|
-
*
|
|
4479
|
-
* @param node the node to remove.
|
|
4480
|
-
* @hidden
|
|
4483
|
+
* Updates the current graph state without parsing the scene nodes.
|
|
4481
4484
|
*/
|
|
4482
|
-
|
|
4483
|
-
redo: () => void;
|
|
4484
|
-
undo: () => void;
|
|
4485
|
-
};
|
|
4485
|
+
update(): void;
|
|
4486
4486
|
/**
|
|
4487
|
-
*
|
|
4488
|
-
* @
|
|
4487
|
+
* Sets the given object selected in the graph.
|
|
4488
|
+
* @param object defines the reference to the object to set selected in the graph.
|
|
4489
|
+
* @param appendToSelected defines wether or not the object should be added to the currently selected node(s) in the graph.
|
|
4489
4490
|
*/
|
|
4490
|
-
|
|
4491
|
-
/**
|
|
4492
|
-
* Clones all selected nodes.
|
|
4493
|
-
* @hidden
|
|
4494
|
-
*/
|
|
4495
|
-
_handleCloneObject(): void;
|
|
4496
|
-
/**
|
|
4497
|
-
* Returns the node in the stage identified by the given id.
|
|
4498
|
-
* @param id the id of the node to find.
|
|
4499
|
-
* @hidden
|
|
4500
|
-
*/
|
|
4501
|
-
_getNodeById(id: string): Undefinable<Node | IParticleSystem | Sound>;
|
|
4491
|
+
setSelected(object: any, appendToSelected?: boolean): void;
|
|
4502
4492
|
}
|
|
4503
4493
|
}
|
|
4504
4494
|
|
|
@@ -4629,7 +4619,7 @@ declare module 'babylonjs-editor/renderer/editor/components/assets-browser' {
|
|
|
4629
4619
|
declare module 'babylonjs-editor/renderer/editor/components/preview' {
|
|
4630
4620
|
import { Nullable } from "babylonjs-editor/shared/types";
|
|
4631
4621
|
import * as React from "react";
|
|
4632
|
-
import { Node, IParticleSystem, AbstractMesh, Sound, Observable } from "babylonjs";
|
|
4622
|
+
import { Node, IParticleSystem, AbstractMesh, Sound, Observable, ReflectionProbe } from "babylonjs";
|
|
4633
4623
|
import { Editor } from "babylonjs-editor/renderer/editor/editor";
|
|
4634
4624
|
import { ScenePicker } from "babylonjs-editor/renderer/editor/scene/picker";
|
|
4635
4625
|
import { SceneGizmo, GizmoType } from "babylonjs-editor/renderer/editor/scene/gizmo";
|
|
@@ -4793,7 +4783,7 @@ declare module 'babylonjs-editor/renderer/editor/components/preview' {
|
|
|
4793
4783
|
* @param node defines the reference to the node to focus.
|
|
4794
4784
|
* @param mode defines the focus mode (animate target, position, etc.).
|
|
4795
4785
|
*/
|
|
4796
|
-
focusNode(node: Node | IParticleSystem | Sound, mode: PreviewFocusMode): void;
|
|
4786
|
+
focusNode(node: Node | IParticleSystem | Sound | ReflectionProbe, mode: PreviewFocusMode): void;
|
|
4797
4787
|
/**
|
|
4798
4788
|
* Copies the currently selected node.
|
|
4799
4789
|
*/
|
|
@@ -4812,6 +4802,7 @@ declare module 'babylonjs-editor/renderer/editor/components/preview' {
|
|
|
4812
4802
|
declare module 'babylonjs-editor/renderer/editor/components/main-toolbar' {
|
|
4813
4803
|
import { Undefinable } from "babylonjs-editor/shared/types";
|
|
4814
4804
|
import * as React from "react";
|
|
4805
|
+
import { Node } from "babylonjs";
|
|
4815
4806
|
import { Editor } from "babylonjs-editor/renderer/editor/editor";
|
|
4816
4807
|
import { IPluginToolbar } from "babylonjs-editor/renderer/editor/plugins/toolbar";
|
|
4817
4808
|
export interface IToolbarProps {
|
|
@@ -4844,6 +4835,18 @@ declare module 'babylonjs-editor/renderer/editor/components/main-toolbar' {
|
|
|
4844
4835
|
* Renders the component.
|
|
4845
4836
|
*/
|
|
4846
4837
|
render(): React.ReactNode;
|
|
4838
|
+
/**
|
|
4839
|
+
* Returns the list of all items of the "Add" menu.
|
|
4840
|
+
*/
|
|
4841
|
+
getAddMenuItems(parent?: Node): React.ReactNode;
|
|
4842
|
+
/**
|
|
4843
|
+
* Returns the list of all items of the "Add Mesh" menu.
|
|
4844
|
+
*/
|
|
4845
|
+
getAddMeshMenuItem(parent?: Node): React.ReactNode;
|
|
4846
|
+
/**
|
|
4847
|
+
* Called on the component did mount.
|
|
4848
|
+
*/
|
|
4849
|
+
componentDidMount(): void;
|
|
4847
4850
|
}
|
|
4848
4851
|
}
|
|
4849
4852
|
|
|
@@ -5171,7 +5174,7 @@ declare module 'babylonjs-editor/renderer/editor/gui/inspector/utils' {
|
|
|
5171
5174
|
|
|
5172
5175
|
declare module 'babylonjs-editor/renderer/sandbox/main' {
|
|
5173
5176
|
import { Nullable } from "babylonjs-editor/shared/types";
|
|
5174
|
-
import { Vector2, Vector3, Vector4, Color3, Color4 } from "babylonjs";
|
|
5177
|
+
import { Vector2, Vector3, Vector4, Color3, Color4, Quaternion } from "babylonjs";
|
|
5175
5178
|
export interface IExportedInspectorValueOptions {
|
|
5176
5179
|
/**
|
|
5177
5180
|
* Defines the section of the inspector.
|
|
@@ -5189,6 +5192,10 @@ declare module 'babylonjs-editor/renderer/sandbox/main' {
|
|
|
5189
5192
|
* In case of numbers, defines the step applied in the editor.
|
|
5190
5193
|
*/
|
|
5191
5194
|
step?: number;
|
|
5195
|
+
/**
|
|
5196
|
+
* In case of node, restricts the type of node that can be assigned
|
|
5197
|
+
*/
|
|
5198
|
+
allowedNodeType?: "TransformNode" | "Mesh" | "Light" | "Camera";
|
|
5192
5199
|
}
|
|
5193
5200
|
export interface IExportedInspectorValue {
|
|
5194
5201
|
/**
|
|
@@ -5202,11 +5209,11 @@ declare module 'babylonjs-editor/renderer/sandbox/main' {
|
|
|
5202
5209
|
/**
|
|
5203
5210
|
* Defines the default value of the decorated property.
|
|
5204
5211
|
*/
|
|
5205
|
-
defaultValue: number | string | boolean | Vector2 | Vector3 | Vector4 | Color3 | Color4;
|
|
5212
|
+
defaultValue: number | string | boolean | Vector2 | Vector3 | Vector4 | Color3 | Color4 | Quaternion;
|
|
5206
5213
|
/**
|
|
5207
5214
|
* Defines the type of the decorated property.
|
|
5208
5215
|
*/
|
|
5209
|
-
type: "number" | "string" | "boolean" | "KeyMap" | "Vector2" | "Vector3" | "Vector4" | "Color3" | "Color4" | "Texture";
|
|
5216
|
+
type: "number" | "string" | "boolean" | "KeyMap" | "Vector2" | "Vector3" | "Vector4" | "Color3" | "Color4" | "Texture" | "Quaternion" | "Node";
|
|
5210
5217
|
/**
|
|
5211
5218
|
* Defines the optional options available for the exported value.
|
|
5212
5219
|
*/
|
|
@@ -5306,6 +5313,10 @@ declare module 'babylonjs-editor/renderer/editor/tools/ktx' {
|
|
|
5306
5313
|
* Returns the list of all support Ktx formats.
|
|
5307
5314
|
*/
|
|
5308
5315
|
static GetAllKtxFormats(): KTXToolsType[];
|
|
5316
|
+
/**
|
|
5317
|
+
* Returns the path to the CLI according to the current platform.
|
|
5318
|
+
*/
|
|
5319
|
+
static GetCliPath(): Nullable<string>;
|
|
5309
5320
|
/**
|
|
5310
5321
|
* Returns the of the given texture path by applying the ktx extension to it.
|
|
5311
5322
|
* @param texturePath defines the path to the texture to gets its Ktx name.
|
|
@@ -5602,6 +5613,10 @@ declare module 'babylonjs-editor/renderer/editor/components/assets-browser/files
|
|
|
5602
5613
|
* Renders the component.
|
|
5603
5614
|
*/
|
|
5604
5615
|
render(): React.ReactNode;
|
|
5616
|
+
/**
|
|
5617
|
+
* Returns the list of all items drawn in the "Add..." menu.
|
|
5618
|
+
*/
|
|
5619
|
+
getAddMenuItems(): React.ReactNode;
|
|
5605
5620
|
/**
|
|
5606
5621
|
* Sets the new favorite to read and draw its items.
|
|
5607
5622
|
* @param favorite defines the id of the favorite to show in the view.
|
|
@@ -5616,6 +5631,11 @@ declare module 'babylonjs-editor/renderer/editor/components/assets-browser/files
|
|
|
5616
5631
|
* Refreshes the current list of files.
|
|
5617
5632
|
*/
|
|
5618
5633
|
refresh(): Promise<void>;
|
|
5634
|
+
/**
|
|
5635
|
+
* Refreshes the preview thmbnail of the asset located at the given relative path.
|
|
5636
|
+
* @param relativePath defines the relative path to the asset.
|
|
5637
|
+
*/
|
|
5638
|
+
refreshItemPreview(relativePath: string): Promise<void>;
|
|
5619
5639
|
/**
|
|
5620
5640
|
* Calls the given function in all the selected items (if exists).
|
|
5621
5641
|
* @param methodName defines the name of the function to call.
|
|
@@ -5665,7 +5685,7 @@ declare module 'babylonjs-editor/renderer/editor/scene/picker' {
|
|
|
5665
5685
|
}
|
|
5666
5686
|
|
|
5667
5687
|
declare module 'babylonjs-editor/renderer/editor/scene/gizmo' {
|
|
5668
|
-
import { UtilityLayerRenderer, Node, IParticleSystem, Sound } from "babylonjs";
|
|
5688
|
+
import { UtilityLayerRenderer, Node, IParticleSystem, Sound, ReflectionProbe } from "babylonjs";
|
|
5669
5689
|
import { Nullable } from "babylonjs-editor/shared/types";
|
|
5670
5690
|
import { Editor } from "babylonjs-editor/renderer/editor/editor";
|
|
5671
5691
|
export enum GizmoType {
|
|
@@ -5700,7 +5720,7 @@ declare module 'babylonjs-editor/renderer/editor/scene/gizmo' {
|
|
|
5700
5720
|
* Sets the given node attached to the current gizmos if exists.
|
|
5701
5721
|
* @param node the node to attach to current gizmos if exists.
|
|
5702
5722
|
*/
|
|
5703
|
-
setAttachedNode(node: Nullable<Node | IParticleSystem | Sound>): void;
|
|
5723
|
+
setAttachedNode(node: Nullable<Node | IParticleSystem | Sound | ReflectionProbe>): void;
|
|
5704
5724
|
}
|
|
5705
5725
|
}
|
|
5706
5726
|
|
|
@@ -5795,7 +5815,7 @@ declare module 'babylonjs-editor/renderer/editor/components/console/log' {
|
|
|
5795
5815
|
* Sets the new body of the log.
|
|
5796
5816
|
* @param body defines the reference to the custom body.
|
|
5797
5817
|
*/
|
|
5798
|
-
setBody(body: React.ReactNode): void
|
|
5818
|
+
setBody(body: React.ReactNode): Promise<void>;
|
|
5799
5819
|
}
|
|
5800
5820
|
}
|
|
5801
5821
|
|
package/package.json
CHANGED