@univerjs/engine-render v0.5.0-beta.1 • Docs


Interface: IContext2D

Extends

  • CanvasRenderingContext2D

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
backingStorePixelRatiopublicnumber--packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:31
canvasreadonlyHTMLCanvasElementMDN ReferenceCanvasRenderingContext2D.canvasnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5562
directionpublicCanvasDirectionMDN ReferenceCanvasRenderingContext2D.directionnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5605
fillStylepublicstring | CanvasGradient | CanvasPatternMDN ReferenceCanvasRenderingContext2D.fillStylenode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5430
filterpublicstringMDN ReferenceCanvasRenderingContext2D.filternode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5445
fontpublicstringMDN ReferenceCanvasRenderingContext2D.fontnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5607
fontKerningpublicCanvasFontKerningMDN ReferenceCanvasRenderingContext2D.fontKerningnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5609
fontStretchpublicCanvasFontStretchMDN ReferenceCanvasRenderingContext2D.fontStretchnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5611
fontVariantCapspublicCanvasFontVariantCapsMDN ReferenceCanvasRenderingContext2D.fontVariantCapsnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5613
globalAlphapublicnumberMDN ReferenceCanvasRenderingContext2D.globalAlphanode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5396
globalCompositeOperationpublicGlobalCompositeOperationMDN ReferenceCanvasRenderingContext2D.globalCompositeOperationnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5398
imageSmoothingEnabledpublicbooleanMDN ReferenceCanvasRenderingContext2D.imageSmoothingEnablednode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5482
imageSmoothingQualitypublicImageSmoothingQualityMDN ReferenceCanvasRenderingContext2D.imageSmoothingQualitynode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5484
letterSpacingpublicstringMDN ReferenceCanvasRenderingContext2D.letterSpacingnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5615
lineCappublicCanvasLineCapMDN ReferenceCanvasRenderingContext2D.lineCapnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5512
lineDashOffsetpublicnumberMDN ReferenceCanvasRenderingContext2D.lineDashOffsetnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5514
lineJoinpublicCanvasLineJoinMDN ReferenceCanvasRenderingContext2D.lineJoinnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5516
lineWidthpublicnumberMDN ReferenceCanvasRenderingContext2D.lineWidthnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5518
miterLimitpublicnumberMDN ReferenceCanvasRenderingContext2D.miterLimitnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5520
mozBackingStorePixelRatiopublicnumber--packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:28
msBackingStorePixelRatiopublicnumber--packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:29
oBackingStorePixelRatiopublicnumber--packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:30
shadowBlurpublicnumberMDN ReferenceCanvasRenderingContext2D.shadowBlurnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5574
shadowColorpublicstringMDN ReferenceCanvasRenderingContext2D.shadowColornode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5576
shadowOffsetXpublicnumberMDN ReferenceCanvasRenderingContext2D.shadowOffsetXnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5578
shadowOffsetYpublicnumberMDN ReferenceCanvasRenderingContext2D.shadowOffsetYnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5580
strokeStylepublicstring | CanvasGradient | CanvasPatternMDN ReferenceCanvasRenderingContext2D.strokeStylenode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5432
textAlignpublicCanvasTextAlignMDN ReferenceCanvasRenderingContext2D.textAlignnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5617
textBaselinepublicCanvasTextBaselineMDN ReferenceCanvasRenderingContext2D.textBaselinenode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5619
textRenderingpublicCanvasTextRenderingMDN ReferenceCanvasRenderingContext2D.textRenderingnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5621
webkitBackingStorePixelRatiopublicnumber--packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:27
wordSpacingpublicstringMDN ReferenceCanvasRenderingContext2D.wordSpacingnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5623

Methods

arc()

arc(x, y, radius, startAngle, endAngle, counterclockwise)

arc(
   x, 
   y, 
   radius, 
   startAngle, 
   endAngle, 
   counterclockwise?): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
radiusnumber
startAnglenumber
endAnglenumber
counterclockwise?boolean
Returns

void

Inherited from

CanvasRenderingContext2D.arc

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5489

arc(x, y, radius, startAngle, endAngle, counterclockwise)

arc(
   x, 
   y, 
   radius, 
   startAngle, 
   endAngle, 
   counterclockwise?): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
radiusnumber
startAnglenumber
endAnglenumber
counterclockwise?boolean
Returns

void

Inherited from

