Signature
Interface TimelineCanvasLayerDrawContextType parameters
| Name | Constraint | Default | Description |
|---|---|---|---|
TrackKind | None | string | No type parameter summary yet. |
Properties
| Name | Signature | Description |
|---|---|---|
canvas | canvas: HTMLCanvasElement | App-owned canvas element being drawn. |
clipRects | clipRects: TimelineClipRect<TrackKind>[] | All clip rectangles in track order. |
ctx | ctx: CanvasRenderingContext2D | Canvas 2D context scaled to CSS pixels. |
dpr | dpr: number | Current device pixel ratio used for the backing bitmap. |
height | height: number | Canvas height in CSS pixels. |
keyframeRects | keyframeRects: TimelineKeyframeRect<TrackKind>[] | All keyframe rectangles in track order. |
reason | reason: TimelineCanvasLayerRenderReason | Reason this draw was scheduled. |
requestDraw | (): void | Schedules another draw, useful after an async asset cache finishes. |
state | state: TimelineState | Current timeline state snapshot. |
viewport | viewport: TimelineCanvasLayerViewport | Current viewport metrics. |
visibleClips | visibleClips: VisibleTimelineClip<TrackKind>[] | Viewport-intersecting clips in track order. |
visibleKeyframes | visibleKeyframes: VisibleTimelineKeyframe<TrackKind>[] | Viewport-intersecting keyframes in track order. |
width | width: number | Canvas width in CSS pixels. |