@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
Property | Modifier | Type | Description | Inherited from | Defined in |
---|---|---|---|---|---|
backingStorePixelRatio | public | number | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:31 |
canvas | readonly | HTMLCanvasElement | MDN Reference | CanvasRenderingContext2D.canvas | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5889 |
direction | public | CanvasDirection | MDN Reference | CanvasRenderingContext2D.direction | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5932 |
fillStyle | public | string | CanvasGradient | CanvasPattern | MDN Reference | CanvasRenderingContext2D.fillStyle | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5757 |
filter | public | string | MDN Reference | CanvasRenderingContext2D.filter | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5772 |
font | public | string | MDN Reference | CanvasRenderingContext2D.font | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5934 |
fontKerning | public | CanvasFontKerning | MDN Reference | CanvasRenderingContext2D.fontKerning | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5936 |
fontStretch | public | CanvasFontStretch | MDN Reference | CanvasRenderingContext2D.fontStretch | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5938 |
fontVariantCaps | public | CanvasFontVariantCaps | MDN Reference | CanvasRenderingContext2D.fontVariantCaps | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5940 |
globalAlpha | public | number | MDN Reference | CanvasRenderingContext2D.globalAlpha | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5723 |
globalCompositeOperation | public | GlobalCompositeOperation | MDN Reference | CanvasRenderingContext2D.globalCompositeOperation | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5725 |
imageSmoothingEnabled | public | boolean | MDN Reference | CanvasRenderingContext2D.imageSmoothingEnabled | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5809 |
imageSmoothingQuality | public | ImageSmoothingQuality | MDN Reference | CanvasRenderingContext2D.imageSmoothingQuality | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5811 |
letterSpacing | public | string | MDN Reference | CanvasRenderingContext2D.letterSpacing | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5942 |
lineCap | public | CanvasLineCap | MDN Reference | CanvasRenderingContext2D.lineCap | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5839 |
lineDashOffset | public | number | MDN Reference | CanvasRenderingContext2D.lineDashOffset | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5841 |
lineJoin | public | CanvasLineJoin | MDN Reference | CanvasRenderingContext2D.lineJoin | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5843 |
lineWidth | public | number | MDN Reference | CanvasRenderingContext2D.lineWidth | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5845 |
miterLimit | public | number | MDN Reference | CanvasRenderingContext2D.miterLimit | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5847 |
mozBackingStorePixelRatio | public | number | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:28 |
msBackingStorePixelRatio | public | number | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:29 |
oBackingStorePixelRatio | public | number | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:30 |
shadowBlur | public | number | MDN Reference | CanvasRenderingContext2D.shadowBlur | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5901 |
shadowColor | public | string | MDN Reference | CanvasRenderingContext2D.shadowColor | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5903 |
shadowOffsetX | public | number | MDN Reference | CanvasRenderingContext2D.shadowOffsetX | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5905 |
shadowOffsetY | public | number | MDN Reference | CanvasRenderingContext2D.shadowOffsetY | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5907 |
strokeStyle | public | string | CanvasGradient | CanvasPattern | MDN Reference | CanvasRenderingContext2D.strokeStyle | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5759 |
textAlign | public | CanvasTextAlign | MDN Reference | CanvasRenderingContext2D.textAlign | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5944 |
textBaseline | public | CanvasTextBaseline | MDN Reference | CanvasRenderingContext2D.textBaseline | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5946 |
textRendering | public | CanvasTextRendering | MDN Reference | CanvasRenderingContext2D.textRendering | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:5948 |
webkitBackingStorePixelRatio | public | number | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:27 |
wordSpacing | public | string | MDN Reference | CanvasRenderingContext2D.wordSpacing | node_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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
radius | number |
startAngle | number |
endAngle | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
radius | number |
startAngle | number |
endAngle | number |
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
Parameters
Parameter | Type |
---|---|
x1 | number |
y1 | number |
x2 | number |
y2 | number |
radius | number |
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
Parameters
Parameter | Type |
---|---|
x1 | number |
y1 | number |
x2 | number |
y2 | number |
radius | number |
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
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
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
Parameters
Parameter | Type |
---|---|
cp1x | number |
cp1y | number |
cp2x | number |
cp2y | number |
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
cp1x | number |
cp1y | number |
cp2x | number |
cp2y | number |
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
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
Parameters
Parameter | Type |
---|---|
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
Parameter | Type |
---|---|
path | Path2D |
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
Parameters
Parameter | Type |
---|---|
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
Parameter | Type |
---|---|
path | Path2D |
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
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
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
Parameters
Parameter | Type |
---|---|
startAngle | number |
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
startAngle | number |
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
sw | number |
sh | number |
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
Parameter | Type |
---|---|
imagedata | ImageData |
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
Parameters
Parameter | Type |
---|---|
sw | number |
sh | number |
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
Parameter | Type |
---|---|
imagedata | ImageData |
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
Parameters
Parameter | Type |
---|---|
x0 | number |
y0 | number |
x1 | number |
y1 | number |
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
Parameters
Parameter | Type |
---|---|
x0 | number |
y0 | number |
x1 | number |
y1 | number |
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
Parameters
Parameter | Type |
---|---|
image | CanvasImageSource |
repetition | null | 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
Parameters
Parameter | Type |
---|---|
image | CanvasImageSource |
repetition | null | 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
Parameters
Parameter | Type |
---|---|
x0 | number |
y0 | number |
r0 | number |
x1 | number |
y1 | number |
r1 | number |
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
Parameters
Parameter | Type |
---|---|
x0 | number |
y0 | number |
r0 | number |
x1 | number |
y1 | number |
r1 | number |
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
Parameters
Parameter | Type |
---|---|
element | Element |
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
Parameter | Type |
---|---|
path | Path2D |
element | Element |
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
Parameters
Parameter | Type |
---|---|
image | CanvasImageSource |
dx | number |
dy | number |
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
Parameter | Type |
---|---|
image | CanvasImageSource |
dx | number |
dy | number |
dw | number |
dh | number |
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
Parameter | Type |
---|---|
image | CanvasImageSource |
sx | number |
sy | number |
sw | number |
sh | number |
dx | number |
dy | number |
dw | number |
dh | number |
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
Parameters
Parameter | Type |
---|---|
image | CanvasImageSource |
dx | number |
dy | number |
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
Parameter | Type |
---|---|
image | CanvasImageSource |
dx | number |
dy | number |
dw | number |
dh | number |
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
Parameter | Type |
---|---|
image | CanvasImageSource |
sx | number |
sy | number |
sw | number |
sh | number |
dx | number |
dy | number |
dw | number |
dh | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
radiusX | number |
radiusY | number |
rotation | number |
startAngle | number |
endAngle | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
radiusX | number |
radiusY | number |
rotation | number |
startAngle | number |
endAngle | number |
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
Parameters
Parameter | Type |
---|---|
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
Parameter | Type |
---|---|
path | Path2D |
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
Parameters
Parameter | Type |
---|---|
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
Parameter | Type |
---|---|
path | Path2D |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
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
Parameters
Parameter | Type |
---|---|
text | string |
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
text | string |
x | number |
y | number |
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
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
Parameters
Parameter | Type |
---|---|
sx | number |
sy | number |
sw | number |
sh | number |
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
Parameters
Parameter | Type |
---|---|
sx | number |
sy | number |
sw | number |
sh | number |
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
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
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
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
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
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
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
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
Parameter | Type |
---|---|
path | Path2D |
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
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
Parameter | Type |
---|---|
path | Path2D |
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
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
Parameter | Type |
---|---|
path | Path2D |
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
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
Parameter | Type |
---|---|
path | Path2D |
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
text | string |
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
Parameters
Parameter | Type |
---|---|
text | string |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
imagedata | ImageData |
dx | number |
dy | number |
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
Parameter | Type |
---|---|
imagedata | ImageData |
dx | number |
dy | number |
dirtyX | number |
dirtyY | number |
dirtyWidth | number |
dirtyHeight | number |
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
Parameters
Parameter | Type |
---|---|
imagedata | ImageData |
dx | number |
dy | number |
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
Parameter | Type |
---|---|
imagedata | ImageData |
dx | number |
dy | number |
dirtyX | number |
dirtyY | number |
dirtyWidth | number |
dirtyHeight | number |
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
Parameters
Parameter | Type |
---|---|
cpx | number |
cpy | number |
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
cpx | number |
cpy | number |
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
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
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
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
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
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
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
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
Parameters
Parameter | Type |
---|---|
angle | number |
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
Parameters
Parameter | Type |
---|---|
angle | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
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
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
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
segments | 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.dom.iterable.d.ts:88
Parameters
Parameter | Type |
---|---|
segments | Iterable <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
Parameters
Parameter | Type |
---|---|
segments | number [] |
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
Parameters
Parameter | Type |
---|---|
a | number |
b | number |
c | number |
d | number |
e | number |
f | number |
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
Parameter | Type |
---|---|
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
Parameters
Parameter | Type |
---|---|
a | number |
b | number |
c | number |
d | number |
e | number |
f | number |
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
Parameter | Type |
---|---|
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
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
Parameter | Type |
---|---|
path | Path2D |
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
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
Parameter | Type |
---|---|
path | Path2D |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
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
Parameters
Parameter | Type |
---|---|
text | string |
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
text | string |
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
a | number |
b | number |
c | number |
d | number |
e | number |
f | number |
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
Parameters
Parameter | Type |
---|---|
a | number |
b | number |
c | number |
d | number |
e | number |
f | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
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
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
CanvasRenderingContext2D.translate