CanvasRenderingContext2D.arc

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1592


arcTo()

arcTo(x1, y1, x2, y2, radius)

arcTo(
   x1, 
   y1, 
   x2, 
   y2, 
   radius): void

MDN Reference

Parameters
ParameterType
x1number
y1number
x2number
y2number
radiusnumber
Returns

void

Inherited from

CanvasRenderingContext2D.arcTo

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5491

arcTo(x1, y1, x2, y2, radius)

arcTo(
   x1, 
   y1, 
   x2, 
   y2, 
   radius): void

MDN Reference

Parameters
ParameterType
x1number
y1number
x2number
y2number
radiusnumber
Returns

void

Inherited from

CanvasRenderingContext2D.arcTo

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1594


beginPath()

beginPath(undefined)

beginPath(): void

MDN Reference

Returns

void

Inherited from

CanvasRenderingContext2D.beginPath

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5410

beginPath(undefined)

beginPath(): void

MDN Reference

Returns

void

Inherited from

CanvasRenderingContext2D.beginPath

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1513


bezierCurveTo()

bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y)

bezierCurveTo(
   cp1x, 
   cp1y, 
   cp2x, 
   cp2y, 
   x, 
   y): void

MDN Reference

Parameters
ParameterType
cp1xnumber
cp1ynumber
cp2xnumber
cp2ynumber
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.bezierCurveTo

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5493

bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y)

bezierCurveTo(
   cp1x, 
   cp1y, 
   cp2x, 
   cp2y, 
   x, 
   y): void

MDN Reference

Parameters
ParameterType
cp1xnumber
cp1ynumber
cp2xnumber
cp2ynumber
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.bezierCurveTo

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1596


clearRect()

clearRect(x, y, w, h)

clearRect(
   x, 
   y, 
   w, 
   h): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.clearRect

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5548

clearRect(x, y, w, h)

clearRect(
   x, 
   y, 
   w, 
   h): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.clearRect

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1651


clip()

clip(fillRule)

clip(fillRule?): void

MDN Reference

Parameters
ParameterType
fillRule?CanvasFillRule
Returns

void

Inherited from

CanvasRenderingContext2D.clip

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5412

clip(path, fillRule)

clip(path, fillRule?): void
Parameters
ParameterType
pathPath2D
fillRule?CanvasFillRule
Returns

void

Inherited from

CanvasRenderingContext2D.clip

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5413

clip(fillRule)

clip(fillRule?): void

MDN Reference

Parameters
ParameterType
fillRule?CanvasFillRule
Returns

void

Inherited from

CanvasRenderingContext2D.clip

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1515

clip(path, fillRule)

clip(path, fillRule?): void
Parameters
ParameterType
pathPath2D
fillRule?CanvasFillRule
Returns

void

Inherited from

CanvasRenderingContext2D.clip

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1516


closePath()

closePath(undefined)

closePath(): void

MDN Reference

Returns

void

Inherited from

CanvasRenderingContext2D.closePath

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5495

closePath(undefined)

closePath(): void

MDN Reference

Returns

void

Inherited from

CanvasRenderingContext2D.closePath

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1598


createConicGradient()

createConicGradient(startAngle, x, y)

createConicGradient(
   startAngle, 
   x, 
   y): CanvasGradient

MDN Reference

Parameters
ParameterType
startAnglenumber
xnumber
ynumber
Returns

CanvasGradient

Inherited from

CanvasRenderingContext2D.createConicGradient

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5434

createConicGradient(startAngle, x, y)

createConicGradient(
   startAngle, 
   x, 
   y): CanvasGradient

MDN Reference

Parameters
ParameterType
startAnglenumber
xnumber
ynumber
Returns

CanvasGradient

Inherited from

CanvasRenderingContext2D.createConicGradient

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1537


createImageData()

createImageData(sw, sh, settings)

createImageData(
   sw, 
   sh, 
   settings?): ImageData

MDN Reference

Parameters
ParameterType
swnumber
shnumber
settings?ImageDataSettings
Returns

ImageData

Inherited from

CanvasRenderingContext2D.createImageData

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5471

createImageData(imagedata)

createImageData(imagedata): ImageData
Parameters
ParameterType
imagedataImageData
Returns

ImageData

Inherited from

CanvasRenderingContext2D.createImageData

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5472

createImageData(sw, sh, settings)

