@babylonjs/node-editor 5.0.0-alpha.61 → 5.0.0-alpha.65
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.max.js +809 -679
- package/babylon.nodeEditor.max.js.map +1 -1
- package/babylon.nodeEditor.module.d.ts +44 -35
- package/package.json +2 -2
|
@@ -83,8 +83,9 @@ declare module "@babylonjs/node-editor/blockTools" {
|
|
|
83
83
|
import { CloudBlock } from '@babylonjs/core/Materials/Node/Blocks/cloudBlock';
|
|
84
84
|
import { VoronoiNoiseBlock } from '@babylonjs/core/Materials/Node/Blocks/voronoiNoiseBlock';
|
|
85
85
|
import { ScreenSpaceBlock } from '@babylonjs/core/Materials/Node/Blocks/Fragment/screenSpaceBlock';
|
|
86
|
+
import { TwirlBlock } from '@babylonjs/core/Materials/Node/Blocks/Fragment/twirlBlock';
|
|
86
87
|
export class BlockTools {
|
|
87
|
-
static GetBlockFromString(data: string, scene: Scene, nodeMaterial: NodeMaterial): VoronoiNoiseBlock | ScreenSpaceBlock | CloudBlock | MatrixBuilderBlock | DesaturateBlock | RefractBlock | ReflectBlock | DerivativeBlock | Rotate2dBlock | NormalBlendBlock | WorleyNoise3DBlock | SimplexPerlin3DBlock | BonesBlock | InstancesBlock | MorphTargetsBlock | DiscardBlock | ImageProcessingBlock | ColorMergerBlock | VectorMergerBlock | ColorSplitterBlock | VectorSplitterBlock | TextureBlock | ReflectionTextureBlock | LightBlock | FogBlock | VertexOutputBlock | FragmentOutputBlock | AddBlock | ClampBlock | ScaleBlock | CrossBlock | DotBlock | PowBlock | MultiplyBlock | TransformBlock | TrigonometryBlock | RemapBlock | NormalizeBlock | FresnelBlock | LerpBlock | NLerpBlock | DivideBlock | SubtractBlock | ModBlock | StepBlock | SmoothStepBlock | OneMinusBlock | ReciprocalBlock | ViewDirectionBlock | LightInformationBlock | MaxBlock | MinBlock | LengthBlock | DistanceBlock | NegateBlock | PerturbNormalBlock | RandomNumberBlock | ReplaceColorBlock | PosterizeBlock | ArcTan2Block | GradientBlock | FrontFacingBlock | WaveBlock | InputBlock | PBRMetallicRoughnessBlock | SheenBlock | AnisotropyBlock | ReflectionBlock | ClearCoatBlock | RefractionBlock | SubSurfaceBlock | CurrentScreenBlock | ParticleTextureBlock | ParticleRampGradientBlock | ParticleBlendMultiplyBlock | FragCoordBlock | ScreenSizeBlock | SceneDepthBlock | ConditionalBlock | ImageSourceBlock | null;
|
|
88
|
+
static GetBlockFromString(data: string, scene: Scene, nodeMaterial: NodeMaterial): TwirlBlock | VoronoiNoiseBlock | ScreenSpaceBlock | CloudBlock | MatrixBuilderBlock | DesaturateBlock | RefractBlock | ReflectBlock | DerivativeBlock | Rotate2dBlock | NormalBlendBlock | WorleyNoise3DBlock | SimplexPerlin3DBlock | BonesBlock | InstancesBlock | MorphTargetsBlock | DiscardBlock | ImageProcessingBlock | ColorMergerBlock | VectorMergerBlock | ColorSplitterBlock | VectorSplitterBlock | TextureBlock | ReflectionTextureBlock | LightBlock | FogBlock | VertexOutputBlock | FragmentOutputBlock | AddBlock | ClampBlock | ScaleBlock | CrossBlock | DotBlock | PowBlock | MultiplyBlock | TransformBlock | TrigonometryBlock | RemapBlock | NormalizeBlock | FresnelBlock | LerpBlock | NLerpBlock | DivideBlock | SubtractBlock | ModBlock | StepBlock | SmoothStepBlock | OneMinusBlock | ReciprocalBlock | ViewDirectionBlock | LightInformationBlock | MaxBlock | MinBlock | LengthBlock | DistanceBlock | NegateBlock | PerturbNormalBlock | RandomNumberBlock | ReplaceColorBlock | PosterizeBlock | ArcTan2Block | GradientBlock | FrontFacingBlock | WaveBlock | InputBlock | PBRMetallicRoughnessBlock | SheenBlock | AnisotropyBlock | ReflectionBlock | ClearCoatBlock | RefractionBlock | SubSurfaceBlock | CurrentScreenBlock | ParticleTextureBlock | ParticleRampGradientBlock | ParticleBlendMultiplyBlock | FragCoordBlock | ScreenSizeBlock | SceneDepthBlock | ConditionalBlock | ImageSourceBlock | null;
|
|
88
89
|
static GetColorFromConnectionNodeType(type: NodeMaterialBlockConnectionPointTypes): string;
|
|
89
90
|
static GetConnectionNodeTypeFromString(type: string): NodeMaterialBlockConnectionPointTypes.Float | NodeMaterialBlockConnectionPointTypes.Vector2 | NodeMaterialBlockConnectionPointTypes.Vector3 | NodeMaterialBlockConnectionPointTypes.Vector4 | NodeMaterialBlockConnectionPointTypes.Color3 | NodeMaterialBlockConnectionPointTypes.Color4 | NodeMaterialBlockConnectionPointTypes.Matrix | NodeMaterialBlockConnectionPointTypes.AutoDetect;
|
|
90
91
|
static GetStringFromConnectionNodeType(type: NodeMaterialBlockConnectionPointTypes): "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix" | "Color3" | "Color4" | "";
|
|
@@ -441,12 +442,12 @@ declare module "@babylonjs/node-editor/diagram/nodeLink" {
|
|
|
441
442
|
declare module "@babylonjs/node-editor/diagram/graphCanvas" {
|
|
442
443
|
import * as React from "react";
|
|
443
444
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
444
|
-
import { NodeMaterialBlock } from
|
|
445
|
+
import { NodeMaterialBlock } from "@babylonjs/core/Materials/Node/nodeMaterialBlock";
|
|
445
446
|
import { GraphNode } from "@babylonjs/node-editor/diagram/graphNode";
|
|
446
|
-
import { Nullable } from
|
|
447
|
+
import { Nullable } from "@babylonjs/core/types";
|
|
447
448
|
import { NodeLink } from "@babylonjs/node-editor/diagram/nodeLink";
|
|
448
449
|
import { NodePort } from "@babylonjs/node-editor/diagram/nodePort";
|
|
449
|
-
import { NodeMaterialConnectionPoint } from
|
|
450
|
+
import { NodeMaterialConnectionPoint } from "@babylonjs/core/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
450
451
|
import { GraphFrame } from "@babylonjs/node-editor/diagram/graphFrame";
|
|
451
452
|
import { IEditorData, IFrameData } from "@babylonjs/node-editor/nodeLocationInfo";
|
|
452
453
|
import { FrameNodePort } from "@babylonjs/node-editor/diagram/frameNodePort";
|
|
@@ -589,7 +590,7 @@ declare module "@babylonjs/node-editor/sharedComponents/floatLineComponent" {
|
|
|
589
590
|
declare module "@babylonjs/node-editor/components/propertyTab/properties/floatPropertyTabComponent" {
|
|
590
591
|
import * as React from "react";
|
|
591
592
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
592
|
-
import { InputBlock } from
|
|
593
|
+
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
593
594
|
interface IFloatPropertyTabComponentProps {
|
|
594
595
|
globalState: GlobalState;
|
|
595
596
|
inputBlock: InputBlock;
|
|
@@ -695,7 +696,7 @@ declare module "@babylonjs/node-editor/sharedComponents/vector2LineComponent" {
|
|
|
695
696
|
declare module "@babylonjs/node-editor/components/propertyTab/properties/vector2PropertyTabComponent" {
|
|
696
697
|
import * as React from "react";
|
|
697
698
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
698
|
-
import { InputBlock } from
|
|
699
|
+
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
699
700
|
interface IVector2PropertyTabComponentProps {
|
|
700
701
|
globalState: GlobalState;
|
|
701
702
|
inputBlock: InputBlock;
|
|
@@ -781,7 +782,7 @@ declare module "@babylonjs/node-editor/sharedUiComponents/colorPicker/colorPicke
|
|
|
781
782
|
}
|
|
782
783
|
declare module "@babylonjs/node-editor/sharedComponents/colorPickerComponent" {
|
|
783
784
|
import * as React from "react";
|
|
784
|
-
import { Color4, Color3 } from
|
|
785
|
+
import { Color4, Color3 } from "@babylonjs/core/Maths/math.color";
|
|
785
786
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
786
787
|
export interface IColorPickerComponentProps {
|
|
787
788
|
value: Color4 | Color3;
|
|
@@ -841,7 +842,7 @@ declare module "@babylonjs/node-editor/sharedComponents/color3LineComponent" {
|
|
|
841
842
|
declare module "@babylonjs/node-editor/components/propertyTab/properties/color3PropertyTabComponent" {
|
|
842
843
|
import * as React from "react";
|
|
843
844
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
844
|
-
import { InputBlock } from
|
|
845
|
+
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
845
846
|
interface IColor3PropertyTabComponentProps {
|
|
846
847
|
globalState: GlobalState;
|
|
847
848
|
inputBlock: InputBlock;
|
|
@@ -890,7 +891,7 @@ declare module "@babylonjs/node-editor/sharedComponents/vector3LineComponent" {
|
|
|
890
891
|
declare module "@babylonjs/node-editor/components/propertyTab/properties/vector3PropertyTabComponent" {
|
|
891
892
|
import * as React from "react";
|
|
892
893
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
893
|
-
import { InputBlock } from
|
|
894
|
+
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
894
895
|
interface IVector3PropertyTabComponentProps {
|
|
895
896
|
globalState: GlobalState;
|
|
896
897
|
inputBlock: InputBlock;
|
|
@@ -941,7 +942,7 @@ declare module "@babylonjs/node-editor/sharedComponents/vector4LineComponent" {
|
|
|
941
942
|
declare module "@babylonjs/node-editor/components/propertyTab/properties/vector4PropertyTabComponent" {
|
|
942
943
|
import * as React from "react";
|
|
943
944
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
944
|
-
import { InputBlock } from
|
|
945
|
+
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
945
946
|
interface IVector4PropertyTabComponentProps {
|
|
946
947
|
globalState: GlobalState;
|
|
947
948
|
inputBlock: InputBlock;
|
|
@@ -1022,7 +1023,7 @@ declare module "@babylonjs/node-editor/sharedComponents/matrixLineComponent" {
|
|
|
1022
1023
|
declare module "@babylonjs/node-editor/components/propertyTab/properties/matrixPropertyTabComponent" {
|
|
1023
1024
|
import * as React from "react";
|
|
1024
1025
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
1025
|
-
import { InputBlock } from
|
|
1026
|
+
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
1026
1027
|
interface IMatrixPropertyTabComponentProps {
|
|
1027
1028
|
globalState: GlobalState;
|
|
1028
1029
|
inputBlock: InputBlock;
|
|
@@ -1147,10 +1148,10 @@ declare module "@babylonjs/node-editor/diagram/properties/genericNodePropertyCom
|
|
|
1147
1148
|
export class GenericPropertyTabComponent extends React.Component<IPropertyComponentProps> {
|
|
1148
1149
|
constructor(props: IPropertyComponentProps);
|
|
1149
1150
|
forceRebuild(notifiers?: {
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1151
|
+
rebuild?: boolean;
|
|
1152
|
+
update?: boolean;
|
|
1153
|
+
activatePreviewCommand?: boolean;
|
|
1154
|
+
callback?: (scene: Scene) => void;
|
|
1154
1155
|
}): void;
|
|
1155
1156
|
render(): JSX.Element;
|
|
1156
1157
|
}
|
|
@@ -1192,7 +1193,7 @@ declare module "@babylonjs/node-editor/sharedComponents/color4LineComponent" {
|
|
|
1192
1193
|
declare module "@babylonjs/node-editor/components/propertyTab/properties/color4PropertyTabComponent" {
|
|
1193
1194
|
import * as React from "react";
|
|
1194
1195
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
1195
|
-
import { InputBlock } from
|
|
1196
|
+
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
1196
1197
|
interface IColor4PropertyTabComponentProps {
|
|
1197
1198
|
globalState: GlobalState;
|
|
1198
1199
|
inputBlock: InputBlock;
|
|
@@ -1224,9 +1225,9 @@ declare module "@babylonjs/node-editor/diagram/properties/transformNodePropertyC
|
|
|
1224
1225
|
}
|
|
1225
1226
|
}
|
|
1226
1227
|
declare module "@babylonjs/node-editor/diagram/properties/gradientStepComponent" {
|
|
1227
|
-
import * as React from
|
|
1228
|
+
import * as React from "react";
|
|
1228
1229
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
1229
|
-
import { GradientBlockColorStep } from
|
|
1230
|
+
import { GradientBlockColorStep } from "@babylonjs/core/Materials/Node/Blocks/gradientBlock";
|
|
1230
1231
|
interface IGradientStepComponentProps {
|
|
1231
1232
|
globalState: GlobalState;
|
|
1232
1233
|
step: GradientBlockColorStep;
|
|
@@ -1260,7 +1261,7 @@ declare module "@babylonjs/node-editor/sharedComponents/buttonLineComponent" {
|
|
|
1260
1261
|
}
|
|
1261
1262
|
declare module "@babylonjs/node-editor/diagram/properties/gradientNodePropertyComponent" {
|
|
1262
1263
|
import * as React from "react";
|
|
1263
|
-
import { GradientBlockColorStep } from
|
|
1264
|
+
import { GradientBlockColorStep } from "@babylonjs/core/Materials/Node/Blocks/gradientBlock";
|
|
1264
1265
|
import { IPropertyComponentProps } from "@babylonjs/node-editor/diagram/properties/propertyComponentProps";
|
|
1265
1266
|
export class GradientPropertyTabComponent extends React.Component<IPropertyComponentProps> {
|
|
1266
1267
|
private onValueChangedObserver;
|
|
@@ -1307,12 +1308,12 @@ declare module "@babylonjs/node-editor/sharedComponents/fileButtonLineComponent"
|
|
|
1307
1308
|
declare module "@babylonjs/node-editor/diagram/properties/texturePropertyTabComponent" {
|
|
1308
1309
|
import * as React from "react";
|
|
1309
1310
|
import { IPropertyComponentProps } from "@babylonjs/node-editor/diagram/properties/propertyComponentProps";
|
|
1310
|
-
import { ReflectionTextureBlock } from
|
|
1311
|
-
import { ReflectionBlock } from
|
|
1312
|
-
import { RefractionBlock } from
|
|
1313
|
-
import { TextureBlock } from
|
|
1314
|
-
import { CurrentScreenBlock } from
|
|
1315
|
-
import { ParticleTextureBlock } from
|
|
1311
|
+
import { ReflectionTextureBlock } from "@babylonjs/core/Materials/Node/Blocks/Dual/reflectionTextureBlock";
|
|
1312
|
+
import { ReflectionBlock } from "@babylonjs/core/Materials/Node/Blocks/PBR/reflectionBlock";
|
|
1313
|
+
import { RefractionBlock } from "@babylonjs/core/Materials/Node/Blocks/PBR/refractionBlock";
|
|
1314
|
+
import { TextureBlock } from "@babylonjs/core/Materials/Node/Blocks/Dual/textureBlock";
|
|
1315
|
+
import { CurrentScreenBlock } from "@babylonjs/core/Materials/Node/Blocks/Dual/currentScreenBlock";
|
|
1316
|
+
import { ParticleTextureBlock } from "@babylonjs/core/Materials/Node/Blocks/Particle/particleTextureBlock";
|
|
1316
1317
|
type ReflectionTexture = ReflectionTextureBlock | ReflectionBlock | RefractionBlock;
|
|
1317
1318
|
type AnyTexture = TextureBlock | ReflectionTexture | CurrentScreenBlock | ParticleTextureBlock;
|
|
1318
1319
|
export class TexturePropertyTabComponent extends React.Component<IPropertyComponentProps, {
|
|
@@ -1358,7 +1359,7 @@ declare module "@babylonjs/node-editor/diagram/properties/conditionalNodePropert
|
|
|
1358
1359
|
declare module "@babylonjs/node-editor/diagram/properties/imageSourcePropertyTabComponent" {
|
|
1359
1360
|
import * as React from "react";
|
|
1360
1361
|
import { IPropertyComponentProps } from "@babylonjs/node-editor/diagram/properties/propertyComponentProps";
|
|
1361
|
-
import { ImageSourceBlock } from
|
|
1362
|
+
import { ImageSourceBlock } from "@babylonjs/core/Materials/Node/Blocks/Dual/imageSourceBlock";
|
|
1362
1363
|
export class ImageSourcePropertyTabComponent extends React.Component<IPropertyComponentProps, {
|
|
1363
1364
|
isEmbedded: boolean;
|
|
1364
1365
|
}> {
|
|
@@ -1742,6 +1743,7 @@ declare module "@babylonjs/node-editor/sharedComponents/draggableLineWithButtonC
|
|
|
1742
1743
|
iconImage: any;
|
|
1743
1744
|
onIconClick: (value: string) => void;
|
|
1744
1745
|
iconTitle: string;
|
|
1746
|
+
lenSuffixToRemove?: number;
|
|
1745
1747
|
}
|
|
1746
1748
|
export class DraggableLineWithButtonComponent extends React.Component<IDraggableLineWithButtonComponent> {
|
|
1747
1749
|
constructor(props: IDraggableLineWithButtonComponent);
|
|
@@ -1781,18 +1783,21 @@ declare module "@babylonjs/node-editor/components/nodeList/nodeListComponent" {
|
|
|
1781
1783
|
private _onResetRequiredObserver;
|
|
1782
1784
|
private static _Tooltips;
|
|
1783
1785
|
private _customFrameList;
|
|
1786
|
+
private _customBlockList;
|
|
1784
1787
|
constructor(props: INodeListComponentProps);
|
|
1785
1788
|
componentWillUnmount(): void;
|
|
1786
1789
|
filterContent(filter: string): void;
|
|
1787
1790
|
loadCustomFrame(file: File): void;
|
|
1788
1791
|
removeItem(value: string): void;
|
|
1792
|
+
loadCustomBlock(file: File): void;
|
|
1793
|
+
removeCustomBlock(value: string): void;
|
|
1789
1794
|
render(): JSX.Element;
|
|
1790
1795
|
}
|
|
1791
1796
|
}
|
|
1792
1797
|
declare module "@babylonjs/node-editor/components/propertyTab/inputsPropertyTabComponent" {
|
|
1793
1798
|
import * as React from "react";
|
|
1794
1799
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
1795
|
-
import { InputBlock } from
|
|
1800
|
+
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
1796
1801
|
interface IInputsPropertyTabComponentProps {
|
|
1797
1802
|
globalState: GlobalState;
|
|
1798
1803
|
inputs: InputBlock[];
|
|
@@ -1859,10 +1864,10 @@ declare module "@babylonjs/node-editor/diagram/properties/nodePortPropertyCompon
|
|
|
1859
1864
|
declare module "@babylonjs/node-editor/components/propertyTab/propertyTabComponent" {
|
|
1860
1865
|
import * as React from "react";
|
|
1861
1866
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
1862
|
-
import { Nullable } from
|
|
1867
|
+
import { Nullable } from "@babylonjs/core/types";
|
|
1863
1868
|
import { GraphNode } from "@babylonjs/node-editor/diagram/graphNode";
|
|
1864
1869
|
import { GraphFrame } from "@babylonjs/node-editor/diagram/graphFrame";
|
|
1865
|
-
import { InputBlock } from
|
|
1870
|
+
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
1866
1871
|
import { FrameNodePort } from "@babylonjs/node-editor/diagram/frameNodePort";
|
|
1867
1872
|
import { NodePort } from "@babylonjs/node-editor/diagram/nodePort";
|
|
1868
1873
|
interface IPropertyTabComponentProps {
|
|
@@ -2004,8 +2009,8 @@ declare module "@babylonjs/node-editor/sharedComponents/popup" {
|
|
|
2004
2009
|
declare module "@babylonjs/node-editor/graphEditor" {
|
|
2005
2010
|
import * as React from "react";
|
|
2006
2011
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
2007
|
-
import { NodeMaterialBlock } from
|
|
2008
|
-
import { Nullable } from
|
|
2012
|
+
import { NodeMaterialBlock } from "@babylonjs/core/Materials/Node/nodeMaterialBlock";
|
|
2013
|
+
import { Nullable } from "@babylonjs/core/types";
|
|
2009
2014
|
import { IEditorData } from "@babylonjs/node-editor/nodeLocationInfo";
|
|
2010
2015
|
import { GraphNode } from "@babylonjs/node-editor/diagram/graphNode";
|
|
2011
2016
|
import { IInspectorOptions } from "@babylonjs/core/Debug/debugLayer";
|
|
@@ -2145,7 +2150,7 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/checkBoxLineComp
|
|
|
2145
2150
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
2146
2151
|
import { PropertyChangedEvent } from "@babylonjs/node-editor/sharedUiComponents/propertyChangedEvent";
|
|
2147
2152
|
export interface ICheckBoxLineComponentProps {
|
|
2148
|
-
label
|
|
2153
|
+
label?: string;
|
|
2149
2154
|
target?: any;
|
|
2150
2155
|
propertyName?: string;
|
|
2151
2156
|
isSelected?: () => boolean;
|
|
@@ -2155,6 +2160,8 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/checkBoxLineComp
|
|
|
2155
2160
|
disabled?: boolean;
|
|
2156
2161
|
icon?: string;
|
|
2157
2162
|
iconLabel?: string;
|
|
2163
|
+
faIcons?: {
|
|
2164
|
+
};
|
|
2158
2165
|
}
|
|
2159
2166
|
export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
|
|
2160
2167
|
isSelected: boolean;
|
|
@@ -2201,7 +2208,7 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/numericInputComp
|
|
|
2201
2208
|
}
|
|
2202
2209
|
declare module "@babylonjs/node-editor/sharedUiComponents/lines/colorPickerComponent" {
|
|
2203
2210
|
import * as React from "react";
|
|
2204
|
-
import { Color4, Color3 } from
|
|
2211
|
+
import { Color4, Color3 } from "@babylonjs/core/Maths/math.color";
|
|
2205
2212
|
export interface IColorPickerComponentProps {
|
|
2206
2213
|
value: Color4 | Color3;
|
|
2207
2214
|
linearHint?: boolean;
|
|
@@ -2254,6 +2261,7 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/textInputLineCom
|
|
|
2254
2261
|
iconLabel?: string;
|
|
2255
2262
|
noUnderline?: boolean;
|
|
2256
2263
|
numbersOnly?: boolean;
|
|
2264
|
+
delayInput?: boolean;
|
|
2257
2265
|
}
|
|
2258
2266
|
export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
|
|
2259
2267
|
value: string;
|
|
@@ -2273,7 +2281,7 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/color3LineCompon
|
|
|
2273
2281
|
import * as React from "react";
|
|
2274
2282
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
2275
2283
|
import { PropertyChangedEvent } from "@babylonjs/node-editor/sharedUiComponents/propertyChangedEvent";
|
|
2276
|
-
import { Color3, Color4 } from
|
|
2284
|
+
import { Color3, Color4 } from "@babylonjs/core/Maths/math.color";
|
|
2277
2285
|
import { LockObject } from "@babylonjs/node-editor/sharedUiComponents/tabs/propertyGrids/lockObject";
|
|
2278
2286
|
export interface IColor3LineComponentProps {
|
|
2279
2287
|
label: string;
|
|
@@ -2456,6 +2464,7 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/floatLineCompone
|
|
|
2456
2464
|
onEnter?: (newValue: number) => void;
|
|
2457
2465
|
icon?: string;
|
|
2458
2466
|
iconLabel?: string;
|
|
2467
|
+
defaultValue?: number;
|
|
2459
2468
|
}
|
|
2460
2469
|
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
|
2461
2470
|
value: string;
|
|
@@ -2522,7 +2531,7 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/iSelectedLineCon
|
|
|
2522
2531
|
}
|
|
2523
2532
|
}
|
|
2524
2533
|
declare module "@babylonjs/node-editor/sharedUiComponents/lines/iconButtonLineComponent" {
|
|
2525
|
-
import * as React from
|
|
2534
|
+
import * as React from "react";
|
|
2526
2535
|
export interface IIconButtonLineComponentProps {
|
|
2527
2536
|
icon: string;
|
|
2528
2537
|
onClick: () => void;
|
package/package.json
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
},
|
|
5
5
|
"name": "@babylonjs/node-editor",
|
|
6
6
|
"description": "The Babylon.js node material editor.",
|
|
7
|
-
"version": "5.0.0-alpha.
|
|
7
|
+
"version": "5.0.0-alpha.65",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/BabylonJS/Babylon.js.git"
|
|
11
11
|
},
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@babylonjs/core": "5.0.0-alpha.
|
|
14
|
+
"@babylonjs/core": "5.0.0-alpha.65",
|
|
15
15
|
"tslib": "^2.3.1"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|