UNPKG

osbtools

Version:

A set of tools for working with osu! storyboards

28 lines 2.03 kB
import { ESbElementProperty, ESbElementType } from "../types/enums"; import { TStoryboardElementColor, TStoryboardElementData, TStoryboardElementDefaultProps, TStoryboardElementFade, TStoryboardElementLoop, TStoryboardElementMove, TStoryboardElementMoveX, TStoryboardElementMoveY, TStoryboardElementProperties, TStoryboardElementPropertiesByLayer, TStoryboardElementPropertyItem, TStoryboardElementRotate, TStoryboardElementScale, TStoryboardElementScaleVec, TStoryboardElementTrigger, TUnstrictStoryboardElementData } from "../types/types"; declare abstract class StoryboardElement { #private; abstract type: ESbElementType; constructor({ path, layer, origin, defaultPosition }: TUnstrictStoryboardElementData); getType(): ESbElementType; getData(): TStoryboardElementData; getProperties(): TStoryboardElementProperties | undefined; getPropertiesByLayer(): TStoryboardElementPropertiesByLayer | undefined; getProperty<T extends ESbElementProperty>(index: number, cb?: (property: TStoryboardElementPropertyItem<T>) => TStoryboardElementPropertyItem<T>): TStoryboardElementPropertyItem<T>; loop(data: TStoryboardElementLoop): this; trigger(data: TStoryboardElementTrigger): this; move(data: TStoryboardElementMove): StoryboardElement; moveX(data: TStoryboardElementMoveX): StoryboardElement; moveY(data: TStoryboardElementMoveY): StoryboardElement; rotate(data: TStoryboardElementRotate): StoryboardElement; fade(data: TStoryboardElementFade): StoryboardElement; scale(data: TStoryboardElementScale): StoryboardElement; scaleVec(data: TStoryboardElementScaleVec): StoryboardElement; color(data: TStoryboardElementColor): StoryboardElement; flipH(data: TStoryboardElementDefaultProps): StoryboardElement; flipV(data: TStoryboardElementDefaultProps): StoryboardElement; additive(data: TStoryboardElementDefaultProps): StoryboardElement; abstract toString(): string; } export default StoryboardElement; //# sourceMappingURL=storyboardElement.d.ts.map