createImageData(
   sw, 
   sh, 
   settings?): ImageData

MDN Reference

Parameters
ParameterType
swnumber
shnumber
settings?ImageDataSettings
Returns

ImageData

Inherited from

CanvasRenderingContext2D.createImageData

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1574

createImageData(imagedata)

createImageData(imagedata): ImageData
Parameters
ParameterType
imagedataImageData
Returns

ImageData

Inherited from

CanvasRenderingContext2D.createImageData

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1575


createLinearGradient()

createLinearGradient(x0, y0, x1, y1)

createLinearGradient(
   x0, 
   y0, 
   x1, 
   y1): CanvasGradient

MDN Reference

Parameters
ParameterType
x0number
y0number
x1number
y1number
Returns

CanvasGradient

Inherited from

CanvasRenderingContext2D.createLinearGradient

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5436

createLinearGradient(x0, y0, x1, y1)

createLinearGradient(
   x0, 
   y0, 
   x1, 
   y1): CanvasGradient

MDN Reference

Parameters
ParameterType
x0number
y0number
x1number
y1number
Returns

CanvasGradient

Inherited from

CanvasRenderingContext2D.createLinearGradient

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1539


createPattern()

createPattern(image, repetition)

createPattern(image, repetition): null | CanvasPattern

MDN Reference

Parameters
ParameterType
imageCanvasImageSource
repetitionnull | string
Returns

null | CanvasPattern

Inherited from

CanvasRenderingContext2D.createPattern

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5438

createPattern(image, repetition)

createPattern(image, repetition): null | CanvasPattern

MDN Reference

Parameters
ParameterType
imageCanvasImageSource
repetitionnull | string
Returns

null | CanvasPattern

Inherited from

CanvasRenderingContext2D.createPattern

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1541


createRadialGradient()

createRadialGradient(x0, y0, r0, x1, y1, r1)

createRadialGradient(
   x0, 
   y0, 
   r0, 
   x1, 
   y1, 
   r1): CanvasGradient

MDN Reference

Parameters
ParameterType
x0number
y0number
r0number
x1number
y1number
r1number
Returns

CanvasGradient

Inherited from

CanvasRenderingContext2D.createRadialGradient

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5440

createRadialGradient(x0, y0, r0, x1, y1, r1)

createRadialGradient(
   x0, 
   y0, 
   r0, 
   x1, 
   y1, 
   r1): CanvasGradient

MDN Reference

Parameters
ParameterType
x0number
y0number
r0number
x1number
y1number
r1number
Returns

CanvasGradient

Inherited from

CanvasRenderingContext2D.createRadialGradient

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1543


drawFocusIfNeeded()

drawFocusIfNeeded(element)

drawFocusIfNeeded(element): void

MDN Reference

Parameters
ParameterType
elementElement
Returns

void

Inherited from

CanvasRenderingContext2D.drawFocusIfNeeded

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5646

drawFocusIfNeeded(path, element)

drawFocusIfNeeded(path, element): void
Parameters
ParameterType
pathPath2D
elementElement
Returns

void

Inherited from

CanvasRenderingContext2D.drawFocusIfNeeded

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5647


drawImage()

drawImage(image, dx, dy)

drawImage(
   image, 
   dx, 
   dy): void

MDN Reference

Parameters
ParameterType
imageCanvasImageSource
dxnumber
dynumber
Returns

void

Inherited from

CanvasRenderingContext2D.drawImage

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5403

drawImage(image, dx, dy, dw, dh)

drawImage(
   image, 
   dx, 
   dy, 
   dw, 
   dh): void
Parameters
ParameterType
imageCanvasImageSource
dxnumber
dynumber
dwnumber
dhnumber
Returns

void

Inherited from

CanvasRenderingContext2D.drawImage

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5404

drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh)

drawImage(
   image, 
   sx, 
   sy, 
   sw, 
   sh, 
   dx, 
   dy, 
   dw, 
   dh): void
Parameters
ParameterType
imageCanvasImageSource
sxnumber
synumber
swnumber
shnumber
dxnumber
dynumber
dwnumber
dhnumber
Returns

void

Inherited from

CanvasRenderingContext2D.drawImage

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5405

drawImage(image, dx, dy)

drawImage(
   image, 
   dx, 
   dy): void

MDN Reference

Parameters
ParameterType
imageCanvasImageSource
dxnumber
dynumber
Returns

