API Reference
@univerjs
@univerjs/engine-render
interfaces
Icontext2d

@univerjs/engine-render v0.4.2Docs


Interface: IContext2D

Extends

  • CanvasRenderingContext2D

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
backingStorePixelRatiopublicnumber--submodules/univer/packages/engine-render/src/basics/draw.ts:31 (opens in a new tab)
canvasreadonlyHTMLCanvasElementMDN Reference (opens in a new tab)CanvasRenderingContext2D.canvasnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5548
directionpublicCanvasDirectionMDN Reference (opens in a new tab)CanvasRenderingContext2D.directionnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5589
fillStylepublicstring | CanvasGradient | CanvasPatternMDN Reference (opens in a new tab)CanvasRenderingContext2D.fillStylenode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5416
filterpublicstringMDN Reference (opens in a new tab)CanvasRenderingContext2D.filternode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5431
fontpublicstringMDN Reference (opens in a new tab)CanvasRenderingContext2D.fontnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5591
fontKerningpublicCanvasFontKerningMDN Reference (opens in a new tab)CanvasRenderingContext2D.fontKerningnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5593
fontStretchpublicCanvasFontStretchMDN Reference (opens in a new tab)CanvasRenderingContext2D.fontStretchnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5595
fontVariantCapspublicCanvasFontVariantCapsMDN Reference (opens in a new tab)CanvasRenderingContext2D.fontVariantCapsnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5597
globalAlphapublicnumberMDN Reference (opens in a new tab)CanvasRenderingContext2D.globalAlphanode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5382
globalCompositeOperationpublicGlobalCompositeOperationMDN Reference (opens in a new tab)CanvasRenderingContext2D.globalCompositeOperationnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5384
imageSmoothingEnabledpublicbooleanMDN Reference (opens in a new tab)CanvasRenderingContext2D.imageSmoothingEnablednode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5468
imageSmoothingQualitypublicImageSmoothingQualityMDN Reference (opens in a new tab)CanvasRenderingContext2D.imageSmoothingQualitynode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5470
letterSpacingpublicstringMDN Reference (opens in a new tab)CanvasRenderingContext2D.letterSpacingnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5599
lineCappublicCanvasLineCapMDN Reference (opens in a new tab)CanvasRenderingContext2D.lineCapnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5498
lineDashOffsetpublicnumberMDN Reference (opens in a new tab)CanvasRenderingContext2D.lineDashOffsetnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5500
lineJoinpublicCanvasLineJoinMDN Reference (opens in a new tab)CanvasRenderingContext2D.lineJoinnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5502
lineWidthpublicnumberMDN Reference (opens in a new tab)CanvasRenderingContext2D.lineWidthnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5504
miterLimitpublicnumberMDN Reference (opens in a new tab)CanvasRenderingContext2D.miterLimitnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5506
mozBackingStorePixelRatiopublicnumber--submodules/univer/packages/engine-render/src/basics/draw.ts:28 (opens in a new tab)
msBackingStorePixelRatiopublicnumber--submodules/univer/packages/engine-render/src/basics/draw.ts:29 (opens in a new tab)
oBackingStorePixelRatiopublicnumber--submodules/univer/packages/engine-render/src/basics/draw.ts:30 (opens in a new tab)
shadowBlurpublicnumberMDN Reference (opens in a new tab)CanvasRenderingContext2D.shadowBlurnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5560
shadowColorpublicstringMDN Reference (opens in a new tab)CanvasRenderingContext2D.shadowColornode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5562
shadowOffsetXpublicnumberMDN Reference (opens in a new tab)CanvasRenderingContext2D.shadowOffsetXnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5564
shadowOffsetYpublicnumberMDN Reference (opens in a new tab)CanvasRenderingContext2D.shadowOffsetYnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5566
strokeStylepublicstring | CanvasGradient | CanvasPatternMDN Reference (opens in a new tab)CanvasRenderingContext2D.strokeStylenode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5418
textAlignpublicCanvasTextAlignMDN Reference (opens in a new tab)CanvasRenderingContext2D.textAlignnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5601
textBaselinepublicCanvasTextBaselineMDN Reference (opens in a new tab)CanvasRenderingContext2D.textBaselinenode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5603
textRenderingpublicCanvasTextRenderingMDN Reference (opens in a new tab)CanvasRenderingContext2D.textRenderingnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5605
webkitBackingStorePixelRatiopublicnumber--submodules/univer/packages/engine-render/src/basics/draw.ts:27 (opens in a new tab)
wordSpacingpublicstringMDN Reference (opens in a new tab)CanvasRenderingContext2D.wordSpacingnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5607

