cinematicPaths
Namespace of @v12-engine/editor
Members
CameraPathContext beta
export interface CameraPathContextWhat a path is worked out with: the map's views and paths by name, and the eases a key may name
cameraPaths beta
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
export interface CameraPathShapeA camera lane's path: the line its point takes, and its keys
grabAt beta
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
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
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
export interface PathGrabWhat of a path is under a point of the screen: a key, or one of its handles
PathKey beta
export interface PathKeyA 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
selectsCameraKey: (def: CinematicDef, selection: CinematicSelection) => booleanWhether what is selected has a camera key: its path's handles are dragged in the scene meanwhile