void

Inherited from

CanvasRenderingContext2D.drawImage

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1506

drawImage(image, dx, dy, dw, dh)

drawImage(
   image, 
   dx, 
   dy, 
   dw, 
   dh): void
Parameters
ParameterType
imageCanvasImageSource
dxnumber
dynumber
dwnumber
dhnumber
Returns

void

Inherited from

CanvasRenderingContext2D.drawImage

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1507

drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh)

drawImage(
   image, 
   sx, 
   sy, 
   sw, 
   sh, 
   dx, 
   dy, 
   dw, 
   dh): void
Parameters
ParameterType
imageCanvasImageSource
sxnumber
synumber
swnumber
shnumber
dxnumber
dynumber
dwnumber
dhnumber
Returns

void

Inherited from

CanvasRenderingContext2D.drawImage

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1508


ellipse()

ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, counterclockwise)

ellipse(
   x, 
   y, 
   radiusX, 
   radiusY, 
   rotation, 
   startAngle, 
   endAngle, 
   counterclockwise?): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
radiusXnumber
radiusYnumber
rotationnumber
startAnglenumber
endAnglenumber
counterclockwise?boolean
Returns

void

Inherited from

CanvasRenderingContext2D.ellipse

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5497

ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, counterclockwise)

ellipse(
   x, 
   y, 
   radiusX, 
   radiusY, 
   rotation, 
   startAngle, 
   endAngle, 
   counterclockwise?): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
radiusXnumber
radiusYnumber
rotationnumber
startAnglenumber
endAnglenumber
counterclockwise?boolean
Returns

void

Inherited from

CanvasRenderingContext2D.ellipse

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1600


fill()

fill(fillRule)

fill(fillRule?): void

MDN Reference

Parameters
ParameterType
fillRule?CanvasFillRule
Returns

void

Inherited from

CanvasRenderingContext2D.fill

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5415

fill(path, fillRule)

fill(path, fillRule?): void
Parameters
ParameterType
pathPath2D
fillRule?CanvasFillRule
Returns

void

Inherited from

CanvasRenderingContext2D.fill

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5416

fill(fillRule)

fill(fillRule?): void

MDN Reference

Parameters
ParameterType
fillRule?CanvasFillRule
Returns

void

Inherited from

CanvasRenderingContext2D.fill

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1518

fill(path, fillRule)

fill(path, fillRule?): void
Parameters
ParameterType
pathPath2D
fillRule?CanvasFillRule
Returns

void

Inherited from

CanvasRenderingContext2D.fill

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1519


fillRect()

fillRect(x, y, w, h)

fillRect(
   x, 
   y, 
   w, 
   h): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.fillRect

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5550

fillRect(x, y, w, h)

fillRect(
   x, 
   y, 
   w, 
   h): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.fillRect

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1653


fillText()

fillText(text, x, y, maxWidth)

fillText(
   text, 
   x, 
   y, 
   maxWidth?): void

MDN Reference

Parameters
ParameterType
textstring
xnumber
ynumber
maxWidth?number
Returns

void

Inherited from

CanvasRenderingContext2D.fillText

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5596

fillText(text, x, y, maxWidth)

fillText(
   text, 
   x, 
   y, 
   maxWidth?): void

MDN Reference

Parameters
ParameterType
textstring
xnumber
ynumber
maxWidth?number
Returns

void

Inherited from

CanvasRenderingContext2D.fillText

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1682


getContextAttributes()

getContextAttributes(): CanvasRenderingContext2DSettings

MDN Reference

Returns

CanvasRenderingContext2DSettings

Inherited from

CanvasRenderingContext2D.getContextAttributes

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5564


getImageData()

getImageData(sx, sy, sw, sh, settings)

getImageData(
   sx, 
   sy, 
   sw, 
   sh, 
   settings?): ImageData

MDN Reference

Parameters
ParameterType
sxnumber
synumber
swnumber
shnumber
settings?ImageDataSettings
Returns

ImageData

Inherited from

CanvasRenderingContext2D.getImageData

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5474

getImageData(sx, sy, sw, sh, settings)

getImageData(
   sx, 
   sy, 
   sw, 
   sh, 
   settings?): ImageData

MDN Reference

Parameters
ParameterType
sxnumber
synumber
swnumber
shnumber
settings?ImageDataSettings
Returns

ImageData