Methods

arc()

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

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
radiusnumber
startAnglenumber
endAnglenumber
counterclockwise?boolean
Returns

void

Inherited from

CanvasRenderingContext2D.arc

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5475

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

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
radiusnumber
startAnglenumber
endAnglenumber
counterclockwise?boolean
Returns

void

Inherited from

CanvasRenderingContext2D.arc

Defined in

node_modules/.pnpm/typescript@5.5.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 (opens in a new tab)

Parameters
ParameterType
x1number
y1number
x2number
y2number
radiusnumber
Returns

void

Inherited from

CanvasRenderingContext2D.arcTo

Defined in

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

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

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
x1number
y1number
x2number
y2number
radiusnumber
Returns

void

Inherited from

CanvasRenderingContext2D.arcTo

Defined in

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


beginPath()

beginPath(undefined)

beginPath(): void

MDN Reference (opens in a new tab)

Returns

void

Inherited from

CanvasRenderingContext2D.beginPath

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5396

beginPath(undefined)

beginPath(): void

MDN Reference (opens in a new tab)

Returns

void

Inherited from

CanvasRenderingContext2D.beginPath

Defined in

node_modules/.pnpm/typescript@5.5.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 (opens in a new tab)

Parameters
ParameterType
cp1xnumber
cp1ynumber
cp2xnumber
cp2ynumber
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.bezierCurveTo

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5479

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

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
cp1xnumber
cp1ynumber
cp2xnumber
cp2ynumber
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.bezierCurveTo

Defined in

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


clearRect()

clearRect(x, y, w, h)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.clearRect

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5534

clearRect(x, y, w, h)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.clearRect

Defined in

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


clip()

clip(fillRule)

clip(fillRule?): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
fillRule?CanvasFillRule
Returns

void

Inherited from

CanvasRenderingContext2D.clip

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5398

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.5.3/node_modules/typescript/lib/lib.dom.d.ts:5399

clip(fillRule)

clip(fillRule?): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
fillRule?CanvasFillRule
Returns

void

Inherited from

CanvasRenderingContext2D.clip

Defined in

node_modules/.pnpm/typescript@5.5.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.5.3/node_modules/typescript/lib/lib.webworker.d.ts:1516


closePath()

closePath(undefined)

closePath(): void

MDN Reference (opens in a new tab)

Returns

void

Inherited from

CanvasRenderingContext2D.closePath

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5481

closePath(undefined)

closePath(): void

MDN Reference (opens in a new tab)

Returns

void

Inherited from

CanvasRenderingContext2D.closePath

Defined in

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


createConicGradient()

createConicGradient(startAngle, x, y)

createConicGradient(
   startAngle, 
   x, 
   y): CanvasGradient

MDN Reference (opens in a new tab)

Parameters
ParameterType
startAnglenumber
xnumber
ynumber
Returns

CanvasGradient

Inherited from

CanvasRenderingContext2D.createConicGradient

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5420

createConicGradient(startAngle, x, y)

createConicGradient(
   startAngle, 
   x, 
   y): CanvasGradient

MDN Reference (opens in a new tab)

Parameters
ParameterType
startAnglenumber
xnumber
ynumber
Returns

CanvasGradient

Inherited from

CanvasRenderingContext2D.createConicGradient

Defined in

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


createImageData()

createImageData(sw, sh, settings)

createImageData(
   sw, 
   sh, 
   settings?): ImageData

MDN Reference (opens in a new tab)

Parameters
ParameterType
swnumber
shnumber
settings?ImageDataSettings
Returns

ImageData

Inherited from

CanvasRenderingContext2D.createImageData

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5457

createImageData(imagedata)

createImageData(imagedata): ImageData
Parameters
ParameterType
imagedataImageData
Returns

ImageData

Inherited from

CanvasRenderingContext2D.createImageData

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5458

createImageData(sw, sh, settings)

createImageData(
   sw, 
   sh, 
   settings?): ImageData

MDN Reference (opens in a new tab)

Parameters
ParameterType
swnumber
shnumber
settings?ImageDataSettings
Returns

ImageData

Inherited from

CanvasRenderingContext2D.createImageData

Defined in

node_modules/.pnpm/typescript@5.5.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.5.3/node_modules/typescript/lib/lib.webworker.d.ts:1575


createLinearGradient()

createLinearGradient(x0, y0, x1, y1)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
x0number
y0number
x1number
y1number
Returns

CanvasGradient

Inherited from

CanvasRenderingContext2D.createLinearGradient

Defined in

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

createLinearGradient(x0, y0, x1, y1)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
x0number
y0number
x1number
y1number
Returns

