babylonjs-node-editor 5.0.0 → 5.0.3
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/babylon.nodeEditor.d.ts +192 -190
- package/babylon.nodeEditor.js +1 -1
- package/babylon.nodeEditor.js.map +1 -1
- package/babylon.nodeEditor.max.js +3 -2
- package/babylon.nodeEditor.max.js.map +1 -1
- package/babylon.nodeEditor.module.d.ts +310 -306
- package/package.json +2 -2
package/babylon.nodeEditor.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
declare module BABYLON.NodeEditor {
|
|
3
3
|
export class BlockTools {
|
|
4
|
-
static GetBlockFromString(data: string, scene: Scene, nodeMaterial: NodeMaterial): BABYLON.ElbowBlock | BABYLON.TwirlBlock | BABYLON.VoronoiNoiseBlock | BABYLON.ScreenSpaceBlock | BABYLON.CloudBlock | BABYLON.MatrixBuilderBlock | BABYLON.DesaturateBlock | BABYLON.RefractBlock | BABYLON.ReflectBlock | BABYLON.DerivativeBlock | BABYLON.Rotate2dBlock | BABYLON.NormalBlendBlock | BABYLON.WorleyNoise3DBlock | BABYLON.SimplexPerlin3DBlock | BABYLON.BonesBlock | BABYLON.InstancesBlock | BABYLON.MorphTargetsBlock | BABYLON.DiscardBlock | BABYLON.ImageProcessingBlock | BABYLON.ColorMergerBlock | BABYLON.VectorMergerBlock | BABYLON.ColorSplitterBlock | BABYLON.VectorSplitterBlock | BABYLON.TextureBlock | BABYLON.ReflectionTextureBlock | BABYLON.LightBlock | BABYLON.FogBlock | BABYLON.VertexOutputBlock | BABYLON.FragmentOutputBlock | BABYLON.AddBlock | BABYLON.ClampBlock | BABYLON.ScaleBlock | BABYLON.CrossBlock | BABYLON.DotBlock | BABYLON.PowBlock | BABYLON.MultiplyBlock | BABYLON.TransformBlock | BABYLON.TrigonometryBlock | BABYLON.RemapBlock | BABYLON.NormalizeBlock | BABYLON.FresnelBlock | BABYLON.LerpBlock | BABYLON.NLerpBlock | BABYLON.DivideBlock | BABYLON.SubtractBlock | BABYLON.ModBlock | BABYLON.StepBlock | BABYLON.SmoothStepBlock | BABYLON.OneMinusBlock | BABYLON.ReciprocalBlock | BABYLON.ViewDirectionBlock | BABYLON.LightInformationBlock | BABYLON.MaxBlock | BABYLON.MinBlock | BABYLON.LengthBlock | BABYLON.DistanceBlock | BABYLON.NegateBlock | BABYLON.PerturbNormalBlock | BABYLON.RandomNumberBlock | BABYLON.ReplaceColorBlock | BABYLON.PosterizeBlock | BABYLON.ArcTan2Block | BABYLON.GradientBlock | BABYLON.FrontFacingBlock | BABYLON.WaveBlock | BABYLON.InputBlock | BABYLON.PBRMetallicRoughnessBlock | BABYLON.SheenBlock | BABYLON.AnisotropyBlock | BABYLON.ReflectionBlock | BABYLON.ClearCoatBlock | BABYLON.RefractionBlock | BABYLON.SubSurfaceBlock | BABYLON.CurrentScreenBlock | BABYLON.ParticleTextureBlock | BABYLON.ParticleRampGradientBlock | BABYLON.ParticleBlendMultiplyBlock | BABYLON.FragCoordBlock | BABYLON.ScreenSizeBlock | BABYLON.SceneDepthBlock | BABYLON.ConditionalBlock | BABYLON.ImageSourceBlock | BABYLON.ClipPlanesBlock | null;
|
|
4
|
+
static GetBlockFromString(data: string, scene: BABYLON.Scene, nodeMaterial: BABYLON.NodeMaterial): BABYLON.ElbowBlock | BABYLON.TwirlBlock | BABYLON.VoronoiNoiseBlock | BABYLON.ScreenSpaceBlock | BABYLON.CloudBlock | BABYLON.MatrixBuilderBlock | BABYLON.DesaturateBlock | BABYLON.RefractBlock | BABYLON.ReflectBlock | BABYLON.DerivativeBlock | BABYLON.Rotate2dBlock | BABYLON.NormalBlendBlock | BABYLON.WorleyNoise3DBlock | BABYLON.SimplexPerlin3DBlock | BABYLON.BonesBlock | BABYLON.InstancesBlock | BABYLON.MorphTargetsBlock | BABYLON.DiscardBlock | BABYLON.ImageProcessingBlock | BABYLON.ColorMergerBlock | BABYLON.VectorMergerBlock | BABYLON.ColorSplitterBlock | BABYLON.VectorSplitterBlock | BABYLON.TextureBlock | BABYLON.ReflectionTextureBlock | BABYLON.LightBlock | BABYLON.FogBlock | BABYLON.VertexOutputBlock | BABYLON.FragmentOutputBlock | BABYLON.AddBlock | BABYLON.ClampBlock | BABYLON.ScaleBlock | BABYLON.CrossBlock | BABYLON.DotBlock | BABYLON.PowBlock | BABYLON.MultiplyBlock | BABYLON.TransformBlock | BABYLON.TrigonometryBlock | BABYLON.RemapBlock | BABYLON.NormalizeBlock | BABYLON.FresnelBlock | BABYLON.LerpBlock | BABYLON.NLerpBlock | BABYLON.DivideBlock | BABYLON.SubtractBlock | BABYLON.ModBlock | BABYLON.StepBlock | BABYLON.SmoothStepBlock | BABYLON.OneMinusBlock | BABYLON.ReciprocalBlock | BABYLON.ViewDirectionBlock | BABYLON.LightInformationBlock | BABYLON.MaxBlock | BABYLON.MinBlock | BABYLON.LengthBlock | BABYLON.DistanceBlock | BABYLON.NegateBlock | BABYLON.PerturbNormalBlock | BABYLON.RandomNumberBlock | BABYLON.ReplaceColorBlock | BABYLON.PosterizeBlock | BABYLON.ArcTan2Block | BABYLON.GradientBlock | BABYLON.FrontFacingBlock | BABYLON.WaveBlock | BABYLON.InputBlock | BABYLON.PBRMetallicRoughnessBlock | BABYLON.SheenBlock | BABYLON.AnisotropyBlock | BABYLON.ReflectionBlock | BABYLON.ClearCoatBlock | BABYLON.RefractionBlock | BABYLON.SubSurfaceBlock | BABYLON.CurrentScreenBlock | BABYLON.ParticleTextureBlock | BABYLON.ParticleRampGradientBlock | BABYLON.ParticleBlendMultiplyBlock | BABYLON.FragCoordBlock | BABYLON.ScreenSizeBlock | BABYLON.SceneDepthBlock | BABYLON.ConditionalBlock | BABYLON.ImageSourceBlock | BABYLON.ClipPlanesBlock | null;
|
|
5
5
|
static GetColorFromConnectionNodeType(type: BABYLON.NodeMaterialBlockConnectionPointTypes): string;
|
|
6
6
|
static GetConnectionNodeTypeFromString(type: string): BABYLON.NodeMaterialBlockConnectionPointTypes.Float | BABYLON.NodeMaterialBlockConnectionPointTypes.Vector2 | BABYLON.NodeMaterialBlockConnectionPointTypes.Vector3 | BABYLON.NodeMaterialBlockConnectionPointTypes.Vector4 | BABYLON.NodeMaterialBlockConnectionPointTypes.Color3 | BABYLON.NodeMaterialBlockConnectionPointTypes.Color4 | BABYLON.NodeMaterialBlockConnectionPointTypes.Matrix | BABYLON.NodeMaterialBlockConnectionPointTypes.AutoDetect;
|
|
7
7
|
static GetStringFromConnectionNodeType(type: BABYLON.NodeMaterialBlockConnectionPointTypes): "" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix" | "Color3" | "Color4";
|
|
@@ -139,19 +139,19 @@ declare module BABYLON.NodeEditor {
|
|
|
139
139
|
|
|
140
140
|
interface IInputsPropertyTabComponentProps {
|
|
141
141
|
globalState: GlobalState;
|
|
142
|
-
inputs: InputBlock[];
|
|
142
|
+
inputs: BABYLON.InputBlock[];
|
|
143
143
|
}
|
|
144
144
|
export class InputsPropertyTabComponent extends React.Component<IInputsPropertyTabComponentProps> {
|
|
145
145
|
constructor(props: IInputsPropertyTabComponentProps);
|
|
146
|
-
processInputBlockUpdate(ib: InputBlock): void;
|
|
147
|
-
renderInputBlock(block: InputBlock): JSX.Element | null;
|
|
146
|
+
processInputBlockUpdate(ib: BABYLON.InputBlock): void;
|
|
147
|
+
renderInputBlock(block: BABYLON.InputBlock): JSX.Element | null;
|
|
148
148
|
render(): JSX.Element;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
|
|
152
152
|
interface IColor3PropertyTabComponentProps {
|
|
153
153
|
globalState: GlobalState;
|
|
154
|
-
inputBlock: InputBlock;
|
|
154
|
+
inputBlock: BABYLON.InputBlock;
|
|
155
155
|
}
|
|
156
156
|
export class Color3PropertyTabComponent extends React.Component<IColor3PropertyTabComponentProps> {
|
|
157
157
|
render(): JSX.Element;
|
|
@@ -160,7 +160,7 @@ declare module BABYLON.NodeEditor {
|
|
|
160
160
|
|
|
161
161
|
interface IColor4PropertyTabComponentProps {
|
|
162
162
|
globalState: GlobalState;
|
|
163
|
-
inputBlock: InputBlock;
|
|
163
|
+
inputBlock: BABYLON.InputBlock;
|
|
164
164
|
}
|
|
165
165
|
export class Color4PropertyTabComponent extends React.Component<IColor4PropertyTabComponentProps> {
|
|
166
166
|
render(): JSX.Element;
|
|
@@ -169,7 +169,7 @@ declare module BABYLON.NodeEditor {
|
|
|
169
169
|
|
|
170
170
|
interface IFloatPropertyTabComponentProps {
|
|
171
171
|
globalState: GlobalState;
|
|
172
|
-
inputBlock: InputBlock;
|
|
172
|
+
inputBlock: BABYLON.InputBlock;
|
|
173
173
|
}
|
|
174
174
|
export class FloatPropertyTabComponent extends React.Component<IFloatPropertyTabComponentProps> {
|
|
175
175
|
render(): JSX.Element;
|
|
@@ -178,7 +178,7 @@ declare module BABYLON.NodeEditor {
|
|
|
178
178
|
|
|
179
179
|
interface IMatrixPropertyTabComponentProps {
|
|
180
180
|
globalState: GlobalState;
|
|
181
|
-
inputBlock: InputBlock;
|
|
181
|
+
inputBlock: BABYLON.InputBlock;
|
|
182
182
|
}
|
|
183
183
|
export class MatrixPropertyTabComponent extends React.Component<IMatrixPropertyTabComponentProps> {
|
|
184
184
|
render(): JSX.Element;
|
|
@@ -187,7 +187,7 @@ declare module BABYLON.NodeEditor {
|
|
|
187
187
|
|
|
188
188
|
interface IVector2PropertyTabComponentProps {
|
|
189
189
|
globalState: GlobalState;
|
|
190
|
-
inputBlock: InputBlock;
|
|
190
|
+
inputBlock: BABYLON.InputBlock;
|
|
191
191
|
}
|
|
192
192
|
export class Vector2PropertyTabComponent extends React.Component<IVector2PropertyTabComponentProps> {
|
|
193
193
|
render(): JSX.Element;
|
|
@@ -196,7 +196,7 @@ declare module BABYLON.NodeEditor {
|
|
|
196
196
|
|
|
197
197
|
interface IVector3PropertyTabComponentProps {
|
|
198
198
|
globalState: GlobalState;
|
|
199
|
-
inputBlock: InputBlock;
|
|
199
|
+
inputBlock: BABYLON.InputBlock;
|
|
200
200
|
}
|
|
201
201
|
export class Vector3PropertyTabComponent extends React.Component<IVector3PropertyTabComponentProps> {
|
|
202
202
|
render(): JSX.Element;
|
|
@@ -205,7 +205,7 @@ declare module BABYLON.NodeEditor {
|
|
|
205
205
|
|
|
206
206
|
interface IVector4PropertyTabComponentProps {
|
|
207
207
|
globalState: GlobalState;
|
|
208
|
-
inputBlock: InputBlock;
|
|
208
|
+
inputBlock: BABYLON.InputBlock;
|
|
209
209
|
}
|
|
210
210
|
export class Vector4PropertyTabComponent extends React.Component<IVector4PropertyTabComponentProps> {
|
|
211
211
|
render(): JSX.Element;
|
|
@@ -216,10 +216,10 @@ declare module BABYLON.NodeEditor {
|
|
|
216
216
|
globalState: GlobalState;
|
|
217
217
|
}
|
|
218
218
|
interface IPropertyTabComponentState {
|
|
219
|
-
currentNode: Nullable<GraphNode>;
|
|
220
|
-
currentFrame: Nullable<GraphFrame>;
|
|
221
|
-
currentFrameNodePort: Nullable<FrameNodePort>;
|
|
222
|
-
currentNodePort: Nullable<NodePort>;
|
|
219
|
+
currentNode: BABYLON.Nullable<GraphNode>;
|
|
220
|
+
currentFrame: BABYLON.Nullable<GraphFrame>;
|
|
221
|
+
currentFrameNodePort: BABYLON.Nullable<FrameNodePort>;
|
|
222
|
+
currentNodePort: BABYLON.Nullable<NodePort>;
|
|
223
223
|
uploadInProgress: boolean;
|
|
224
224
|
}
|
|
225
225
|
export class PropertyTabComponent extends React.Component<IPropertyTabComponentProps, IPropertyTabComponentState> {
|
|
@@ -228,8 +228,8 @@ declare module BABYLON.NodeEditor {
|
|
|
228
228
|
constructor(props: IPropertyTabComponentProps);
|
|
229
229
|
componentDidMount(): void;
|
|
230
230
|
componentWillUnmount(): void;
|
|
231
|
-
processInputBlockUpdate(ib: InputBlock): void;
|
|
232
|
-
renderInputBlock(block: InputBlock): JSX.Element | null;
|
|
231
|
+
processInputBlockUpdate(ib: BABYLON.InputBlock): void;
|
|
232
|
+
renderInputBlock(block: BABYLON.InputBlock): JSX.Element | null;
|
|
233
233
|
load(file: File): void;
|
|
234
234
|
loadFrame(file: File): void;
|
|
235
235
|
save(): void;
|
|
@@ -244,16 +244,16 @@ declare module BABYLON.NodeEditor {
|
|
|
244
244
|
export class ClampDisplayManager implements IDisplayManager {
|
|
245
245
|
getHeaderClass(): string;
|
|
246
246
|
shouldDisplayPortLabels(): boolean;
|
|
247
|
-
getHeaderText(block: NodeMaterialBlock): string;
|
|
247
|
+
getHeaderText(block: BABYLON.NodeMaterialBlock): string;
|
|
248
248
|
getBackgroundColor(): string;
|
|
249
|
-
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
249
|
+
updatePreviewContent(block: BABYLON.NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
|
|
253
253
|
export class ConditionalDisplayManager implements IDisplayManager {
|
|
254
254
|
getHeaderClass(): string;
|
|
255
255
|
shouldDisplayPortLabels(): boolean;
|
|
256
|
-
getHeaderText(block: NodeMaterialBlock): string;
|
|
256
|
+
getHeaderText(block: BABYLON.NodeMaterialBlock): string;
|
|
257
257
|
getBackgroundColor(): string;
|
|
258
258
|
updatePreviewContent(): void;
|
|
259
259
|
}
|
|
@@ -262,36 +262,36 @@ declare module BABYLON.NodeEditor {
|
|
|
262
262
|
export class DiscardDisplayManager implements IDisplayManager {
|
|
263
263
|
getHeaderClass(): string;
|
|
264
264
|
shouldDisplayPortLabels(): boolean;
|
|
265
|
-
getHeaderText(block: NodeMaterialBlock): string;
|
|
265
|
+
getHeaderText(block: BABYLON.NodeMaterialBlock): string;
|
|
266
266
|
getBackgroundColor(): string;
|
|
267
|
-
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
267
|
+
updatePreviewContent(block: BABYLON.NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
|
|
271
271
|
export interface IDisplayManager {
|
|
272
|
-
getHeaderClass(block: NodeMaterialBlock): string;
|
|
273
|
-
shouldDisplayPortLabels(block: NodeMaterialBlock): boolean;
|
|
274
|
-
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
275
|
-
getBackgroundColor(block: NodeMaterialBlock): string;
|
|
276
|
-
getHeaderText(block: NodeMaterialBlock): string;
|
|
272
|
+
getHeaderClass(block: BABYLON.NodeMaterialBlock): string;
|
|
273
|
+
shouldDisplayPortLabels(block: BABYLON.NodeMaterialBlock): boolean;
|
|
274
|
+
updatePreviewContent(block: BABYLON.NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
275
|
+
getBackgroundColor(block: BABYLON.NodeMaterialBlock): string;
|
|
276
|
+
getHeaderText(block: BABYLON.NodeMaterialBlock): string;
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
|
|
280
280
|
export class ElbowDisplayManager implements IDisplayManager {
|
|
281
281
|
getHeaderClass(): string;
|
|
282
282
|
shouldDisplayPortLabels(): boolean;
|
|
283
|
-
getHeaderText(block: NodeMaterialBlock): string;
|
|
284
|
-
getBackgroundColor(block: NodeMaterialBlock): string;
|
|
285
|
-
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
283
|
+
getHeaderText(block: BABYLON.NodeMaterialBlock): string;
|
|
284
|
+
getBackgroundColor(block: BABYLON.NodeMaterialBlock): string;
|
|
285
|
+
updatePreviewContent(block: BABYLON.NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
|
|
289
289
|
export class GradientDisplayManager implements IDisplayManager {
|
|
290
290
|
getHeaderClass(): string;
|
|
291
291
|
shouldDisplayPortLabels(): boolean;
|
|
292
|
-
getHeaderText(block: NodeMaterialBlock): string;
|
|
293
|
-
getBackgroundColor(block: NodeMaterialBlock): string;
|
|
294
|
-
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
292
|
+
getHeaderText(block: BABYLON.NodeMaterialBlock): string;
|
|
293
|
+
getBackgroundColor(block: BABYLON.NodeMaterialBlock): string;
|
|
294
|
+
updatePreviewContent(block: BABYLON.NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
|
|
@@ -300,47 +300,47 @@ declare module BABYLON.NodeEditor {
|
|
|
300
300
|
private _previewImage;
|
|
301
301
|
getHeaderClass(): string;
|
|
302
302
|
shouldDisplayPortLabels(): boolean;
|
|
303
|
-
getHeaderText(block: NodeMaterialBlock): string;
|
|
303
|
+
getHeaderText(block: BABYLON.NodeMaterialBlock): string;
|
|
304
304
|
getBackgroundColor(): string;
|
|
305
|
-
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
305
|
+
updatePreviewContent(block: BABYLON.NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
|
|
309
309
|
export class InputDisplayManager implements IDisplayManager {
|
|
310
|
-
getHeaderClass(block: NodeMaterialBlock): "" | "constant" | "inspector";
|
|
310
|
+
getHeaderClass(block: BABYLON.NodeMaterialBlock): "" | "constant" | "inspector";
|
|
311
311
|
shouldDisplayPortLabels(): boolean;
|
|
312
|
-
getHeaderText(block: NodeMaterialBlock): string;
|
|
312
|
+
getHeaderText(block: BABYLON.NodeMaterialBlock): string;
|
|
313
313
|
static GetBaseType(type: BABYLON.NodeMaterialBlockConnectionPointTypes): string;
|
|
314
|
-
getBackgroundColor(block: NodeMaterialBlock): string;
|
|
315
|
-
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
314
|
+
getBackgroundColor(block: BABYLON.NodeMaterialBlock): string;
|
|
315
|
+
updatePreviewContent(block: BABYLON.NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
|
|
319
319
|
export class OutputDisplayManager implements IDisplayManager {
|
|
320
320
|
getHeaderClass(): string;
|
|
321
321
|
shouldDisplayPortLabels(): boolean;
|
|
322
|
-
getHeaderText(block: NodeMaterialBlock): string;
|
|
322
|
+
getHeaderText(block: BABYLON.NodeMaterialBlock): string;
|
|
323
323
|
getBackgroundColor(): string;
|
|
324
|
-
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
324
|
+
updatePreviewContent(block: BABYLON.NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
|
|
328
328
|
export class PBRDisplayManager implements IDisplayManager {
|
|
329
329
|
getHeaderClass(): string;
|
|
330
330
|
shouldDisplayPortLabels(): boolean;
|
|
331
|
-
getHeaderText(block: NodeMaterialBlock): string;
|
|
331
|
+
getHeaderText(block: BABYLON.NodeMaterialBlock): string;
|
|
332
332
|
getBackgroundColor(): string;
|
|
333
|
-
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
333
|
+
updatePreviewContent(block: BABYLON.NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
|
|
337
337
|
export class RemapDisplayManager implements IDisplayManager {
|
|
338
338
|
getHeaderClass(): string;
|
|
339
339
|
shouldDisplayPortLabels(): boolean;
|
|
340
|
-
getHeaderText(block: NodeMaterialBlock): string;
|
|
340
|
+
getHeaderText(block: BABYLON.NodeMaterialBlock): string;
|
|
341
341
|
getBackgroundColor(): string;
|
|
342
342
|
private _extractInputValue;
|
|
343
|
-
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
343
|
+
updatePreviewContent(block: BABYLON.NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
|
|
@@ -349,18 +349,18 @@ declare module BABYLON.NodeEditor {
|
|
|
349
349
|
private _previewImage;
|
|
350
350
|
getHeaderClass(): string;
|
|
351
351
|
shouldDisplayPortLabels(): boolean;
|
|
352
|
-
getHeaderText(block: NodeMaterialBlock): string;
|
|
353
|
-
getBackgroundColor(block: NodeMaterialBlock): string;
|
|
354
|
-
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
352
|
+
getHeaderText(block: BABYLON.NodeMaterialBlock): string;
|
|
353
|
+
getBackgroundColor(block: BABYLON.NodeMaterialBlock): string;
|
|
354
|
+
updatePreviewContent(block: BABYLON.NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
|
|
358
358
|
export class TrigonometryDisplayManager implements IDisplayManager {
|
|
359
359
|
getHeaderClass(): string;
|
|
360
360
|
shouldDisplayPortLabels(): boolean;
|
|
361
|
-
getHeaderText(block: NodeMaterialBlock): string;
|
|
361
|
+
getHeaderText(block: BABYLON.NodeMaterialBlock): string;
|
|
362
362
|
getBackgroundColor(): string;
|
|
363
|
-
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
363
|
+
updatePreviewContent(block: BABYLON.NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
|
|
@@ -372,7 +372,7 @@ declare module BABYLON.NodeEditor {
|
|
|
372
372
|
|
|
373
373
|
|
|
374
374
|
export class FrameNodePort extends NodePort {
|
|
375
|
-
connectionPoint: NodeMaterialConnectionPoint;
|
|
375
|
+
connectionPoint: BABYLON.NodeMaterialConnectionPoint;
|
|
376
376
|
node: GraphNode;
|
|
377
377
|
private _parentFrameId;
|
|
378
378
|
private _isInput;
|
|
@@ -385,14 +385,14 @@ declare module BABYLON.NodeEditor {
|
|
|
385
385
|
get framePortId(): number;
|
|
386
386
|
get framePortPosition(): FramePortPosition;
|
|
387
387
|
set framePortPosition(position: FramePortPosition);
|
|
388
|
-
constructor(portContainer: HTMLElement, connectionPoint: NodeMaterialConnectionPoint, node: GraphNode, globalState: GlobalState, isInput: boolean, framePortId: number, parentFrameId: number);
|
|
389
|
-
static CreateFrameNodePortElement(connectionPoint: NodeMaterialConnectionPoint, node: GraphNode, root: HTMLElement, displayManager: Nullable<IDisplayManager>, globalState: GlobalState, isInput: boolean, framePortId: number, parentFrameId: number): FrameNodePort;
|
|
388
|
+
constructor(portContainer: HTMLElement, connectionPoint: BABYLON.NodeMaterialConnectionPoint, node: GraphNode, globalState: GlobalState, isInput: boolean, framePortId: number, parentFrameId: number);
|
|
389
|
+
static CreateFrameNodePortElement(connectionPoint: BABYLON.NodeMaterialConnectionPoint, node: GraphNode, root: HTMLElement, displayManager: BABYLON.Nullable<IDisplayManager>, globalState: GlobalState, isInput: boolean, framePortId: number, parentFrameId: number): FrameNodePort;
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
|
|
393
393
|
export interface IGraphCanvasComponentProps {
|
|
394
394
|
globalState: GlobalState;
|
|
395
|
-
onEmitNewBlock: (block: NodeMaterialBlock) => GraphNode;
|
|
395
|
+
onEmitNewBlock: (block: BABYLON.NodeMaterialBlock) => GraphNode;
|
|
396
396
|
}
|
|
397
397
|
export type FramePortData = {
|
|
398
398
|
frame: GraphFrame;
|
|
@@ -448,9 +448,9 @@ declare module BABYLON.NodeEditor {
|
|
|
448
448
|
get y(): number;
|
|
449
449
|
set y(value: number);
|
|
450
450
|
get selectedNodes(): GraphNode[];
|
|
451
|
-
get selectedLink(): Nullable<NodeLink>;
|
|
451
|
+
get selectedLink(): BABYLON.Nullable<NodeLink>;
|
|
452
452
|
get selectedFrames(): GraphFrame[];
|
|
453
|
-
get selectedPort(): Nullable<NodePort>;
|
|
453
|
+
get selectedPort(): BABYLON.Nullable<NodePort>;
|
|
454
454
|
get canvasContainer(): HTMLDivElement;
|
|
455
455
|
get hostCanvas(): HTMLDivElement;
|
|
456
456
|
get svgCanvas(): HTMLElement;
|
|
@@ -462,11 +462,11 @@ declare module BABYLON.NodeEditor {
|
|
|
462
462
|
getGridPositionCeil(position: number): number;
|
|
463
463
|
updateTransform(): void;
|
|
464
464
|
onKeyUp(): void;
|
|
465
|
-
findNodeFromBlock(block: NodeMaterialBlock): GraphNode;
|
|
465
|
+
findNodeFromBlock(block: BABYLON.NodeMaterialBlock): GraphNode;
|
|
466
466
|
reset(): void;
|
|
467
|
-
connectPorts(pointA: NodeMaterialConnectionPoint, pointB: NodeMaterialConnectionPoint): void;
|
|
467
|
+
connectPorts(pointA: BABYLON.NodeMaterialConnectionPoint, pointB: BABYLON.NodeMaterialConnectionPoint): void;
|
|
468
468
|
removeLink(link: NodeLink): void;
|
|
469
|
-
appendBlock(block: NodeMaterialBlock): GraphNode;
|
|
469
|
+
appendBlock(block: BABYLON.NodeMaterialBlock): GraphNode;
|
|
470
470
|
distributeGraph(): void;
|
|
471
471
|
componentDidMount(): void;
|
|
472
472
|
onMove(evt: React.PointerEvent): void;
|
|
@@ -475,7 +475,7 @@ declare module BABYLON.NodeEditor {
|
|
|
475
475
|
onWheel(evt: React.WheelEvent): void;
|
|
476
476
|
zoomToFit(): void;
|
|
477
477
|
processCandidatePort(): void;
|
|
478
|
-
connectNodes(nodeA: GraphNode, pointA: NodeMaterialConnectionPoint, nodeB: GraphNode, pointB: NodeMaterialConnectionPoint): void;
|
|
478
|
+
connectNodes(nodeA: GraphNode, pointA: BABYLON.NodeMaterialConnectionPoint, nodeB: GraphNode, pointB: BABYLON.NodeMaterialConnectionPoint): void;
|
|
479
479
|
processEditorData(editorData: IEditorData): void;
|
|
480
480
|
addFrame(frameData: IFrameData): void;
|
|
481
481
|
render(): JSX.Element;
|
|
@@ -561,7 +561,7 @@ declare module BABYLON.NodeEditor {
|
|
|
561
561
|
set height(value: number);
|
|
562
562
|
get comments(): string;
|
|
563
563
|
set comments(comments: string);
|
|
564
|
-
constructor(candidate: Nullable<HTMLDivElement>, canvas: GraphCanvasComponent, doNotCaptureNodes?: boolean);
|
|
564
|
+
constructor(candidate: BABYLON.Nullable<HTMLDivElement>, canvas: GraphCanvasComponent, doNotCaptureNodes?: boolean);
|
|
565
565
|
refresh(): void;
|
|
566
566
|
addNode(node: GraphNode): void;
|
|
567
567
|
removeNode(node: GraphNode): void;
|
|
@@ -632,7 +632,7 @@ declare module BABYLON.NodeEditor {
|
|
|
632
632
|
|
|
633
633
|
/// <reference types="react" />
|
|
634
634
|
export class GraphNode {
|
|
635
|
-
block: NodeMaterialBlock;
|
|
635
|
+
block: BABYLON.NodeMaterialBlock;
|
|
636
636
|
private _visual;
|
|
637
637
|
private _headerContainer;
|
|
638
638
|
private _promotionWarning;
|
|
@@ -681,10 +681,10 @@ declare module BABYLON.NodeEditor {
|
|
|
681
681
|
get enclosingFrameId(): number;
|
|
682
682
|
set enclosingFrameId(value: number);
|
|
683
683
|
set isSelected(value: boolean);
|
|
684
|
-
constructor(block: NodeMaterialBlock, globalState: GlobalState);
|
|
684
|
+
constructor(block: BABYLON.NodeMaterialBlock, globalState: GlobalState);
|
|
685
685
|
isOverlappingFrame(frame: GraphFrame): boolean;
|
|
686
|
-
getPortForConnectionPoint(point: NodeMaterialConnectionPoint): NodePort | null;
|
|
687
|
-
getLinksForConnectionPoint(point: NodeMaterialConnectionPoint): NodeLink[];
|
|
686
|
+
getPortForConnectionPoint(point: BABYLON.NodeMaterialConnectionPoint): NodePort | null;
|
|
687
|
+
getLinksForConnectionPoint(point: BABYLON.NodeMaterialConnectionPoint): NodeLink[];
|
|
688
688
|
private _refreshFrames;
|
|
689
689
|
_refreshLinks(): void;
|
|
690
690
|
refresh(): void;
|
|
@@ -692,7 +692,7 @@ declare module BABYLON.NodeEditor {
|
|
|
692
692
|
cleanAccumulation(useCeil?: boolean): void;
|
|
693
693
|
private _onUp;
|
|
694
694
|
private _onMove;
|
|
695
|
-
renderProperties(): Nullable<JSX.Element>;
|
|
695
|
+
renderProperties(): BABYLON.Nullable<JSX.Element>;
|
|
696
696
|
appendVisual(root: HTMLDivElement, owner: GraphCanvasComponent): void;
|
|
697
697
|
dispose(): void;
|
|
698
698
|
}
|
|
@@ -723,16 +723,16 @@ declare module BABYLON.NodeEditor {
|
|
|
723
723
|
|
|
724
724
|
|
|
725
725
|
export class NodePort {
|
|
726
|
-
connectionPoint: NodeMaterialConnectionPoint;
|
|
726
|
+
connectionPoint: BABYLON.NodeMaterialConnectionPoint;
|
|
727
727
|
node: GraphNode;
|
|
728
728
|
protected _element: HTMLDivElement;
|
|
729
729
|
protected _img: HTMLImageElement;
|
|
730
730
|
protected _globalState: GlobalState;
|
|
731
731
|
protected _portLabelElement: Element;
|
|
732
|
-
protected _onCandidateLinkMovedObserver: Nullable<Observer<Nullable<Vector2>>>;
|
|
733
|
-
protected _onSelectionChangedObserver: Nullable<Observer<Nullable<ISelectionChangedOptions>>>;
|
|
732
|
+
protected _onCandidateLinkMovedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<BABYLON.Vector2>>>;
|
|
733
|
+
protected _onSelectionChangedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<ISelectionChangedOptions>>>;
|
|
734
734
|
protected _exposedOnFrame: boolean;
|
|
735
|
-
delegatedPort: Nullable<FrameNodePort>;
|
|
735
|
+
delegatedPort: BABYLON.Nullable<FrameNodePort>;
|
|
736
736
|
get element(): HTMLDivElement;
|
|
737
737
|
get portName(): string;
|
|
738
738
|
set portName(newName: string);
|
|
@@ -744,9 +744,9 @@ declare module BABYLON.NodeEditor {
|
|
|
744
744
|
set exposedPortPosition(value: number);
|
|
745
745
|
private _isConnectedToNodeOutsideOfFrame;
|
|
746
746
|
refresh(): void;
|
|
747
|
-
constructor(portContainer: HTMLElement, connectionPoint: NodeMaterialConnectionPoint, node: GraphNode, globalState: GlobalState);
|
|
747
|
+
constructor(portContainer: HTMLElement, connectionPoint: BABYLON.NodeMaterialConnectionPoint, node: GraphNode, globalState: GlobalState);
|
|
748
748
|
dispose(): void;
|
|
749
|
-
static CreatePortElement(connectionPoint: NodeMaterialConnectionPoint, node: GraphNode, root: HTMLElement, displayManager: Nullable<IDisplayManager>, globalState: GlobalState): NodePort;
|
|
749
|
+
static CreatePortElement(connectionPoint: BABYLON.NodeMaterialConnectionPoint, node: GraphNode, root: HTMLElement, displayManager: BABYLON.Nullable<IDisplayManager>, globalState: GlobalState): NodePort;
|
|
750
750
|
}
|
|
751
751
|
|
|
752
752
|
|
|
@@ -805,7 +805,7 @@ declare module BABYLON.NodeEditor {
|
|
|
805
805
|
rebuild?: boolean;
|
|
806
806
|
update?: boolean;
|
|
807
807
|
activatePreviewCommand?: boolean;
|
|
808
|
-
callback?: (scene: Scene) => void;
|
|
808
|
+
callback?: (scene: BABYLON.Scene) => void;
|
|
809
809
|
}): void;
|
|
810
810
|
render(): JSX.Element;
|
|
811
811
|
}
|
|
@@ -827,7 +827,7 @@ declare module BABYLON.NodeEditor {
|
|
|
827
827
|
|
|
828
828
|
interface IGradientStepComponentProps {
|
|
829
829
|
globalState: GlobalState;
|
|
830
|
-
step: GradientBlockColorStep;
|
|
830
|
+
step: BABYLON.GradientBlockColorStep;
|
|
831
831
|
lineIndex: number;
|
|
832
832
|
onDelete: () => void;
|
|
833
833
|
onUpdateStep: () => void;
|
|
@@ -848,7 +848,7 @@ declare module BABYLON.NodeEditor {
|
|
|
848
848
|
export class ImageSourcePropertyTabComponent extends React.Component<IPropertyComponentProps, {
|
|
849
849
|
isEmbedded: boolean;
|
|
850
850
|
}> {
|
|
851
|
-
get imageSourceBlock(): ImageSourceBlock;
|
|
851
|
+
get imageSourceBlock(): BABYLON.ImageSourceBlock;
|
|
852
852
|
constructor(props: IPropertyComponentProps);
|
|
853
853
|
UNSAFE_componentWillUpdate(nextProps: IPropertyComponentProps, nextState: {
|
|
854
854
|
isEmbedded: boolean;
|
|
@@ -904,12 +904,12 @@ declare module BABYLON.NodeEditor {
|
|
|
904
904
|
|
|
905
905
|
export interface IPropertyComponentProps {
|
|
906
906
|
globalState: GlobalState;
|
|
907
|
-
block: NodeMaterialBlock;
|
|
907
|
+
block: BABYLON.NodeMaterialBlock;
|
|
908
908
|
}
|
|
909
909
|
|
|
910
910
|
|
|
911
911
|
type ReflectionTexture = BABYLON.ReflectionTextureBlock | BABYLON.ReflectionBlock | BABYLON.RefractionBlock;
|
|
912
|
-
type AnyTexture = TextureBlock | ReflectionTexture | BABYLON.CurrentScreenBlock | BABYLON.ParticleTextureBlock;
|
|
912
|
+
type AnyTexture = BABYLON.TextureBlock | ReflectionTexture | BABYLON.CurrentScreenBlock | BABYLON.ParticleTextureBlock;
|
|
913
913
|
export class TexturePropertyTabComponent extends React.Component<IPropertyComponentProps, {
|
|
914
914
|
isEmbedded: boolean;
|
|
915
915
|
loadAsCubeTexture: boolean;
|
|
@@ -955,26 +955,26 @@ declare module BABYLON.NodeEditor {
|
|
|
955
955
|
|
|
956
956
|
export class PropertyLedger {
|
|
957
957
|
static RegisteredControls: {
|
|
958
|
-
[key: string]: ComponentClass<IPropertyComponentProps>;
|
|
958
|
+
[key: string]: React.ComponentClass<IPropertyComponentProps>;
|
|
959
959
|
};
|
|
960
960
|
}
|
|
961
961
|
|
|
962
962
|
|
|
963
963
|
export class ISelectionChangedOptions {
|
|
964
|
-
selection: Nullable<GraphNode | NodeLink | GraphFrame | NodePort | FramePortData>;
|
|
964
|
+
selection: BABYLON.Nullable<GraphNode | NodeLink | GraphFrame | NodePort | FramePortData>;
|
|
965
965
|
forceKeepSelection?: boolean;
|
|
966
966
|
}
|
|
967
967
|
export class GlobalState {
|
|
968
|
-
nodeMaterial: NodeMaterial;
|
|
968
|
+
nodeMaterial: BABYLON.NodeMaterial;
|
|
969
969
|
hostElement: HTMLElement;
|
|
970
970
|
hostDocument: HTMLDocument;
|
|
971
971
|
hostWindow: Window;
|
|
972
972
|
onNewNodeCreatedObservable: BABYLON.Observable<GraphNode>;
|
|
973
|
-
onSelectionChangedObservable: BABYLON.Observable<Nullable<ISelectionChangedOptions>>;
|
|
973
|
+
onSelectionChangedObservable: BABYLON.Observable<BABYLON.Nullable<ISelectionChangedOptions>>;
|
|
974
974
|
onRebuildRequiredObservable: BABYLON.Observable<boolean>;
|
|
975
975
|
onBuiltObservable: BABYLON.Observable<void>;
|
|
976
976
|
onResetRequiredObservable: BABYLON.Observable<void>;
|
|
977
|
-
onUpdateRequiredObservable: BABYLON.Observable<Nullable<NodeMaterialBlock>>;
|
|
977
|
+
onUpdateRequiredObservable: BABYLON.Observable<BABYLON.Nullable<BABYLON.NodeMaterialBlock>>;
|
|
978
978
|
onZoomToFitRequiredObservable: BABYLON.Observable<void>;
|
|
979
979
|
onReOrganizedRequiredObservable: BABYLON.Observable<void>;
|
|
980
980
|
onLogRequiredObservable: BABYLON.Observable<LogEntry>;
|
|
@@ -986,10 +986,10 @@ declare module BABYLON.NodeEditor {
|
|
|
986
986
|
onBackFaceCullingChanged: BABYLON.Observable<void>;
|
|
987
987
|
onDepthPrePassChanged: BABYLON.Observable<void>;
|
|
988
988
|
onAnimationCommandActivated: BABYLON.Observable<void>;
|
|
989
|
-
onCandidateLinkMoved: BABYLON.Observable<Nullable<Vector2>>;
|
|
989
|
+
onCandidateLinkMoved: BABYLON.Observable<BABYLON.Nullable<BABYLON.Vector2>>;
|
|
990
990
|
onSelectionBoxMoved: BABYLON.Observable<ClientRect | DOMRect>;
|
|
991
991
|
onFrameCreatedObservable: BABYLON.Observable<GraphFrame>;
|
|
992
|
-
onCandidatePortSelectedObservable: BABYLON.Observable<Nullable<NodePort | FrameNodePort>>;
|
|
992
|
+
onCandidatePortSelectedObservable: BABYLON.Observable<BABYLON.Nullable<NodePort | FrameNodePort>>;
|
|
993
993
|
onImportFrameObservable: BABYLON.Observable<any>;
|
|
994
994
|
onGraphNodeRemovalObservable: BABYLON.Observable<GraphNode>;
|
|
995
995
|
onPopupClosedObservable: BABYLON.Observable<void>;
|
|
@@ -999,7 +999,7 @@ declare module BABYLON.NodeEditor {
|
|
|
999
999
|
targetY: number;
|
|
1000
1000
|
needRepositioning?: boolean | undefined;
|
|
1001
1001
|
}>;
|
|
1002
|
-
onGetNodeFromBlock: (block: NodeMaterialBlock) => GraphNode;
|
|
1002
|
+
onGetNodeFromBlock: (block: BABYLON.NodeMaterialBlock) => GraphNode;
|
|
1003
1003
|
onGridSizeChanged: BABYLON.Observable<void>;
|
|
1004
1004
|
onExposePortOnFrameObservable: BABYLON.Observable<GraphNode>;
|
|
1005
1005
|
previewType: PreviewType;
|
|
@@ -1015,7 +1015,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1015
1015
|
directionalLight0: boolean;
|
|
1016
1016
|
directionalLight1: boolean;
|
|
1017
1017
|
controlCamera: boolean;
|
|
1018
|
-
storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
|
|
1018
|
+
storeEditorData: (serializationObject: any, frame?: BABYLON.Nullable<GraphFrame>) => void;
|
|
1019
1019
|
_mode: BABYLON.NodeMaterialModes;
|
|
1020
1020
|
/** Gets the mode */
|
|
1021
1021
|
get mode(): BABYLON.NodeMaterialModes;
|
|
@@ -1035,7 +1035,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1035
1035
|
interface IGraphEditorState {
|
|
1036
1036
|
showPreviewPopUp: boolean;
|
|
1037
1037
|
}
|
|
1038
|
-
interface IInternalPreviewAreaOptions extends IInspectorOptions {
|
|
1038
|
+
interface IInternalPreviewAreaOptions extends BABYLON.IInspectorOptions {
|
|
1039
1039
|
popup: boolean;
|
|
1040
1040
|
original: boolean;
|
|
1041
1041
|
explorerWidth?: string;
|
|
@@ -1066,7 +1066,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1066
1066
|
* @param block
|
|
1067
1067
|
* @param recursion
|
|
1068
1068
|
*/
|
|
1069
|
-
createNodeFromObject(block: NodeMaterialBlock, recursion?: boolean): GraphNode;
|
|
1069
|
+
createNodeFromObject(block: BABYLON.NodeMaterialBlock, recursion?: boolean): GraphNode;
|
|
1070
1070
|
addValueNode(type: string): GraphNode;
|
|
1071
1071
|
componentDidMount(): void;
|
|
1072
1072
|
componentWillUnmount(): void;
|
|
@@ -1079,7 +1079,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1079
1079
|
loadGraph(): void;
|
|
1080
1080
|
showWaitScreen(): void;
|
|
1081
1081
|
hideWaitScreen(): void;
|
|
1082
|
-
reOrganize(editorData?: Nullable<IEditorData>, isImportingAFrame?: boolean): void;
|
|
1082
|
+
reOrganize(editorData?: BABYLON.Nullable<IEditorData>, isImportingAFrame?: boolean): void;
|
|
1083
1083
|
onPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1084
1084
|
onPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1085
1085
|
resizeColumns(evt: React.PointerEvent<HTMLDivElement>, forLeft?: boolean): void;
|
|
@@ -1091,8 +1091,8 @@ declare module BABYLON.NodeEditor {
|
|
|
1091
1091
|
initiatePreviewArea: (canvas?: HTMLCanvasElement) => void;
|
|
1092
1092
|
createPopUp: () => void;
|
|
1093
1093
|
createPopupWindow: (title: string, windowVariableName: string, width?: number, height?: number) => Window | null;
|
|
1094
|
-
createPreviewMeshControlHost: (options: IInternalPreviewAreaOptions, parentControl: Nullable<HTMLElement>) => void;
|
|
1095
|
-
createPreviewHost: (options: IInternalPreviewAreaOptions, parentControl: Nullable<HTMLElement>) => void;
|
|
1094
|
+
createPreviewMeshControlHost: (options: IInternalPreviewAreaOptions, parentControl: BABYLON.Nullable<HTMLElement>) => void;
|
|
1095
|
+
createPreviewHost: (options: IInternalPreviewAreaOptions, parentControl: BABYLON.Nullable<HTMLElement>) => void;
|
|
1096
1096
|
fixPopUpStyles: (document: Document) => void;
|
|
1097
1097
|
render(): JSX.Element;
|
|
1098
1098
|
}
|
|
@@ -1104,13 +1104,13 @@ declare module BABYLON.NodeEditor {
|
|
|
1104
1104
|
* Interface used to specify creation options for the node editor
|
|
1105
1105
|
*/
|
|
1106
1106
|
export interface INodeEditorOptions {
|
|
1107
|
-
nodeMaterial: NodeMaterial;
|
|
1107
|
+
nodeMaterial: BABYLON.NodeMaterial;
|
|
1108
1108
|
hostElement?: HTMLElement;
|
|
1109
1109
|
customSave?: {
|
|
1110
1110
|
label: string;
|
|
1111
1111
|
action: (data: string) => Promise<void>;
|
|
1112
1112
|
};
|
|
1113
|
-
customLoadObservable?: Observable<any>;
|
|
1113
|
+
customLoadObservable?: BABYLON.Observable<any>;
|
|
1114
1114
|
}
|
|
1115
1115
|
/**
|
|
1116
1116
|
* Class used to create a node editor
|
|
@@ -1162,10 +1162,10 @@ declare module BABYLON.NodeEditor {
|
|
|
1162
1162
|
|
|
1163
1163
|
|
|
1164
1164
|
export class SerializationTools {
|
|
1165
|
-
static UpdateLocations(material: NodeMaterial, globalState: GlobalState, frame?: Nullable<GraphFrame>): void;
|
|
1166
|
-
static Serialize(material: NodeMaterial, globalState: GlobalState, frame?: Nullable<GraphFrame>): string;
|
|
1165
|
+
static UpdateLocations(material: BABYLON.NodeMaterial, globalState: GlobalState, frame?: BABYLON.Nullable<GraphFrame>): void;
|
|
1166
|
+
static Serialize(material: BABYLON.NodeMaterial, globalState: GlobalState, frame?: BABYLON.Nullable<GraphFrame>): string;
|
|
1167
1167
|
static Deserialize(serializationObject: any, globalState: GlobalState): void;
|
|
1168
|
-
static AddFrameToMaterial(serializationObject: any, globalState: GlobalState, currentMaterial: NodeMaterial): void;
|
|
1168
|
+
static AddFrameToMaterial(serializationObject: any, globalState: GlobalState, currentMaterial: BABYLON.NodeMaterial): void;
|
|
1169
1169
|
}
|
|
1170
1170
|
|
|
1171
1171
|
|
|
@@ -1187,7 +1187,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1187
1187
|
isSelected?: () => boolean;
|
|
1188
1188
|
onSelect?: (value: boolean) => void;
|
|
1189
1189
|
onValueChanged?: () => void;
|
|
1190
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1190
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1191
1191
|
disabled?: boolean;
|
|
1192
1192
|
}
|
|
1193
1193
|
export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
|
|
@@ -1211,7 +1211,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1211
1211
|
label: string;
|
|
1212
1212
|
target: any;
|
|
1213
1213
|
propertyName: string;
|
|
1214
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1214
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1215
1215
|
onChange?: () => void;
|
|
1216
1216
|
globalState: GlobalState;
|
|
1217
1217
|
}
|
|
@@ -1234,7 +1234,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1234
1234
|
label: string;
|
|
1235
1235
|
target: any;
|
|
1236
1236
|
propertyName: string;
|
|
1237
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1237
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1238
1238
|
onChange?: () => void;
|
|
1239
1239
|
globalState: GlobalState;
|
|
1240
1240
|
}
|
|
@@ -1253,13 +1253,13 @@ declare module BABYLON.NodeEditor {
|
|
|
1253
1253
|
|
|
1254
1254
|
|
|
1255
1255
|
export interface IColorPickerComponentProps {
|
|
1256
|
-
value: Color4 | Color3;
|
|
1256
|
+
value: BABYLON.Color4 | BABYLON.Color3;
|
|
1257
1257
|
onColorChanged: (newOne: string) => void;
|
|
1258
1258
|
globalState: GlobalState;
|
|
1259
1259
|
}
|
|
1260
1260
|
interface IColorPickerComponentState {
|
|
1261
1261
|
pickerEnabled: boolean;
|
|
1262
|
-
color: Color3 | Color4;
|
|
1262
|
+
color: BABYLON.Color3 | BABYLON.Color4;
|
|
1263
1263
|
hex: string;
|
|
1264
1264
|
}
|
|
1265
1265
|
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
|
@@ -1319,7 +1319,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1319
1319
|
propertyName: string;
|
|
1320
1320
|
onChange?: (newValue: number) => void;
|
|
1321
1321
|
isInteger?: boolean;
|
|
1322
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1322
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1323
1323
|
additionalClass?: string;
|
|
1324
1324
|
step?: string;
|
|
1325
1325
|
digits?: number;
|
|
@@ -1389,7 +1389,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1389
1389
|
step?: number;
|
|
1390
1390
|
onChange?: (newValue: BABYLON.Matrix) => void;
|
|
1391
1391
|
onModeChange?: (mode: number) => void;
|
|
1392
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1392
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1393
1393
|
mode?: number;
|
|
1394
1394
|
globalState: GlobalState;
|
|
1395
1395
|
}
|
|
@@ -1405,9 +1405,9 @@ declare module BABYLON.NodeEditor {
|
|
|
1405
1405
|
mode: number;
|
|
1406
1406
|
angle: number;
|
|
1407
1407
|
}): boolean;
|
|
1408
|
-
raiseOnPropertyChanged(previousValue: Vector3): void;
|
|
1408
|
+
raiseOnPropertyChanged(previousValue: BABYLON.Vector3): void;
|
|
1409
1409
|
updateMatrix(): void;
|
|
1410
|
-
updateRow(value: Vector4, row: number): void;
|
|
1410
|
+
updateRow(value: BABYLON.Vector4, row: number): void;
|
|
1411
1411
|
updateBasedOnMode(value: number): void;
|
|
1412
1412
|
render(): JSX.Element;
|
|
1413
1413
|
}
|
|
@@ -1453,10 +1453,10 @@ declare module BABYLON.NodeEditor {
|
|
|
1453
1453
|
target: any;
|
|
1454
1454
|
className?: string;
|
|
1455
1455
|
propertyName?: string;
|
|
1456
|
-
options: IInspectableOptions[];
|
|
1456
|
+
options: BABYLON.IInspectableOptions[];
|
|
1457
1457
|
noDirectUpdate?: boolean;
|
|
1458
1458
|
onSelect?: (value: number | string) => void;
|
|
1459
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1459
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1460
1460
|
valuesAreStrings?: boolean;
|
|
1461
1461
|
defaultIfNull?: number;
|
|
1462
1462
|
getSelection?: (target: any) => number;
|
|
@@ -1502,7 +1502,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1502
1502
|
useEuler?: boolean;
|
|
1503
1503
|
onChange?: (value: number) => void;
|
|
1504
1504
|
onInput?: (value: number) => void;
|
|
1505
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1505
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1506
1506
|
decimalCount?: number;
|
|
1507
1507
|
globalState: GlobalState;
|
|
1508
1508
|
}
|
|
@@ -1530,7 +1530,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1530
1530
|
multilines?: boolean;
|
|
1531
1531
|
onChange?: (value: string) => void;
|
|
1532
1532
|
validator?: (value: string) => boolean;
|
|
1533
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1533
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1534
1534
|
}
|
|
1535
1535
|
export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
|
|
1536
1536
|
value: string;
|
|
@@ -1564,7 +1564,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1564
1564
|
|
|
1565
1565
|
|
|
1566
1566
|
interface ITextureLineComponentProps {
|
|
1567
|
-
texture: BaseTexture;
|
|
1567
|
+
texture: BABYLON.BaseTexture;
|
|
1568
1568
|
width: number;
|
|
1569
1569
|
height: number;
|
|
1570
1570
|
globalState?: any;
|
|
@@ -1584,7 +1584,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1584
1584
|
componentDidMount(): void;
|
|
1585
1585
|
componentDidUpdate(): void;
|
|
1586
1586
|
updatePreview(): void;
|
|
1587
|
-
static UpdatePreview(previewCanvas: HTMLCanvasElement, texture: BaseTexture, width: number, options: ITextureLineComponentState, onReady?: () => void, globalState?: any): Promise<void>;
|
|
1587
|
+
static UpdatePreview(previewCanvas: HTMLCanvasElement, texture: BABYLON.BaseTexture, width: number, options: ITextureLineComponentState, onReady?: () => void, globalState?: any): Promise<void>;
|
|
1588
1588
|
render(): JSX.Element;
|
|
1589
1589
|
}
|
|
1590
1590
|
|
|
@@ -1594,13 +1594,13 @@ declare module BABYLON.NodeEditor {
|
|
|
1594
1594
|
target: any;
|
|
1595
1595
|
propertyName: string;
|
|
1596
1596
|
step?: number;
|
|
1597
|
-
onChange?: (newvalue: Vector2) => void;
|
|
1598
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1597
|
+
onChange?: (newvalue: BABYLON.Vector2) => void;
|
|
1598
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1599
1599
|
globalState: GlobalState;
|
|
1600
1600
|
}
|
|
1601
1601
|
export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
|
|
1602
1602
|
isExpanded: boolean;
|
|
1603
|
-
value: Vector2;
|
|
1603
|
+
value: BABYLON.Vector2;
|
|
1604
1604
|
}> {
|
|
1605
1605
|
static defaultProps: {
|
|
1606
1606
|
step: number;
|
|
@@ -1609,10 +1609,10 @@ declare module BABYLON.NodeEditor {
|
|
|
1609
1609
|
constructor(props: IVector2LineComponentProps);
|
|
1610
1610
|
shouldComponentUpdate(nextProps: IVector2LineComponentProps, nextState: {
|
|
1611
1611
|
isExpanded: boolean;
|
|
1612
|
-
value: Vector2;
|
|
1612
|
+
value: BABYLON.Vector2;
|
|
1613
1613
|
}): boolean;
|
|
1614
1614
|
switchExpandState(): void;
|
|
1615
|
-
raiseOnPropertyChanged(previousValue: Vector2): void;
|
|
1615
|
+
raiseOnPropertyChanged(previousValue: BABYLON.Vector2): void;
|
|
1616
1616
|
updateStateX(value: number): void;
|
|
1617
1617
|
updateStateY(value: number): void;
|
|
1618
1618
|
render(): JSX.Element;
|
|
@@ -1624,13 +1624,13 @@ declare module BABYLON.NodeEditor {
|
|
|
1624
1624
|
target: any;
|
|
1625
1625
|
propertyName: string;
|
|
1626
1626
|
step?: number;
|
|
1627
|
-
onChange?: (newvalue: Vector3) => void;
|
|
1628
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1627
|
+
onChange?: (newvalue: BABYLON.Vector3) => void;
|
|
1628
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1629
1629
|
globalState: GlobalState;
|
|
1630
1630
|
}
|
|
1631
1631
|
export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
|
|
1632
1632
|
isExpanded: boolean;
|
|
1633
|
-
value: Vector3;
|
|
1633
|
+
value: BABYLON.Vector3;
|
|
1634
1634
|
}> {
|
|
1635
1635
|
static defaultProps: {
|
|
1636
1636
|
step: number;
|
|
@@ -1639,10 +1639,10 @@ declare module BABYLON.NodeEditor {
|
|
|
1639
1639
|
constructor(props: IVector3LineComponentProps);
|
|
1640
1640
|
shouldComponentUpdate(nextProps: IVector3LineComponentProps, nextState: {
|
|
1641
1641
|
isExpanded: boolean;
|
|
1642
|
-
value: Vector3;
|
|
1642
|
+
value: BABYLON.Vector3;
|
|
1643
1643
|
}): boolean;
|
|
1644
1644
|
switchExpandState(): void;
|
|
1645
|
-
raiseOnPropertyChanged(previousValue: Vector3): void;
|
|
1645
|
+
raiseOnPropertyChanged(previousValue: BABYLON.Vector3): void;
|
|
1646
1646
|
updateVector3(): void;
|
|
1647
1647
|
updateStateX(value: number): void;
|
|
1648
1648
|
updateStateY(value: number): void;
|
|
@@ -1655,15 +1655,15 @@ declare module BABYLON.NodeEditor {
|
|
|
1655
1655
|
label: string;
|
|
1656
1656
|
target?: any;
|
|
1657
1657
|
propertyName?: string;
|
|
1658
|
-
value?: Vector4;
|
|
1658
|
+
value?: BABYLON.Vector4;
|
|
1659
1659
|
step?: number;
|
|
1660
|
-
onChange?: (newvalue: Vector4) => void;
|
|
1661
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1660
|
+
onChange?: (newvalue: BABYLON.Vector4) => void;
|
|
1661
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1662
1662
|
globalState: GlobalState;
|
|
1663
1663
|
}
|
|
1664
1664
|
export class Vector4LineComponent extends React.Component<IVector4LineComponentProps, {
|
|
1665
1665
|
isExpanded: boolean;
|
|
1666
|
-
value: Vector4;
|
|
1666
|
+
value: BABYLON.Vector4;
|
|
1667
1667
|
}> {
|
|
1668
1668
|
static defaultProps: {
|
|
1669
1669
|
step: number;
|
|
@@ -1672,10 +1672,10 @@ declare module BABYLON.NodeEditor {
|
|
|
1672
1672
|
constructor(props: IVector4LineComponentProps);
|
|
1673
1673
|
shouldComponentUpdate(nextProps: IVector4LineComponentProps, nextState: {
|
|
1674
1674
|
isExpanded: boolean;
|
|
1675
|
-
value: Vector4;
|
|
1675
|
+
value: BABYLON.Vector4;
|
|
1676
1676
|
}): boolean;
|
|
1677
1677
|
switchExpandState(): void;
|
|
1678
|
-
raiseOnPropertyChanged(previousValue: Vector4): void;
|
|
1678
|
+
raiseOnPropertyChanged(previousValue: BABYLON.Vector4): void;
|
|
1679
1679
|
updateVector4(): void;
|
|
1680
1680
|
updateStateX(value: number): void;
|
|
1681
1681
|
updateStateY(value: number): void;
|
|
@@ -1788,13 +1788,13 @@ declare module BABYLON.NodeEditor {
|
|
|
1788
1788
|
isSelected?: () => boolean;
|
|
1789
1789
|
onSelect?: (value: boolean) => void;
|
|
1790
1790
|
onValueChanged?: () => void;
|
|
1791
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1791
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1792
1792
|
disabled?: boolean;
|
|
1793
1793
|
icon?: string;
|
|
1794
1794
|
iconLabel?: string;
|
|
1795
1795
|
faIcons?: {
|
|
1796
|
-
enabled:
|
|
1797
|
-
disabled:
|
|
1796
|
+
enabled: any;
|
|
1797
|
+
disabled: any;
|
|
1798
1798
|
};
|
|
1799
1799
|
large?: boolean;
|
|
1800
1800
|
}
|
|
@@ -1819,7 +1819,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1819
1819
|
label: string;
|
|
1820
1820
|
target: any;
|
|
1821
1821
|
propertyName: string;
|
|
1822
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1822
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1823
1823
|
isLinear?: boolean;
|
|
1824
1824
|
icon?: string;
|
|
1825
1825
|
lockObject?: LockObject;
|
|
@@ -1835,7 +1835,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1835
1835
|
label: string;
|
|
1836
1836
|
target?: any;
|
|
1837
1837
|
propertyName: string;
|
|
1838
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1838
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1839
1839
|
onChange?: () => void;
|
|
1840
1840
|
isLinear?: boolean;
|
|
1841
1841
|
icon?: string;
|
|
@@ -1851,7 +1851,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1851
1851
|
label: string;
|
|
1852
1852
|
target?: any;
|
|
1853
1853
|
propertyName: string;
|
|
1854
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1854
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1855
1855
|
onChange?: () => void;
|
|
1856
1856
|
isLinear?: boolean;
|
|
1857
1857
|
icon?: string;
|
|
@@ -1884,7 +1884,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1884
1884
|
|
|
1885
1885
|
|
|
1886
1886
|
export interface IColorPickerComponentProps {
|
|
1887
|
-
value: Color4 | Color3;
|
|
1887
|
+
value: BABYLON.Color4 | BABYLON.Color3;
|
|
1888
1888
|
linearHint?: boolean;
|
|
1889
1889
|
onColorChanged: (newOne: string) => void;
|
|
1890
1890
|
icon?: string;
|
|
@@ -1893,7 +1893,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1893
1893
|
}
|
|
1894
1894
|
interface IColorPickerComponentState {
|
|
1895
1895
|
pickerEnabled: boolean;
|
|
1896
|
-
color: Color3 | Color4;
|
|
1896
|
+
color: BABYLON.Color3 | BABYLON.Color4;
|
|
1897
1897
|
hex: string;
|
|
1898
1898
|
}
|
|
1899
1899
|
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
|
@@ -1962,7 +1962,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1962
1962
|
lockObject?: LockObject;
|
|
1963
1963
|
onChange?: (newValue: number) => void;
|
|
1964
1964
|
isInteger?: boolean;
|
|
1965
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1965
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
1966
1966
|
additionalClass?: string;
|
|
1967
1967
|
step?: string;
|
|
1968
1968
|
digits?: number;
|
|
@@ -1976,6 +1976,8 @@ declare module BABYLON.NodeEditor {
|
|
|
1976
1976
|
defaultValue?: number;
|
|
1977
1977
|
arrows?: boolean;
|
|
1978
1978
|
unit?: React.ReactNode;
|
|
1979
|
+
onDragStart?: (newValue: number) => void;
|
|
1980
|
+
onDragStop?: (newValue: number) => void;
|
|
1979
1981
|
}
|
|
1980
1982
|
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
|
1981
1983
|
value: string;
|
|
@@ -2008,7 +2010,7 @@ declare module BABYLON.NodeEditor {
|
|
|
2008
2010
|
onChange?: (newValue: number) => void;
|
|
2009
2011
|
isInteger?: boolean;
|
|
2010
2012
|
replaySourceReplacement?: string;
|
|
2011
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2013
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2012
2014
|
additionalClass?: string;
|
|
2013
2015
|
step?: string;
|
|
2014
2016
|
digits?: number;
|
|
@@ -2116,7 +2118,7 @@ declare module BABYLON.NodeEditor {
|
|
|
2116
2118
|
buttonLabel: string;
|
|
2117
2119
|
url?: string;
|
|
2118
2120
|
onClick: () => void;
|
|
2119
|
-
icon?:
|
|
2121
|
+
icon?: any;
|
|
2120
2122
|
onIconClick?: () => void;
|
|
2121
2123
|
}
|
|
2122
2124
|
export class LinkButtonComponent extends React.Component<ILinkButtonComponentProps> {
|
|
@@ -2129,7 +2131,7 @@ declare module BABYLON.NodeEditor {
|
|
|
2129
2131
|
interface IMessageLineComponentProps {
|
|
2130
2132
|
text: string;
|
|
2131
2133
|
color?: string;
|
|
2132
|
-
icon?:
|
|
2134
|
+
icon?: any;
|
|
2133
2135
|
}
|
|
2134
2136
|
export class MessageLineComponent extends React.Component<IMessageLineComponentProps> {
|
|
2135
2137
|
constructor(props: IMessageLineComponentProps);
|
|
@@ -2168,11 +2170,11 @@ declare module BABYLON.NodeEditor {
|
|
|
2168
2170
|
label: string;
|
|
2169
2171
|
target: any;
|
|
2170
2172
|
propertyName: string;
|
|
2171
|
-
options: IInspectableOptions[];
|
|
2173
|
+
options: BABYLON.IInspectableOptions[];
|
|
2172
2174
|
noDirectUpdate?: boolean;
|
|
2173
2175
|
onSelect?: (value: number) => void;
|
|
2174
2176
|
extractValue?: () => number;
|
|
2175
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2177
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2176
2178
|
allowNullValue?: boolean;
|
|
2177
2179
|
icon?: string;
|
|
2178
2180
|
iconLabel?: string;
|
|
@@ -2200,7 +2202,7 @@ declare module BABYLON.NodeEditor {
|
|
|
2200
2202
|
|
|
2201
2203
|
|
|
2202
2204
|
interface IRadioButtonLineComponentProps {
|
|
2203
|
-
onSelectionChangedObservable: Observable<RadioButtonLineComponent>;
|
|
2205
|
+
onSelectionChangedObservable: BABYLON.Observable<RadioButtonLineComponent>;
|
|
2204
2206
|
label: string;
|
|
2205
2207
|
isSelected: () => boolean;
|
|
2206
2208
|
onSelect: () => void;
|
|
@@ -2230,7 +2232,7 @@ declare module BABYLON.NodeEditor {
|
|
|
2230
2232
|
useEuler?: boolean;
|
|
2231
2233
|
onChange?: (value: number) => void;
|
|
2232
2234
|
onInput?: (value: number) => void;
|
|
2233
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2235
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2234
2236
|
decimalCount?: number;
|
|
2235
2237
|
margin?: boolean;
|
|
2236
2238
|
icon?: string;
|
|
@@ -2261,7 +2263,7 @@ declare module BABYLON.NodeEditor {
|
|
|
2261
2263
|
* @param getProperty
|
|
2262
2264
|
* @returns a proxy object that can be passed as a target into the input
|
|
2263
2265
|
*/
|
|
2264
|
-
export function makeTargetsProxy<Type>(targets: Type[], onPropertyChangedObservable?: Observable<PropertyChangedEvent>, getProperty?: (target: Type, property: keyof Type) => any): any;
|
|
2266
|
+
export function makeTargetsProxy<Type>(targets: Type[], onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>, getProperty?: (target: Type, property: keyof Type) => any): any;
|
|
2265
2267
|
|
|
2266
2268
|
|
|
2267
2269
|
export interface ITextInputLineComponentProps {
|
|
@@ -2271,7 +2273,7 @@ declare module BABYLON.NodeEditor {
|
|
|
2271
2273
|
propertyName?: string;
|
|
2272
2274
|
value?: string;
|
|
2273
2275
|
onChange?: (value: string) => void;
|
|
2274
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2276
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2275
2277
|
icon?: string;
|
|
2276
2278
|
iconLabel?: string;
|
|
2277
2279
|
noUnderline?: boolean;
|
|
@@ -2357,14 +2359,14 @@ declare module BABYLON.NodeEditor {
|
|
|
2357
2359
|
target: any;
|
|
2358
2360
|
propertyName: string;
|
|
2359
2361
|
step?: number;
|
|
2360
|
-
onChange?: (newvalue: Vector2) => void;
|
|
2361
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2362
|
+
onChange?: (newvalue: BABYLON.Vector2) => void;
|
|
2363
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2362
2364
|
icon?: string;
|
|
2363
2365
|
iconLabel?: string;
|
|
2364
2366
|
}
|
|
2365
2367
|
export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
|
|
2366
2368
|
isExpanded: boolean;
|
|
2367
|
-
value: Vector2;
|
|
2369
|
+
value: BABYLON.Vector2;
|
|
2368
2370
|
}> {
|
|
2369
2371
|
static defaultProps: {
|
|
2370
2372
|
step: number;
|
|
@@ -2373,10 +2375,10 @@ declare module BABYLON.NodeEditor {
|
|
|
2373
2375
|
constructor(props: IVector2LineComponentProps);
|
|
2374
2376
|
shouldComponentUpdate(nextProps: IVector2LineComponentProps, nextState: {
|
|
2375
2377
|
isExpanded: boolean;
|
|
2376
|
-
value: Vector2;
|
|
2378
|
+
value: BABYLON.Vector2;
|
|
2377
2379
|
}): boolean;
|
|
2378
2380
|
switchExpandState(): void;
|
|
2379
|
-
raiseOnPropertyChanged(previousValue: Vector2): void;
|
|
2381
|
+
raiseOnPropertyChanged(previousValue: BABYLON.Vector2): void;
|
|
2380
2382
|
updateStateX(value: number): void;
|
|
2381
2383
|
updateStateY(value: number): void;
|
|
2382
2384
|
render(): JSX.Element;
|
|
@@ -2388,16 +2390,16 @@ declare module BABYLON.NodeEditor {
|
|
|
2388
2390
|
target: any;
|
|
2389
2391
|
propertyName: string;
|
|
2390
2392
|
step?: number;
|
|
2391
|
-
onChange?: (newvalue: Vector3) => void;
|
|
2393
|
+
onChange?: (newvalue: BABYLON.Vector3) => void;
|
|
2392
2394
|
useEuler?: boolean;
|
|
2393
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2395
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2394
2396
|
noSlider?: boolean;
|
|
2395
2397
|
icon?: string;
|
|
2396
2398
|
iconLabel?: string;
|
|
2397
2399
|
}
|
|
2398
2400
|
export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
|
|
2399
2401
|
isExpanded: boolean;
|
|
2400
|
-
value: Vector3;
|
|
2402
|
+
value: BABYLON.Vector3;
|
|
2401
2403
|
}> {
|
|
2402
2404
|
static defaultProps: {
|
|
2403
2405
|
step: number;
|
|
@@ -2407,10 +2409,10 @@ declare module BABYLON.NodeEditor {
|
|
|
2407
2409
|
getCurrentValue(): any;
|
|
2408
2410
|
shouldComponentUpdate(nextProps: IVector3LineComponentProps, nextState: {
|
|
2409
2411
|
isExpanded: boolean;
|
|
2410
|
-
value: Vector3;
|
|
2412
|
+
value: BABYLON.Vector3;
|
|
2411
2413
|
}): boolean;
|
|
2412
2414
|
switchExpandState(): void;
|
|
2413
|
-
raiseOnPropertyChanged(previousValue: Vector3): void;
|
|
2415
|
+
raiseOnPropertyChanged(previousValue: BABYLON.Vector3): void;
|
|
2414
2416
|
updateVector3(): void;
|
|
2415
2417
|
updateStateX(value: number): void;
|
|
2416
2418
|
updateStateY(value: number): void;
|
|
@@ -2424,15 +2426,15 @@ declare module BABYLON.NodeEditor {
|
|
|
2424
2426
|
target: any;
|
|
2425
2427
|
propertyName: string;
|
|
2426
2428
|
step?: number;
|
|
2427
|
-
onChange?: (newvalue: Vector4) => void;
|
|
2429
|
+
onChange?: (newvalue: BABYLON.Vector4) => void;
|
|
2428
2430
|
useEuler?: boolean;
|
|
2429
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2431
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2430
2432
|
icon?: string;
|
|
2431
2433
|
iconLabel?: string;
|
|
2432
2434
|
}
|
|
2433
2435
|
export class Vector4LineComponent extends React.Component<IVector4LineComponentProps, {
|
|
2434
2436
|
isExpanded: boolean;
|
|
2435
|
-
value: Vector4;
|
|
2437
|
+
value: BABYLON.Vector4;
|
|
2436
2438
|
}> {
|
|
2437
2439
|
static defaultProps: {
|
|
2438
2440
|
step: number;
|
|
@@ -2442,10 +2444,10 @@ declare module BABYLON.NodeEditor {
|
|
|
2442
2444
|
getCurrentValue(): any;
|
|
2443
2445
|
shouldComponentUpdate(nextProps: IVector4LineComponentProps, nextState: {
|
|
2444
2446
|
isExpanded: boolean;
|
|
2445
|
-
value: Vector4;
|
|
2447
|
+
value: BABYLON.Vector4;
|
|
2446
2448
|
}): boolean;
|
|
2447
2449
|
switchExpandState(): void;
|
|
2448
|
-
raiseOnPropertyChanged(previousValue: Vector4): void;
|
|
2450
|
+
raiseOnPropertyChanged(previousValue: BABYLON.Vector4): void;
|
|
2449
2451
|
updateVector4(): void;
|
|
2450
2452
|
updateStateX(value: number): void;
|
|
2451
2453
|
updateStateY(value: number): void;
|
|
@@ -2478,9 +2480,9 @@ declare module BABYLON.NodeEditor {
|
|
|
2478
2480
|
|
|
2479
2481
|
|
|
2480
2482
|
interface ICheckboxPropertyGridComponentProps {
|
|
2481
|
-
checkbox: Checkbox;
|
|
2483
|
+
checkbox: BABYLON.GUI.Checkbox;
|
|
2482
2484
|
lockObject: LockObject;
|
|
2483
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2485
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2484
2486
|
}
|
|
2485
2487
|
export class CheckboxPropertyGridComponent extends React.Component<ICheckboxPropertyGridComponentProps> {
|
|
2486
2488
|
constructor(props: ICheckboxPropertyGridComponentProps);
|
|
@@ -2489,9 +2491,9 @@ declare module BABYLON.NodeEditor {
|
|
|
2489
2491
|
|
|
2490
2492
|
|
|
2491
2493
|
interface IColorPickerPropertyGridComponentProps {
|
|
2492
|
-
colorPicker: ColorPicker;
|
|
2494
|
+
colorPicker: BABYLON.GUI.ColorPicker;
|
|
2493
2495
|
lockObject: LockObject;
|
|
2494
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2496
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2495
2497
|
}
|
|
2496
2498
|
export class ColorPickerPropertyGridComponent extends React.Component<IColorPickerPropertyGridComponentProps> {
|
|
2497
2499
|
constructor(props: IColorPickerPropertyGridComponentProps);
|
|
@@ -2503,7 +2505,7 @@ declare module BABYLON.NodeEditor {
|
|
|
2503
2505
|
controls?: BABYLON.GUI.Control[];
|
|
2504
2506
|
control?: BABYLON.GUI.Control;
|
|
2505
2507
|
lockObject: LockObject;
|
|
2506
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2508
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2507
2509
|
}
|
|
2508
2510
|
export class CommonControlPropertyGridComponent extends React.Component<ICommonControlPropertyGridComponentProps> {
|
|
2509
2511
|
constructor(props: ICommonControlPropertyGridComponentProps);
|
|
@@ -2513,9 +2515,9 @@ declare module BABYLON.NodeEditor {
|
|
|
2513
2515
|
|
|
2514
2516
|
|
|
2515
2517
|
interface IControlPropertyGridComponentProps {
|
|
2516
|
-
control: Control;
|
|
2518
|
+
control: BABYLON.GUI.Control;
|
|
2517
2519
|
lockObject: LockObject;
|
|
2518
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2520
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2519
2521
|
}
|
|
2520
2522
|
export class ControlPropertyGridComponent extends React.Component<IControlPropertyGridComponentProps> {
|
|
2521
2523
|
constructor(props: IControlPropertyGridComponentProps);
|
|
@@ -2524,9 +2526,9 @@ declare module BABYLON.NodeEditor {
|
|
|
2524
2526
|
|
|
2525
2527
|
|
|
2526
2528
|
interface IEllipsePropertyGridComponentProps {
|
|
2527
|
-
ellipse: Ellipse;
|
|
2529
|
+
ellipse: BABYLON.GUI.Ellipse;
|
|
2528
2530
|
lockObject: LockObject;
|
|
2529
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2531
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2530
2532
|
}
|
|
2531
2533
|
export class EllipsePropertyGridComponent extends React.Component<IEllipsePropertyGridComponentProps> {
|
|
2532
2534
|
constructor(props: IEllipsePropertyGridComponentProps);
|
|
@@ -2535,9 +2537,9 @@ declare module BABYLON.NodeEditor {
|
|
|
2535
2537
|
|
|
2536
2538
|
|
|
2537
2539
|
interface IGridPropertyGridComponentProps {
|
|
2538
|
-
grid: Grid;
|
|
2540
|
+
grid: BABYLON.GUI.Grid;
|
|
2539
2541
|
lockObject: LockObject;
|
|
2540
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2542
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2541
2543
|
}
|
|
2542
2544
|
export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps> {
|
|
2543
2545
|
constructor(props: IGridPropertyGridComponentProps);
|
|
@@ -2548,9 +2550,9 @@ declare module BABYLON.NodeEditor {
|
|
|
2548
2550
|
|
|
2549
2551
|
|
|
2550
2552
|
interface IImageBasedSliderPropertyGridComponentProps {
|
|
2551
|
-
imageBasedSlider: ImageBasedSlider;
|
|
2553
|
+
imageBasedSlider: BABYLON.GUI.ImageBasedSlider;
|
|
2552
2554
|
lockObject: LockObject;
|
|
2553
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2555
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2554
2556
|
}
|
|
2555
2557
|
export class ImageBasedSliderPropertyGridComponent extends React.Component<IImageBasedSliderPropertyGridComponentProps> {
|
|
2556
2558
|
constructor(props: IImageBasedSliderPropertyGridComponentProps);
|
|
@@ -2561,7 +2563,7 @@ declare module BABYLON.NodeEditor {
|
|
|
2561
2563
|
interface IImagePropertyGridComponentProps {
|
|
2562
2564
|
image: BABYLON.GUI.Image;
|
|
2563
2565
|
lockObject: LockObject;
|
|
2564
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2566
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2565
2567
|
}
|
|
2566
2568
|
export class ImagePropertyGridComponent extends React.Component<IImagePropertyGridComponentProps> {
|
|
2567
2569
|
constructor(props: IImagePropertyGridComponentProps);
|
|
@@ -2570,9 +2572,9 @@ declare module BABYLON.NodeEditor {
|
|
|
2570
2572
|
|
|
2571
2573
|
|
|
2572
2574
|
interface IInputTextPropertyGridComponentProps {
|
|
2573
|
-
inputText: InputText;
|
|
2575
|
+
inputText: BABYLON.GUI.InputText;
|
|
2574
2576
|
lockObject: LockObject;
|
|
2575
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2577
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2576
2578
|
}
|
|
2577
2579
|
export class InputTextPropertyGridComponent extends React.Component<IInputTextPropertyGridComponentProps> {
|
|
2578
2580
|
constructor(props: IInputTextPropertyGridComponentProps);
|
|
@@ -2581,9 +2583,9 @@ declare module BABYLON.NodeEditor {
|
|
|
2581
2583
|
|
|
2582
2584
|
|
|
2583
2585
|
interface ILinePropertyGridComponentProps {
|
|
2584
|
-
line: Line;
|
|
2586
|
+
line: BABYLON.GUI.Line;
|
|
2585
2587
|
lockObject: LockObject;
|
|
2586
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2588
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2587
2589
|
}
|
|
2588
2590
|
export class LinePropertyGridComponent extends React.Component<ILinePropertyGridComponentProps> {
|
|
2589
2591
|
constructor(props: ILinePropertyGridComponentProps);
|
|
@@ -2593,9 +2595,9 @@ declare module BABYLON.NodeEditor {
|
|
|
2593
2595
|
|
|
2594
2596
|
|
|
2595
2597
|
interface IRadioButtonPropertyGridComponentProps {
|
|
2596
|
-
radioButtons: RadioButton[];
|
|
2598
|
+
radioButtons: BABYLON.GUI.RadioButton[];
|
|
2597
2599
|
lockObject: LockObject;
|
|
2598
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2600
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2599
2601
|
}
|
|
2600
2602
|
export class RadioButtonPropertyGridComponent extends React.Component<IRadioButtonPropertyGridComponentProps> {
|
|
2601
2603
|
constructor(props: IRadioButtonPropertyGridComponentProps);
|
|
@@ -2604,9 +2606,9 @@ declare module BABYLON.NodeEditor {
|
|
|
2604
2606
|
|
|
2605
2607
|
|
|
2606
2608
|
interface IRectanglePropertyGridComponentProps {
|
|
2607
|
-
rectangle: Rectangle;
|
|
2609
|
+
rectangle: BABYLON.GUI.Rectangle;
|
|
2608
2610
|
lockObject: LockObject;
|
|
2609
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2611
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2610
2612
|
}
|
|
2611
2613
|
export class RectanglePropertyGridComponent extends React.Component<IRectanglePropertyGridComponentProps> {
|
|
2612
2614
|
constructor(props: IRectanglePropertyGridComponentProps);
|
|
@@ -2615,9 +2617,9 @@ declare module BABYLON.NodeEditor {
|
|
|
2615
2617
|
|
|
2616
2618
|
|
|
2617
2619
|
interface IScrollViewerPropertyGridComponentProps {
|
|
2618
|
-
scrollViewer: ScrollViewer;
|
|
2620
|
+
scrollViewer: BABYLON.GUI.ScrollViewer;
|
|
2619
2621
|
lockObject: LockObject;
|
|
2620
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2622
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2621
2623
|
}
|
|
2622
2624
|
export class ScrollViewerPropertyGridComponent extends React.Component<IScrollViewerPropertyGridComponentProps> {
|
|
2623
2625
|
constructor(props: IScrollViewerPropertyGridComponentProps);
|
|
@@ -2626,9 +2628,9 @@ declare module BABYLON.NodeEditor {
|
|
|
2626
2628
|
|
|
2627
2629
|
|
|
2628
2630
|
interface ISliderPropertyGridComponentProps {
|
|
2629
|
-
slider: Slider;
|
|
2631
|
+
slider: BABYLON.GUI.Slider;
|
|
2630
2632
|
lockObject: LockObject;
|
|
2631
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2633
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2632
2634
|
}
|
|
2633
2635
|
export class SliderPropertyGridComponent extends React.Component<ISliderPropertyGridComponentProps> {
|
|
2634
2636
|
constructor(props: ISliderPropertyGridComponentProps);
|
|
@@ -2637,9 +2639,9 @@ declare module BABYLON.NodeEditor {
|
|
|
2637
2639
|
|
|
2638
2640
|
|
|
2639
2641
|
interface IStackPanelPropertyGridComponentProps {
|
|
2640
|
-
stackPanel: StackPanel;
|
|
2642
|
+
stackPanel: BABYLON.GUI.StackPanel;
|
|
2641
2643
|
lockObject: LockObject;
|
|
2642
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2644
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2643
2645
|
}
|
|
2644
2646
|
export class StackPanelPropertyGridComponent extends React.Component<IStackPanelPropertyGridComponentProps> {
|
|
2645
2647
|
constructor(props: IStackPanelPropertyGridComponentProps);
|
|
@@ -2648,9 +2650,9 @@ declare module BABYLON.NodeEditor {
|
|
|
2648
2650
|
|
|
2649
2651
|
|
|
2650
2652
|
interface ITextBlockPropertyGridComponentProps {
|
|
2651
|
-
textBlock: TextBlock;
|
|
2653
|
+
textBlock: BABYLON.GUI.TextBlock;
|
|
2652
2654
|
lockObject: LockObject;
|
|
2653
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2655
|
+
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
2654
2656
|
}
|
|
2655
2657
|
export class TextBlockPropertyGridComponent extends React.Component<ITextBlockPropertyGridComponentProps> {
|
|
2656
2658
|
constructor(props: ITextBlockPropertyGridComponentProps);
|