Inherited from

CanvasRenderingContext2D.getImageData

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1577


getLineDash()

getLineDash(undefined)

getLineDash(): number[]

MDN Reference

Returns

number[]

Inherited from

CanvasRenderingContext2D.getLineDash

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5522

getLineDash(undefined)

getLineDash(): number[]

MDN Reference

Returns

number[]

Inherited from

CanvasRenderingContext2D.getLineDash

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1625


getTransform()

getTransform(undefined)

getTransform(): DOMMatrix

MDN Reference

Returns

DOMMatrix

Inherited from

CanvasRenderingContext2D.getTransform

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5628

getTransform(undefined)

getTransform(): DOMMatrix

MDN Reference

Returns

DOMMatrix

Inherited from

CanvasRenderingContext2D.getTransform

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1714


isContextLost()

isContextLost(undefined)

isContextLost(): boolean

MDN Reference

Returns

boolean

Inherited from

CanvasRenderingContext2D.isContextLost

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5585

isContextLost(undefined)

isContextLost(): boolean

MDN Reference

Returns

boolean

Inherited from

CanvasRenderingContext2D.isContextLost

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1671


isPointInPath()

isPointInPath(x, y, fillRule)

isPointInPath(
   x, 
   y, 
   fillRule?): boolean

MDN Reference

Parameters
ParameterType
xnumber
ynumber
fillRule?CanvasFillRule
Returns

boolean

Inherited from

CanvasRenderingContext2D.isPointInPath

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5418

isPointInPath(path, x, y, fillRule)

isPointInPath(
   path, 
   x, 
   y, 
   fillRule?): boolean
Parameters
ParameterType
pathPath2D
xnumber
ynumber
fillRule?CanvasFillRule
Returns

boolean

Inherited from

CanvasRenderingContext2D.isPointInPath

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5419

isPointInPath(x, y, fillRule)

isPointInPath(
   x, 
   y, 
   fillRule?): boolean

MDN Reference

Parameters
ParameterType
xnumber
ynumber
fillRule?CanvasFillRule
Returns

boolean

Inherited from

CanvasRenderingContext2D.isPointInPath

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1521

isPointInPath(path, x, y, fillRule)

isPointInPath(
   path, 
   x, 
   y, 
   fillRule?): boolean
Parameters
ParameterType
pathPath2D
xnumber
ynumber
fillRule?CanvasFillRule
Returns

boolean

Inherited from

CanvasRenderingContext2D.isPointInPath

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1522


isPointInStroke()

isPointInStroke(x, y)

isPointInStroke(x, y): boolean

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

boolean

Inherited from

CanvasRenderingContext2D.isPointInStroke

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5421

isPointInStroke(path, x, y)

isPointInStroke(
   path, 
   x, 
   y): boolean
Parameters
ParameterType
pathPath2D
xnumber
ynumber
Returns

boolean

Inherited from

CanvasRenderingContext2D.isPointInStroke

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5422

isPointInStroke(x, y)

isPointInStroke(x, y): boolean

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

boolean

Inherited from

CanvasRenderingContext2D.isPointInStroke

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1524

isPointInStroke(path, x, y)

isPointInStroke(
   path, 
   x, 
   y): boolean
Parameters
ParameterType
pathPath2D
xnumber
ynumber
Returns

boolean

Inherited from

CanvasRenderingContext2D.isPointInStroke

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1525


lineTo()

lineTo(x, y)

lineTo(x, y): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.lineTo

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5499

lineTo(x, y)

lineTo(x, y): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.lineTo

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1602


measureText()

measureText(text)

measureText(text): TextMetrics

MDN Reference

Parameters
ParameterType
textstring
Returns

TextMetrics

Inherited from

CanvasRenderingContext2D.measureText

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5598

measureText(text)

measureText(text): TextMetrics

MDN Reference

Parameters
ParameterType
textstring
Returns

TextMetrics

Inherited from

CanvasRenderingContext2D.measureText

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1684


moveTo()

moveTo(x, y)

moveTo(x, y): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.moveTo

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5501

moveTo(x, y)

moveTo(x, y): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.moveTo

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1604


putImageData()

putImageData(imagedata, dx, dy)

putImageData(
   imagedata, 
   dx, 
   dy): void

MDN Reference

Parameters
ParameterType
imagedataImageData
dxnumber
dynumber
Returns

void