CanvasGradient

Inherited from

CanvasRenderingContext2D.createLinearGradient

Defined in

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


createPattern()

createPattern(image, repetition)

createPattern(image, repetition): null | CanvasPattern

MDN Reference (opens in a new tab)

Parameters
ParameterType
imageCanvasImageSource
repetitionnull | string
Returns

null | CanvasPattern

Inherited from

CanvasRenderingContext2D.createPattern

Defined in

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

createPattern(image, repetition)

createPattern(image, repetition): null | CanvasPattern

MDN Reference (opens in a new tab)

Parameters
ParameterType
imageCanvasImageSource
repetitionnull | string
Returns

null | CanvasPattern

Inherited from

CanvasRenderingContext2D.createPattern

Defined in

node_modules/.pnpm/typescript@5.5.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 (opens in a new tab)

Parameters
ParameterType
x0number
y0number
r0number
x1number
y1number
r1number
Returns

CanvasGradient

Inherited from

CanvasRenderingContext2D.createRadialGradient

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5426

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

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
x0number
y0number
r0number
x1number
y1number
r1number
Returns

CanvasGradient

Inherited from

CanvasRenderingContext2D.createRadialGradient

Defined in

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


drawFocusIfNeeded()

drawFocusIfNeeded(element)

drawFocusIfNeeded(element): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
elementElement
Returns

void

Inherited from

CanvasRenderingContext2D.drawFocusIfNeeded

Defined in

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

drawFocusIfNeeded(path, element)

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

void

Inherited from

CanvasRenderingContext2D.drawFocusIfNeeded

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5631


drawImage()

drawImage(image, dx, dy)

drawImage(
   image, 
   dx, 
   dy): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
imageCanvasImageSource
dxnumber
dynumber
Returns

void

Inherited from

CanvasRenderingContext2D.drawImage

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5389

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.5.3/node_modules/typescript/lib/lib.dom.d.ts:5390

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.5.3/node_modules/typescript/lib/lib.dom.d.ts:5391

drawImage(image, dx, dy)

drawImage(
   image, 
   dx, 
   dy): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
imageCanvasImageSource
dxnumber
dynumber
Returns

void

Inherited from

CanvasRenderingContext2D.drawImage

Defined in

node_modules/.pnpm/typescript@5.5.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.5.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.5.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 (opens in a new tab)

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

void

Inherited from

CanvasRenderingContext2D.ellipse

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5483

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

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

MDN Reference (opens in a new tab)

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

void

Inherited from

CanvasRenderingContext2D.ellipse

Defined in

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


fill()

fill(fillRule)

fill(fillRule?): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
fillRule?CanvasFillRule
Returns

void

Inherited from

CanvasRenderingContext2D.fill

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5401

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.5.3/node_modules/typescript/lib/lib.dom.d.ts:5402

fill(fillRule)

fill(fillRule?): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
fillRule?CanvasFillRule
Returns

void

Inherited from

CanvasRenderingContext2D.fill

Defined in

node_modules/.pnpm/typescript@5.5.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.5.3/node_modules/typescript/lib/lib.webworker.d.ts:1519


fillRect()

fillRect(x, y, w, h)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.fillRect

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5536

fillRect(x, y, w, h)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.fillRect

Defined in

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


fillText()

fillText(text, x, y, maxWidth)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
textstring
xnumber
ynumber
maxWidth?number
Returns

void

Inherited from

CanvasRenderingContext2D.fillText

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5580

fillText(text, x, y, maxWidth)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
textstring
xnumber
ynumber
maxWidth?number
Returns

void

Inherited from

CanvasRenderingContext2D.fillText

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.webworker.d.ts:1680


getContextAttributes()

getContextAttributes(): CanvasRenderingContext2DSettings

MDN Reference (opens in a new tab)

Returns

CanvasRenderingContext2DSettings

Inherited from

CanvasRenderingContext2D.getContextAttributes

Defined in

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


getImageData()

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

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
sxnumber
synumber
swnumber
shnumber
settings?ImageDataSettings
Returns

ImageData

Inherited from

CanvasRenderingContext2D.getImageData

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5460

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

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
sxnumber
synumber
swnumber
shnumber
settings?ImageDataSettings
Returns

ImageData

Inherited from

CanvasRenderingContext2D.getImageData

Defined in

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


getLineDash()

getLineDash(undefined)

getLineDash(): number[]

MDN Reference (opens in a new tab)

Returns

number[]

Inherited from

CanvasRenderingContext2D.getLineDash

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5508

getLineDash(undefined)

getLineDash(): number[]

