mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-06 10:46:53 +08:00
18 lines
748 B
TypeScript
18 lines
748 B
TypeScript
|
|
type SineBehaviorMovementType = "horizontal" | "vertical" | "size" | "width" | "height" | "angle" | "opacity" | "value-only" | "forwards-backwards" | "z-elevation";
|
|
type SineBehaviorWaveType = "sine" | "triangle" | "sawtooth" | "reverse-sawtooth" | "square";
|
|
|
|
/** Represents the Sine behavior.
|
|
* @see {@link https://www.construct.net/make-games/manuals/construct-3/scripting/scripting-reference/behavior-interfaces/sine | ISineBehaviorInstance documentation } */
|
|
declare class ISineBehaviorInstance<InstType> extends IBehaviorInstance<InstType>
|
|
{
|
|
period: number;
|
|
magnitude: number;
|
|
phase: number;
|
|
movement: SineBehaviorMovementType;
|
|
wave: SineBehaviorWaveType;
|
|
readonly value: number;
|
|
updateInitialState(): void;
|
|
isEnabled: boolean;
|
|
}
|