|
@@ -589,6 +589,7 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
active: boolean;
|
|
active: boolean;
|
|
type: string;
|
|
type: string;
|
|
index: string;
|
|
index: string;
|
|
|
|
+ selected: boolean;
|
|
}
|
|
}
|
|
export class AnchorSvgPoint extends React.Component<IAnchorSvgPointProps> {
|
|
export class AnchorSvgPoint extends React.Component<IAnchorSvgPointProps> {
|
|
constructor(props: IAnchorSvgPointProps);
|
|
constructor(props: IAnchorSvgPointProps);
|
|
@@ -701,9 +702,12 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
import * as React from "react";
|
|
import * as React from "react";
|
|
interface IGraphActionsBarProps {
|
|
interface IGraphActionsBarProps {
|
|
addKeyframe: () => void;
|
|
addKeyframe: () => void;
|
|
|
|
+ removeKeyframe: () => void;
|
|
handleValueChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
handleValueChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
|
|
+ handleFrameChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
flatTangent: () => void;
|
|
flatTangent: () => void;
|
|
currentValue: number;
|
|
currentValue: number;
|
|
|
|
+ currentFrame: number;
|
|
}
|
|
}
|
|
export class GraphActionsBar extends React.Component<IGraphActionsBarProps> {
|
|
export class GraphActionsBar extends React.Component<IGraphActionsBarProps> {
|
|
constructor(props: IGraphActionsBarProps);
|
|
constructor(props: IGraphActionsBarProps);
|
|
@@ -749,6 +753,9 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
scale: number;
|
|
scale: number;
|
|
playheadOffset: number;
|
|
playheadOffset: number;
|
|
notification: string;
|
|
notification: string;
|
|
|
|
+ currentPoint: SVGPoint | undefined;
|
|
|
|
+ lastFrame: number;
|
|
|
|
+ playheadPos: number;
|
|
}> {
|
|
}> {
|
|
private _heightScale;
|
|
private _heightScale;
|
|
readonly _canvasLength: number;
|
|
readonly _canvasLength: number;
|
|
@@ -757,6 +764,8 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
private _frames;
|
|
private _frames;
|
|
private _isPlaying;
|
|
private _isPlaying;
|
|
private _graphCanvas;
|
|
private _graphCanvas;
|
|
|
|
+ private _selectedCurve;
|
|
|
|
+ private _svgCanvas;
|
|
constructor(props: IAnimationCurveEditorComponentProps);
|
|
constructor(props: IAnimationCurveEditorComponentProps);
|
|
componentDidMount(): void;
|
|
componentDidMount(): void;
|
|
resetPlayheadOffset(): void;
|
|
resetPlayheadOffset(): void;
|
|
@@ -764,11 +773,13 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
getValueLabel(i: number): number;
|
|
getValueLabel(i: number): number;
|
|
handleNameChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleNameChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleValueChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleValueChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
|
|
+ handleFrameChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleTypeChange(event: React.ChangeEvent<HTMLSelectElement>): void;
|
|
handleTypeChange(event: React.ChangeEvent<HTMLSelectElement>): void;
|
|
handlePropertyChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handlePropertyChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
addAnimation(): void;
|
|
addAnimation(): void;
|
|
clearNotification(): void;
|
|
clearNotification(): void;
|
|
addKeyframeClick(): void;
|
|
addKeyframeClick(): void;
|
|
|
|
+ removeKeyframeClick(): void;
|
|
addKeyFrame(event: React.MouseEvent<SVGSVGElement>): void;
|
|
addKeyFrame(event: React.MouseEvent<SVGSVGElement>): void;
|
|
updateKeyframe(keyframe: Vector2, index: number): void;
|
|
updateKeyframe(keyframe: Vector2, index: number): void;
|
|
getAnimationProperties(animation: Animation): {
|
|
getAnimationProperties(animation: Animation): {
|
|
@@ -3681,6 +3692,7 @@ declare module INSPECTOR {
|
|
active: boolean;
|
|
active: boolean;
|
|
type: string;
|
|
type: string;
|
|
index: string;
|
|
index: string;
|
|
|
|
+ selected: boolean;
|
|
}
|
|
}
|
|
export class AnchorSvgPoint extends React.Component<IAnchorSvgPointProps> {
|
|
export class AnchorSvgPoint extends React.Component<IAnchorSvgPointProps> {
|
|
constructor(props: IAnchorSvgPointProps);
|
|
constructor(props: IAnchorSvgPointProps);
|
|
@@ -3783,9 +3795,12 @@ declare module INSPECTOR {
|
|
declare module INSPECTOR {
|
|
declare module INSPECTOR {
|
|
interface IGraphActionsBarProps {
|
|
interface IGraphActionsBarProps {
|
|
addKeyframe: () => void;
|
|
addKeyframe: () => void;
|
|
|
|
+ removeKeyframe: () => void;
|
|
handleValueChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
handleValueChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
|
|
+ handleFrameChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
flatTangent: () => void;
|
|
flatTangent: () => void;
|
|
currentValue: number;
|
|
currentValue: number;
|
|
|
|
+ currentFrame: number;
|
|
}
|
|
}
|
|
export class GraphActionsBar extends React.Component<IGraphActionsBarProps> {
|
|
export class GraphActionsBar extends React.Component<IGraphActionsBarProps> {
|
|
constructor(props: IGraphActionsBarProps);
|
|
constructor(props: IGraphActionsBarProps);
|
|
@@ -3823,6 +3838,9 @@ declare module INSPECTOR {
|
|
scale: number;
|
|
scale: number;
|
|
playheadOffset: number;
|
|
playheadOffset: number;
|
|
notification: string;
|
|
notification: string;
|
|
|
|
+ currentPoint: SVGPoint | undefined;
|
|
|
|
+ lastFrame: number;
|
|
|
|
+ playheadPos: number;
|
|
}> {
|
|
}> {
|
|
private _heightScale;
|
|
private _heightScale;
|
|
readonly _canvasLength: number;
|
|
readonly _canvasLength: number;
|
|
@@ -3831,6 +3849,8 @@ declare module INSPECTOR {
|
|
private _frames;
|
|
private _frames;
|
|
private _isPlaying;
|
|
private _isPlaying;
|
|
private _graphCanvas;
|
|
private _graphCanvas;
|
|
|
|
+ private _selectedCurve;
|
|
|
|
+ private _svgCanvas;
|
|
constructor(props: IAnimationCurveEditorComponentProps);
|
|
constructor(props: IAnimationCurveEditorComponentProps);
|
|
componentDidMount(): void;
|
|
componentDidMount(): void;
|
|
resetPlayheadOffset(): void;
|
|
resetPlayheadOffset(): void;
|
|
@@ -3838,11 +3858,13 @@ declare module INSPECTOR {
|
|
getValueLabel(i: number): number;
|
|
getValueLabel(i: number): number;
|
|
handleNameChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleNameChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleValueChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleValueChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
|
|
+ handleFrameChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleTypeChange(event: React.ChangeEvent<HTMLSelectElement>): void;
|
|
handleTypeChange(event: React.ChangeEvent<HTMLSelectElement>): void;
|
|
handlePropertyChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handlePropertyChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
addAnimation(): void;
|
|
addAnimation(): void;
|
|
clearNotification(): void;
|
|
clearNotification(): void;
|
|
addKeyframeClick(): void;
|
|
addKeyframeClick(): void;
|
|
|
|
+ removeKeyframeClick(): void;
|
|
addKeyFrame(event: React.MouseEvent<SVGSVGElement>): void;
|
|
addKeyFrame(event: React.MouseEvent<SVGSVGElement>): void;
|
|
updateKeyframe(keyframe: BABYLON.Vector2, index: number): void;
|
|
updateKeyframe(keyframe: BABYLON.Vector2, index: number): void;
|
|
getAnimationProperties(animation: BABYLON.Animation): {
|
|
getAnimationProperties(animation: BABYLON.Animation): {
|