@babylonjs/inspector 5.0.0-alpha.58 → 5.0.0-alpha.61
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.
@@ -971,7 +971,7 @@ declare module "@babylonjs/inspector/sharedUiComponents/lines/color3LineComponen
|
|
971
971
|
import * as React from "react";
|
972
972
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
973
973
|
import { PropertyChangedEvent } from "@babylonjs/inspector/sharedUiComponents/propertyChangedEvent";
|
974
|
-
import { Color3 } from '@babylonjs/core/Maths/math.color';
|
974
|
+
import { Color3, Color4 } from '@babylonjs/core/Maths/math.color';
|
975
975
|
import { LockObject } from "@babylonjs/inspector/sharedUiComponents/tabs/propertyGrids/lockObject";
|
976
976
|
export interface IColor3LineComponentProps {
|
977
977
|
label: string;
|
@@ -982,25 +982,31 @@ declare module "@babylonjs/inspector/sharedUiComponents/lines/color3LineComponen
|
|
982
982
|
icon?: string;
|
983
983
|
lockObject?: LockObject;
|
984
984
|
iconLabel?: string;
|
985
|
+
onValueChange?: (value: string) => void;
|
985
986
|
}
|
986
987
|
export class Color3LineComponent extends React.Component<IColor3LineComponentProps, {
|
987
988
|
isExpanded: boolean;
|
988
|
-
color: Color3;
|
989
|
+
color: Color3 | Color4;
|
990
|
+
colorText: string;
|
989
991
|
}> {
|
990
992
|
private _localChange;
|
991
993
|
constructor(props: IColor3LineComponentProps);
|
994
|
+
private convertToColor3;
|
992
995
|
shouldComponentUpdate(nextProps: IColor3LineComponentProps, nextState: {
|
993
|
-
color: Color3;
|
996
|
+
color: Color3 | Color4;
|
997
|
+
colorText: string;
|
994
998
|
}): boolean;
|
995
|
-
setPropertyValue(newColor: Color3): void;
|
999
|
+
setPropertyValue(newColor: Color3 | Color4, newColorText: string): void;
|
996
1000
|
onChange(newValue: string): void;
|
997
1001
|
switchExpandState(): void;
|
998
|
-
raiseOnPropertyChanged(previousValue: Color3): void;
|
1002
|
+
raiseOnPropertyChanged(previousValue: Color3 | Color4): void;
|
999
1003
|
updateStateR(value: number): void;
|
1000
1004
|
updateStateG(value: number): void;
|
1001
1005
|
updateStateB(value: number): void;
|
1002
1006
|
copyToClipboard(): void;
|
1003
1007
|
convert(colorString: string): void;
|
1008
|
+
private _colorStringSaved;
|
1009
|
+
private _colorPickerOpen;
|
1004
1010
|
private _colorString;
|
1005
1011
|
render(): JSX.Element;
|
1006
1012
|
}
|
@@ -1107,6 +1113,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/cu
|
|
1107
1113
|
}
|
1108
1114
|
declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/animations/curveEditor/graph/curve" {
|
1109
1115
|
import { Animation } from "@babylonjs/core/Animations/animation";
|
1116
|
+
import { AnimationKeyInterpolation } from "@babylonjs/core/Animations/animationKey";
|
1110
1117
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
1111
1118
|
export interface KeyEntry {
|
1112
1119
|
frame: number;
|
@@ -1114,6 +1121,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1114
1121
|
inTangent?: number;
|
1115
1122
|
outTangent?: number;
|
1116
1123
|
lockedTangent: boolean;
|
1124
|
+
interpolation?: AnimationKeyInterpolation;
|
1117
1125
|
}
|
1118
1126
|
export class Curve {
|
1119
1127
|
static readonly SampleRate: number;
|
@@ -1127,11 +1135,14 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1127
1135
|
setDefaultOutTangent?: (keyId: number) => any;
|
1128
1136
|
static readonly TangentLength: number;
|
1129
1137
|
constructor(color: string, animation: Animation, property?: string, tangentBuilder?: () => any, setDefaultInTangent?: (keyId: number) => any, setDefaultOutTangent?: (keyId: number) => any);
|
1130
|
-
|
1138
|
+
getPathData(convertX: (x: number) => number, convertY: (y: number) => number): string;
|
1131
1139
|
updateLockedTangentMode(keyIndex: number, enabled: boolean): void;
|
1132
|
-
|
1133
|
-
|
1140
|
+
updateInterpolationMode(keyIndex: number, interpolationMode: AnimationKeyInterpolation): void;
|
1141
|
+
getInControlPoint(keyIndex: number): number | undefined;
|
1142
|
+
getOutControlPoint(keyIndex: number): number | undefined;
|
1143
|
+
hasDefinedOutTangent(keyIndex: number): boolean;
|
1134
1144
|
evaluateOutTangent(keyIndex: number): number;
|
1145
|
+
hasDefinedInTangent(keyIndex: number): boolean;
|
1135
1146
|
evaluateInTangent(keyIndex: number): number;
|
1136
1147
|
storeDefaultInTangent(keyIndex: number): void;
|
1137
1148
|
storeDefaultOutTangent(keyIndex: number): void;
|
@@ -1187,6 +1198,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1187
1198
|
private _onLinearTangentRequiredObserver;
|
1188
1199
|
private _onBreakTangentRequiredObserver;
|
1189
1200
|
private _onUnifyTangentRequiredObserver;
|
1201
|
+
private _onStepTangentRequiredObserver;
|
1190
1202
|
private _onSelectAllKeysObserver;
|
1191
1203
|
private _pointerIsDown;
|
1192
1204
|
private _sourcePointerX;
|
@@ -1211,6 +1223,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1211
1223
|
private _unifyTangent;
|
1212
1224
|
private _flattenTangent;
|
1213
1225
|
private _linearTangent;
|
1226
|
+
private _stepTangent;
|
1214
1227
|
private _select;
|
1215
1228
|
private _onPointerDown;
|
1216
1229
|
private _extractSlope;
|
@@ -1228,6 +1241,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1228
1241
|
import { Scene } from "@babylonjs/core/scene";
|
1229
1242
|
import { IAnimatable } from "@babylonjs/core/Animations/animatable.interface";
|
1230
1243
|
import { AnimationGroup, TargetedAnimation } from "@babylonjs/core/Animations/animationGroup";
|
1244
|
+
import { AnimationKeyInterpolation } from "@babylonjs/core/Animations/animationKey";
|
1231
1245
|
export class Context {
|
1232
1246
|
title: string;
|
1233
1247
|
animations: Nullable<Animation[] | TargetedAnimation[]>;
|
@@ -1247,8 +1261,10 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1247
1261
|
toKey: number;
|
1248
1262
|
forwardAnimation: boolean;
|
1249
1263
|
isPlaying: boolean;
|
1264
|
+
clipLength: number;
|
1250
1265
|
referenceMinFrame: number;
|
1251
1266
|
referenceMaxFrame: number;
|
1267
|
+
focusedInput: boolean;
|
1252
1268
|
onActiveAnimationChanged: Observable<void>;
|
1253
1269
|
onActiveKeyPointChanged: Observable<void>;
|
1254
1270
|
onHostWindowResized: Observable<void>;
|
@@ -1266,6 +1282,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1266
1282
|
onLinearTangentRequired: Observable<void>;
|
1267
1283
|
onBreakTangentRequired: Observable<void>;
|
1268
1284
|
onUnifyTangentRequired: Observable<void>;
|
1285
|
+
onStepTangentRequired: Observable<void>;
|
1269
1286
|
onDeleteAnimation: Observable<Animation>;
|
1270
1287
|
onGraphMoved: Observable<number>;
|
1271
1288
|
onGraphScaled: Observable<number>;
|
@@ -1277,6 +1294,12 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1277
1294
|
onAnimationsLoaded: Observable<void>;
|
1278
1295
|
onEditAnimationRequired: Observable<Animation>;
|
1279
1296
|
onEditAnimationUIClosed: Observable<void>;
|
1297
|
+
onClipLengthIncreased: Observable<number>;
|
1298
|
+
onClipLengthDecreased: Observable<number>;
|
1299
|
+
onInterpolationModeSet: Observable<{
|
1300
|
+
keyId: number;
|
1301
|
+
value: AnimationKeyInterpolation;
|
1302
|
+
}>;
|
1280
1303
|
onSelectToActivated: Observable<{
|
1281
1304
|
from: number;
|
1282
1305
|
to: number;
|
@@ -1293,6 +1316,38 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1293
1316
|
getActiveChannel(animation: Animation): string;
|
1294
1317
|
resetAllActiveChannels(): void;
|
1295
1318
|
getAnimationSortIndex(animation: Animation): number;
|
1319
|
+
getPrevKey(): Nullable<number>;
|
1320
|
+
getNextKey(): Nullable<number>;
|
1321
|
+
}
|
1322
|
+
}
|
1323
|
+
declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/animations/curveEditor/controls/textInputComponent" {
|
1324
|
+
import * as React from "react";
|
1325
|
+
import { GlobalState } from "@babylonjs/inspector/components/globalState";
|
1326
|
+
import { Context } from "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/animations/curveEditor/context";
|
1327
|
+
interface ITextInputComponentProps {
|
1328
|
+
globalState: GlobalState;
|
1329
|
+
context: Context;
|
1330
|
+
id?: string;
|
1331
|
+
className?: string;
|
1332
|
+
tooltip?: string;
|
1333
|
+
value: string;
|
1334
|
+
isNumber?: boolean;
|
1335
|
+
complement?: string;
|
1336
|
+
onValueAsNumberChanged?: (value: number, isFocused: boolean) => void;
|
1337
|
+
}
|
1338
|
+
interface ITextInputComponentState {
|
1339
|
+
value: string;
|
1340
|
+
isFocused: boolean;
|
1341
|
+
}
|
1342
|
+
export class TextInputComponent extends React.Component<ITextInputComponentProps, ITextInputComponentState> {
|
1343
|
+
private _lastKnownGoodValue;
|
1344
|
+
constructor(props: ITextInputComponentProps);
|
1345
|
+
private _onChange;
|
1346
|
+
private _onBlur;
|
1347
|
+
private _onFocus;
|
1348
|
+
shouldComponentUpdate(newProps: ITextInputComponentProps, newState: ITextInputComponentState): boolean;
|
1349
|
+
private _onKeyPress;
|
1350
|
+
render(): JSX.Element;
|
1296
1351
|
}
|
1297
1352
|
}
|
1298
1353
|
declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/animations/curveEditor/controls/controlButtonComponent" {
|
@@ -1335,6 +1390,8 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1335
1390
|
private _onPrevKey;
|
1336
1391
|
private _onRewind;
|
1337
1392
|
private _onForward;
|
1393
|
+
private _onPrevFrame;
|
1394
|
+
private _onNextFrame;
|
1338
1395
|
private _onNextKey;
|
1339
1396
|
private _onEndKey;
|
1340
1397
|
private _onStop;
|
@@ -1381,12 +1438,16 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1381
1438
|
context: Context;
|
1382
1439
|
}
|
1383
1440
|
interface IBottomBarComponentState {
|
1441
|
+
clipLength: string;
|
1384
1442
|
}
|
1385
1443
|
export class BottomBarComponent extends React.Component<IBottomBarComponentProps, IBottomBarComponentState> {
|
1386
1444
|
private _onAnimationsLoadedObserver;
|
1387
1445
|
private _onActiveAnimationChangedObserver;
|
1446
|
+
private _onClipLengthIncreasedObserver;
|
1447
|
+
private _onClipLengthDecreasedObserver;
|
1388
1448
|
constructor(props: IBottomBarComponentProps);
|
1389
|
-
private
|
1449
|
+
private _changeClipLength;
|
1450
|
+
private _getKeyAtFrame;
|
1390
1451
|
componentWillUnmount(): void;
|
1391
1452
|
render(): JSX.Element;
|
1392
1453
|
}
|
@@ -1412,35 +1473,6 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1412
1473
|
render(): JSX.Element;
|
1413
1474
|
}
|
1414
1475
|
}
|
1415
|
-
declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/animations/curveEditor/controls/textInputComponent" {
|
1416
|
-
import * as React from "react";
|
1417
|
-
import { GlobalState } from "@babylonjs/inspector/components/globalState";
|
1418
|
-
import { Context } from "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/animations/curveEditor/context";
|
1419
|
-
interface ITextInputComponentProps {
|
1420
|
-
globalState: GlobalState;
|
1421
|
-
context: Context;
|
1422
|
-
id?: string;
|
1423
|
-
className?: string;
|
1424
|
-
tooltip?: string;
|
1425
|
-
value: string;
|
1426
|
-
isNumber?: boolean;
|
1427
|
-
complement?: string;
|
1428
|
-
onValueAsNumberChanged?: (value: number) => void;
|
1429
|
-
}
|
1430
|
-
interface ITextInputComponentState {
|
1431
|
-
value: string;
|
1432
|
-
isFocused: boolean;
|
1433
|
-
}
|
1434
|
-
export class TextInputComponent extends React.Component<ITextInputComponentProps, ITextInputComponentState> {
|
1435
|
-
private _lastKnownGoodValue;
|
1436
|
-
constructor(props: ITextInputComponentProps);
|
1437
|
-
private _onChange;
|
1438
|
-
private _onBlur;
|
1439
|
-
private _onFocus;
|
1440
|
-
shouldComponentUpdate(newProps: ITextInputComponentProps, newState: ITextInputComponentState): boolean;
|
1441
|
-
render(): JSX.Element;
|
1442
|
-
}
|
1443
|
-
}
|
1444
1476
|
declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/animations/curveEditor/topBarComponent" {
|
1445
1477
|
import * as React from "react";
|
1446
1478
|
import { GlobalState } from "@babylonjs/inspector/components/globalState";
|
@@ -1504,6 +1536,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1504
1536
|
export class CurveComponent extends React.Component<ICurveComponentProps, ICurveComponentState> {
|
1505
1537
|
private _onDataUpdatedObserver;
|
1506
1538
|
private _onActiveAnimationChangedObserver;
|
1539
|
+
private _onInterpolationModeSetObserver;
|
1507
1540
|
constructor(props: ICurveComponentProps);
|
1508
1541
|
componentWillUnmount(): void;
|
1509
1542
|
componentDidUpdate(): boolean;
|
@@ -1707,6 +1740,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1707
1740
|
export class AnimationListComponent extends React.Component<IAnimationListComponentProps, IAnimationListComponentState> {
|
1708
1741
|
private _onEditAnimationRequiredObserver;
|
1709
1742
|
private _onEditAnimationUIClosedObserver;
|
1743
|
+
private _onDeleteAnimationObserver;
|
1710
1744
|
constructor(props: IAnimationListComponentProps);
|
1711
1745
|
componentWillUnmount(): void;
|
1712
1746
|
render(): JSX.Element | null;
|
@@ -1890,6 +1924,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
|
|
1890
1924
|
componentWillUnmount(): void;
|
1891
1925
|
onCurrentFrameChange(value: number): void;
|
1892
1926
|
onChangeFromOrTo(): void;
|
1927
|
+
componentDidUpdate(prevProps: IAnimationGridComponentProps): void;
|
1893
1928
|
render(): JSX.Element;
|
1894
1929
|
}
|
1895
1930
|
}
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
},
|
5
5
|
"name": "@babylonjs/inspector",
|
6
6
|
"description": "The Babylon.js inspector.",
|
7
|
-
"version": "5.0.0-alpha.
|
7
|
+
"version": "5.0.0-alpha.61",
|
8
8
|
"repository": {
|
9
9
|
"type": "git",
|
10
10
|
"url": "https://github.com/BabylonJS/Babylon.js.git"
|
@@ -27,12 +27,12 @@
|
|
27
27
|
],
|
28
28
|
"license": "Apache-2.0",
|
29
29
|
"dependencies": {
|
30
|
-
"@babylonjs/core": "5.0.0-alpha.
|
31
|
-
"@babylonjs/gui": "5.0.0-alpha.
|
32
|
-
"@babylonjs/loaders": "5.0.0-alpha.
|
33
|
-
"@babylonjs/materials": "5.0.0-alpha.
|
34
|
-
"@babylonjs/serializers": "5.0.0-alpha.
|
35
|
-
"babylonjs-gltf2interface": "5.0.0-alpha.
|
30
|
+
"@babylonjs/core": "5.0.0-alpha.61",
|
31
|
+
"@babylonjs/gui": "5.0.0-alpha.61",
|
32
|
+
"@babylonjs/loaders": "5.0.0-alpha.61",
|
33
|
+
"@babylonjs/materials": "5.0.0-alpha.61",
|
34
|
+
"@babylonjs/serializers": "5.0.0-alpha.61",
|
35
|
+
"babylonjs-gltf2interface": "5.0.0-alpha.61",
|
36
36
|
"tslib": "^2.3.1"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|