Skip to content

cinematicPaths ​

Namespace of @v12-engine/editor

Members ​

CameraPathContext beta ​

ts
export interface CameraPathContext

What a path is worked out with: the map's views and paths by name, and the eases a key may name

cameraPaths beta ​

ts
export declare function cameraPaths(def: CinematicDef, context: CameraPathContext): CameraPathShape[];

The camera lanes' paths of a cinematic (muted lanes too: they are drawn as the timeline draws them)

CameraPathShape beta ​

ts
export interface CameraPathShape

A camera lane's path: the line its point takes, and its keys

grabAt beta ​

ts
export declare function grabAt(paths: readonly CameraPathShape[], project: (point: Vec2) => {
    x: number;
    y: number;
} | null, x: number, y: number, reach?: number): PathGrab | undefined;

The key or handle of the paths nearest a point of the screen, within reach pixels: project puts a point of the map on the screen (none for one behind the camera). Handles before keys, as they sit on top

moveHandle beta ​

ts
export declare function moveHandle(def: CinematicDef, ref: ItemRef, side: 'in' | 'out', to: Vec2, point: Vec2): CinematicEdit;

A handle of a camera key moved on the ground: kept as the offset from its key's point

moveKey beta ​

ts
export declare function moveKey(def: CinematicDef, ref: ItemRef, to: Vec2): CinematicEdit;

A camera key's point moved on the ground (its handles go with it, as they are offsets)

PathGrab beta ​

ts
export interface PathGrab

What of a path is under a point of the screen: a key, or one of its handles

PathKey beta ​

ts
export interface PathKey

A key of a camera lane on the ground: where its point is, and its handles where a bezier comes to it or leaves it

selectsCameraKey beta ​

ts
selectsCameraKey: (def: CinematicDef, selection: CinematicSelection) => boolean

Whether what is selected has a camera key: its path's handles are dragged in the scene meanwhile