@univerjs/engine-render v0.5.4


Interface: IContext2D

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:26

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.7.2/node_modules/typescript/lib/lib.dom.d.ts:5889
directionpublicCanvasDirectionMDN ReferenceCanvasRenderingContext2D.directionnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5932
fillStylepublicstring | CanvasGradient | CanvasPatternMDN ReferenceCanvasRenderingContext2D.fillStylenode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5757
filterpublicstringMDN ReferenceCanvasRenderingContext2D.filternode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5772
fontpublicstringMDN ReferenceCanvasRenderingContext2D.fontnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5934
fontKerningpublicCanvasFontKerningMDN ReferenceCanvasRenderingContext2D.fontKerningnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5936
fontStretchpublicCanvasFontStretchMDN ReferenceCanvasRenderingContext2D.fontStretchnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5938
fontVariantCapspublicCanvasFontVariantCapsMDN ReferenceCanvasRenderingContext2D.fontVariantCapsnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5940
globalAlphapublicnumberMDN ReferenceCanvasRenderingContext2D.globalAlphanode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5723
globalCompositeOperationpublicGlobalCompositeOperationMDN ReferenceCanvasRenderingContext2D.globalCompositeOperationnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5725
imageSmoothingEnabledpublicbooleanMDN ReferenceCanvasRenderingContext2D.imageSmoothingEnablednode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5809
imageSmoothingQualitypublicImageSmoothingQualityMDN ReferenceCanvasRenderingContext2D.imageSmoothingQualitynode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5811
letterSpacingpublicstringMDN ReferenceCanvasRenderingContext2D.letterSpacingnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5942
lineCappublicCanvasLineCapMDN ReferenceCanvasRenderingContext2D.lineCapnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5839
lineDashOffsetpublicnumberMDN ReferenceCanvasRenderingContext2D.lineDashOffsetnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5841
lineJoinpublicCanvasLineJoinMDN ReferenceCanvasRenderingContext2D.lineJoinnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5843
lineWidthpublicnumberMDN ReferenceCanvasRenderingContext2D.lineWidthnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5845
miterLimitpublicnumberMDN ReferenceCanvasRenderingContext2D.miterLimitnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5847
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.7.2/node_modules/typescript/lib/lib.dom.d.ts:5901
shadowColorpublicstringMDN ReferenceCanvasRenderingContext2D.shadowColornode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5903
shadowOffsetXpublicnumberMDN ReferenceCanvasRenderingContext2D.shadowOffsetXnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5905
shadowOffsetYpublicnumberMDN ReferenceCanvasRenderingContext2D.shadowOffsetYnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5907
strokeStylepublicstring | CanvasGradient | CanvasPatternMDN ReferenceCanvasRenderingContext2D.strokeStylenode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5759
textAlignpublicCanvasTextAlignMDN ReferenceCanvasRenderingContext2D.textAlignnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5944
textBaselinepublicCanvasTextBaselineMDN ReferenceCanvasRenderingContext2D.textBaselinenode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5946
textRenderingpublicCanvasTextRenderingMDN ReferenceCanvasRenderingContext2D.textRenderingnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5948
webkitBackingStorePixelRatiopublicnumber--packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:27
wordSpacingpublicstringMDN ReferenceCanvasRenderingContext2D.wordSpacingnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5950

Methods

arc()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5816

MDN Reference

Parameters
ParameterType
xnumber
ynumber
radiusnumber
startAnglenumber
endAnglenumber
counterclockwise?boolean
Returns

void

Inherited from
CanvasRenderingContext2D.arc

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1786

MDN Reference

Parameters
ParameterType
xnumber
ynumber
radiusnumber
startAnglenumber
endAnglenumber
counterclockwise?boolean
Returns

void

Inherited from
CanvasRenderingContext2D.arc

arcTo()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5818

MDN Reference

Parameters
ParameterType
x1number
y1number
x2number
y2number
radiusnumber
Returns

void

Inherited from
CanvasRenderingContext2D.arcTo

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1788

