|
@@ -657,6 +657,10 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
private _panStop;
|
|
private _panStop;
|
|
private _playheadDrag;
|
|
private _playheadDrag;
|
|
private _playheadSelected;
|
|
private _playheadSelected;
|
|
|
|
+ private _movedX;
|
|
|
|
+ private _movedY;
|
|
|
|
+ readonly _dragBuffer: number;
|
|
|
|
+ readonly _draggingMultiplier: number;
|
|
constructor(props: ISvgDraggableAreaProps);
|
|
constructor(props: ISvgDraggableAreaProps);
|
|
componentDidMount(): void;
|
|
componentDidMount(): void;
|
|
componentWillReceiveProps(newProps: ISvgDraggableAreaProps): void;
|
|
componentWillReceiveProps(newProps: ISvgDraggableAreaProps): void;
|
|
@@ -669,7 +673,6 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
getMousePosition(e: React.TouchEvent<SVGSVGElement>): Vector2 | undefined;
|
|
getMousePosition(e: React.TouchEvent<SVGSVGElement>): Vector2 | undefined;
|
|
getMousePosition(e: React.MouseEvent<SVGSVGElement, MouseEvent>): Vector2 | undefined;
|
|
getMousePosition(e: React.MouseEvent<SVGSVGElement, MouseEvent>): Vector2 | undefined;
|
|
panDirection(): void;
|
|
panDirection(): void;
|
|
- panTo(direction: string, value: number): void;
|
|
|
|
keyDown(e: KeyboardEvent): void;
|
|
keyDown(e: KeyboardEvent): void;
|
|
keyUp(e: KeyboardEvent): void;
|
|
keyUp(e: KeyboardEvent): void;
|
|
focus(e: React.MouseEvent<SVGSVGElement>): void;
|
|
focus(e: React.MouseEvent<SVGSVGElement>): void;
|
|
@@ -691,13 +694,14 @@ declare module "babylonjs-inspector/components/actionTabs/lines/iconButtonLineCo
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/controls" {
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/controls" {
|
|
- import * as React from 'react';
|
|
|
|
- import { IAnimationKey } from 'babylonjs/Animations/animationKey';
|
|
|
|
|
|
+ import * as React from "react";
|
|
|
|
+ import { IAnimationKey } from "babylonjs/Animations/animationKey";
|
|
interface IControlsProps {
|
|
interface IControlsProps {
|
|
keyframes: IAnimationKey[] | null;
|
|
keyframes: IAnimationKey[] | null;
|
|
selected: IAnimationKey | null;
|
|
selected: IAnimationKey | null;
|
|
currentFrame: number;
|
|
currentFrame: number;
|
|
onCurrentFrameChange: (frame: number) => void;
|
|
onCurrentFrameChange: (frame: number) => void;
|
|
|
|
+ repositionCanvas: (frame: number) => void;
|
|
playPause: (direction: number) => void;
|
|
playPause: (direction: number) => void;
|
|
isPlaying: boolean;
|
|
isPlaying: boolean;
|
|
scrollable: React.RefObject<HTMLDivElement>;
|
|
scrollable: React.RefObject<HTMLDivElement>;
|
|
@@ -706,20 +710,21 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
selected: IAnimationKey;
|
|
selected: IAnimationKey;
|
|
playingType: string;
|
|
playingType: string;
|
|
}> {
|
|
}> {
|
|
|
|
+ readonly _sizeOfKeyframe: number;
|
|
constructor(props: IControlsProps);
|
|
constructor(props: IControlsProps);
|
|
playBackwards(): void;
|
|
playBackwards(): void;
|
|
play(): void;
|
|
play(): void;
|
|
pause(): void;
|
|
pause(): void;
|
|
- nextFrame(): void;
|
|
|
|
- previousFrame(): void;
|
|
|
|
|
|
+ moveToAnimationStart(): void;
|
|
|
|
+ moveToAnimationEnd(): void;
|
|
nextKeyframe(): void;
|
|
nextKeyframe(): void;
|
|
previousKeyframe(): void;
|
|
previousKeyframe(): void;
|
|
render(): JSX.Element;
|
|
render(): JSX.Element;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/timeline" {
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/timeline" {
|
|
- import * as React from 'react';
|
|
|
|
- import { IAnimationKey } from 'babylonjs/Animations/animationKey';
|
|
|
|
|
|
+ import * as React from "react";
|
|
|
|
+ import { IAnimationKey } from "babylonjs/Animations/animationKey";
|
|
interface ITimelineProps {
|
|
interface ITimelineProps {
|
|
keyframes: IAnimationKey[] | null;
|
|
keyframes: IAnimationKey[] | null;
|
|
selected: IAnimationKey | null;
|
|
selected: IAnimationKey | null;
|
|
@@ -740,28 +745,29 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
end: number;
|
|
end: number;
|
|
scrollWidth: number | undefined;
|
|
scrollWidth: number | undefined;
|
|
selectionLength: number[];
|
|
selectionLength: number[];
|
|
|
|
+ limitValue: number;
|
|
}> {
|
|
}> {
|
|
- readonly _frames: object[];
|
|
|
|
private _scrollable;
|
|
private _scrollable;
|
|
private _scrollbarHandle;
|
|
private _scrollbarHandle;
|
|
private _scrollContainer;
|
|
private _scrollContainer;
|
|
|
|
+ private _inputAnimationLimit;
|
|
private _direction;
|
|
private _direction;
|
|
private _scrolling;
|
|
private _scrolling;
|
|
private _shiftX;
|
|
private _shiftX;
|
|
private _active;
|
|
private _active;
|
|
|
|
+ readonly _marginScrollbar: number;
|
|
constructor(props: ITimelineProps);
|
|
constructor(props: ITimelineProps);
|
|
componentDidMount(): void;
|
|
componentDidMount(): void;
|
|
|
|
+ componentWillUnmount(): void;
|
|
|
|
+ isEnterKeyUp(event: KeyboardEvent): void;
|
|
|
|
+ onInputBlur(event: React.FocusEvent<HTMLInputElement>): void;
|
|
|
|
+ setControlState(): void;
|
|
calculateScrollWidth(start: number, end: number): number | undefined;
|
|
calculateScrollWidth(start: number, end: number): number | undefined;
|
|
playBackwards(event: React.MouseEvent<HTMLDivElement>): void;
|
|
playBackwards(event: React.MouseEvent<HTMLDivElement>): void;
|
|
play(event: React.MouseEvent<HTMLDivElement>): void;
|
|
play(event: React.MouseEvent<HTMLDivElement>): void;
|
|
pause(event: React.MouseEvent<HTMLDivElement>): void;
|
|
pause(event: React.MouseEvent<HTMLDivElement>): void;
|
|
- handleInputChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
|
|
setCurrentFrame(event: React.MouseEvent<HTMLDivElement>): void;
|
|
setCurrentFrame(event: React.MouseEvent<HTMLDivElement>): void;
|
|
handleLimitChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleLimitChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
- nextFrame(event: React.MouseEvent<HTMLDivElement>): void;
|
|
|
|
- previousFrame(event: React.MouseEvent<HTMLDivElement>): void;
|
|
|
|
- nextKeyframe(event: React.MouseEvent<HTMLDivElement>): void;
|
|
|
|
- previousKeyframe(event: React.MouseEvent<HTMLDivElement>): void;
|
|
|
|
dragStart(e: React.TouchEvent<SVGSVGElement>): void;
|
|
dragStart(e: React.TouchEvent<SVGSVGElement>): void;
|
|
dragStart(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
|
|
dragStart(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
|
|
drag(e: React.TouchEvent<SVGSVGElement>): void;
|
|
drag(e: React.TouchEvent<SVGSVGElement>): void;
|
|
@@ -827,11 +833,11 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/addAnimation" {
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/addAnimation" {
|
|
- import * as React from 'react';
|
|
|
|
- import { Observable } from 'babylonjs/Misc/observable';
|
|
|
|
|
|
+ import * as React from "react";
|
|
|
|
+ import { Observable } from "babylonjs/Misc/observable";
|
|
import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
|
|
import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
|
|
- import { Animation } from 'babylonjs/Animations/animation';
|
|
|
|
- import { IAnimatable } from 'babylonjs/Animations/animatable.interface';
|
|
|
|
|
|
+ import { Animation } from "babylonjs/Animations/animation";
|
|
|
|
+ import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
interface IAddAnimationProps {
|
|
interface IAddAnimationProps {
|
|
isOpen: boolean;
|
|
isOpen: boolean;
|
|
close: () => void;
|
|
close: () => void;
|
|
@@ -875,12 +881,12 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationListTree" {
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationListTree" {
|
|
- import * as React from 'react';
|
|
|
|
- import { IAnimatable } from 'babylonjs/Animations/animatable.interface';
|
|
|
|
- import { TargetedAnimation } from 'babylonjs/Animations/animationGroup';
|
|
|
|
- import { Observable } from 'babylonjs/Misc/observable';
|
|
|
|
|
|
+ import * as React from "react";
|
|
|
|
+ import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
|
|
+ import { TargetedAnimation } from "babylonjs/Animations/animationGroup";
|
|
|
|
+ import { Observable } from "babylonjs/Misc/observable";
|
|
import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
|
|
import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
|
|
- import { Animation } from 'babylonjs/Animations/animation';
|
|
|
|
|
|
+ import { Animation } from "babylonjs/Animations/animation";
|
|
interface IAnimationListTreeProps {
|
|
interface IAnimationListTreeProps {
|
|
isTargetedAnimation: boolean;
|
|
isTargetedAnimation: boolean;
|
|
entity: IAnimatable | TargetedAnimation;
|
|
entity: IAnimatable | TargetedAnimation;
|
|
@@ -1153,16 +1159,17 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
repositionCanvas: boolean;
|
|
repositionCanvas: boolean;
|
|
actionableKeyframe: IActionableKeyFrame;
|
|
actionableKeyframe: IActionableKeyFrame;
|
|
valueScale: CurveScale;
|
|
valueScale: CurveScale;
|
|
|
|
+ canvasLength: number;
|
|
}> {
|
|
}> {
|
|
private _snippetUrl;
|
|
private _snippetUrl;
|
|
private _heightScale;
|
|
private _heightScale;
|
|
private _scaleFactor;
|
|
private _scaleFactor;
|
|
private _currentScale;
|
|
private _currentScale;
|
|
readonly _entityName: string;
|
|
readonly _entityName: string;
|
|
- readonly _canvasLength: number;
|
|
|
|
private _svgKeyframes;
|
|
private _svgKeyframes;
|
|
private _isPlaying;
|
|
private _isPlaying;
|
|
private _graphCanvas;
|
|
private _graphCanvas;
|
|
|
|
+ private _editor;
|
|
private _svgCanvas;
|
|
private _svgCanvas;
|
|
private _isTargetedAnimation;
|
|
private _isTargetedAnimation;
|
|
private _pixelFrameUnit;
|
|
private _pixelFrameUnit;
|
|
@@ -4578,6 +4585,10 @@ declare module INSPECTOR {
|
|
private _panStop;
|
|
private _panStop;
|
|
private _playheadDrag;
|
|
private _playheadDrag;
|
|
private _playheadSelected;
|
|
private _playheadSelected;
|
|
|
|
+ private _movedX;
|
|
|
|
+ private _movedY;
|
|
|
|
+ readonly _dragBuffer: number;
|
|
|
|
+ readonly _draggingMultiplier: number;
|
|
constructor(props: ISvgDraggableAreaProps);
|
|
constructor(props: ISvgDraggableAreaProps);
|
|
componentDidMount(): void;
|
|
componentDidMount(): void;
|
|
componentWillReceiveProps(newProps: ISvgDraggableAreaProps): void;
|
|
componentWillReceiveProps(newProps: ISvgDraggableAreaProps): void;
|
|
@@ -4590,7 +4601,6 @@ declare module INSPECTOR {
|
|
getMousePosition(e: React.TouchEvent<SVGSVGElement>): BABYLON.Vector2 | undefined;
|
|
getMousePosition(e: React.TouchEvent<SVGSVGElement>): BABYLON.Vector2 | undefined;
|
|
getMousePosition(e: React.MouseEvent<SVGSVGElement, MouseEvent>): BABYLON.Vector2 | undefined;
|
|
getMousePosition(e: React.MouseEvent<SVGSVGElement, MouseEvent>): BABYLON.Vector2 | undefined;
|
|
panDirection(): void;
|
|
panDirection(): void;
|
|
- panTo(direction: string, value: number): void;
|
|
|
|
keyDown(e: KeyboardEvent): void;
|
|
keyDown(e: KeyboardEvent): void;
|
|
keyUp(e: KeyboardEvent): void;
|
|
keyUp(e: KeyboardEvent): void;
|
|
focus(e: React.MouseEvent<SVGSVGElement>): void;
|
|
focus(e: React.MouseEvent<SVGSVGElement>): void;
|
|
@@ -4616,6 +4626,7 @@ declare module INSPECTOR {
|
|
selected: BABYLON.IAnimationKey | null;
|
|
selected: BABYLON.IAnimationKey | null;
|
|
currentFrame: number;
|
|
currentFrame: number;
|
|
onCurrentFrameChange: (frame: number) => void;
|
|
onCurrentFrameChange: (frame: number) => void;
|
|
|
|
+ repositionCanvas: (frame: number) => void;
|
|
playPause: (direction: number) => void;
|
|
playPause: (direction: number) => void;
|
|
isPlaying: boolean;
|
|
isPlaying: boolean;
|
|
scrollable: React.RefObject<HTMLDivElement>;
|
|
scrollable: React.RefObject<HTMLDivElement>;
|
|
@@ -4624,12 +4635,13 @@ declare module INSPECTOR {
|
|
selected: BABYLON.IAnimationKey;
|
|
selected: BABYLON.IAnimationKey;
|
|
playingType: string;
|
|
playingType: string;
|
|
}> {
|
|
}> {
|
|
|
|
+ readonly _sizeOfKeyframe: number;
|
|
constructor(props: IControlsProps);
|
|
constructor(props: IControlsProps);
|
|
playBackwards(): void;
|
|
playBackwards(): void;
|
|
play(): void;
|
|
play(): void;
|
|
pause(): void;
|
|
pause(): void;
|
|
- nextFrame(): void;
|
|
|
|
- previousFrame(): void;
|
|
|
|
|
|
+ moveToAnimationStart(): void;
|
|
|
|
+ moveToAnimationEnd(): void;
|
|
nextKeyframe(): void;
|
|
nextKeyframe(): void;
|
|
previousKeyframe(): void;
|
|
previousKeyframe(): void;
|
|
render(): JSX.Element;
|
|
render(): JSX.Element;
|
|
@@ -4656,28 +4668,29 @@ declare module INSPECTOR {
|
|
end: number;
|
|
end: number;
|
|
scrollWidth: number | undefined;
|
|
scrollWidth: number | undefined;
|
|
selectionLength: number[];
|
|
selectionLength: number[];
|
|
|
|
+ limitValue: number;
|
|
}> {
|
|
}> {
|
|
- readonly _frames: object[];
|
|
|
|
private _scrollable;
|
|
private _scrollable;
|
|
private _scrollbarHandle;
|
|
private _scrollbarHandle;
|
|
private _scrollContainer;
|
|
private _scrollContainer;
|
|
|
|
+ private _inputAnimationLimit;
|
|
private _direction;
|
|
private _direction;
|
|
private _scrolling;
|
|
private _scrolling;
|
|
private _shiftX;
|
|
private _shiftX;
|
|
private _active;
|
|
private _active;
|
|
|
|
+ readonly _marginScrollbar: number;
|
|
constructor(props: ITimelineProps);
|
|
constructor(props: ITimelineProps);
|
|
componentDidMount(): void;
|
|
componentDidMount(): void;
|
|
|
|
+ componentWillUnmount(): void;
|
|
|
|
+ isEnterKeyUp(event: KeyboardEvent): void;
|
|
|
|
+ onInputBlur(event: React.FocusEvent<HTMLInputElement>): void;
|
|
|
|
+ setControlState(): void;
|
|
calculateScrollWidth(start: number, end: number): number | undefined;
|
|
calculateScrollWidth(start: number, end: number): number | undefined;
|
|
playBackwards(event: React.MouseEvent<HTMLDivElement>): void;
|
|
playBackwards(event: React.MouseEvent<HTMLDivElement>): void;
|
|
play(event: React.MouseEvent<HTMLDivElement>): void;
|
|
play(event: React.MouseEvent<HTMLDivElement>): void;
|
|
pause(event: React.MouseEvent<HTMLDivElement>): void;
|
|
pause(event: React.MouseEvent<HTMLDivElement>): void;
|
|
- handleInputChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
|
|
setCurrentFrame(event: React.MouseEvent<HTMLDivElement>): void;
|
|
setCurrentFrame(event: React.MouseEvent<HTMLDivElement>): void;
|
|
handleLimitChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleLimitChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
- nextFrame(event: React.MouseEvent<HTMLDivElement>): void;
|
|
|
|
- previousFrame(event: React.MouseEvent<HTMLDivElement>): void;
|
|
|
|
- nextKeyframe(event: React.MouseEvent<HTMLDivElement>): void;
|
|
|
|
- previousKeyframe(event: React.MouseEvent<HTMLDivElement>): void;
|
|
|
|
dragStart(e: React.TouchEvent<SVGSVGElement>): void;
|
|
dragStart(e: React.TouchEvent<SVGSVGElement>): void;
|
|
dragStart(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
|
|
dragStart(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
|
|
drag(e: React.TouchEvent<SVGSVGElement>): void;
|
|
drag(e: React.TouchEvent<SVGSVGElement>): void;
|
|
@@ -5014,16 +5027,17 @@ declare module INSPECTOR {
|
|
repositionCanvas: boolean;
|
|
repositionCanvas: boolean;
|
|
actionableKeyframe: IActionableKeyFrame;
|
|
actionableKeyframe: IActionableKeyFrame;
|
|
valueScale: CurveScale;
|
|
valueScale: CurveScale;
|
|
|
|
+ canvasLength: number;
|
|
}> {
|
|
}> {
|
|
private _snippetUrl;
|
|
private _snippetUrl;
|
|
private _heightScale;
|
|
private _heightScale;
|
|
private _scaleFactor;
|
|
private _scaleFactor;
|
|
private _currentScale;
|
|
private _currentScale;
|
|
readonly _entityName: string;
|
|
readonly _entityName: string;
|
|
- readonly _canvasLength: number;
|
|
|
|
private _svgKeyframes;
|
|
private _svgKeyframes;
|
|
private _isPlaying;
|
|
private _isPlaying;
|
|
private _graphCanvas;
|
|
private _graphCanvas;
|
|
|
|
+ private _editor;
|
|
private _svgCanvas;
|
|
private _svgCanvas;
|
|
private _isTargetedAnimation;
|
|
private _isTargetedAnimation;
|
|
private _pixelFrameUnit;
|
|
private _pixelFrameUnit;
|