Skip to content

Interface: InfiniteCanvasRenderingContext2D

This interface inherits all properties and methods from CanvasRenderingContext2D

Hierarchy

  • CanvasRenderingContext2D

    InfiniteCanvasRenderingContext2D

Methods

lineToInfinityInDirection

lineToInfinityInDirection(x, y): void

Modifies the current sub-path by adding a ray that starts at the sub-path's last point and extends to infinity in the direction of a given vector

Parameters

NameTypeDescription
xnumberThe horizontal component of the vector that indicates the direction of the line
ynumberThe vertical component of the vector that indicates the direction of the line

Returns

void

Defined in

infinite-canvas-rendering-context-2d.ts:10


moveToInfinityInDirection

moveToInfinityInDirection(x, y): void

Begins a new sub-path at a 'point at infinity' that lies in the direction indicated by a given vector

Parameters

NameTypeDescription
xnumberThe horizontal component of the vector that indicates the direction of the 'point at infinity' at which to begin a new sub-path
ynumberThe vertical component of the vector that indicates the direction of the 'point at infinity' at which to begin a new sub-path

Returns

void

Defined in

infinite-canvas-rendering-context-2d.ts:16