Skip to content

anim-format (runtime format) / cameraViewSize

Function: cameraViewSize() ​

ts
function cameraViewSize(file, sym?): 
  | {
  height: number;
  width: number;
}
  | null;

The view a timeline is framed in (the published page's size): its first scene's camera frame, else the stage (the video export's rule). Null = no stage (a symbol export without a camera).

Parameters ​

ParameterType
fileAnimFile
sym?AnimSymbol | undefined

Returns ​

| { height: number; width: number; } | null

HereSplash — 2D animation for the web