MDN Reference (opens in a new tab)

Returns

number[]

Inherited from

CanvasRenderingContext2D.getLineDash

Defined in

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


getTransform()

getTransform(undefined)

getTransform(): DOMMatrix

MDN Reference (opens in a new tab)

Returns

DOMMatrix

Inherited from

CanvasRenderingContext2D.getTransform

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5612

getTransform(undefined)

getTransform(): DOMMatrix

MDN Reference (opens in a new tab)

Returns

DOMMatrix

Inherited from

CanvasRenderingContext2D.getTransform

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.webworker.d.ts:1712


isPointInPath()

isPointInPath(x, y, fillRule)

isPointInPath(
   x, 
   y, 
   fillRule?): boolean

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
fillRule?CanvasFillRule
Returns

boolean

Inherited from

CanvasRenderingContext2D.isPointInPath

Defined in

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

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.5.3/node_modules/typescript/lib/lib.dom.d.ts:5405

isPointInPath(x, y, fillRule)

isPointInPath(
   x, 
   y, 
   fillRule?): boolean

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
fillRule?CanvasFillRule
Returns

boolean

Inherited from

CanvasRenderingContext2D.isPointInPath

Defined in

node_modules/.pnpm/typescript@5.5.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.5.3/node_modules/typescript/lib/lib.webworker.d.ts:1522


isPointInStroke()

isPointInStroke(x, y)

isPointInStroke(x, y): boolean

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
Returns

boolean

Inherited from

CanvasRenderingContext2D.isPointInStroke

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5407

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.5.3/node_modules/typescript/lib/lib.dom.d.ts:5408

isPointInStroke(x, y)

isPointInStroke(x, y): boolean

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
Returns

boolean

Inherited from

CanvasRenderingContext2D.isPointInStroke

Defined in

node_modules/.pnpm/typescript@5.5.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.5.3/node_modules/typescript/lib/lib.webworker.d.ts:1525


lineTo()

lineTo(x, y)

lineTo(x, y): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.lineTo

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5485

lineTo(x, y)

lineTo(x, y): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.lineTo

Defined in

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


measureText()

measureText(text)

measureText(text): TextMetrics

MDN Reference (opens in a new tab)

Parameters
ParameterType
textstring
Returns

TextMetrics

Inherited from

CanvasRenderingContext2D.measureText

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5582

measureText(text)

measureText(text): TextMetrics

MDN Reference (opens in a new tab)

Parameters
ParameterType
textstring
Returns

TextMetrics

Inherited from

CanvasRenderingContext2D.measureText

Defined in

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


moveTo()

moveTo(x, y)

moveTo(x, y): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.moveTo

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5487

moveTo(x, y)

moveTo(x, y): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.moveTo

Defined in

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


putImageData()

putImageData(imagedata, dx, dy)

putImageData(
   imagedata, 
   dx, 
   dy): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
imagedataImageData
dxnumber
dynumber
Returns

void

Inherited from

CanvasRenderingContext2D.putImageData

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5462

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.5.3/node_modules/typescript/lib/lib.dom.d.ts:5463

putImageData(imagedata, dx, dy)

putImageData(
   imagedata, 
   dx, 
   dy): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
imagedataImageData
dxnumber
dynumber
Returns

void

Inherited from

CanvasRenderingContext2D.putImageData

Defined in

node_modules/.pnpm/typescript@5.5.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.5.3/node_modules/typescript/lib/lib.webworker.d.ts:1580


quadraticCurveTo()

quadraticCurveTo(cpx, cpy, x, y)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
cpxnumber
cpynumber
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.quadraticCurveTo

Defined in

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

quadraticCurveTo(cpx, cpy, x, y)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
cpxnumber
cpynumber
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.quadraticCurveTo

Defined in

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


rect()

rect(x, y, w, h)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.rect

Defined in

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

rect(x, y, w, h)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.rect

Defined in

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


reset()

reset(undefined)

reset(): void

MDN Reference (opens in a new tab)

Returns

void

Inherited from

CanvasRenderingContext2D.reset

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5571

reset(undefined)

reset(): void

MDN Reference (opens in a new tab)

Returns

void

Inherited from

CanvasRenderingContext2D.reset

Defined in

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


resetTransform()

resetTransform(undefined)

resetTransform(): void

MDN Reference (opens in a new tab)

Returns

void

Inherited from

CanvasRenderingContext2D.resetTransform

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5614

resetTransform(undefined)

resetTransform(): void

MDN Reference (opens in a new tab)

Returns

void

Inherited from

CanvasRenderingContext2D.resetTransform

Defined in

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


restore()

