Skip to main content

Context2D

@3dverse/livelink v0.8.10


@3dverse/livelink / Context2D

Class: Context2D

Defined in: livelink.js/sources/rendering/contexts/Context2D.ts:6

Extends

Constructors

new Context2D()

new Context2D(canvas, context_attributes?): Context2D

Defined in: livelink.js/sources/rendering/contexts/Context2D.ts:13

Parameters

canvas

HTMLCanvasElement

context_attributes?

CanvasRenderingContext2DSettings

Returns

Context2D

Overrides

ContextProvider.constructor

Methods

drawFrame()

drawFrame(__namedParameters): void

Defined in: livelink.js/sources/rendering/contexts/Context2D.ts:27

Parameters

__namedParameters
frame

OffscreenCanvas | VideoFrame

left

number

top

number

Returns

void

Overrides

ContextProvider.drawFrame


release()

release(): void

Defined in: livelink.js/sources/rendering/contexts/Context2D.ts:44

Returns

void

Overrides

ContextProvider.release


refreshSize()

refreshSize(): void

Defined in: livelink.js/sources/rendering/contexts/ContextProvider.ts:25

Returns

void

Inherited from

ContextProvider.refreshSize