Inherited from

CanvasRenderingContext2D.putImageData

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5476

putImageData(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight)

putImageData(
   imagedata, 
   dx, 
   dy, 
   dirtyX, 
   dirtyY, 
   dirtyWidth, 
   dirtyHeight): void
Parameters
ParameterType
imagedataImageData
dxnumber
dynumber
dirtyXnumber
dirtyYnumber
dirtyWidthnumber
dirtyHeightnumber
Returns

void

Inherited from

CanvasRenderingContext2D.putImageData

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5477

putImageData(imagedata, dx, dy)

putImageData(
   imagedata, 
   dx, 
   dy): void

MDN Reference

Parameters
ParameterType
imagedataImageData
dxnumber
dynumber
Returns

void

Inherited from

CanvasRenderingContext2D.putImageData

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1579

putImageData(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight)

putImageData(
   imagedata, 
   dx, 
   dy, 
   dirtyX, 
   dirtyY, 
   dirtyWidth, 
   dirtyHeight): void
Parameters
ParameterType
imagedataImageData
dxnumber
dynumber
dirtyXnumber
dirtyYnumber
dirtyWidthnumber
dirtyHeightnumber
Returns

void

Inherited from

CanvasRenderingContext2D.putImageData

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1580


quadraticCurveTo()

quadraticCurveTo(cpx, cpy, x, y)

quadraticCurveTo(
   cpx, 
   cpy, 
   x, 
   y): void

MDN Reference

Parameters
ParameterType
cpxnumber
cpynumber
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.quadraticCurveTo

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5503

quadraticCurveTo(cpx, cpy, x, y)

quadraticCurveTo(
   cpx, 
   cpy, 
   x, 
   y): void

MDN Reference

Parameters
ParameterType
cpxnumber
cpynumber
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.quadraticCurveTo

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1606


rect()

rect(x, y, w, h)

rect(
   x, 
   y, 
   w, 
   h): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.rect

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5505

rect(x, y, w, h)

rect(
   x, 
   y, 
   w, 
   h): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.rect

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1608


reset()

reset(undefined)

reset(): void

MDN Reference

Returns

void

Inherited from

CanvasRenderingContext2D.reset

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5587

reset(undefined)

reset(): void

MDN Reference

Returns

void

Inherited from

CanvasRenderingContext2D.reset

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1673


resetTransform()

resetTransform(undefined)

resetTransform(): void

MDN Reference

Returns

void

Inherited from

CanvasRenderingContext2D.resetTransform

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5630

resetTransform(undefined)

resetTransform(): void

MDN Reference

Returns

void

Inherited from

CanvasRenderingContext2D.resetTransform

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1716


restore()

restore(undefined)

restore(): void

MDN Reference

Returns

void

Inherited from

CanvasRenderingContext2D.restore

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5589

restore(undefined)

restore(): void

MDN Reference

Returns

void

Inherited from

CanvasRenderingContext2D.restore

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1675


rotate()

rotate(angle)

rotate(angle): void

MDN Reference

Parameters
ParameterType
anglenumber
Returns

void

Inherited from

CanvasRenderingContext2D.rotate

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5632

rotate(angle)

rotate(angle): void

MDN Reference

Parameters
ParameterType
anglenumber
Returns

void

Inherited from

CanvasRenderingContext2D.rotate

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1718


roundRect()

roundRect(x, y, w, h, radii)

roundRect(
   x, 
   y, 
   w, 
   h, 
   radii?): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
radii?number | DOMPointInit | (number | DOMPointInit)[]
Returns

void

Inherited from

CanvasRenderingContext2D.roundRect

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5507

roundRect(x, y, w, h, radii)

roundRect(
   x, 
   y, 
   w, 
   h, 
   radii?): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
radii?number | DOMPointInit | Iterable<number | DOMPointInit, any, any>
Returns

void

Inherited from

CanvasRenderingContext2D.roundRect

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.iterable.d.ts:83

roundRect(x, y, w, h, radii)

roundRect(
   x, 
   y, 
   w, 
   h, 
   radii?): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
radii?number | DOMPointInit | (number | DOMPointInit)[]
Returns

void

Inherited from

CanvasRenderingContext2D.roundRect

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1610


save()

save(undefined)

save(): void

MDN Reference

Returns

void

Inherited from

CanvasRenderingContext2D.save

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5591

save(undefined)