restore(undefined)

restore(): void

MDN Reference (opens in a new tab)

Returns

void

Inherited from

CanvasRenderingContext2D.restore

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5573

restore(undefined)

restore(): void

MDN Reference (opens in a new tab)

Returns

void

Inherited from

CanvasRenderingContext2D.restore

Defined in

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


rotate()

rotate(angle)

rotate(angle): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
anglenumber
Returns

void

Inherited from

CanvasRenderingContext2D.rotate

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5616

rotate(angle)

rotate(angle): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
anglenumber
Returns

void

Inherited from

CanvasRenderingContext2D.rotate

Defined in

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


roundRect()

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

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

MDN Reference (opens in a new tab)

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

void

Inherited from

CanvasRenderingContext2D.roundRect

Defined in

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

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

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

MDN Reference (opens in a new tab)

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

void

Inherited from

CanvasRenderingContext2D.roundRect

Defined in

node_modules/.pnpm/typescript@5.5.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 (opens in a new tab)

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

void

Inherited from

CanvasRenderingContext2D.roundRect

Defined in

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


save()

save(undefined)

save(): void

MDN Reference (opens in a new tab)

Returns

void

Inherited from

CanvasRenderingContext2D.save

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5575

save(undefined)

save(): void

MDN Reference (opens in a new tab)

Returns

void

Inherited from

CanvasRenderingContext2D.save

Defined in

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


scale()

scale(x, y)

scale(x, y): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.scale

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5618

scale(x, y)

scale(x, y): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.scale

Defined in

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


setLineDash()

setLineDash(segments)

setLineDash(segments): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
segmentsnumber[]
Returns

void

Inherited from

CanvasRenderingContext2D.setLineDash

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5510

setLineDash(segments)

setLineDash(segments): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
segmentsIterable<number>
Returns

void

Inherited from

CanvasRenderingContext2D.setLineDash

Defined in

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

setLineDash(segments)

setLineDash(segments): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
segmentsnumber[]
Returns

void

Inherited from

CanvasRenderingContext2D.setLineDash

Defined in

node_modules/.pnpm/typescript@5.5.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 (opens in a new tab)

Parameters
ParameterType
anumber
bnumber
cnumber
dnumber
enumber
fnumber
Returns

void

Inherited from

CanvasRenderingContext2D.setTransform

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5620

setTransform(transform)

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

void

Inherited from

CanvasRenderingContext2D.setTransform

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5621

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

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
anumber
bnumber
cnumber
dnumber
enumber
fnumber
Returns

void

Inherited from

CanvasRenderingContext2D.setTransform

Defined in

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

setTransform(transform)

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

void

Inherited from

CanvasRenderingContext2D.setTransform

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.webworker.d.ts:1721


stroke()

stroke(undefined)

stroke(): void

MDN Reference (opens in a new tab)

Returns

void

Inherited from

CanvasRenderingContext2D.stroke

Defined in

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

stroke(path)

stroke(path): void
Parameters
ParameterType
pathPath2D
Returns

void

Inherited from

CanvasRenderingContext2D.stroke

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5411

stroke(undefined)

stroke(): void

MDN Reference (opens in a new tab)

Returns

void

Inherited from

CanvasRenderingContext2D.stroke

Defined in

node_modules/.pnpm/typescript@5.5.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.5.3/node_modules/typescript/lib/lib.webworker.d.ts:1528


strokeRect()

strokeRect(x, y, w, h)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.strokeRect

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5538

strokeRect(x, y, w, h)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from

CanvasRenderingContext2D.strokeRect

Defined in

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


strokeText()

strokeText(text, x, y, maxWidth)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
textstring
xnumber
ynumber
maxWidth?number
Returns

void

Inherited from

CanvasRenderingContext2D.strokeText

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5584

strokeText(text, x, y, maxWidth)

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
textstring
xnumber
ynumber
maxWidth?number
Returns

void

Inherited from

CanvasRenderingContext2D.strokeText

Defined in

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


transform()

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

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
anumber
bnumber
cnumber
dnumber
enumber
fnumber
Returns

void

Inherited from

CanvasRenderingContext2D.transform

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5623

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

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

MDN Reference (opens in a new tab)

Parameters
ParameterType
anumber
bnumber
cnumber
dnumber
enumber
fnumber
Returns

void

Inherited from

CanvasRenderingContext2D.transform

Defined in

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


translate()

translate(x, y)

translate(x, y): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.translate

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:5625

translate(x, y)

translate(x, y): void

MDN Reference (opens in a new tab)

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from

CanvasRenderingContext2D.translate

Defined in

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


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.