MDN Reference

Parameters
ParameterType
x1number
y1number
x2number
y2number
radiusnumber
Returns

void

Inherited from
CanvasRenderingContext2D.arcTo

beginPath()

Call Signature

beginPath(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5737

MDN Reference

Returns

void

Inherited from
CanvasRenderingContext2D.beginPath

Call Signature

beginPath(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1707

MDN Reference

Returns

void

Inherited from
CanvasRenderingContext2D.beginPath

bezierCurveTo()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5820

MDN Reference

Parameters
ParameterType
cp1xnumber
cp1ynumber
cp2xnumber
cp2ynumber
xnumber
ynumber
Returns

void

Inherited from
CanvasRenderingContext2D.bezierCurveTo

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1790

MDN Reference

Parameters
ParameterType
cp1xnumber
cp1ynumber
cp2xnumber
cp2ynumber
xnumber
ynumber
Returns

void

Inherited from
CanvasRenderingContext2D.bezierCurveTo

clearRect()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5875

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from
CanvasRenderingContext2D.clearRect

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1845

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from
CanvasRenderingContext2D.clearRect

clip()

Call Signature

clip(fillRule?): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5739

MDN Reference

Parameters
ParameterType
fillRule?CanvasFillRule
Returns

void

Inherited from
CanvasRenderingContext2D.clip

Call Signature

clip(path, fillRule?): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5740

Parameters
ParameterType
pathPath2D
fillRule?CanvasFillRule
Returns

void

Inherited from
CanvasRenderingContext2D.clip

Call Signature

clip(fillRule?): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1709

MDN Reference

Parameters
ParameterType
fillRule?CanvasFillRule
Returns

void

Inherited from
CanvasRenderingContext2D.clip

Call Signature

clip(path, fillRule?): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1710

Parameters
ParameterType
pathPath2D
fillRule?CanvasFillRule
Returns

void

Inherited from
CanvasRenderingContext2D.clip

closePath()

Call Signature

closePath(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5822

MDN Reference

Returns

void

Inherited from
CanvasRenderingContext2D.closePath

Call Signature

closePath(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1792

MDN Reference

Returns

void

Inherited from
CanvasRenderingContext2D.closePath

createConicGradient()

Call Signature

createConicGradient(
   startAngle, 
   x, 
   y): CanvasGradient

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5761

MDN Reference

Parameters
ParameterType
startAnglenumber
xnumber
ynumber
Returns

CanvasGradient

Inherited from
CanvasRenderingContext2D.createConicGradient

Call Signature

createConicGradient(
   startAngle, 
   x, 
   y): CanvasGradient

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1731

MDN Reference

Parameters
ParameterType
startAnglenumber
xnumber
ynumber
Returns

CanvasGradient

Inherited from
CanvasRenderingContext2D.createConicGradient

createImageData()

Call Signature

createImageData(
   sw, 
   sh, 
   settings?): ImageData

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5798

MDN Reference

Parameters
ParameterType
swnumber
shnumber
settings?ImageDataSettings
Returns

ImageData

Inherited from
CanvasRenderingContext2D.createImageData

Call Signature

createImageData(imagedata): ImageData

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5799

Parameters
ParameterType
imagedataImageData
Returns

ImageData

Inherited from
CanvasRenderingContext2D.createImageData

Call Signature

createImageData(
   sw, 
   sh, 
   settings?): ImageData

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1768

MDN Reference

Parameters
ParameterType
swnumber
shnumber
settings?ImageDataSettings
Returns

ImageData

Inherited from
CanvasRenderingContext2D.createImageData

Call Signature

createImageData(imagedata): ImageData

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1769

Parameters
ParameterType
imagedataImageData
Returns

ImageData

Inherited from
CanvasRenderingContext2D.createImageData

createLinearGradient()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5763

MDN Reference

Parameters
ParameterType
x0number
y0number
x1number
y1number
Returns

CanvasGradient

Inherited from
CanvasRenderingContext2D.createLinearGradient

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1733

MDN Reference

Parameters
ParameterType
x0number
y0number
x1number
y1number
Returns

CanvasGradient

Inherited from
CanvasRenderingContext2D.createLinearGradient

createPattern()

Call Signature

createPattern(image, repetition): null | CanvasPattern

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5765

MDN Reference

Parameters
ParameterType
imageCanvasImageSource
repetitionnull | string
Returns

null | CanvasPattern

Inherited from
CanvasRenderingContext2D.createPattern

Call Signature

createPattern(image, repetition): null | CanvasPattern

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1735

MDN Reference

Parameters
ParameterType
imageCanvasImageSource
repetitionnull | string
Returns

null | CanvasPattern

Inherited from
CanvasRenderingContext2D.createPattern

createRadialGradient()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5767

MDN Reference

Parameters
ParameterType
x0number
y0number
r0number
x1number
y1number
r1number
Returns

CanvasGradient

Inherited from
CanvasRenderingContext2D.createRadialGradient

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1737

MDN Reference

Parameters
ParameterType
x0number
y0number
r0number
x1number
y1number
r1number
Returns

CanvasGradient

Inherited from
CanvasRenderingContext2D.createRadialGradient

drawFocusIfNeeded()

Call Signature

drawFocusIfNeeded(element): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5973

MDN Reference

Parameters
ParameterType
elementElement
Returns

void

Inherited from
CanvasRenderingContext2D.drawFocusIfNeeded

Call Signature

drawFocusIfNeeded(path, element): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5974

Parameters
ParameterType
pathPath2D
elementElement
Returns

void

Inherited from
CanvasRenderingContext2D.drawFocusIfNeeded

drawImage()

Call Signature

drawImage(
   image, 
   dx, 
   dy): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5730

MDN Reference

Parameters
ParameterType
imageCanvasImageSource
dxnumber
dynumber
Returns

void

Inherited from
CanvasRenderingContext2D.drawImage

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5731

Parameters
ParameterType
imageCanvasImageSource
dxnumber
dynumber
dwnumber
dhnumber
Returns

void

Inherited from
CanvasRenderingContext2D.drawImage

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5732

Parameters
ParameterType
imageCanvasImageSource
sxnumber
synumber
swnumber
shnumber
dxnumber
dynumber
dwnumber
dhnumber
Returns

void

Inherited from
CanvasRenderingContext2D.drawImage

Call Signature

drawImage(
   image, 
   dx, 
   dy): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1700

MDN Reference

Parameters
ParameterType
imageCanvasImageSource
dxnumber
dynumber
Returns

void

Inherited from
CanvasRenderingContext2D.drawImage

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1701

Parameters
ParameterType
imageCanvasImageSource
dxnumber
dynumber
dwnumber
dhnumber
Returns

void

Inherited from
CanvasRenderingContext2D.drawImage

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1702

Parameters
ParameterType
imageCanvasImageSource
sxnumber
synumber
swnumber
shnumber
dxnumber
dynumber
dwnumber
dhnumber
Returns

void

Inherited from
CanvasRenderingContext2D.drawImage

ellipse()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5824

MDN Reference

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

void

Inherited from
CanvasRenderingContext2D.ellipse

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1794

MDN Reference

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

void

Inherited from
CanvasRenderingContext2D.ellipse

fill()

Call Signature

fill(fillRule?): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5742

MDN Reference

Parameters
ParameterType
fillRule?CanvasFillRule
Returns

void

Inherited from
CanvasRenderingContext2D.fill

Call Signature

fill(path, fillRule?): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5743

Parameters
ParameterType
pathPath2D
fillRule?CanvasFillRule
Returns

void

Inherited from
CanvasRenderingContext2D.fill

Call Signature

fill(fillRule?): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1712

MDN Reference

Parameters
ParameterType
fillRule?CanvasFillRule
Returns

void

Inherited from
CanvasRenderingContext2D.fill

Call Signature

fill(path, fillRule?): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1713

Parameters
ParameterType
pathPath2D
fillRule?CanvasFillRule
Returns

void

Inherited from
CanvasRenderingContext2D.fill

fillRect()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5877

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from
CanvasRenderingContext2D.fillRect

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1847

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from
CanvasRenderingContext2D.fillRect

fillText()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5923

MDN Reference

Parameters
ParameterType
textstring
xnumber
ynumber
maxWidth?number
Returns

void

Inherited from
CanvasRenderingContext2D.fillText

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1876

MDN Reference

Parameters
ParameterType
textstring
xnumber
ynumber
maxWidth?number
Returns

void

Inherited from
CanvasRenderingContext2D.fillText

getContextAttributes()

getContextAttributes(): CanvasRenderingContext2DSettings

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5891

MDN Reference

Returns

CanvasRenderingContext2DSettings

Inherited from

CanvasRenderingContext2D.getContextAttributes

getImageData()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5801

MDN Reference

Parameters
ParameterType
sxnumber
synumber
swnumber
shnumber
settings?ImageDataSettings
Returns

ImageData

Inherited from
CanvasRenderingContext2D.getImageData

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1771

MDN Reference

Parameters
ParameterType
sxnumber
synumber
swnumber
shnumber
settings?ImageDataSettings
Returns

ImageData

Inherited from
CanvasRenderingContext2D.getImageData

getLineDash()

Call Signature

getLineDash(): number[]

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5849

MDN Reference

Returns

number[]

Inherited from
CanvasRenderingContext2D.getLineDash

Call Signature

getLineDash(): number[]

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1819

MDN Reference

Returns

number[]

Inherited from
CanvasRenderingContext2D.getLineDash

getTransform()

Call Signature

getTransform(): DOMMatrix

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5955

MDN Reference

Returns

DOMMatrix

Inherited from
CanvasRenderingContext2D.getTransform

Call Signature

getTransform(): DOMMatrix

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1908

MDN Reference

Returns

DOMMatrix

Inherited from
CanvasRenderingContext2D.getTransform

isContextLost()

Call Signature

isContextLost(): boolean

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5912

MDN Reference

Returns

boolean

Inherited from
CanvasRenderingContext2D.isContextLost

Call Signature

isContextLost(): boolean

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1865

MDN Reference

Returns

boolean

Inherited from
CanvasRenderingContext2D.isContextLost

isPointInPath()

Call Signature

isPointInPath(
   x, 
   y, 
   fillRule?): boolean

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5745

MDN Reference

Parameters
ParameterType
xnumber
ynumber
fillRule?CanvasFillRule
Returns

boolean

Inherited from
CanvasRenderingContext2D.isPointInPath

Call Signature

isPointInPath(
   path, 
   x, 
   y, 
   fillRule?): boolean

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5746

Parameters
ParameterType
pathPath2D
xnumber
ynumber
fillRule?CanvasFillRule
Returns

boolean

Inherited from
CanvasRenderingContext2D.isPointInPath

Call Signature

isPointInPath(
   x, 
   y, 
   fillRule?): boolean

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1715

MDN Reference

Parameters
ParameterType
xnumber
ynumber
fillRule?CanvasFillRule
Returns

boolean

Inherited from
CanvasRenderingContext2D.isPointInPath

Call Signature

isPointInPath(
   path, 
   x, 
   y, 
   fillRule?): boolean

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1716

Parameters
ParameterType
pathPath2D
xnumber
ynumber
fillRule?CanvasFillRule
Returns

boolean

Inherited from
CanvasRenderingContext2D.isPointInPath

isPointInStroke()

Call Signature

isPointInStroke(x, y): boolean

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5748

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

boolean

Inherited from
CanvasRenderingContext2D.isPointInStroke

Call Signature

isPointInStroke(
   path, 
   x, 
   y): boolean

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5749

Parameters
ParameterType
pathPath2D
xnumber
ynumber
Returns

boolean

Inherited from
CanvasRenderingContext2D.isPointInStroke

Call Signature

isPointInStroke(x, y): boolean

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1718

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

boolean

Inherited from
CanvasRenderingContext2D.isPointInStroke

Call Signature

isPointInStroke(
   path, 
   x, 
   y): boolean

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1719

Parameters
ParameterType
pathPath2D
xnumber
ynumber
Returns

boolean

Inherited from
CanvasRenderingContext2D.isPointInStroke

lineTo()

Call Signature

lineTo(x, y): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5826

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from
CanvasRenderingContext2D.lineTo

Call Signature

lineTo(x, y): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1796

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from
CanvasRenderingContext2D.lineTo

measureText()

Call Signature

measureText(text): TextMetrics

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5925

MDN Reference

Parameters
ParameterType
textstring
Returns

TextMetrics

Inherited from
CanvasRenderingContext2D.measureText

Call Signature

measureText(text): TextMetrics

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1878

MDN Reference

Parameters
ParameterType
textstring
Returns

TextMetrics

Inherited from
CanvasRenderingContext2D.measureText

moveTo()

Call Signature

moveTo(x, y): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5828

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from
CanvasRenderingContext2D.moveTo

Call Signature

moveTo(x, y): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1798

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from
CanvasRenderingContext2D.moveTo

putImageData()

Call Signature

putImageData(
   imagedata, 
   dx, 
   dy): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5803

MDN Reference

Parameters
ParameterType
imagedataImageData
dxnumber
dynumber
Returns

void

Inherited from
CanvasRenderingContext2D.putImageData

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5804

Parameters
ParameterType
imagedataImageData
dxnumber
dynumber
dirtyXnumber
dirtyYnumber
dirtyWidthnumber
dirtyHeightnumber
Returns

void

Inherited from
CanvasRenderingContext2D.putImageData

Call Signature

putImageData(
   imagedata, 
   dx, 
   dy): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1773

MDN Reference

Parameters
ParameterType
imagedataImageData
dxnumber
dynumber
Returns

void

Inherited from
CanvasRenderingContext2D.putImageData

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1774

Parameters
ParameterType
imagedataImageData
dxnumber
dynumber
dirtyXnumber
dirtyYnumber
dirtyWidthnumber
dirtyHeightnumber
Returns

void

Inherited from
CanvasRenderingContext2D.putImageData

quadraticCurveTo()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5830

MDN Reference

Parameters
ParameterType
cpxnumber
cpynumber
xnumber
ynumber
Returns

void

Inherited from
CanvasRenderingContext2D.quadraticCurveTo

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1800

MDN Reference

Parameters
ParameterType
cpxnumber
cpynumber
xnumber
ynumber
Returns

void

Inherited from
CanvasRenderingContext2D.quadraticCurveTo

rect()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5832

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from
CanvasRenderingContext2D.rect

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1802

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from
CanvasRenderingContext2D.rect

reset()

Call Signature

reset(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5914

MDN Reference

Returns

void

Inherited from
CanvasRenderingContext2D.reset

Call Signature

reset(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1867

MDN Reference

Returns

void

Inherited from
CanvasRenderingContext2D.reset

resetTransform()

Call Signature

resetTransform(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5957

MDN Reference

Returns

void

Inherited from
CanvasRenderingContext2D.resetTransform

Call Signature

resetTransform(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1910

MDN Reference

Returns

void

Inherited from
CanvasRenderingContext2D.resetTransform

restore()

Call Signature

restore(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5916

MDN Reference

Returns

void

Inherited from
CanvasRenderingContext2D.restore

Call Signature

restore(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1869

MDN Reference

Returns

void

Inherited from
CanvasRenderingContext2D.restore

rotate()

Call Signature

rotate(angle): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5959

MDN Reference

Parameters
ParameterType
anglenumber
Returns

void

Inherited from
CanvasRenderingContext2D.rotate

Call Signature

rotate(angle): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1912

MDN Reference

Parameters
ParameterType
anglenumber
Returns

void

Inherited from
CanvasRenderingContext2D.rotate

roundRect()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5834

MDN Reference

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

void

Inherited from
CanvasRenderingContext2D.roundRect

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.iterable.d.ts:83

MDN Reference

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

void

Inherited from
CanvasRenderingContext2D.roundRect

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1804

MDN Reference

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

void

Inherited from
CanvasRenderingContext2D.roundRect

save()

Call Signature

save(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5918

MDN Reference

Returns

void

Inherited from
CanvasRenderingContext2D.save

Call Signature

save(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1871

MDN Reference

Returns

void

Inherited from
CanvasRenderingContext2D.save

scale()

Call Signature

scale(x, y): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5961

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from
CanvasRenderingContext2D.scale

Call Signature

scale(x, y): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1914

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from
CanvasRenderingContext2D.scale

setLineDash()

Call Signature

setLineDash(segments): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5851

MDN Reference

Parameters
ParameterType
segmentsnumber[]
Returns

void

Inherited from
CanvasRenderingContext2D.setLineDash

Call Signature

setLineDash(segments): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.iterable.d.ts:88

MDN Reference

Parameters
ParameterType
segmentsIterable<number>
Returns

void

Inherited from
CanvasRenderingContext2D.setLineDash

Call Signature

setLineDash(segments): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1821

MDN Reference

Parameters
ParameterType
segmentsnumber[]
Returns

void

Inherited from
CanvasRenderingContext2D.setLineDash

setTransform()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5963

MDN Reference

Parameters
ParameterType
anumber
bnumber
cnumber
dnumber
enumber
fnumber
Returns

void

Inherited from
CanvasRenderingContext2D.setTransform

Call Signature

setTransform(transform?): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5964

Parameters
ParameterType
transform?DOMMatrix2DInit
Returns

void

Inherited from
CanvasRenderingContext2D.setTransform

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1916

MDN Reference

Parameters
ParameterType
anumber
bnumber
cnumber
dnumber
enumber
fnumber
Returns

void

Inherited from
CanvasRenderingContext2D.setTransform

Call Signature

setTransform(transform?): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1917

Parameters
ParameterType
transform?DOMMatrix2DInit
Returns

void

Inherited from
CanvasRenderingContext2D.setTransform

stroke()

Call Signature

stroke(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5751

MDN Reference

Returns

void

Inherited from
CanvasRenderingContext2D.stroke

Call Signature

stroke(path): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5752

Parameters
ParameterType
pathPath2D
Returns

void

Inherited from
CanvasRenderingContext2D.stroke

Call Signature

stroke(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1721

MDN Reference

Returns

void

Inherited from
CanvasRenderingContext2D.stroke

Call Signature

stroke(path): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1722

Parameters
ParameterType
pathPath2D
Returns

void

Inherited from
CanvasRenderingContext2D.stroke

strokeRect()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5879

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from
CanvasRenderingContext2D.strokeRect

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1849

MDN Reference

Parameters
ParameterType
xnumber
ynumber
wnumber
hnumber
Returns

void

Inherited from
CanvasRenderingContext2D.strokeRect

strokeText()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5927

MDN Reference

Parameters
ParameterType
textstring
xnumber
ynumber
maxWidth?number
Returns

void

Inherited from
CanvasRenderingContext2D.strokeText

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1880

MDN Reference

Parameters
ParameterType
textstring
xnumber
ynumber
maxWidth?number
Returns

void

Inherited from
CanvasRenderingContext2D.strokeText

transform()

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5966

MDN Reference

Parameters
ParameterType
anumber
bnumber
cnumber
dnumber
enumber
fnumber
Returns

void

Inherited from
CanvasRenderingContext2D.transform

Call Signature

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

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1919

MDN Reference

Parameters
ParameterType
anumber
bnumber
cnumber
dnumber
enumber
fnumber
Returns

void

Inherited from
CanvasRenderingContext2D.transform

translate()

Call Signature

translate(x, y): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5968

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from
CanvasRenderingContext2D.translate

Call Signature

translate(x, y): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:1921

MDN Reference

Parameters
ParameterType
xnumber
ynumber
Returns

void

Inherited from
CanvasRenderingContext2D.translate