|
@@ -672,7 +672,7 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs-inspector/components/actionTabs/lines/iconButtonLineComponent" {
|
|
declare module "babylonjs-inspector/components/actionTabs/lines/iconButtonLineComponent" {
|
|
- import * as React from "react";
|
|
|
|
|
|
+ import * as React from 'react';
|
|
export interface IIconButtonLineComponentProps {
|
|
export interface IIconButtonLineComponentProps {
|
|
icon: string;
|
|
icon: string;
|
|
onClick: () => void;
|
|
onClick: () => void;
|
|
@@ -711,7 +711,7 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
}
|
|
}
|
|
}
|
|
}
|
|
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 * as React from 'react';
|
|
import { IAnimationKey } from 'babylonjs/Animations/animationKey';
|
|
import { IAnimationKey } from 'babylonjs/Animations/animationKey';
|
|
interface ITimelineProps {
|
|
interface ITimelineProps {
|
|
keyframes: IAnimationKey[] | null;
|
|
keyframes: IAnimationKey[] | null;
|
|
@@ -728,7 +728,10 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
}> {
|
|
}> {
|
|
readonly _frames: object[];
|
|
readonly _frames: object[];
|
|
private _scrollable;
|
|
private _scrollable;
|
|
|
|
+ private _scrollbarHandle;
|
|
private _direction;
|
|
private _direction;
|
|
|
|
+ private _scrolling;
|
|
|
|
+ private _shiftX;
|
|
constructor(props: ITimelineProps);
|
|
constructor(props: ITimelineProps);
|
|
playBackwards(event: React.MouseEvent<HTMLDivElement>): void;
|
|
playBackwards(event: React.MouseEvent<HTMLDivElement>): void;
|
|
play(event: React.MouseEvent<HTMLDivElement>): void;
|
|
play(event: React.MouseEvent<HTMLDivElement>): void;
|
|
@@ -745,17 +748,33 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
isFrameBeingUsed(frame: number, direction: number): number | false;
|
|
isFrameBeingUsed(frame: number, direction: number): number | false;
|
|
dragEnd(e: React.TouchEvent<SVGSVGElement>): void;
|
|
dragEnd(e: React.TouchEvent<SVGSVGElement>): void;
|
|
dragEnd(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
|
|
dragEnd(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
|
|
|
|
+ scrollDragStart(e: React.TouchEvent<HTMLDivElement>): void;
|
|
|
|
+ scrollDragStart(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
|
|
+ scrollDrag(e: React.TouchEvent<HTMLDivElement>): void;
|
|
|
|
+ scrollDrag(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
|
|
+ scrollDragEnd(e: React.TouchEvent<HTMLDivElement>): void;
|
|
|
|
+ scrollDragEnd(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
render(): JSX.Element;
|
|
render(): JSX.Element;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/playhead" {
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/playhead" {
|
|
- import * as React from "react";
|
|
|
|
|
|
+ import * as React from 'react';
|
|
interface IPlayheadProps {
|
|
interface IPlayheadProps {
|
|
frame: number;
|
|
frame: number;
|
|
offset: number;
|
|
offset: number;
|
|
|
|
+ onCurrentFrameChange: (frame: number) => void;
|
|
}
|
|
}
|
|
export class Playhead extends React.Component<IPlayheadProps> {
|
|
export class Playhead extends React.Component<IPlayheadProps> {
|
|
|
|
+ private _direction;
|
|
|
|
+ private _active;
|
|
constructor(props: IPlayheadProps);
|
|
constructor(props: IPlayheadProps);
|
|
|
|
+ dragStart(e: React.TouchEvent<HTMLDivElement>): void;
|
|
|
|
+ dragStart(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
|
|
+ drag(e: React.TouchEvent<HTMLDivElement>): void;
|
|
|
|
+ drag(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
|
|
+ dragEnd(e: React.TouchEvent<HTMLDivElement>): void;
|
|
|
|
+ dragEnd(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
|
|
+ calculateMove(): string;
|
|
render(): JSX.Element;
|
|
render(): JSX.Element;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -772,7 +791,7 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/graphActionsBar" {
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/graphActionsBar" {
|
|
- import * as React from "react";
|
|
|
|
|
|
+ import * as React from 'react';
|
|
interface IGraphActionsBarProps {
|
|
interface IGraphActionsBarProps {
|
|
addKeyframe: () => void;
|
|
addKeyframe: () => void;
|
|
removeKeyframe: () => void;
|
|
removeKeyframe: () => void;
|
|
@@ -795,8 +814,8 @@ 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 { Animation } from 'babylonjs/Animations/animation';
|
|
import { IAnimatable } from 'babylonjs/Animations/animatable.interface';
|
|
import { IAnimatable } from 'babylonjs/Animations/animatable.interface';
|
|
@@ -922,13 +941,13 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/editorControls" {
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/editorControls" {
|
|
- 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 { Animation } from 'babylonjs/Animations/animation';
|
|
import { SelectedCoordinate } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationListTree";
|
|
import { SelectedCoordinate } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationListTree";
|
|
- import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
|
|
- import { TargetedAnimation } from "babylonjs/Animations/animationGroup";
|
|
|
|
|
|
+ import { IAnimatable } from 'babylonjs/Animations/animatable.interface';
|
|
|
|
+ import { TargetedAnimation } from 'babylonjs/Animations/animationGroup';
|
|
import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
|
|
import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
|
|
interface IEditorControlsProps {
|
|
interface IEditorControlsProps {
|
|
isTargetedAnimation: boolean;
|
|
isTargetedAnimation: boolean;
|
|
@@ -958,7 +977,7 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationCurveEditorComponent" {
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationCurveEditorComponent" {
|
|
- import * as React from "react";
|
|
|
|
|
|
+ import * as React from 'react';
|
|
import { Animation } from 'babylonjs/Animations/animation';
|
|
import { Animation } from 'babylonjs/Animations/animation';
|
|
import { Vector2, Vector3, Quaternion } from 'babylonjs/Maths/math.vector';
|
|
import { Vector2, Vector3, Quaternion } from 'babylonjs/Maths/math.vector';
|
|
import { Color3, Color4 } from 'babylonjs/Maths/math.color';
|
|
import { Color3, Color4 } from 'babylonjs/Maths/math.color';
|
|
@@ -966,9 +985,9 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
import { EasingFunction } from 'babylonjs/Animations/easing';
|
|
import { EasingFunction } from 'babylonjs/Animations/easing';
|
|
import { IAnimationKey } from 'babylonjs/Animations/animationKey';
|
|
import { IAnimationKey } from 'babylonjs/Animations/animationKey';
|
|
import { IKeyframeSvgPoint } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/keyframeSvgPoint";
|
|
import { IKeyframeSvgPoint } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/keyframeSvgPoint";
|
|
- import { Scene } from "babylonjs/scene";
|
|
|
|
|
|
+ import { Scene } from 'babylonjs/scene';
|
|
import { IAnimatable } from 'babylonjs/Animations/animatable.interface';
|
|
import { IAnimatable } from 'babylonjs/Animations/animatable.interface';
|
|
- import { TargetedAnimation } from "babylonjs/Animations/animationGroup";
|
|
|
|
|
|
+ import { TargetedAnimation } from 'babylonjs/Animations/animationGroup';
|
|
import { SelectedCoordinate } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationListTree";
|
|
import { SelectedCoordinate } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationListTree";
|
|
import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
|
|
import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
|
|
interface IAnimationCurveEditorComponentProps {
|
|
interface IAnimationCurveEditorComponentProps {
|
|
@@ -1008,6 +1027,7 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
playheadPos: number;
|
|
playheadPos: number;
|
|
isPlaying: boolean;
|
|
isPlaying: boolean;
|
|
selectedPathData: ICurveData[] | undefined;
|
|
selectedPathData: ICurveData[] | undefined;
|
|
|
|
+ selectedCoordinate: number;
|
|
}> {
|
|
}> {
|
|
private _heightScale;
|
|
private _heightScale;
|
|
readonly _entityName: string;
|
|
readonly _entityName: string;
|
|
@@ -1015,37 +1035,38 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
private _svgKeyframes;
|
|
private _svgKeyframes;
|
|
private _isPlaying;
|
|
private _isPlaying;
|
|
private _graphCanvas;
|
|
private _graphCanvas;
|
|
- private _selectedCurve;
|
|
|
|
private _svgCanvas;
|
|
private _svgCanvas;
|
|
private _isTargetedAnimation;
|
|
private _isTargetedAnimation;
|
|
|
|
+ private _onBeforeRenderObserver;
|
|
|
|
+ private _mainAnimatable;
|
|
constructor(props: IAnimationCurveEditorComponentProps);
|
|
constructor(props: IAnimationCurveEditorComponentProps);
|
|
componentDidMount(): void;
|
|
componentDidMount(): void;
|
|
/**
|
|
/**
|
|
- * Notifications
|
|
|
|
- * To add notification we set the state and clear to make the notification bar hide.
|
|
|
|
- */
|
|
|
|
|
|
+ * Notifications
|
|
|
|
+ * To add notification we set the state and clear to make the notification bar hide.
|
|
|
|
+ */
|
|
clearNotification(): void;
|
|
clearNotification(): void;
|
|
/**
|
|
/**
|
|
- * Zoom and Scroll
|
|
|
|
- * This section handles zoom and scroll
|
|
|
|
- * of the graph area.
|
|
|
|
- */
|
|
|
|
|
|
+ * Zoom and Scroll
|
|
|
|
+ * This section handles zoom and scroll
|
|
|
|
+ * of the graph area.
|
|
|
|
+ */
|
|
zoom(e: React.WheelEvent<HTMLDivElement>): void;
|
|
zoom(e: React.WheelEvent<HTMLDivElement>): void;
|
|
setAxesLength(): void;
|
|
setAxesLength(): void;
|
|
getValueLabel(i: number): number;
|
|
getValueLabel(i: number): number;
|
|
resetPlayheadOffset(): void;
|
|
resetPlayheadOffset(): void;
|
|
/**
|
|
/**
|
|
- * Keyframe Manipulation
|
|
|
|
- * This section handles events from SvgDraggableArea.
|
|
|
|
- */
|
|
|
|
|
|
+ * Keyframe Manipulation
|
|
|
|
+ * This section handles events from SvgDraggableArea.
|
|
|
|
+ */
|
|
selectKeyframe(id: string): void;
|
|
selectKeyframe(id: string): void;
|
|
selectedControlPoint(type: string, id: string): void;
|
|
selectedControlPoint(type: string, id: string): void;
|
|
updateValuePerCoordinate(dataType: number, value: number | Vector2 | Vector3 | Color3 | Color4 | Size | Quaternion, newValue: number, coordinate?: number): number | Vector3 | Quaternion | Color3 | Color4 | Vector2 | Size;
|
|
updateValuePerCoordinate(dataType: number, value: number | Vector2 | Vector3 | Color3 | Color4 | Size | Quaternion, newValue: number, coordinate?: number): number | Vector3 | Quaternion | Color3 | Color4 | Vector2 | Size;
|
|
renderPoints(updatedSvgKeyFrame: IKeyframeSvgPoint, id: string): void;
|
|
renderPoints(updatedSvgKeyFrame: IKeyframeSvgPoint, id: string): void;
|
|
/**
|
|
/**
|
|
- * Actions
|
|
|
|
- * This section handles events from GraphActionsBar.
|
|
|
|
- */
|
|
|
|
|
|
+ * Actions
|
|
|
|
+ * This section handles events from GraphActionsBar.
|
|
|
|
+ */
|
|
handleFrameChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleFrameChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleValueChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleValueChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
setFlatTangent(): void;
|
|
setFlatTangent(): void;
|
|
@@ -1056,9 +1077,9 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
removeKeyframeClick(): void;
|
|
removeKeyframeClick(): void;
|
|
addKeyFrame(event: React.MouseEvent<SVGSVGElement>): void;
|
|
addKeyFrame(event: React.MouseEvent<SVGSVGElement>): void;
|
|
/**
|
|
/**
|
|
- * Curve Rendering Functions
|
|
|
|
- * This section handles how to render curves.
|
|
|
|
- */
|
|
|
|
|
|
+ * Curve Rendering Functions
|
|
|
|
+ * This section handles how to render curves.
|
|
|
|
+ */
|
|
linearInterpolation(keyframes: IAnimationKey[], data: string, middle: number): string;
|
|
linearInterpolation(keyframes: IAnimationKey[], data: string, middle: number): string;
|
|
setKeyframePointLinear(point: Vector2, index: number): void;
|
|
setKeyframePointLinear(point: Vector2, index: number): void;
|
|
flatTangents(keyframes: IAnimationKey[], dataType: number): IAnimationKey[];
|
|
flatTangents(keyframes: IAnimationKey[], dataType: number): IAnimationKey[];
|
|
@@ -1083,20 +1104,23 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
setKeyframePoint(controlPoints: Vector2[], index: number, keyframesCount: number): void;
|
|
setKeyframePoint(controlPoints: Vector2[], index: number, keyframesCount: number): void;
|
|
interpolateControlPoints(p0: Vector2, p1: Vector2, u: number, p2: Vector2, v: number, p3: Vector2): Vector2[] | undefined;
|
|
interpolateControlPoints(p0: Vector2, p1: Vector2, u: number, p2: Vector2, v: number, p3: Vector2): Vector2[] | undefined;
|
|
/**
|
|
/**
|
|
- * Core functions
|
|
|
|
- * This section handles main Curve Editor Functions.
|
|
|
|
- */
|
|
|
|
|
|
+ * Core functions
|
|
|
|
+ * This section handles main Curve Editor Functions.
|
|
|
|
+ */
|
|
selectAnimation(animation: Animation, coordinate?: SelectedCoordinate): void;
|
|
selectAnimation(animation: Animation, coordinate?: SelectedCoordinate): void;
|
|
isAnimationPlaying(): boolean;
|
|
isAnimationPlaying(): boolean;
|
|
playStopAnimation(): boolean;
|
|
playStopAnimation(): boolean;
|
|
analizeAnimationForLerp(animation: Animation | null): boolean;
|
|
analizeAnimationForLerp(animation: Animation | null): boolean;
|
|
/**
|
|
/**
|
|
- * Timeline
|
|
|
|
- * This section controls the timeline.
|
|
|
|
- */
|
|
|
|
|
|
+ * Timeline
|
|
|
|
+ * This section controls the timeline.
|
|
|
|
+ */
|
|
changeCurrentFrame(frame: number): void;
|
|
changeCurrentFrame(frame: number): void;
|
|
updateFrameInKeyFrame(frame: number, index: number): void;
|
|
updateFrameInKeyFrame(frame: number, index: number): void;
|
|
playPause(direction: number): void;
|
|
playPause(direction: number): void;
|
|
|
|
+ moveFrameTo(e: React.MouseEvent<SVGRectElement, MouseEvent>): void;
|
|
|
|
+ registerObs(): void;
|
|
|
|
+ componentWillUnmount(): void;
|
|
render(): JSX.Element;
|
|
render(): JSX.Element;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1126,9 +1150,9 @@ declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/ani
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent" {
|
|
declare module "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent" {
|
|
- import * as React from "react";
|
|
|
|
- import { Observable } from "babylonjs/Misc/observable";
|
|
|
|
- import { Scene } from "babylonjs/scene";
|
|
|
|
|
|
+ import * as React from 'react';
|
|
|
|
+ import { Observable } from 'babylonjs/Misc/observable';
|
|
|
|
+ import { Scene } from 'babylonjs/scene';
|
|
import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
|
|
import { PropertyChangedEvent } from "babylonjs-inspector/components/propertyChangedEvent";
|
|
import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
|
|
import { LockObject } from "babylonjs-inspector/components/actionTabs/tabs/propertyGrids/lockObject";
|
|
import { GlobalState } from "babylonjs-inspector/components/globalState";
|
|
import { GlobalState } from "babylonjs-inspector/components/globalState";
|
|
@@ -4166,7 +4190,10 @@ declare module INSPECTOR {
|
|
}> {
|
|
}> {
|
|
readonly _frames: object[];
|
|
readonly _frames: object[];
|
|
private _scrollable;
|
|
private _scrollable;
|
|
|
|
+ private _scrollbarHandle;
|
|
private _direction;
|
|
private _direction;
|
|
|
|
+ private _scrolling;
|
|
|
|
+ private _shiftX;
|
|
constructor(props: ITimelineProps);
|
|
constructor(props: ITimelineProps);
|
|
playBackwards(event: React.MouseEvent<HTMLDivElement>): void;
|
|
playBackwards(event: React.MouseEvent<HTMLDivElement>): void;
|
|
play(event: React.MouseEvent<HTMLDivElement>): void;
|
|
play(event: React.MouseEvent<HTMLDivElement>): void;
|
|
@@ -4183,6 +4210,12 @@ declare module INSPECTOR {
|
|
isFrameBeingUsed(frame: number, direction: number): number | false;
|
|
isFrameBeingUsed(frame: number, direction: number): number | false;
|
|
dragEnd(e: React.TouchEvent<SVGSVGElement>): void;
|
|
dragEnd(e: React.TouchEvent<SVGSVGElement>): void;
|
|
dragEnd(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
|
|
dragEnd(e: React.MouseEvent<SVGSVGElement, MouseEvent>): void;
|
|
|
|
+ scrollDragStart(e: React.TouchEvent<HTMLDivElement>): void;
|
|
|
|
+ scrollDragStart(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
|
|
+ scrollDrag(e: React.TouchEvent<HTMLDivElement>): void;
|
|
|
|
+ scrollDrag(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
|
|
+ scrollDragEnd(e: React.TouchEvent<HTMLDivElement>): void;
|
|
|
|
+ scrollDragEnd(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
render(): JSX.Element;
|
|
render(): JSX.Element;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -4190,9 +4223,19 @@ declare module INSPECTOR {
|
|
interface IPlayheadProps {
|
|
interface IPlayheadProps {
|
|
frame: number;
|
|
frame: number;
|
|
offset: number;
|
|
offset: number;
|
|
|
|
+ onCurrentFrameChange: (frame: number) => void;
|
|
}
|
|
}
|
|
export class Playhead extends React.Component<IPlayheadProps> {
|
|
export class Playhead extends React.Component<IPlayheadProps> {
|
|
|
|
+ private _direction;
|
|
|
|
+ private _active;
|
|
constructor(props: IPlayheadProps);
|
|
constructor(props: IPlayheadProps);
|
|
|
|
+ dragStart(e: React.TouchEvent<HTMLDivElement>): void;
|
|
|
|
+ dragStart(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
|
|
+ drag(e: React.TouchEvent<HTMLDivElement>): void;
|
|
|
|
+ drag(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
|
|
+ dragEnd(e: React.TouchEvent<HTMLDivElement>): void;
|
|
|
|
+ dragEnd(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
|
|
+ calculateMove(): string;
|
|
render(): JSX.Element;
|
|
render(): JSX.Element;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -4402,6 +4445,7 @@ declare module INSPECTOR {
|
|
playheadPos: number;
|
|
playheadPos: number;
|
|
isPlaying: boolean;
|
|
isPlaying: boolean;
|
|
selectedPathData: ICurveData[] | undefined;
|
|
selectedPathData: ICurveData[] | undefined;
|
|
|
|
+ selectedCoordinate: number;
|
|
}> {
|
|
}> {
|
|
private _heightScale;
|
|
private _heightScale;
|
|
readonly _entityName: string;
|
|
readonly _entityName: string;
|
|
@@ -4409,37 +4453,38 @@ declare module INSPECTOR {
|
|
private _svgKeyframes;
|
|
private _svgKeyframes;
|
|
private _isPlaying;
|
|
private _isPlaying;
|
|
private _graphCanvas;
|
|
private _graphCanvas;
|
|
- private _selectedCurve;
|
|
|
|
private _svgCanvas;
|
|
private _svgCanvas;
|
|
private _isTargetedAnimation;
|
|
private _isTargetedAnimation;
|
|
|
|
+ private _onBeforeRenderObserver;
|
|
|
|
+ private _mainAnimatable;
|
|
constructor(props: IAnimationCurveEditorComponentProps);
|
|
constructor(props: IAnimationCurveEditorComponentProps);
|
|
componentDidMount(): void;
|
|
componentDidMount(): void;
|
|
/**
|
|
/**
|
|
- * Notifications
|
|
|
|
- * To add notification we set the state and clear to make the notification bar hide.
|
|
|
|
- */
|
|
|
|
|
|
+ * Notifications
|
|
|
|
+ * To add notification we set the state and clear to make the notification bar hide.
|
|
|
|
+ */
|
|
clearNotification(): void;
|
|
clearNotification(): void;
|
|
/**
|
|
/**
|
|
- * Zoom and Scroll
|
|
|
|
- * This section handles zoom and scroll
|
|
|
|
- * of the graph area.
|
|
|
|
- */
|
|
|
|
|
|
+ * Zoom and Scroll
|
|
|
|
+ * This section handles zoom and scroll
|
|
|
|
+ * of the graph area.
|
|
|
|
+ */
|
|
zoom(e: React.WheelEvent<HTMLDivElement>): void;
|
|
zoom(e: React.WheelEvent<HTMLDivElement>): void;
|
|
setAxesLength(): void;
|
|
setAxesLength(): void;
|
|
getValueLabel(i: number): number;
|
|
getValueLabel(i: number): number;
|
|
resetPlayheadOffset(): void;
|
|
resetPlayheadOffset(): void;
|
|
/**
|
|
/**
|
|
- * Keyframe Manipulation
|
|
|
|
- * This section handles events from SvgDraggableArea.
|
|
|
|
- */
|
|
|
|
|
|
+ * Keyframe Manipulation
|
|
|
|
+ * This section handles events from SvgDraggableArea.
|
|
|
|
+ */
|
|
selectKeyframe(id: string): void;
|
|
selectKeyframe(id: string): void;
|
|
selectedControlPoint(type: string, id: string): void;
|
|
selectedControlPoint(type: string, id: string): void;
|
|
updateValuePerCoordinate(dataType: number, value: number | BABYLON.Vector2 | BABYLON.Vector3 | BABYLON.Color3 | BABYLON.Color4 | BABYLON.Size | BABYLON.Quaternion, newValue: number, coordinate?: number): number | BABYLON.Vector3 | BABYLON.Quaternion | BABYLON.Color3 | BABYLON.Color4 | BABYLON.Vector2 | BABYLON.Size;
|
|
updateValuePerCoordinate(dataType: number, value: number | BABYLON.Vector2 | BABYLON.Vector3 | BABYLON.Color3 | BABYLON.Color4 | BABYLON.Size | BABYLON.Quaternion, newValue: number, coordinate?: number): number | BABYLON.Vector3 | BABYLON.Quaternion | BABYLON.Color3 | BABYLON.Color4 | BABYLON.Vector2 | BABYLON.Size;
|
|
renderPoints(updatedSvgKeyFrame: IKeyframeSvgPoint, id: string): void;
|
|
renderPoints(updatedSvgKeyFrame: IKeyframeSvgPoint, id: string): void;
|
|
/**
|
|
/**
|
|
- * Actions
|
|
|
|
- * This section handles events from GraphActionsBar.
|
|
|
|
- */
|
|
|
|
|
|
+ * Actions
|
|
|
|
+ * This section handles events from GraphActionsBar.
|
|
|
|
+ */
|
|
handleFrameChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleFrameChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleValueChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
handleValueChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
setFlatTangent(): void;
|
|
setFlatTangent(): void;
|
|
@@ -4450,9 +4495,9 @@ declare module INSPECTOR {
|
|
removeKeyframeClick(): void;
|
|
removeKeyframeClick(): void;
|
|
addKeyFrame(event: React.MouseEvent<SVGSVGElement>): void;
|
|
addKeyFrame(event: React.MouseEvent<SVGSVGElement>): void;
|
|
/**
|
|
/**
|
|
- * Curve Rendering Functions
|
|
|
|
- * This section handles how to render curves.
|
|
|
|
- */
|
|
|
|
|
|
+ * Curve Rendering Functions
|
|
|
|
+ * This section handles how to render curves.
|
|
|
|
+ */
|
|
linearInterpolation(keyframes: BABYLON.IAnimationKey[], data: string, middle: number): string;
|
|
linearInterpolation(keyframes: BABYLON.IAnimationKey[], data: string, middle: number): string;
|
|
setKeyframePointLinear(point: BABYLON.Vector2, index: number): void;
|
|
setKeyframePointLinear(point: BABYLON.Vector2, index: number): void;
|
|
flatTangents(keyframes: BABYLON.IAnimationKey[], dataType: number): BABYLON.IAnimationKey[];
|
|
flatTangents(keyframes: BABYLON.IAnimationKey[], dataType: number): BABYLON.IAnimationKey[];
|
|
@@ -4477,20 +4522,23 @@ declare module INSPECTOR {
|
|
setKeyframePoint(controlPoints: BABYLON.Vector2[], index: number, keyframesCount: number): void;
|
|
setKeyframePoint(controlPoints: BABYLON.Vector2[], index: number, keyframesCount: number): void;
|
|
interpolateControlPoints(p0: BABYLON.Vector2, p1: BABYLON.Vector2, u: number, p2: BABYLON.Vector2, v: number, p3: BABYLON.Vector2): BABYLON.Vector2[] | undefined;
|
|
interpolateControlPoints(p0: BABYLON.Vector2, p1: BABYLON.Vector2, u: number, p2: BABYLON.Vector2, v: number, p3: BABYLON.Vector2): BABYLON.Vector2[] | undefined;
|
|
/**
|
|
/**
|
|
- * Core functions
|
|
|
|
- * This section handles main Curve Editor Functions.
|
|
|
|
- */
|
|
|
|
|
|
+ * Core functions
|
|
|
|
+ * This section handles main Curve Editor Functions.
|
|
|
|
+ */
|
|
selectAnimation(animation: BABYLON.Animation, coordinate?: SelectedCoordinate): void;
|
|
selectAnimation(animation: BABYLON.Animation, coordinate?: SelectedCoordinate): void;
|
|
isAnimationPlaying(): boolean;
|
|
isAnimationPlaying(): boolean;
|
|
playStopAnimation(): boolean;
|
|
playStopAnimation(): boolean;
|
|
analizeAnimationForLerp(animation: BABYLON.Animation | null): boolean;
|
|
analizeAnimationForLerp(animation: BABYLON.Animation | null): boolean;
|
|
/**
|
|
/**
|
|
- * Timeline
|
|
|
|
- * This section controls the timeline.
|
|
|
|
- */
|
|
|
|
|
|
+ * Timeline
|
|
|
|
+ * This section controls the timeline.
|
|
|
|
+ */
|
|
changeCurrentFrame(frame: number): void;
|
|
changeCurrentFrame(frame: number): void;
|
|
updateFrameInKeyFrame(frame: number, index: number): void;
|
|
updateFrameInKeyFrame(frame: number, index: number): void;
|
|
playPause(direction: number): void;
|
|
playPause(direction: number): void;
|
|
|
|
+ moveFrameTo(e: React.MouseEvent<SVGRectElement, MouseEvent>): void;
|
|
|
|
+ registerObs(): void;
|
|
|
|
+ componentWillUnmount(): void;
|
|
render(): JSX.Element;
|
|
render(): JSX.Element;
|
|
}
|
|
}
|
|
}
|
|
}
|