babylonjs-node-editor 5.26.1 → 5.27.1
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 +216 -0
- package/babylon.nodeEditor.module.d.ts +424 -2
- package/package.json +2 -2
package/babylon.nodeEditor.d.ts
CHANGED
|
@@ -1027,6 +1027,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1027
1027
|
onPanButtonClicked?: () => void;
|
|
1028
1028
|
onZoomButtonClicked?: () => void;
|
|
1029
1029
|
onFitButtonClicked?: () => void;
|
|
1030
|
+
onArtboardColorChanged?: (newColor: string) => void;
|
|
1031
|
+
artboardColor?: string;
|
|
1032
|
+
artboardColorPickerColor?: string;
|
|
1030
1033
|
}
|
|
1031
1034
|
export var CommandBarComponent: React.FC<ICommandBarComponentProps>;
|
|
1032
1035
|
|
|
@@ -1110,6 +1113,104 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1110
1113
|
|
|
1111
1114
|
|
|
1112
1115
|
|
|
1116
|
+
}
|
|
1117
|
+
declare module BABYLON.NodeEditor {
|
|
1118
|
+
|
|
1119
|
+
}
|
|
1120
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1121
|
+
export interface IColorComponentEntryProps {
|
|
1122
|
+
value: number;
|
|
1123
|
+
label: string;
|
|
1124
|
+
max?: number;
|
|
1125
|
+
min?: number;
|
|
1126
|
+
onChange: (value: number) => void;
|
|
1127
|
+
disabled?: boolean;
|
|
1128
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1129
|
+
}
|
|
1130
|
+
export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
|
|
1131
|
+
constructor(props: IColorComponentEntryProps);
|
|
1132
|
+
updateValue(valueString: string): void;
|
|
1133
|
+
lock(): void;
|
|
1134
|
+
unlock(): void;
|
|
1135
|
+
render(): JSX.Element;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
}
|
|
1141
|
+
declare module BABYLON.NodeEditor {
|
|
1142
|
+
|
|
1143
|
+
}
|
|
1144
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1145
|
+
/**
|
|
1146
|
+
* Interface used to specify creation options for color picker
|
|
1147
|
+
*/
|
|
1148
|
+
export interface IColorPickerProps {
|
|
1149
|
+
color: BABYLON.Color3 | BABYLON.Color4;
|
|
1150
|
+
linearhint?: boolean;
|
|
1151
|
+
debugMode?: boolean;
|
|
1152
|
+
onColorChanged?: (color: BABYLON.Color3 | BABYLON.Color4) => void;
|
|
1153
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1154
|
+
backgroundColor?: string;
|
|
1155
|
+
}
|
|
1156
|
+
/**
|
|
1157
|
+
* Interface used to specify creation options for color picker
|
|
1158
|
+
*/
|
|
1159
|
+
export interface IColorPickerState {
|
|
1160
|
+
color: BABYLON.Color3;
|
|
1161
|
+
alpha: number;
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
* Class used to create a color picker
|
|
1165
|
+
*/
|
|
1166
|
+
export class ColorPicker extends React.Component<IColorPickerProps, IColorPickerState> {
|
|
1167
|
+
private _saturationRef;
|
|
1168
|
+
private _hueRef;
|
|
1169
|
+
private _isSaturationPointerDown;
|
|
1170
|
+
private _isHuePointerDown;
|
|
1171
|
+
constructor(props: IColorPickerProps);
|
|
1172
|
+
shouldComponentUpdate(nextProps: IColorPickerProps, nextState: IColorPickerState): boolean;
|
|
1173
|
+
onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1174
|
+
onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1175
|
+
onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1176
|
+
onHuePointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1177
|
+
onHuePointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1178
|
+
onHuePointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1179
|
+
private _evaluateSaturation;
|
|
1180
|
+
private _evaluateHue;
|
|
1181
|
+
componentDidUpdate(): void;
|
|
1182
|
+
raiseOnColorChanged(): void;
|
|
1183
|
+
render(): JSX.Element;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
}
|
|
1189
|
+
declare module BABYLON.NodeEditor {
|
|
1190
|
+
|
|
1191
|
+
}
|
|
1192
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1193
|
+
export interface IHexColorProps {
|
|
1194
|
+
value: string;
|
|
1195
|
+
expectedLength: number;
|
|
1196
|
+
onChange: (value: string) => void;
|
|
1197
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1198
|
+
}
|
|
1199
|
+
export class HexColor extends React.Component<IHexColorProps, {
|
|
1200
|
+
hex: string;
|
|
1201
|
+
}> {
|
|
1202
|
+
constructor(props: IHexColorProps);
|
|
1203
|
+
shouldComponentUpdate(nextProps: IHexColorProps, nextState: {
|
|
1204
|
+
hex: string;
|
|
1205
|
+
}): boolean;
|
|
1206
|
+
lock(): void;
|
|
1207
|
+
unlock(): void;
|
|
1208
|
+
updateHexValue(valueString: string): void;
|
|
1209
|
+
render(): JSX.Element;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
|
|
1113
1214
|
}
|
|
1114
1215
|
declare module BABYLON.NodeEditor {
|
|
1115
1216
|
|
|
@@ -1138,6 +1239,85 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1138
1239
|
|
|
1139
1240
|
|
|
1140
1241
|
|
|
1242
|
+
}
|
|
1243
|
+
declare module BABYLON.NodeEditor {
|
|
1244
|
+
|
|
1245
|
+
}
|
|
1246
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1247
|
+
export interface IColorLineComponentProps {
|
|
1248
|
+
label: string;
|
|
1249
|
+
target: any;
|
|
1250
|
+
propertyName: string;
|
|
1251
|
+
onPropertyChangedObservable: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
1252
|
+
onChange?: () => void;
|
|
1253
|
+
isLinear?: boolean;
|
|
1254
|
+
icon?: string;
|
|
1255
|
+
iconLabel?: string;
|
|
1256
|
+
disableAlpha?: boolean;
|
|
1257
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1258
|
+
}
|
|
1259
|
+
interface IColorLineComponentState {
|
|
1260
|
+
isExpanded: boolean;
|
|
1261
|
+
color: BABYLON.Color4;
|
|
1262
|
+
}
|
|
1263
|
+
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
|
1264
|
+
constructor(props: IColorLineComponentProps);
|
|
1265
|
+
shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
|
|
1266
|
+
getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
|
1267
|
+
children?: React.ReactNode;
|
|
1268
|
+
}>): BABYLON.Color4;
|
|
1269
|
+
setColorFromString(colorString: string): void;
|
|
1270
|
+
setColor(newColor: BABYLON.Color4): void;
|
|
1271
|
+
switchExpandState(): void;
|
|
1272
|
+
updateStateR(value: number): void;
|
|
1273
|
+
updateStateG(value: number): void;
|
|
1274
|
+
updateStateB(value: number): void;
|
|
1275
|
+
updateStateA(value: number): void;
|
|
1276
|
+
copyToClipboard(): void;
|
|
1277
|
+
private _convertToColor;
|
|
1278
|
+
private _toColor3;
|
|
1279
|
+
render(): JSX.Element;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
}
|
|
1285
|
+
declare module BABYLON.NodeEditor {
|
|
1286
|
+
|
|
1287
|
+
}
|
|
1288
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1289
|
+
export interface IColorPickerComponentProps {
|
|
1290
|
+
value: BABYLON.Color4 | BABYLON.Color3;
|
|
1291
|
+
linearHint?: boolean;
|
|
1292
|
+
onColorChanged: (newOne: string) => void;
|
|
1293
|
+
icon?: string;
|
|
1294
|
+
iconLabel?: string;
|
|
1295
|
+
shouldPopRight?: boolean;
|
|
1296
|
+
lockObject?: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1297
|
+
backgroundColor?: string;
|
|
1298
|
+
}
|
|
1299
|
+
interface IColorPickerComponentState {
|
|
1300
|
+
pickerEnabled: boolean;
|
|
1301
|
+
color: BABYLON.Color3 | BABYLON.Color4;
|
|
1302
|
+
hex: string;
|
|
1303
|
+
}
|
|
1304
|
+
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
|
1305
|
+
private _floatRef;
|
|
1306
|
+
private _floatHostRef;
|
|
1307
|
+
private _coverRef;
|
|
1308
|
+
constructor(props: IColorPickerComponentProps);
|
|
1309
|
+
syncPositions(): void;
|
|
1310
|
+
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
1311
|
+
getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
|
|
1312
|
+
children?: React.ReactNode;
|
|
1313
|
+
}>): string;
|
|
1314
|
+
componentDidUpdate(): void;
|
|
1315
|
+
componentDidMount(): void;
|
|
1316
|
+
render(): JSX.Element;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
|
|
1141
1321
|
}
|
|
1142
1322
|
declare module BABYLON.NodeEditor {
|
|
1143
1323
|
|
|
@@ -1161,6 +1341,42 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1161
1341
|
|
|
1162
1342
|
|
|
1163
1343
|
|
|
1344
|
+
}
|
|
1345
|
+
declare module BABYLON.NodeEditor {
|
|
1346
|
+
|
|
1347
|
+
}
|
|
1348
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1349
|
+
interface INumericInputComponentProps {
|
|
1350
|
+
label: string;
|
|
1351
|
+
value: number;
|
|
1352
|
+
step?: number;
|
|
1353
|
+
onChange: (value: number) => void;
|
|
1354
|
+
precision?: number;
|
|
1355
|
+
icon?: string;
|
|
1356
|
+
iconLabel?: string;
|
|
1357
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1358
|
+
}
|
|
1359
|
+
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
|
1360
|
+
value: string;
|
|
1361
|
+
}> {
|
|
1362
|
+
static defaultProps: {
|
|
1363
|
+
step: number;
|
|
1364
|
+
};
|
|
1365
|
+
private _localChange;
|
|
1366
|
+
constructor(props: INumericInputComponentProps);
|
|
1367
|
+
componentWillUnmount(): void;
|
|
1368
|
+
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
1369
|
+
value: string;
|
|
1370
|
+
}): boolean;
|
|
1371
|
+
updateValue(valueString: string): void;
|
|
1372
|
+
onBlur(): void;
|
|
1373
|
+
incrementValue(amount: number): void;
|
|
1374
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
|
|
1375
|
+
render(): JSX.Element;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
|
|
1379
|
+
|
|
1164
1380
|
}
|
|
1165
1381
|
declare module BABYLON.NodeEditor {
|
|
1166
1382
|
|
|
@@ -1371,7 +1371,7 @@ export class HexColor extends React.Component<IHexColorProps, {
|
|
|
1371
1371
|
|
|
1372
1372
|
}
|
|
1373
1373
|
declare module "babylonjs-node-editor/components/bars/CommandBarComponent" {
|
|
1374
|
-
import
|
|
1374
|
+
import { FC } from "react";
|
|
1375
1375
|
export interface ICommandBarComponentProps {
|
|
1376
1376
|
onSaveButtonClicked?: () => void;
|
|
1377
1377
|
onSaveToSnippetButtonClicked?: () => void;
|
|
@@ -1382,8 +1382,11 @@ export interface ICommandBarComponentProps {
|
|
|
1382
1382
|
onPanButtonClicked?: () => void;
|
|
1383
1383
|
onZoomButtonClicked?: () => void;
|
|
1384
1384
|
onFitButtonClicked?: () => void;
|
|
1385
|
+
onArtboardColorChanged?: (newColor: string) => void;
|
|
1386
|
+
artboardColor?: string;
|
|
1387
|
+
artboardColorPickerColor?: string;
|
|
1385
1388
|
}
|
|
1386
|
-
export const CommandBarComponent:
|
|
1389
|
+
export const CommandBarComponent: FC<ICommandBarComponentProps>;
|
|
1387
1390
|
|
|
1388
1391
|
}
|
|
1389
1392
|
declare module "babylonjs-node-editor/components/bars/CommandButtonComponent" {
|
|
@@ -1446,6 +1449,96 @@ declare module "babylonjs-node-editor/components/classNames" {
|
|
|
1446
1449
|
export function ClassNames(names: any, styleObject: any): string;
|
|
1447
1450
|
export function JoinClassNames(styleObject: any, ...names: string[]): string;
|
|
1448
1451
|
|
|
1452
|
+
}
|
|
1453
|
+
declare module "babylonjs-node-editor/components/colorPicker/ColorComponentEntry" {
|
|
1454
|
+
import * as React from "react";
|
|
1455
|
+
import { LockObject } from "babylonjs-node-editor/tabs/propertyGrids/lockObject";
|
|
1456
|
+
export interface IColorComponentEntryProps {
|
|
1457
|
+
value: number;
|
|
1458
|
+
label: string;
|
|
1459
|
+
max?: number;
|
|
1460
|
+
min?: number;
|
|
1461
|
+
onChange: (value: number) => void;
|
|
1462
|
+
disabled?: boolean;
|
|
1463
|
+
lockObject: LockObject;
|
|
1464
|
+
}
|
|
1465
|
+
export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
|
|
1466
|
+
constructor(props: IColorComponentEntryProps);
|
|
1467
|
+
updateValue(valueString: string): void;
|
|
1468
|
+
lock(): void;
|
|
1469
|
+
unlock(): void;
|
|
1470
|
+
render(): JSX.Element;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
}
|
|
1474
|
+
declare module "babylonjs-node-editor/components/colorPicker/ColorPicker" {
|
|
1475
|
+
import * as React from "react";
|
|
1476
|
+
import { Color3, Color4 } from "babylonjs/Maths/math.color";
|
|
1477
|
+
import { LockObject } from "babylonjs-node-editor/tabs/propertyGrids/lockObject";
|
|
1478
|
+
/**
|
|
1479
|
+
* Interface used to specify creation options for color picker
|
|
1480
|
+
*/
|
|
1481
|
+
export interface IColorPickerProps {
|
|
1482
|
+
color: Color3 | Color4;
|
|
1483
|
+
linearhint?: boolean;
|
|
1484
|
+
debugMode?: boolean;
|
|
1485
|
+
onColorChanged?: (color: Color3 | Color4) => void;
|
|
1486
|
+
lockObject: LockObject;
|
|
1487
|
+
backgroundColor?: string;
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* Interface used to specify creation options for color picker
|
|
1491
|
+
*/
|
|
1492
|
+
export interface IColorPickerState {
|
|
1493
|
+
color: Color3;
|
|
1494
|
+
alpha: number;
|
|
1495
|
+
}
|
|
1496
|
+
/**
|
|
1497
|
+
* Class used to create a color picker
|
|
1498
|
+
*/
|
|
1499
|
+
export class ColorPicker extends React.Component<IColorPickerProps, IColorPickerState> {
|
|
1500
|
+
private _saturationRef;
|
|
1501
|
+
private _hueRef;
|
|
1502
|
+
private _isSaturationPointerDown;
|
|
1503
|
+
private _isHuePointerDown;
|
|
1504
|
+
constructor(props: IColorPickerProps);
|
|
1505
|
+
shouldComponentUpdate(nextProps: IColorPickerProps, nextState: IColorPickerState): boolean;
|
|
1506
|
+
onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1507
|
+
onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1508
|
+
onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1509
|
+
onHuePointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1510
|
+
onHuePointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1511
|
+
onHuePointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1512
|
+
private _evaluateSaturation;
|
|
1513
|
+
private _evaluateHue;
|
|
1514
|
+
componentDidUpdate(): void;
|
|
1515
|
+
raiseOnColorChanged(): void;
|
|
1516
|
+
render(): JSX.Element;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
}
|
|
1520
|
+
declare module "babylonjs-node-editor/components/colorPicker/HexColor" {
|
|
1521
|
+
import * as React from "react";
|
|
1522
|
+
import { LockObject } from "babylonjs-node-editor/tabs/propertyGrids/lockObject";
|
|
1523
|
+
export interface IHexColorProps {
|
|
1524
|
+
value: string;
|
|
1525
|
+
expectedLength: number;
|
|
1526
|
+
onChange: (value: string) => void;
|
|
1527
|
+
lockObject: LockObject;
|
|
1528
|
+
}
|
|
1529
|
+
export class HexColor extends React.Component<IHexColorProps, {
|
|
1530
|
+
hex: string;
|
|
1531
|
+
}> {
|
|
1532
|
+
constructor(props: IHexColorProps);
|
|
1533
|
+
shouldComponentUpdate(nextProps: IHexColorProps, nextState: {
|
|
1534
|
+
hex: string;
|
|
1535
|
+
}): boolean;
|
|
1536
|
+
lock(): void;
|
|
1537
|
+
unlock(): void;
|
|
1538
|
+
updateHexValue(valueString: string): void;
|
|
1539
|
+
render(): JSX.Element;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1449
1542
|
}
|
|
1450
1543
|
declare module "babylonjs-node-editor/components/Icon" {
|
|
1451
1544
|
/// <reference types="react" />
|
|
@@ -1465,6 +1558,85 @@ export type LabelProps = {
|
|
|
1465
1558
|
};
|
|
1466
1559
|
export const Label: React.FC<LabelProps>;
|
|
1467
1560
|
|
|
1561
|
+
}
|
|
1562
|
+
declare module "babylonjs-node-editor/components/lines/ColorLineComponent" {
|
|
1563
|
+
import * as React from "react";
|
|
1564
|
+
import { Observable } from "babylonjs/Misc/observable";
|
|
1565
|
+
import { Color4 } from "babylonjs/Maths/math.color";
|
|
1566
|
+
import { PropertyChangedEvent } from "babylonjs-node-editor/propertyChangedEvent";
|
|
1567
|
+
import { LockObject } from "babylonjs-node-editor/tabs/propertyGrids/lockObject";
|
|
1568
|
+
export interface IColorLineComponentProps {
|
|
1569
|
+
label: string;
|
|
1570
|
+
target: any;
|
|
1571
|
+
propertyName: string;
|
|
1572
|
+
onPropertyChangedObservable: Observable<PropertyChangedEvent>;
|
|
1573
|
+
onChange?: () => void;
|
|
1574
|
+
isLinear?: boolean;
|
|
1575
|
+
icon?: string;
|
|
1576
|
+
iconLabel?: string;
|
|
1577
|
+
disableAlpha?: boolean;
|
|
1578
|
+
lockObject: LockObject;
|
|
1579
|
+
}
|
|
1580
|
+
interface IColorLineComponentState {
|
|
1581
|
+
isExpanded: boolean;
|
|
1582
|
+
color: Color4;
|
|
1583
|
+
}
|
|
1584
|
+
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
|
1585
|
+
constructor(props: IColorLineComponentProps);
|
|
1586
|
+
shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
|
|
1587
|
+
getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
|
1588
|
+
children?: React.ReactNode;
|
|
1589
|
+
}>): Color4;
|
|
1590
|
+
setColorFromString(colorString: string): void;
|
|
1591
|
+
setColor(newColor: Color4): void;
|
|
1592
|
+
switchExpandState(): void;
|
|
1593
|
+
updateStateR(value: number): void;
|
|
1594
|
+
updateStateG(value: number): void;
|
|
1595
|
+
updateStateB(value: number): void;
|
|
1596
|
+
updateStateA(value: number): void;
|
|
1597
|
+
copyToClipboard(): void;
|
|
1598
|
+
private _convertToColor;
|
|
1599
|
+
private _toColor3;
|
|
1600
|
+
render(): JSX.Element;
|
|
1601
|
+
}
|
|
1602
|
+
export {};
|
|
1603
|
+
|
|
1604
|
+
}
|
|
1605
|
+
declare module "babylonjs-node-editor/components/lines/ColorPickerLineComponent" {
|
|
1606
|
+
import * as React from "react";
|
|
1607
|
+
import { Color4, Color3 } from "babylonjs/Maths/math.color";
|
|
1608
|
+
import { LockObject } from "babylonjs-node-editor/tabs/propertyGrids/lockObject";
|
|
1609
|
+
export interface IColorPickerComponentProps {
|
|
1610
|
+
value: Color4 | Color3;
|
|
1611
|
+
linearHint?: boolean;
|
|
1612
|
+
onColorChanged: (newOne: string) => void;
|
|
1613
|
+
icon?: string;
|
|
1614
|
+
iconLabel?: string;
|
|
1615
|
+
shouldPopRight?: boolean;
|
|
1616
|
+
lockObject?: LockObject;
|
|
1617
|
+
backgroundColor?: string;
|
|
1618
|
+
}
|
|
1619
|
+
interface IColorPickerComponentState {
|
|
1620
|
+
pickerEnabled: boolean;
|
|
1621
|
+
color: Color3 | Color4;
|
|
1622
|
+
hex: string;
|
|
1623
|
+
}
|
|
1624
|
+
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
|
1625
|
+
private _floatRef;
|
|
1626
|
+
private _floatHostRef;
|
|
1627
|
+
private _coverRef;
|
|
1628
|
+
constructor(props: IColorPickerComponentProps);
|
|
1629
|
+
syncPositions(): void;
|
|
1630
|
+
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
1631
|
+
getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
|
|
1632
|
+
children?: React.ReactNode;
|
|
1633
|
+
}>): string;
|
|
1634
|
+
componentDidUpdate(): void;
|
|
1635
|
+
componentDidMount(): void;
|
|
1636
|
+
render(): JSX.Element;
|
|
1637
|
+
}
|
|
1638
|
+
export {};
|
|
1639
|
+
|
|
1468
1640
|
}
|
|
1469
1641
|
declare module "babylonjs-node-editor/components/lines/FileButtonLineComponent" {
|
|
1470
1642
|
import * as React from "react";
|
|
@@ -1484,6 +1656,40 @@ export class FileButtonLineComponent extends React.Component<IFileButtonLineComp
|
|
|
1484
1656
|
render(): JSX.Element;
|
|
1485
1657
|
}
|
|
1486
1658
|
|
|
1659
|
+
}
|
|
1660
|
+
declare module "babylonjs-node-editor/components/lines/NumericInputComponent" {
|
|
1661
|
+
import * as React from "react";
|
|
1662
|
+
import { LockObject } from "babylonjs-node-editor/tabs/propertyGrids/lockObject";
|
|
1663
|
+
interface INumericInputComponentProps {
|
|
1664
|
+
label: string;
|
|
1665
|
+
value: number;
|
|
1666
|
+
step?: number;
|
|
1667
|
+
onChange: (value: number) => void;
|
|
1668
|
+
precision?: number;
|
|
1669
|
+
icon?: string;
|
|
1670
|
+
iconLabel?: string;
|
|
1671
|
+
lockObject: LockObject;
|
|
1672
|
+
}
|
|
1673
|
+
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
|
1674
|
+
value: string;
|
|
1675
|
+
}> {
|
|
1676
|
+
static defaultProps: {
|
|
1677
|
+
step: number;
|
|
1678
|
+
};
|
|
1679
|
+
private _localChange;
|
|
1680
|
+
constructor(props: INumericInputComponentProps);
|
|
1681
|
+
componentWillUnmount(): void;
|
|
1682
|
+
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
1683
|
+
value: string;
|
|
1684
|
+
}): boolean;
|
|
1685
|
+
updateValue(valueString: string): void;
|
|
1686
|
+
onBlur(): void;
|
|
1687
|
+
incrementValue(amount: number): void;
|
|
1688
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
|
|
1689
|
+
render(): JSX.Element;
|
|
1690
|
+
}
|
|
1691
|
+
export {};
|
|
1692
|
+
|
|
1487
1693
|
}
|
|
1488
1694
|
declare module "babylonjs-node-editor/components/MessageDialog" {
|
|
1489
1695
|
import * as React from "react";
|
|
@@ -4442,6 +4648,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
4442
4648
|
onPanButtonClicked?: () => void;
|
|
4443
4649
|
onZoomButtonClicked?: () => void;
|
|
4444
4650
|
onFitButtonClicked?: () => void;
|
|
4651
|
+
onArtboardColorChanged?: (newColor: string) => void;
|
|
4652
|
+
artboardColor?: string;
|
|
4653
|
+
artboardColorPickerColor?: string;
|
|
4445
4654
|
}
|
|
4446
4655
|
export var CommandBarComponent: React.FC<ICommandBarComponentProps>;
|
|
4447
4656
|
|
|
@@ -4525,6 +4734,104 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
4525
4734
|
|
|
4526
4735
|
|
|
4527
4736
|
|
|
4737
|
+
}
|
|
4738
|
+
declare module BABYLON.NodeEditor {
|
|
4739
|
+
|
|
4740
|
+
}
|
|
4741
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
4742
|
+
export interface IColorComponentEntryProps {
|
|
4743
|
+
value: number;
|
|
4744
|
+
label: string;
|
|
4745
|
+
max?: number;
|
|
4746
|
+
min?: number;
|
|
4747
|
+
onChange: (value: number) => void;
|
|
4748
|
+
disabled?: boolean;
|
|
4749
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
4750
|
+
}
|
|
4751
|
+
export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
|
|
4752
|
+
constructor(props: IColorComponentEntryProps);
|
|
4753
|
+
updateValue(valueString: string): void;
|
|
4754
|
+
lock(): void;
|
|
4755
|
+
unlock(): void;
|
|
4756
|
+
render(): JSX.Element;
|
|
4757
|
+
}
|
|
4758
|
+
|
|
4759
|
+
|
|
4760
|
+
|
|
4761
|
+
}
|
|
4762
|
+
declare module BABYLON.NodeEditor {
|
|
4763
|
+
|
|
4764
|
+
}
|
|
4765
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
4766
|
+
/**
|
|
4767
|
+
* Interface used to specify creation options for color picker
|
|
4768
|
+
*/
|
|
4769
|
+
export interface IColorPickerProps {
|
|
4770
|
+
color: BABYLON.Color3 | BABYLON.Color4;
|
|
4771
|
+
linearhint?: boolean;
|
|
4772
|
+
debugMode?: boolean;
|
|
4773
|
+
onColorChanged?: (color: BABYLON.Color3 | BABYLON.Color4) => void;
|
|
4774
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
4775
|
+
backgroundColor?: string;
|
|
4776
|
+
}
|
|
4777
|
+
/**
|
|
4778
|
+
* Interface used to specify creation options for color picker
|
|
4779
|
+
*/
|
|
4780
|
+
export interface IColorPickerState {
|
|
4781
|
+
color: BABYLON.Color3;
|
|
4782
|
+
alpha: number;
|
|
4783
|
+
}
|
|
4784
|
+
/**
|
|
4785
|
+
* Class used to create a color picker
|
|
4786
|
+
*/
|
|
4787
|
+
export class ColorPicker extends React.Component<IColorPickerProps, IColorPickerState> {
|
|
4788
|
+
private _saturationRef;
|
|
4789
|
+
private _hueRef;
|
|
4790
|
+
private _isSaturationPointerDown;
|
|
4791
|
+
private _isHuePointerDown;
|
|
4792
|
+
constructor(props: IColorPickerProps);
|
|
4793
|
+
shouldComponentUpdate(nextProps: IColorPickerProps, nextState: IColorPickerState): boolean;
|
|
4794
|
+
onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
4795
|
+
onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
4796
|
+
onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
4797
|
+
onHuePointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
4798
|
+
onHuePointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
4799
|
+
onHuePointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
4800
|
+
private _evaluateSaturation;
|
|
4801
|
+
private _evaluateHue;
|
|
4802
|
+
componentDidUpdate(): void;
|
|
4803
|
+
raiseOnColorChanged(): void;
|
|
4804
|
+
render(): JSX.Element;
|
|
4805
|
+
}
|
|
4806
|
+
|
|
4807
|
+
|
|
4808
|
+
|
|
4809
|
+
}
|
|
4810
|
+
declare module BABYLON.NodeEditor {
|
|
4811
|
+
|
|
4812
|
+
}
|
|
4813
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
4814
|
+
export interface IHexColorProps {
|
|
4815
|
+
value: string;
|
|
4816
|
+
expectedLength: number;
|
|
4817
|
+
onChange: (value: string) => void;
|
|
4818
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
4819
|
+
}
|
|
4820
|
+
export class HexColor extends React.Component<IHexColorProps, {
|
|
4821
|
+
hex: string;
|
|
4822
|
+
}> {
|
|
4823
|
+
constructor(props: IHexColorProps);
|
|
4824
|
+
shouldComponentUpdate(nextProps: IHexColorProps, nextState: {
|
|
4825
|
+
hex: string;
|
|
4826
|
+
}): boolean;
|
|
4827
|
+
lock(): void;
|
|
4828
|
+
unlock(): void;
|
|
4829
|
+
updateHexValue(valueString: string): void;
|
|
4830
|
+
render(): JSX.Element;
|
|
4831
|
+
}
|
|
4832
|
+
|
|
4833
|
+
|
|
4834
|
+
|
|
4528
4835
|
}
|
|
4529
4836
|
declare module BABYLON.NodeEditor {
|
|
4530
4837
|
|
|
@@ -4553,6 +4860,85 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
4553
4860
|
|
|
4554
4861
|
|
|
4555
4862
|
|
|
4863
|
+
}
|
|
4864
|
+
declare module BABYLON.NodeEditor {
|
|
4865
|
+
|
|
4866
|
+
}
|
|
4867
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
4868
|
+
export interface IColorLineComponentProps {
|
|
4869
|
+
label: string;
|
|
4870
|
+
target: any;
|
|
4871
|
+
propertyName: string;
|
|
4872
|
+
onPropertyChangedObservable: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
4873
|
+
onChange?: () => void;
|
|
4874
|
+
isLinear?: boolean;
|
|
4875
|
+
icon?: string;
|
|
4876
|
+
iconLabel?: string;
|
|
4877
|
+
disableAlpha?: boolean;
|
|
4878
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
4879
|
+
}
|
|
4880
|
+
interface IColorLineComponentState {
|
|
4881
|
+
isExpanded: boolean;
|
|
4882
|
+
color: BABYLON.Color4;
|
|
4883
|
+
}
|
|
4884
|
+
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
|
4885
|
+
constructor(props: IColorLineComponentProps);
|
|
4886
|
+
shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
|
|
4887
|
+
getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
|
4888
|
+
children?: React.ReactNode;
|
|
4889
|
+
}>): BABYLON.Color4;
|
|
4890
|
+
setColorFromString(colorString: string): void;
|
|
4891
|
+
setColor(newColor: BABYLON.Color4): void;
|
|
4892
|
+
switchExpandState(): void;
|
|
4893
|
+
updateStateR(value: number): void;
|
|
4894
|
+
updateStateG(value: number): void;
|
|
4895
|
+
updateStateB(value: number): void;
|
|
4896
|
+
updateStateA(value: number): void;
|
|
4897
|
+
copyToClipboard(): void;
|
|
4898
|
+
private _convertToColor;
|
|
4899
|
+
private _toColor3;
|
|
4900
|
+
render(): JSX.Element;
|
|
4901
|
+
}
|
|
4902
|
+
|
|
4903
|
+
|
|
4904
|
+
|
|
4905
|
+
}
|
|
4906
|
+
declare module BABYLON.NodeEditor {
|
|
4907
|
+
|
|
4908
|
+
}
|
|
4909
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
4910
|
+
export interface IColorPickerComponentProps {
|
|
4911
|
+
value: BABYLON.Color4 | BABYLON.Color3;
|
|
4912
|
+
linearHint?: boolean;
|
|
4913
|
+
onColorChanged: (newOne: string) => void;
|
|
4914
|
+
icon?: string;
|
|
4915
|
+
iconLabel?: string;
|
|
4916
|
+
shouldPopRight?: boolean;
|
|
4917
|
+
lockObject?: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
4918
|
+
backgroundColor?: string;
|
|
4919
|
+
}
|
|
4920
|
+
interface IColorPickerComponentState {
|
|
4921
|
+
pickerEnabled: boolean;
|
|
4922
|
+
color: BABYLON.Color3 | BABYLON.Color4;
|
|
4923
|
+
hex: string;
|
|
4924
|
+
}
|
|
4925
|
+
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
|
4926
|
+
private _floatRef;
|
|
4927
|
+
private _floatHostRef;
|
|
4928
|
+
private _coverRef;
|
|
4929
|
+
constructor(props: IColorPickerComponentProps);
|
|
4930
|
+
syncPositions(): void;
|
|
4931
|
+
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
4932
|
+
getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
|
|
4933
|
+
children?: React.ReactNode;
|
|
4934
|
+
}>): string;
|
|
4935
|
+
componentDidUpdate(): void;
|
|
4936
|
+
componentDidMount(): void;
|
|
4937
|
+
render(): JSX.Element;
|
|
4938
|
+
}
|
|
4939
|
+
|
|
4940
|
+
|
|
4941
|
+
|
|
4556
4942
|
}
|
|
4557
4943
|
declare module BABYLON.NodeEditor {
|
|
4558
4944
|
|
|
@@ -4576,6 +4962,42 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
4576
4962
|
|
|
4577
4963
|
|
|
4578
4964
|
|
|
4965
|
+
}
|
|
4966
|
+
declare module BABYLON.NodeEditor {
|
|
4967
|
+
|
|
4968
|
+
}
|
|
4969
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
4970
|
+
interface INumericInputComponentProps {
|
|
4971
|
+
label: string;
|
|
4972
|
+
value: number;
|
|
4973
|
+
step?: number;
|
|
4974
|
+
onChange: (value: number) => void;
|
|
4975
|
+
precision?: number;
|
|
4976
|
+
icon?: string;
|
|
4977
|
+
iconLabel?: string;
|
|
4978
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
4979
|
+
}
|
|
4980
|
+
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
|
4981
|
+
value: string;
|
|
4982
|
+
}> {
|
|
4983
|
+
static defaultProps: {
|
|
4984
|
+
step: number;
|
|
4985
|
+
};
|
|
4986
|
+
private _localChange;
|
|
4987
|
+
constructor(props: INumericInputComponentProps);
|
|
4988
|
+
componentWillUnmount(): void;
|
|
4989
|
+
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
4990
|
+
value: string;
|
|
4991
|
+
}): boolean;
|
|
4992
|
+
updateValue(valueString: string): void;
|
|
4993
|
+
onBlur(): void;
|
|
4994
|
+
incrementValue(amount: number): void;
|
|
4995
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
|
|
4996
|
+
render(): JSX.Element;
|
|
4997
|
+
}
|
|
4998
|
+
|
|
4999
|
+
|
|
5000
|
+
|
|
4579
5001
|
}
|
|
4580
5002
|
declare module BABYLON.NodeEditor {
|
|
4581
5003
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.27.1",
|
|
4
4
|
"main": "babylon.nodeEditor.js",
|
|
5
5
|
"types": "babylon.nodeEditor.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.*"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^5.
|
|
17
|
+
"babylonjs": "^5.27.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|