save(): void

MDN Reference

Returns

void

Inherited from

CanvasRenderingContext2D.save

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1677


scale()

scale(x, y)

scale(x, y): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.scale

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5634

scale(x, y)

scale(x, y): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.scale

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1720


setLineDash()

setLineDash(segments)

setLineDash(segments): void

MDN Reference

Parameters
ParameterType
segmentsnumber[]
Returns

void

Inherited from

CanvasRenderingContext2D.setLineDash

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5524

setLineDash(segments)

setLineDash(segments): void

MDN Reference

Parameters
ParameterType
segmentsIterable<number, any, any>
Returns

void

Inherited from

CanvasRenderingContext2D.setLineDash

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.iterable.d.ts:88

setLineDash(segments)

setLineDash(segments): void

MDN Reference

Parameters
ParameterType
segmentsnumber[]
Returns

void

Inherited from

CanvasRenderingContext2D.setLineDash

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1627


setTransform()

setTransform(a, b, c, d, e, f)

setTransform(
   a, 
   b, 
   c, 
   d, 
   e, 
   f): void

MDN Reference

Parameters
ParameterType
anumber
bnumber
cnumber
dnumber
enumber
fnumber
Returns

void

Inherited from

CanvasRenderingContext2D.setTransform

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5636

setTransform(transform)

setTransform(transform?): void
Parameters
ParameterType
transform?DOMMatrix2DInit
Returns

void

Inherited from

CanvasRenderingContext2D.setTransform

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5637

setTransform(a, b, c, d, e, f)

setTransform(
   a, 
   b, 
   c, 
   d, 
   e, 
   f): void

MDN Reference

Parameters
ParameterType
anumber
bnumber
cnumber
dnumber
enumber
fnumber
Returns

void

Inherited from

CanvasRenderingContext2D.setTransform

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1722

setTransform(transform)

setTransform(transform?): void
Parameters
ParameterType
transform?DOMMatrix2DInit
Returns

void

Inherited from

CanvasRenderingContext2D.setTransform

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1723


stroke()

stroke(undefined)

stroke(): void

MDN Reference

Returns

void

Inherited from

CanvasRenderingContext2D.stroke

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5424

stroke(path)

stroke(path): void
Parameters
ParameterType
pathPath2D
Returns

void

Inherited from

CanvasRenderingContext2D.stroke

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5425

stroke(undefined)

stroke(): void

MDN Reference

Returns

void

Inherited from

CanvasRenderingContext2D.stroke

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1527

stroke(path)

stroke(path): void
Parameters
ParameterType
pathPath2D
Returns

void

Inherited from

CanvasRenderingContext2D.stroke

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1528


strokeRect()

strokeRect(x, y, w, h)

strokeRect(
   x, 
   y, 
   w, 
   h): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.strokeRect

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5552

strokeRect(x, y, w, h)

strokeRect(
   x, 
   y, 
   w, 
   h): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.strokeRect

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1655


strokeText()

strokeText(text, x, y, maxWidth)

strokeText(
   text, 
   x, 
   y, 
   maxWidth?): void

MDN Reference

Parameters
ParameterType
textstring
xnumber
ynumber
maxWidth?number
Returns

void

Inherited from

CanvasRenderingContext2D.strokeText

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5600

strokeText(text, x, y, maxWidth)

strokeText(
   text, 
   x, 
   y, 
   maxWidth?): void

MDN Reference

Parameters
ParameterType
textstring
xnumber
ynumber
maxWidth?number
Returns

void

Inherited from

CanvasRenderingContext2D.strokeText

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1686


transform()

transform(a, b, c, d, e, f)

transform(
   a, 
   b, 
   c, 
   d, 
   e, 
   f): void

MDN Reference

Parameters
ParameterType
anumber
bnumber
cnumber
dnumber
enumber
fnumber
Returns

void

Inherited from

CanvasRenderingContext2D.transform

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5639

transform(a, b, c, d, e, f)

transform(
   a, 
   b, 
   c, 
   d, 
   e, 
   f): void

MDN Reference

Parameters
ParameterType
anumber
bnumber
cnumber
dnumber
enumber
fnumber
Returns

void

Inherited from

CanvasRenderingContext2D.transform

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1725


translate()

translate(x, y)

translate(x, y): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.translate

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5641

translate(x, y)

translate(x, y): void

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.translate

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1727