Skip to content

anim-format (runtime format) / TargetStep

Type Alias: TargetStep ​

ts
type TargetStep = 
  | {
  kind: "parent";
}
  | {
  kind: "root";
}
  | {
  kind: "top";
}
  | {
  index: number;
  kind: "child";
}
  | {
  kind: "name";
  name: string;
};

One step of a playback target path.

Union Members ​

Type Literal ​

ts
{
  kind: "parent";
}

Type Literal ​

ts
{
  kind: "root";
}

_root: the main timeline of the clip's own file (a loaded file has its own)


Type Literal ​

ts
{
  kind: "top";
}

_top: the topmost main timeline of the page


Type Literal ​

ts
{
  index: number;
  kind: "child";
}

Type Literal ​

ts
{
  kind: "name";
  name: string;
}

an object / layer name, or an instance / element id

HereSplash — 2D animation for the web