Type Parameters

Hierarchy

Properties

Children object of the group. If provided, also set .isGroup property to true.

classes?: string[]

A list of classes on this Timeline-object. classes can be referenced by other objects using the syntax: ".className"

content: TContent

The payload of the timeline-object. Can be anything you want.

disabled?: boolean

If set to true, the object will be excluded when resolving the timeline.

Expression (or array of expressions) defining when the Timeline-object will play

id: string

ID of the object. Must be unique!

isGroup?: boolean
keyframes?: Timeline.TimelineKeyframe<Partial<TContent>>[]

Keyframes can be used to modify the content of an object. When a keyframe is active, the content of the keyframe will be merged into the parent object.

layer: string | number

The layer where the object is played. If set to undefined, "" or null, the object is treated as "transparent", ie it won't collide with other objects, nor be present in the resolved state.

priority?: number

Priority. Affects which object "wins" when there are two colliding objects on the same layer. If the two colliding objects have the same priority, the one who started playing last wins. Otherwise, the one with the highest priority wins (ie 9 wins over 0). Defaults to 0

resolved: {
    directReferences: Timeline.Reference[];
    firstResolved: boolean;
    instances: Timeline.TimelineObjectInstance[];
    isKeyframe: boolean;
    isSelfReferencing: boolean;
    levelDeep: number;
    parentId: undefined | string;
    resolvedConflicts: boolean;
    resolvedReferences: boolean;
    resolving: boolean;
}

Type declaration

  • directReferences: Timeline.Reference[]

    Ids of all other objects that directly affects this object (ie through direct reference, classes, etc)

  • firstResolved: boolean

    Is set to true when object is resolved first time, and isn't reset thereafter

  • instances: Timeline.TimelineObjectInstance[]

    Instances of the object on the timeline

  • isKeyframe: boolean

    True if object is a keyframe

  • isSelfReferencing: boolean

    True if object is referencing itself (only directly, not indirectly via another object)

  • levelDeep: number

    A number that increases the more levels inside of a group the objects is. 0 = no parent

  • parentId: undefined | string

    Id of the parent object (for children in groups or keyframes)

  • resolvedConflicts: boolean

    Is set to true when object's conflicts has been resolved

  • resolvedReferences: boolean

    Is set to true when object's references has been resolved

  • resolving: boolean

    Is set to true while object is resolved (to prevent circular references)

seamless?: boolean

If set to true, colliding timeline-instances will be merged into a single one. This could be useful if want the instance.start times to not be reset unexpectedly.

Generated using TypeDoc