babylonjs-gui-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.guiEditor.d.ts +296 -0
- package/babylon.guiEditor.module.d.ts +578 -2
- package/package.json +3 -3
package/babylon.guiEditor.d.ts
CHANGED
|
@@ -1235,6 +1235,9 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1235
1235
|
onPanButtonClicked?: () => void;
|
|
1236
1236
|
onZoomButtonClicked?: () => void;
|
|
1237
1237
|
onFitButtonClicked?: () => void;
|
|
1238
|
+
onArtboardColorChanged?: (newColor: string) => void;
|
|
1239
|
+
artboardColor?: string;
|
|
1240
|
+
artboardColorPickerColor?: string;
|
|
1238
1241
|
}
|
|
1239
1242
|
export var CommandBarComponent: React.FC<ICommandBarComponentProps>;
|
|
1240
1243
|
|
|
@@ -1318,6 +1321,104 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1318
1321
|
|
|
1319
1322
|
|
|
1320
1323
|
|
|
1324
|
+
}
|
|
1325
|
+
declare module BABYLON {
|
|
1326
|
+
|
|
1327
|
+
}
|
|
1328
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
1329
|
+
export interface IColorComponentEntryProps {
|
|
1330
|
+
value: number;
|
|
1331
|
+
label: string;
|
|
1332
|
+
max?: number;
|
|
1333
|
+
min?: number;
|
|
1334
|
+
onChange: (value: number) => void;
|
|
1335
|
+
disabled?: boolean;
|
|
1336
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1337
|
+
}
|
|
1338
|
+
export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
|
|
1339
|
+
constructor(props: IColorComponentEntryProps);
|
|
1340
|
+
updateValue(valueString: string): void;
|
|
1341
|
+
lock(): void;
|
|
1342
|
+
unlock(): void;
|
|
1343
|
+
render(): JSX.Element;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
}
|
|
1349
|
+
declare module BABYLON {
|
|
1350
|
+
|
|
1351
|
+
}
|
|
1352
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
1353
|
+
/**
|
|
1354
|
+
* Interface used to specify creation options for color picker
|
|
1355
|
+
*/
|
|
1356
|
+
export interface IColorPickerProps {
|
|
1357
|
+
color: Color3 | Color4;
|
|
1358
|
+
linearhint?: boolean;
|
|
1359
|
+
debugMode?: boolean;
|
|
1360
|
+
onColorChanged?: (color: Color3 | Color4) => void;
|
|
1361
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1362
|
+
backgroundColor?: string;
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Interface used to specify creation options for color picker
|
|
1366
|
+
*/
|
|
1367
|
+
export interface IColorPickerState {
|
|
1368
|
+
color: Color3;
|
|
1369
|
+
alpha: number;
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* Class used to create a color picker
|
|
1373
|
+
*/
|
|
1374
|
+
export class ColorPicker extends React.Component<IColorPickerProps, IColorPickerState> {
|
|
1375
|
+
private _saturationRef;
|
|
1376
|
+
private _hueRef;
|
|
1377
|
+
private _isSaturationPointerDown;
|
|
1378
|
+
private _isHuePointerDown;
|
|
1379
|
+
constructor(props: IColorPickerProps);
|
|
1380
|
+
shouldComponentUpdate(nextProps: IColorPickerProps, nextState: IColorPickerState): boolean;
|
|
1381
|
+
onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1382
|
+
onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1383
|
+
onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1384
|
+
onHuePointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1385
|
+
onHuePointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1386
|
+
onHuePointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1387
|
+
private _evaluateSaturation;
|
|
1388
|
+
private _evaluateHue;
|
|
1389
|
+
componentDidUpdate(): void;
|
|
1390
|
+
raiseOnColorChanged(): void;
|
|
1391
|
+
render(): JSX.Element;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
}
|
|
1397
|
+
declare module BABYLON {
|
|
1398
|
+
|
|
1399
|
+
}
|
|
1400
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
1401
|
+
export interface IHexColorProps {
|
|
1402
|
+
value: string;
|
|
1403
|
+
expectedLength: number;
|
|
1404
|
+
onChange: (value: string) => void;
|
|
1405
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1406
|
+
}
|
|
1407
|
+
export class HexColor extends React.Component<IHexColorProps, {
|
|
1408
|
+
hex: string;
|
|
1409
|
+
}> {
|
|
1410
|
+
constructor(props: IHexColorProps);
|
|
1411
|
+
shouldComponentUpdate(nextProps: IHexColorProps, nextState: {
|
|
1412
|
+
hex: string;
|
|
1413
|
+
}): boolean;
|
|
1414
|
+
lock(): void;
|
|
1415
|
+
unlock(): void;
|
|
1416
|
+
updateHexValue(valueString: string): void;
|
|
1417
|
+
render(): JSX.Element;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
|
|
1321
1422
|
}
|
|
1322
1423
|
declare module BABYLON {
|
|
1323
1424
|
|
|
@@ -1346,6 +1447,85 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1346
1447
|
|
|
1347
1448
|
|
|
1348
1449
|
|
|
1450
|
+
}
|
|
1451
|
+
declare module BABYLON {
|
|
1452
|
+
|
|
1453
|
+
}
|
|
1454
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
1455
|
+
export interface IColorLineComponentProps {
|
|
1456
|
+
label: string;
|
|
1457
|
+
target: any;
|
|
1458
|
+
propertyName: string;
|
|
1459
|
+
onPropertyChangedObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
1460
|
+
onChange?: () => void;
|
|
1461
|
+
isLinear?: boolean;
|
|
1462
|
+
icon?: string;
|
|
1463
|
+
iconLabel?: string;
|
|
1464
|
+
disableAlpha?: boolean;
|
|
1465
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1466
|
+
}
|
|
1467
|
+
interface IColorLineComponentState {
|
|
1468
|
+
isExpanded: boolean;
|
|
1469
|
+
color: Color4;
|
|
1470
|
+
}
|
|
1471
|
+
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
|
1472
|
+
constructor(props: IColorLineComponentProps);
|
|
1473
|
+
shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
|
|
1474
|
+
getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
|
1475
|
+
children?: React.ReactNode;
|
|
1476
|
+
}>): Color4;
|
|
1477
|
+
setColorFromString(colorString: string): void;
|
|
1478
|
+
setColor(newColor: Color4): void;
|
|
1479
|
+
switchExpandState(): void;
|
|
1480
|
+
updateStateR(value: number): void;
|
|
1481
|
+
updateStateG(value: number): void;
|
|
1482
|
+
updateStateB(value: number): void;
|
|
1483
|
+
updateStateA(value: number): void;
|
|
1484
|
+
copyToClipboard(): void;
|
|
1485
|
+
private _convertToColor;
|
|
1486
|
+
private _toColor3;
|
|
1487
|
+
render(): JSX.Element;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
}
|
|
1493
|
+
declare module BABYLON {
|
|
1494
|
+
|
|
1495
|
+
}
|
|
1496
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
1497
|
+
export interface IColorPickerComponentProps {
|
|
1498
|
+
value: Color4 | Color3;
|
|
1499
|
+
linearHint?: boolean;
|
|
1500
|
+
onColorChanged: (newOne: string) => void;
|
|
1501
|
+
icon?: string;
|
|
1502
|
+
iconLabel?: string;
|
|
1503
|
+
shouldPopRight?: boolean;
|
|
1504
|
+
lockObject?: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1505
|
+
backgroundColor?: string;
|
|
1506
|
+
}
|
|
1507
|
+
interface IColorPickerComponentState {
|
|
1508
|
+
pickerEnabled: boolean;
|
|
1509
|
+
color: Color3 | Color4;
|
|
1510
|
+
hex: string;
|
|
1511
|
+
}
|
|
1512
|
+
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
|
1513
|
+
private _floatRef;
|
|
1514
|
+
private _floatHostRef;
|
|
1515
|
+
private _coverRef;
|
|
1516
|
+
constructor(props: IColorPickerComponentProps);
|
|
1517
|
+
syncPositions(): void;
|
|
1518
|
+
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
1519
|
+
getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
|
|
1520
|
+
children?: React.ReactNode;
|
|
1521
|
+
}>): string;
|
|
1522
|
+
componentDidUpdate(): void;
|
|
1523
|
+
componentDidMount(): void;
|
|
1524
|
+
render(): JSX.Element;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
|
|
1349
1529
|
}
|
|
1350
1530
|
declare module BABYLON {
|
|
1351
1531
|
|
|
@@ -1369,6 +1549,42 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1369
1549
|
|
|
1370
1550
|
|
|
1371
1551
|
|
|
1552
|
+
}
|
|
1553
|
+
declare module BABYLON {
|
|
1554
|
+
|
|
1555
|
+
}
|
|
1556
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
1557
|
+
interface INumericInputComponentProps {
|
|
1558
|
+
label: string;
|
|
1559
|
+
value: number;
|
|
1560
|
+
step?: number;
|
|
1561
|
+
onChange: (value: number) => void;
|
|
1562
|
+
precision?: number;
|
|
1563
|
+
icon?: string;
|
|
1564
|
+
iconLabel?: string;
|
|
1565
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1566
|
+
}
|
|
1567
|
+
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
|
1568
|
+
value: string;
|
|
1569
|
+
}> {
|
|
1570
|
+
static defaultProps: {
|
|
1571
|
+
step: number;
|
|
1572
|
+
};
|
|
1573
|
+
private _localChange;
|
|
1574
|
+
constructor(props: INumericInputComponentProps);
|
|
1575
|
+
componentWillUnmount(): void;
|
|
1576
|
+
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
1577
|
+
value: string;
|
|
1578
|
+
}): boolean;
|
|
1579
|
+
updateValue(valueString: string): void;
|
|
1580
|
+
onBlur(): void;
|
|
1581
|
+
incrementValue(amount: number): void;
|
|
1582
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
|
|
1583
|
+
render(): JSX.Element;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
|
|
1372
1588
|
}
|
|
1373
1589
|
declare module BABYLON {
|
|
1374
1590
|
|
|
@@ -3069,6 +3285,11 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
3069
3285
|
component: ICommandBarComponentProps>;
|
|
3070
3286
|
};
|
|
3071
3287
|
export var Default: {};
|
|
3288
|
+
export var WithArtboardColor: {
|
|
3289
|
+
parameters: {
|
|
3290
|
+
onArtboardColorChanged: (color: string) => void;
|
|
3291
|
+
};
|
|
3292
|
+
};
|
|
3072
3293
|
|
|
3073
3294
|
|
|
3074
3295
|
|
|
@@ -3101,6 +3322,22 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
3101
3322
|
|
|
3102
3323
|
|
|
3103
3324
|
|
|
3325
|
+
}
|
|
3326
|
+
declare module BABYLON {
|
|
3327
|
+
|
|
3328
|
+
}
|
|
3329
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
3330
|
+
var _default: {
|
|
3331
|
+
component: typeof BABYLON.GuiEditor.SharedUIComponents.ColorPicker;
|
|
3332
|
+
};
|
|
3333
|
+
export var Default: {
|
|
3334
|
+
args: {
|
|
3335
|
+
color: Color3;
|
|
3336
|
+
};
|
|
3337
|
+
};
|
|
3338
|
+
|
|
3339
|
+
|
|
3340
|
+
|
|
3104
3341
|
}
|
|
3105
3342
|
declare module BABYLON {
|
|
3106
3343
|
|
|
@@ -3130,6 +3367,48 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
3130
3367
|
|
|
3131
3368
|
|
|
3132
3369
|
|
|
3370
|
+
}
|
|
3371
|
+
declare module BABYLON {
|
|
3372
|
+
|
|
3373
|
+
}
|
|
3374
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
3375
|
+
/// <reference types="react" />
|
|
3376
|
+
var _default: {
|
|
3377
|
+
component: typeof BABYLON.GuiEditor.SharedUIComponents.ColorLineComponent;
|
|
3378
|
+
};
|
|
3379
|
+
export var Default: {
|
|
3380
|
+
render: (args: BABYLON.GuiEditor.SharedUIComponents.IColorLineComponentProps) => JSX.Element;
|
|
3381
|
+
args: {
|
|
3382
|
+
target: {};
|
|
3383
|
+
label: string;
|
|
3384
|
+
propertyName: string;
|
|
3385
|
+
lockObject: {
|
|
3386
|
+
lock: boolean;
|
|
3387
|
+
};
|
|
3388
|
+
onPropertyChangedObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
3389
|
+
};
|
|
3390
|
+
};
|
|
3391
|
+
|
|
3392
|
+
|
|
3393
|
+
|
|
3394
|
+
}
|
|
3395
|
+
declare module BABYLON {
|
|
3396
|
+
|
|
3397
|
+
}
|
|
3398
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
3399
|
+
/// <reference types="react" />
|
|
3400
|
+
var _default: {
|
|
3401
|
+
component: typeof BABYLON.GuiEditor.SharedUIComponents.ColorPickerLineComponent;
|
|
3402
|
+
};
|
|
3403
|
+
export var Default: {
|
|
3404
|
+
render: (args: BABYLON.GuiEditor.SharedUIComponents.IColorPickerComponentProps) => JSX.Element;
|
|
3405
|
+
args: {
|
|
3406
|
+
value: Color3;
|
|
3407
|
+
};
|
|
3408
|
+
};
|
|
3409
|
+
|
|
3410
|
+
|
|
3411
|
+
|
|
3133
3412
|
}
|
|
3134
3413
|
declare module BABYLON {
|
|
3135
3414
|
|
|
@@ -3142,6 +3421,23 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
3142
3421
|
|
|
3143
3422
|
|
|
3144
3423
|
|
|
3424
|
+
}
|
|
3425
|
+
declare module BABYLON {
|
|
3426
|
+
|
|
3427
|
+
}
|
|
3428
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
3429
|
+
var _default: {
|
|
3430
|
+
component: typeof BABYLON.GuiEditor.SharedUIComponents.NumericInputComponent;
|
|
3431
|
+
};
|
|
3432
|
+
export var Default: {
|
|
3433
|
+
args: {
|
|
3434
|
+
label: string;
|
|
3435
|
+
value: number;
|
|
3436
|
+
};
|
|
3437
|
+
};
|
|
3438
|
+
|
|
3439
|
+
|
|
3440
|
+
|
|
3145
3441
|
}
|
|
3146
3442
|
declare module BABYLON {
|
|
3147
3443
|
|
|
@@ -1540,7 +1540,7 @@ export class HexColor extends React.Component<IHexColorProps, {
|
|
|
1540
1540
|
|
|
1541
1541
|
}
|
|
1542
1542
|
declare module "babylonjs-gui-editor/components/bars/CommandBarComponent" {
|
|
1543
|
-
import
|
|
1543
|
+
import { FC } from "react";
|
|
1544
1544
|
export interface ICommandBarComponentProps {
|
|
1545
1545
|
onSaveButtonClicked?: () => void;
|
|
1546
1546
|
onSaveToSnippetButtonClicked?: () => void;
|
|
@@ -1551,8 +1551,11 @@ export interface ICommandBarComponentProps {
|
|
|
1551
1551
|
onPanButtonClicked?: () => void;
|
|
1552
1552
|
onZoomButtonClicked?: () => void;
|
|
1553
1553
|
onFitButtonClicked?: () => void;
|
|
1554
|
+
onArtboardColorChanged?: (newColor: string) => void;
|
|
1555
|
+
artboardColor?: string;
|
|
1556
|
+
artboardColorPickerColor?: string;
|
|
1554
1557
|
}
|
|
1555
|
-
export const CommandBarComponent:
|
|
1558
|
+
export const CommandBarComponent: FC<ICommandBarComponentProps>;
|
|
1556
1559
|
|
|
1557
1560
|
}
|
|
1558
1561
|
declare module "babylonjs-gui-editor/components/bars/CommandButtonComponent" {
|
|
@@ -1615,6 +1618,96 @@ declare module "babylonjs-gui-editor/components/classNames" {
|
|
|
1615
1618
|
export function ClassNames(names: any, styleObject: any): string;
|
|
1616
1619
|
export function JoinClassNames(styleObject: any, ...names: string[]): string;
|
|
1617
1620
|
|
|
1621
|
+
}
|
|
1622
|
+
declare module "babylonjs-gui-editor/components/colorPicker/ColorComponentEntry" {
|
|
1623
|
+
import * as React from "react";
|
|
1624
|
+
import { LockObject } from "babylonjs-gui-editor/tabs/propertyGrids/lockObject";
|
|
1625
|
+
export interface IColorComponentEntryProps {
|
|
1626
|
+
value: number;
|
|
1627
|
+
label: string;
|
|
1628
|
+
max?: number;
|
|
1629
|
+
min?: number;
|
|
1630
|
+
onChange: (value: number) => void;
|
|
1631
|
+
disabled?: boolean;
|
|
1632
|
+
lockObject: LockObject;
|
|
1633
|
+
}
|
|
1634
|
+
export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
|
|
1635
|
+
constructor(props: IColorComponentEntryProps);
|
|
1636
|
+
updateValue(valueString: string): void;
|
|
1637
|
+
lock(): void;
|
|
1638
|
+
unlock(): void;
|
|
1639
|
+
render(): JSX.Element;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
}
|
|
1643
|
+
declare module "babylonjs-gui-editor/components/colorPicker/ColorPicker" {
|
|
1644
|
+
import * as React from "react";
|
|
1645
|
+
import { Color3, Color4 } from "babylonjs/Maths/math.color";
|
|
1646
|
+
import { LockObject } from "babylonjs-gui-editor/tabs/propertyGrids/lockObject";
|
|
1647
|
+
/**
|
|
1648
|
+
* Interface used to specify creation options for color picker
|
|
1649
|
+
*/
|
|
1650
|
+
export interface IColorPickerProps {
|
|
1651
|
+
color: Color3 | Color4;
|
|
1652
|
+
linearhint?: boolean;
|
|
1653
|
+
debugMode?: boolean;
|
|
1654
|
+
onColorChanged?: (color: Color3 | Color4) => void;
|
|
1655
|
+
lockObject: LockObject;
|
|
1656
|
+
backgroundColor?: string;
|
|
1657
|
+
}
|
|
1658
|
+
/**
|
|
1659
|
+
* Interface used to specify creation options for color picker
|
|
1660
|
+
*/
|
|
1661
|
+
export interface IColorPickerState {
|
|
1662
|
+
color: Color3;
|
|
1663
|
+
alpha: number;
|
|
1664
|
+
}
|
|
1665
|
+
/**
|
|
1666
|
+
* Class used to create a color picker
|
|
1667
|
+
*/
|
|
1668
|
+
export class ColorPicker extends React.Component<IColorPickerProps, IColorPickerState> {
|
|
1669
|
+
private _saturationRef;
|
|
1670
|
+
private _hueRef;
|
|
1671
|
+
private _isSaturationPointerDown;
|
|
1672
|
+
private _isHuePointerDown;
|
|
1673
|
+
constructor(props: IColorPickerProps);
|
|
1674
|
+
shouldComponentUpdate(nextProps: IColorPickerProps, nextState: IColorPickerState): boolean;
|
|
1675
|
+
onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1676
|
+
onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1677
|
+
onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1678
|
+
onHuePointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1679
|
+
onHuePointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1680
|
+
onHuePointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1681
|
+
private _evaluateSaturation;
|
|
1682
|
+
private _evaluateHue;
|
|
1683
|
+
componentDidUpdate(): void;
|
|
1684
|
+
raiseOnColorChanged(): void;
|
|
1685
|
+
render(): JSX.Element;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
}
|
|
1689
|
+
declare module "babylonjs-gui-editor/components/colorPicker/HexColor" {
|
|
1690
|
+
import * as React from "react";
|
|
1691
|
+
import { LockObject } from "babylonjs-gui-editor/tabs/propertyGrids/lockObject";
|
|
1692
|
+
export interface IHexColorProps {
|
|
1693
|
+
value: string;
|
|
1694
|
+
expectedLength: number;
|
|
1695
|
+
onChange: (value: string) => void;
|
|
1696
|
+
lockObject: LockObject;
|
|
1697
|
+
}
|
|
1698
|
+
export class HexColor extends React.Component<IHexColorProps, {
|
|
1699
|
+
hex: string;
|
|
1700
|
+
}> {
|
|
1701
|
+
constructor(props: IHexColorProps);
|
|
1702
|
+
shouldComponentUpdate(nextProps: IHexColorProps, nextState: {
|
|
1703
|
+
hex: string;
|
|
1704
|
+
}): boolean;
|
|
1705
|
+
lock(): void;
|
|
1706
|
+
unlock(): void;
|
|
1707
|
+
updateHexValue(valueString: string): void;
|
|
1708
|
+
render(): JSX.Element;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1618
1711
|
}
|
|
1619
1712
|
declare module "babylonjs-gui-editor/components/Icon" {
|
|
1620
1713
|
/// <reference types="react" />
|
|
@@ -1634,6 +1727,85 @@ export type LabelProps = {
|
|
|
1634
1727
|
};
|
|
1635
1728
|
export const Label: React.FC<LabelProps>;
|
|
1636
1729
|
|
|
1730
|
+
}
|
|
1731
|
+
declare module "babylonjs-gui-editor/components/lines/ColorLineComponent" {
|
|
1732
|
+
import * as React from "react";
|
|
1733
|
+
import { Observable } from "babylonjs/Misc/observable";
|
|
1734
|
+
import { Color4 } from "babylonjs/Maths/math.color";
|
|
1735
|
+
import { PropertyChangedEvent } from "babylonjs-gui-editor/propertyChangedEvent";
|
|
1736
|
+
import { LockObject } from "babylonjs-gui-editor/tabs/propertyGrids/lockObject";
|
|
1737
|
+
export interface IColorLineComponentProps {
|
|
1738
|
+
label: string;
|
|
1739
|
+
target: any;
|
|
1740
|
+
propertyName: string;
|
|
1741
|
+
onPropertyChangedObservable: Observable<PropertyChangedEvent>;
|
|
1742
|
+
onChange?: () => void;
|
|
1743
|
+
isLinear?: boolean;
|
|
1744
|
+
icon?: string;
|
|
1745
|
+
iconLabel?: string;
|
|
1746
|
+
disableAlpha?: boolean;
|
|
1747
|
+
lockObject: LockObject;
|
|
1748
|
+
}
|
|
1749
|
+
interface IColorLineComponentState {
|
|
1750
|
+
isExpanded: boolean;
|
|
1751
|
+
color: Color4;
|
|
1752
|
+
}
|
|
1753
|
+
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
|
1754
|
+
constructor(props: IColorLineComponentProps);
|
|
1755
|
+
shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
|
|
1756
|
+
getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
|
1757
|
+
children?: React.ReactNode;
|
|
1758
|
+
}>): Color4;
|
|
1759
|
+
setColorFromString(colorString: string): void;
|
|
1760
|
+
setColor(newColor: Color4): void;
|
|
1761
|
+
switchExpandState(): void;
|
|
1762
|
+
updateStateR(value: number): void;
|
|
1763
|
+
updateStateG(value: number): void;
|
|
1764
|
+
updateStateB(value: number): void;
|
|
1765
|
+
updateStateA(value: number): void;
|
|
1766
|
+
copyToClipboard(): void;
|
|
1767
|
+
private _convertToColor;
|
|
1768
|
+
private _toColor3;
|
|
1769
|
+
render(): JSX.Element;
|
|
1770
|
+
}
|
|
1771
|
+
export {};
|
|
1772
|
+
|
|
1773
|
+
}
|
|
1774
|
+
declare module "babylonjs-gui-editor/components/lines/ColorPickerLineComponent" {
|
|
1775
|
+
import * as React from "react";
|
|
1776
|
+
import { Color4, Color3 } from "babylonjs/Maths/math.color";
|
|
1777
|
+
import { LockObject } from "babylonjs-gui-editor/tabs/propertyGrids/lockObject";
|
|
1778
|
+
export interface IColorPickerComponentProps {
|
|
1779
|
+
value: Color4 | Color3;
|
|
1780
|
+
linearHint?: boolean;
|
|
1781
|
+
onColorChanged: (newOne: string) => void;
|
|
1782
|
+
icon?: string;
|
|
1783
|
+
iconLabel?: string;
|
|
1784
|
+
shouldPopRight?: boolean;
|
|
1785
|
+
lockObject?: LockObject;
|
|
1786
|
+
backgroundColor?: string;
|
|
1787
|
+
}
|
|
1788
|
+
interface IColorPickerComponentState {
|
|
1789
|
+
pickerEnabled: boolean;
|
|
1790
|
+
color: Color3 | Color4;
|
|
1791
|
+
hex: string;
|
|
1792
|
+
}
|
|
1793
|
+
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
|
1794
|
+
private _floatRef;
|
|
1795
|
+
private _floatHostRef;
|
|
1796
|
+
private _coverRef;
|
|
1797
|
+
constructor(props: IColorPickerComponentProps);
|
|
1798
|
+
syncPositions(): void;
|
|
1799
|
+
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
1800
|
+
getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
|
|
1801
|
+
children?: React.ReactNode;
|
|
1802
|
+
}>): string;
|
|
1803
|
+
componentDidUpdate(): void;
|
|
1804
|
+
componentDidMount(): void;
|
|
1805
|
+
render(): JSX.Element;
|
|
1806
|
+
}
|
|
1807
|
+
export {};
|
|
1808
|
+
|
|
1637
1809
|
}
|
|
1638
1810
|
declare module "babylonjs-gui-editor/components/lines/FileButtonLineComponent" {
|
|
1639
1811
|
import * as React from "react";
|
|
@@ -1653,6 +1825,40 @@ export class FileButtonLineComponent extends React.Component<IFileButtonLineComp
|
|
|
1653
1825
|
render(): JSX.Element;
|
|
1654
1826
|
}
|
|
1655
1827
|
|
|
1828
|
+
}
|
|
1829
|
+
declare module "babylonjs-gui-editor/components/lines/NumericInputComponent" {
|
|
1830
|
+
import * as React from "react";
|
|
1831
|
+
import { LockObject } from "babylonjs-gui-editor/tabs/propertyGrids/lockObject";
|
|
1832
|
+
interface INumericInputComponentProps {
|
|
1833
|
+
label: string;
|
|
1834
|
+
value: number;
|
|
1835
|
+
step?: number;
|
|
1836
|
+
onChange: (value: number) => void;
|
|
1837
|
+
precision?: number;
|
|
1838
|
+
icon?: string;
|
|
1839
|
+
iconLabel?: string;
|
|
1840
|
+
lockObject: LockObject;
|
|
1841
|
+
}
|
|
1842
|
+
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
|
1843
|
+
value: string;
|
|
1844
|
+
}> {
|
|
1845
|
+
static defaultProps: {
|
|
1846
|
+
step: number;
|
|
1847
|
+
};
|
|
1848
|
+
private _localChange;
|
|
1849
|
+
constructor(props: INumericInputComponentProps);
|
|
1850
|
+
componentWillUnmount(): void;
|
|
1851
|
+
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
1852
|
+
value: string;
|
|
1853
|
+
}): boolean;
|
|
1854
|
+
updateValue(valueString: string): void;
|
|
1855
|
+
onBlur(): void;
|
|
1856
|
+
incrementValue(amount: number): void;
|
|
1857
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
|
|
1858
|
+
render(): JSX.Element;
|
|
1859
|
+
}
|
|
1860
|
+
export {};
|
|
1861
|
+
|
|
1656
1862
|
}
|
|
1657
1863
|
declare module "babylonjs-gui-editor/components/MessageDialog" {
|
|
1658
1864
|
import * as React from "react";
|
|
@@ -3265,6 +3471,11 @@ const _default: {
|
|
|
3265
3471
|
};
|
|
3266
3472
|
export default _default;
|
|
3267
3473
|
export const Default: {};
|
|
3474
|
+
export const WithArtboardColor: {
|
|
3475
|
+
parameters: {
|
|
3476
|
+
onArtboardColorChanged: (color: string) => void;
|
|
3477
|
+
};
|
|
3478
|
+
};
|
|
3268
3479
|
|
|
3269
3480
|
}
|
|
3270
3481
|
declare module "babylonjs-gui-editor/stories/bars/CommandButtonComponent.stories" {
|
|
@@ -3288,6 +3499,20 @@ export const Default: any;
|
|
|
3288
3499
|
export const Wide: any;
|
|
3289
3500
|
export const Small: any;
|
|
3290
3501
|
|
|
3502
|
+
}
|
|
3503
|
+
declare module "babylonjs-gui-editor/stories/colorPicker/ColorPicker.stories" {
|
|
3504
|
+
import { Color3 } from "babylonjs/Maths/math.color";
|
|
3505
|
+
import { ColorPicker } from "babylonjs-gui-editor/components/colorPicker/ColorPicker";
|
|
3506
|
+
const _default: {
|
|
3507
|
+
component: typeof ColorPicker;
|
|
3508
|
+
};
|
|
3509
|
+
export default _default;
|
|
3510
|
+
export const Default: {
|
|
3511
|
+
args: {
|
|
3512
|
+
color: Color3;
|
|
3513
|
+
};
|
|
3514
|
+
};
|
|
3515
|
+
|
|
3291
3516
|
}
|
|
3292
3517
|
declare module "babylonjs-gui-editor/stories/Icon.stories" {
|
|
3293
3518
|
/// <reference types="react" />
|
|
@@ -3311,6 +3536,47 @@ const _default: {
|
|
|
3311
3536
|
export default _default;
|
|
3312
3537
|
export const Default: any;
|
|
3313
3538
|
|
|
3539
|
+
}
|
|
3540
|
+
declare module "babylonjs-gui-editor/stories/lines/ColorLineComponent.stories" {
|
|
3541
|
+
/// <reference types="react" />
|
|
3542
|
+
import { Observable } from "babylonjs/Misc/observable";
|
|
3543
|
+
import { PropertyChangedEvent } from "babylonjs-gui-editor/propertyChangedEvent";
|
|
3544
|
+
import { IColorLineComponentProps } from "babylonjs-gui-editor/components/lines/ColorLineComponent";
|
|
3545
|
+
import { ColorLineComponent } from "babylonjs-gui-editor/components/lines/ColorLineComponent";
|
|
3546
|
+
const _default: {
|
|
3547
|
+
component: typeof ColorLineComponent;
|
|
3548
|
+
};
|
|
3549
|
+
export default _default;
|
|
3550
|
+
export const Default: {
|
|
3551
|
+
render: (args: IColorLineComponentProps) => JSX.Element;
|
|
3552
|
+
args: {
|
|
3553
|
+
target: {};
|
|
3554
|
+
label: string;
|
|
3555
|
+
propertyName: string;
|
|
3556
|
+
lockObject: {
|
|
3557
|
+
lock: boolean;
|
|
3558
|
+
};
|
|
3559
|
+
onPropertyChangedObservable: Observable<PropertyChangedEvent>;
|
|
3560
|
+
};
|
|
3561
|
+
};
|
|
3562
|
+
|
|
3563
|
+
}
|
|
3564
|
+
declare module "babylonjs-gui-editor/stories/lines/ColorPickerLineComponent.stories" {
|
|
3565
|
+
/// <reference types="react" />
|
|
3566
|
+
import { Color3 } from "babylonjs/Maths/math.color";
|
|
3567
|
+
import { IColorPickerComponentProps } from "babylonjs-gui-editor/components/lines/ColorPickerLineComponent";
|
|
3568
|
+
import { ColorPickerLineComponent } from "babylonjs-gui-editor/components/lines/ColorPickerLineComponent";
|
|
3569
|
+
const _default: {
|
|
3570
|
+
component: typeof ColorPickerLineComponent;
|
|
3571
|
+
};
|
|
3572
|
+
export default _default;
|
|
3573
|
+
export const Default: {
|
|
3574
|
+
render: (args: IColorPickerComponentProps) => JSX.Element;
|
|
3575
|
+
args: {
|
|
3576
|
+
value: Color3;
|
|
3577
|
+
};
|
|
3578
|
+
};
|
|
3579
|
+
|
|
3314
3580
|
}
|
|
3315
3581
|
declare module "babylonjs-gui-editor/stories/lines/FileButtonLineComponent.stories" {
|
|
3316
3582
|
import { FileButtonLineComponent } from "babylonjs-gui-editor/components/lines/FileButtonLineComponent";
|
|
@@ -3320,6 +3586,20 @@ const _default: {
|
|
|
3320
3586
|
export default _default;
|
|
3321
3587
|
export const Default: {};
|
|
3322
3588
|
|
|
3589
|
+
}
|
|
3590
|
+
declare module "babylonjs-gui-editor/stories/lines/NumericInputComponent.stories" {
|
|
3591
|
+
import { NumericInputComponent } from "babylonjs-gui-editor/components/lines/NumericInputComponent";
|
|
3592
|
+
const _default: {
|
|
3593
|
+
component: typeof NumericInputComponent;
|
|
3594
|
+
};
|
|
3595
|
+
export default _default;
|
|
3596
|
+
export const Default: {
|
|
3597
|
+
args: {
|
|
3598
|
+
label: string;
|
|
3599
|
+
value: number;
|
|
3600
|
+
};
|
|
3601
|
+
};
|
|
3602
|
+
|
|
3323
3603
|
}
|
|
3324
3604
|
declare module "babylonjs-gui-editor/stories/MessageDialog.stories" {
|
|
3325
3605
|
/// <reference types="react" />
|
|
@@ -4906,6 +5186,9 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
4906
5186
|
onPanButtonClicked?: () => void;
|
|
4907
5187
|
onZoomButtonClicked?: () => void;
|
|
4908
5188
|
onFitButtonClicked?: () => void;
|
|
5189
|
+
onArtboardColorChanged?: (newColor: string) => void;
|
|
5190
|
+
artboardColor?: string;
|
|
5191
|
+
artboardColorPickerColor?: string;
|
|
4909
5192
|
}
|
|
4910
5193
|
export var CommandBarComponent: React.FC<ICommandBarComponentProps>;
|
|
4911
5194
|
|
|
@@ -4989,6 +5272,104 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
4989
5272
|
|
|
4990
5273
|
|
|
4991
5274
|
|
|
5275
|
+
}
|
|
5276
|
+
declare module BABYLON {
|
|
5277
|
+
|
|
5278
|
+
}
|
|
5279
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
5280
|
+
export interface IColorComponentEntryProps {
|
|
5281
|
+
value: number;
|
|
5282
|
+
label: string;
|
|
5283
|
+
max?: number;
|
|
5284
|
+
min?: number;
|
|
5285
|
+
onChange: (value: number) => void;
|
|
5286
|
+
disabled?: boolean;
|
|
5287
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
5288
|
+
}
|
|
5289
|
+
export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
|
|
5290
|
+
constructor(props: IColorComponentEntryProps);
|
|
5291
|
+
updateValue(valueString: string): void;
|
|
5292
|
+
lock(): void;
|
|
5293
|
+
unlock(): void;
|
|
5294
|
+
render(): JSX.Element;
|
|
5295
|
+
}
|
|
5296
|
+
|
|
5297
|
+
|
|
5298
|
+
|
|
5299
|
+
}
|
|
5300
|
+
declare module BABYLON {
|
|
5301
|
+
|
|
5302
|
+
}
|
|
5303
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
5304
|
+
/**
|
|
5305
|
+
* Interface used to specify creation options for color picker
|
|
5306
|
+
*/
|
|
5307
|
+
export interface IColorPickerProps {
|
|
5308
|
+
color: Color3 | Color4;
|
|
5309
|
+
linearhint?: boolean;
|
|
5310
|
+
debugMode?: boolean;
|
|
5311
|
+
onColorChanged?: (color: Color3 | Color4) => void;
|
|
5312
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
5313
|
+
backgroundColor?: string;
|
|
5314
|
+
}
|
|
5315
|
+
/**
|
|
5316
|
+
* Interface used to specify creation options for color picker
|
|
5317
|
+
*/
|
|
5318
|
+
export interface IColorPickerState {
|
|
5319
|
+
color: Color3;
|
|
5320
|
+
alpha: number;
|
|
5321
|
+
}
|
|
5322
|
+
/**
|
|
5323
|
+
* Class used to create a color picker
|
|
5324
|
+
*/
|
|
5325
|
+
export class ColorPicker extends React.Component<IColorPickerProps, IColorPickerState> {
|
|
5326
|
+
private _saturationRef;
|
|
5327
|
+
private _hueRef;
|
|
5328
|
+
private _isSaturationPointerDown;
|
|
5329
|
+
private _isHuePointerDown;
|
|
5330
|
+
constructor(props: IColorPickerProps);
|
|
5331
|
+
shouldComponentUpdate(nextProps: IColorPickerProps, nextState: IColorPickerState): boolean;
|
|
5332
|
+
onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
5333
|
+
onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
5334
|
+
onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
5335
|
+
onHuePointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
5336
|
+
onHuePointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
5337
|
+
onHuePointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
5338
|
+
private _evaluateSaturation;
|
|
5339
|
+
private _evaluateHue;
|
|
5340
|
+
componentDidUpdate(): void;
|
|
5341
|
+
raiseOnColorChanged(): void;
|
|
5342
|
+
render(): JSX.Element;
|
|
5343
|
+
}
|
|
5344
|
+
|
|
5345
|
+
|
|
5346
|
+
|
|
5347
|
+
}
|
|
5348
|
+
declare module BABYLON {
|
|
5349
|
+
|
|
5350
|
+
}
|
|
5351
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
5352
|
+
export interface IHexColorProps {
|
|
5353
|
+
value: string;
|
|
5354
|
+
expectedLength: number;
|
|
5355
|
+
onChange: (value: string) => void;
|
|
5356
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
5357
|
+
}
|
|
5358
|
+
export class HexColor extends React.Component<IHexColorProps, {
|
|
5359
|
+
hex: string;
|
|
5360
|
+
}> {
|
|
5361
|
+
constructor(props: IHexColorProps);
|
|
5362
|
+
shouldComponentUpdate(nextProps: IHexColorProps, nextState: {
|
|
5363
|
+
hex: string;
|
|
5364
|
+
}): boolean;
|
|
5365
|
+
lock(): void;
|
|
5366
|
+
unlock(): void;
|
|
5367
|
+
updateHexValue(valueString: string): void;
|
|
5368
|
+
render(): JSX.Element;
|
|
5369
|
+
}
|
|
5370
|
+
|
|
5371
|
+
|
|
5372
|
+
|
|
4992
5373
|
}
|
|
4993
5374
|
declare module BABYLON {
|
|
4994
5375
|
|
|
@@ -5017,6 +5398,85 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
5017
5398
|
|
|
5018
5399
|
|
|
5019
5400
|
|
|
5401
|
+
}
|
|
5402
|
+
declare module BABYLON {
|
|
5403
|
+
|
|
5404
|
+
}
|
|
5405
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
5406
|
+
export interface IColorLineComponentProps {
|
|
5407
|
+
label: string;
|
|
5408
|
+
target: any;
|
|
5409
|
+
propertyName: string;
|
|
5410
|
+
onPropertyChangedObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
5411
|
+
onChange?: () => void;
|
|
5412
|
+
isLinear?: boolean;
|
|
5413
|
+
icon?: string;
|
|
5414
|
+
iconLabel?: string;
|
|
5415
|
+
disableAlpha?: boolean;
|
|
5416
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
5417
|
+
}
|
|
5418
|
+
interface IColorLineComponentState {
|
|
5419
|
+
isExpanded: boolean;
|
|
5420
|
+
color: Color4;
|
|
5421
|
+
}
|
|
5422
|
+
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
|
5423
|
+
constructor(props: IColorLineComponentProps);
|
|
5424
|
+
shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
|
|
5425
|
+
getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
|
5426
|
+
children?: React.ReactNode;
|
|
5427
|
+
}>): Color4;
|
|
5428
|
+
setColorFromString(colorString: string): void;
|
|
5429
|
+
setColor(newColor: Color4): void;
|
|
5430
|
+
switchExpandState(): void;
|
|
5431
|
+
updateStateR(value: number): void;
|
|
5432
|
+
updateStateG(value: number): void;
|
|
5433
|
+
updateStateB(value: number): void;
|
|
5434
|
+
updateStateA(value: number): void;
|
|
5435
|
+
copyToClipboard(): void;
|
|
5436
|
+
private _convertToColor;
|
|
5437
|
+
private _toColor3;
|
|
5438
|
+
render(): JSX.Element;
|
|
5439
|
+
}
|
|
5440
|
+
|
|
5441
|
+
|
|
5442
|
+
|
|
5443
|
+
}
|
|
5444
|
+
declare module BABYLON {
|
|
5445
|
+
|
|
5446
|
+
}
|
|
5447
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
5448
|
+
export interface IColorPickerComponentProps {
|
|
5449
|
+
value: Color4 | Color3;
|
|
5450
|
+
linearHint?: boolean;
|
|
5451
|
+
onColorChanged: (newOne: string) => void;
|
|
5452
|
+
icon?: string;
|
|
5453
|
+
iconLabel?: string;
|
|
5454
|
+
shouldPopRight?: boolean;
|
|
5455
|
+
lockObject?: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
5456
|
+
backgroundColor?: string;
|
|
5457
|
+
}
|
|
5458
|
+
interface IColorPickerComponentState {
|
|
5459
|
+
pickerEnabled: boolean;
|
|
5460
|
+
color: Color3 | Color4;
|
|
5461
|
+
hex: string;
|
|
5462
|
+
}
|
|
5463
|
+
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
|
5464
|
+
private _floatRef;
|
|
5465
|
+
private _floatHostRef;
|
|
5466
|
+
private _coverRef;
|
|
5467
|
+
constructor(props: IColorPickerComponentProps);
|
|
5468
|
+
syncPositions(): void;
|
|
5469
|
+
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
5470
|
+
getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
|
|
5471
|
+
children?: React.ReactNode;
|
|
5472
|
+
}>): string;
|
|
5473
|
+
componentDidUpdate(): void;
|
|
5474
|
+
componentDidMount(): void;
|
|
5475
|
+
render(): JSX.Element;
|
|
5476
|
+
}
|
|
5477
|
+
|
|
5478
|
+
|
|
5479
|
+
|
|
5020
5480
|
}
|
|
5021
5481
|
declare module BABYLON {
|
|
5022
5482
|
|
|
@@ -5040,6 +5500,42 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
5040
5500
|
|
|
5041
5501
|
|
|
5042
5502
|
|
|
5503
|
+
}
|
|
5504
|
+
declare module BABYLON {
|
|
5505
|
+
|
|
5506
|
+
}
|
|
5507
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
5508
|
+
interface INumericInputComponentProps {
|
|
5509
|
+
label: string;
|
|
5510
|
+
value: number;
|
|
5511
|
+
step?: number;
|
|
5512
|
+
onChange: (value: number) => void;
|
|
5513
|
+
precision?: number;
|
|
5514
|
+
icon?: string;
|
|
5515
|
+
iconLabel?: string;
|
|
5516
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
5517
|
+
}
|
|
5518
|
+
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
|
5519
|
+
value: string;
|
|
5520
|
+
}> {
|
|
5521
|
+
static defaultProps: {
|
|
5522
|
+
step: number;
|
|
5523
|
+
};
|
|
5524
|
+
private _localChange;
|
|
5525
|
+
constructor(props: INumericInputComponentProps);
|
|
5526
|
+
componentWillUnmount(): void;
|
|
5527
|
+
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
5528
|
+
value: string;
|
|
5529
|
+
}): boolean;
|
|
5530
|
+
updateValue(valueString: string): void;
|
|
5531
|
+
onBlur(): void;
|
|
5532
|
+
incrementValue(amount: number): void;
|
|
5533
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
|
|
5534
|
+
render(): JSX.Element;
|
|
5535
|
+
}
|
|
5536
|
+
|
|
5537
|
+
|
|
5538
|
+
|
|
5043
5539
|
}
|
|
5044
5540
|
declare module BABYLON {
|
|
5045
5541
|
|
|
@@ -6740,6 +7236,11 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
6740
7236
|
component: ICommandBarComponentProps>;
|
|
6741
7237
|
};
|
|
6742
7238
|
export var Default: {};
|
|
7239
|
+
export var WithArtboardColor: {
|
|
7240
|
+
parameters: {
|
|
7241
|
+
onArtboardColorChanged: (color: string) => void;
|
|
7242
|
+
};
|
|
7243
|
+
};
|
|
6743
7244
|
|
|
6744
7245
|
|
|
6745
7246
|
|
|
@@ -6772,6 +7273,22 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
6772
7273
|
|
|
6773
7274
|
|
|
6774
7275
|
|
|
7276
|
+
}
|
|
7277
|
+
declare module BABYLON {
|
|
7278
|
+
|
|
7279
|
+
}
|
|
7280
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
7281
|
+
var _default: {
|
|
7282
|
+
component: typeof BABYLON.GuiEditor.SharedUIComponents.ColorPicker;
|
|
7283
|
+
};
|
|
7284
|
+
export var Default: {
|
|
7285
|
+
args: {
|
|
7286
|
+
color: Color3;
|
|
7287
|
+
};
|
|
7288
|
+
};
|
|
7289
|
+
|
|
7290
|
+
|
|
7291
|
+
|
|
6775
7292
|
}
|
|
6776
7293
|
declare module BABYLON {
|
|
6777
7294
|
|
|
@@ -6801,6 +7318,48 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
6801
7318
|
|
|
6802
7319
|
|
|
6803
7320
|
|
|
7321
|
+
}
|
|
7322
|
+
declare module BABYLON {
|
|
7323
|
+
|
|
7324
|
+
}
|
|
7325
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
7326
|
+
/// <reference types="react" />
|
|
7327
|
+
var _default: {
|
|
7328
|
+
component: typeof BABYLON.GuiEditor.SharedUIComponents.ColorLineComponent;
|
|
7329
|
+
};
|
|
7330
|
+
export var Default: {
|
|
7331
|
+
render: (args: BABYLON.GuiEditor.SharedUIComponents.IColorLineComponentProps) => JSX.Element;
|
|
7332
|
+
args: {
|
|
7333
|
+
target: {};
|
|
7334
|
+
label: string;
|
|
7335
|
+
propertyName: string;
|
|
7336
|
+
lockObject: {
|
|
7337
|
+
lock: boolean;
|
|
7338
|
+
};
|
|
7339
|
+
onPropertyChangedObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
7340
|
+
};
|
|
7341
|
+
};
|
|
7342
|
+
|
|
7343
|
+
|
|
7344
|
+
|
|
7345
|
+
}
|
|
7346
|
+
declare module BABYLON {
|
|
7347
|
+
|
|
7348
|
+
}
|
|
7349
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
7350
|
+
/// <reference types="react" />
|
|
7351
|
+
var _default: {
|
|
7352
|
+
component: typeof BABYLON.GuiEditor.SharedUIComponents.ColorPickerLineComponent;
|
|
7353
|
+
};
|
|
7354
|
+
export var Default: {
|
|
7355
|
+
render: (args: BABYLON.GuiEditor.SharedUIComponents.IColorPickerComponentProps) => JSX.Element;
|
|
7356
|
+
args: {
|
|
7357
|
+
value: Color3;
|
|
7358
|
+
};
|
|
7359
|
+
};
|
|
7360
|
+
|
|
7361
|
+
|
|
7362
|
+
|
|
6804
7363
|
}
|
|
6805
7364
|
declare module BABYLON {
|
|
6806
7365
|
|
|
@@ -6813,6 +7372,23 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
6813
7372
|
|
|
6814
7373
|
|
|
6815
7374
|
|
|
7375
|
+
}
|
|
7376
|
+
declare module BABYLON {
|
|
7377
|
+
|
|
7378
|
+
}
|
|
7379
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
7380
|
+
var _default: {
|
|
7381
|
+
component: typeof BABYLON.GuiEditor.SharedUIComponents.NumericInputComponent;
|
|
7382
|
+
};
|
|
7383
|
+
export var Default: {
|
|
7384
|
+
args: {
|
|
7385
|
+
label: string;
|
|
7386
|
+
value: number;
|
|
7387
|
+
};
|
|
7388
|
+
};
|
|
7389
|
+
|
|
7390
|
+
|
|
7391
|
+
|
|
6816
7392
|
}
|
|
6817
7393
|
declare module BABYLON {
|
|
6818
7394
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui-editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.27.1",
|
|
4
4
|
"main": "babylon.guiEditor.max.js",
|
|
5
5
|
"types": "babylon.guiEditor.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.*"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^5.
|
|
18
|
-
"babylonjs-gui": "^5.
|
|
17
|
+
"babylonjs": "^5.27.1",
|
|
18
|
+
"babylonjs-gui": "^5.27.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@dev/build-tools": "1.0.0",
|