@univerjs/engine-render v0.5.0-beta.1 • Docs
Interface: IContext2D
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.6.3/node_modules/typescript/lib/lib.dom.d.ts:5562 |
direction | public | CanvasDirection | MDN Reference | CanvasRenderingContext2D.direction | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5605 |
fillStyle | public | string | CanvasGradient | CanvasPattern | MDN Reference | CanvasRenderingContext2D.fillStyle | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5430 |
filter | public | string | MDN Reference | CanvasRenderingContext2D.filter | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5445 |
font | public | string | MDN Reference | CanvasRenderingContext2D.font | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5607 |
fontKerning | public | CanvasFontKerning | MDN Reference | CanvasRenderingContext2D.fontKerning | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5609 |
fontStretch | public | CanvasFontStretch | MDN Reference | CanvasRenderingContext2D.fontStretch | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5611 |
fontVariantCaps | public | CanvasFontVariantCaps | MDN Reference | CanvasRenderingContext2D.fontVariantCaps | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5613 |
globalAlpha | public | number | MDN Reference | CanvasRenderingContext2D.globalAlpha | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5396 |
globalCompositeOperation | public | GlobalCompositeOperation | MDN Reference | CanvasRenderingContext2D.globalCompositeOperation | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5398 |
imageSmoothingEnabled | public | boolean | MDN Reference | CanvasRenderingContext2D.imageSmoothingEnabled | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5482 |
imageSmoothingQuality | public | ImageSmoothingQuality | MDN Reference | CanvasRenderingContext2D.imageSmoothingQuality | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5484 |
letterSpacing | public | string | MDN Reference | CanvasRenderingContext2D.letterSpacing | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5615 |
lineCap | public | CanvasLineCap | MDN Reference | CanvasRenderingContext2D.lineCap | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5512 |
lineDashOffset | public | number | MDN Reference | CanvasRenderingContext2D.lineDashOffset | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5514 |
lineJoin | public | CanvasLineJoin | MDN Reference | CanvasRenderingContext2D.lineJoin | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5516 |
lineWidth | public | number | MDN Reference | CanvasRenderingContext2D.lineWidth | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5518 |
miterLimit | public | number | MDN Reference | CanvasRenderingContext2D.miterLimit | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5520 |
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.6.3/node_modules/typescript/lib/lib.dom.d.ts:5574 |
shadowColor | public | string | MDN Reference | CanvasRenderingContext2D.shadowColor | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5576 |
shadowOffsetX | public | number | MDN Reference | CanvasRenderingContext2D.shadowOffsetX | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5578 |
shadowOffsetY | public | number | MDN Reference | CanvasRenderingContext2D.shadowOffsetY | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5580 |
strokeStyle | public | string | CanvasGradient | CanvasPattern | MDN Reference | CanvasRenderingContext2D.strokeStyle | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5432 |
textAlign | public | CanvasTextAlign | MDN Reference | CanvasRenderingContext2D.textAlign | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5617 |
textBaseline | public | CanvasTextBaseline | MDN Reference | CanvasRenderingContext2D.textBaseline | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5619 |
textRendering | public | CanvasTextRendering | MDN Reference | CanvasRenderingContext2D.textRendering | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5621 |
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.6.3/node_modules/typescript/lib/lib.dom.d.ts:5623 |
Methods
arc()
arc(x, y, radius, startAngle, endAngle, counterclockwise)
arc(
x,
y,
radius,
startAngle,
endAngle,
counterclockwise?): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
radius | number |
startAngle | number |
endAngle | number |
counterclockwise ? | boolean |
Returns
void
Inherited from
CanvasRenderingContext2D.arc
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5489
arc(x, y, radius, startAngle, endAngle, counterclockwise)
arc(
x,
y,
radius,
startAngle,
endAngle,
counterclockwise?): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
radius | number |
startAngle | number |
endAngle | number |
counterclockwise ? | boolean |
Returns
void
Inherited from
CanvasRenderingContext2D.arc
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1592
arcTo()
arcTo(x1, y1, x2, y2, radius)
arcTo(
x1,
y1,
x2,
y2,
radius): void
Parameters
Parameter | Type |
---|---|
x1 | number |
y1 | number |
x2 | number |
y2 | number |
radius | number |
Returns
void
Inherited from
CanvasRenderingContext2D.arcTo
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5491
arcTo(x1, y1, x2, y2, radius)
arcTo(
x1,
y1,
x2,
y2,
radius): void
Parameters
Parameter | Type |
---|---|
x1 | number |
y1 | number |
x2 | number |
y2 | number |
radius | number |
Returns
void
Inherited from
CanvasRenderingContext2D.arcTo
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1594
beginPath()
beginPath(undefined)
beginPath(): void
Returns
void
Inherited from
CanvasRenderingContext2D.beginPath
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5410
beginPath(undefined)
beginPath(): void
Returns
void
Inherited from
CanvasRenderingContext2D.beginPath
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1513
bezierCurveTo()
bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y)
bezierCurveTo(
cp1x,
cp1y,
cp2x,
cp2y,
x,
y): void
Parameters
Parameter | Type |
---|---|
cp1x | number |
cp1y | number |
cp2x | number |
cp2y | number |
x | number |
y | number |
Returns
void
Inherited from
CanvasRenderingContext2D.bezierCurveTo
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5493
bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y)
bezierCurveTo(
cp1x,
cp1y,
cp2x,
cp2y,
x,
y): void
Parameters
Parameter | Type |
---|---|
cp1x | number |
cp1y | number |
cp2x | number |
cp2y | number |
x | number |
y | number |
Returns
void
Inherited from
CanvasRenderingContext2D.bezierCurveTo
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1596
clearRect()
clearRect(x, y, w, h)
clearRect(
x,
y,
w,
h): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
Returns
void
Inherited from
CanvasRenderingContext2D.clearRect
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5548
clearRect(x, y, w, h)
clearRect(
x,
y,
w,
h): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
Returns
void
Inherited from
CanvasRenderingContext2D.clearRect
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1651
clip()
clip(fillRule)
clip(fillRule?): void
Parameters
Parameter | Type |
---|---|
fillRule ? | CanvasFillRule |
Returns
void
Inherited from
CanvasRenderingContext2D.clip
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5412
clip(path, fillRule)
clip(path, fillRule?): void
Parameters
Parameter | Type |
---|---|
path | Path2D |
fillRule ? | CanvasFillRule |
Returns
void
Inherited from
CanvasRenderingContext2D.clip
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5413
clip(fillRule)
clip(fillRule?): void
Parameters
Parameter | Type |
---|---|
fillRule ? | CanvasFillRule |
Returns
void
Inherited from
CanvasRenderingContext2D.clip
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1515
clip(path, fillRule)
clip(path, fillRule?): void
Parameters
Parameter | Type |
---|---|
path | Path2D |
fillRule ? | CanvasFillRule |
Returns
void
Inherited from
CanvasRenderingContext2D.clip
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1516
closePath()
closePath(undefined)
closePath(): void
Returns
void
Inherited from
CanvasRenderingContext2D.closePath
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5495
closePath(undefined)
closePath(): void
Returns
void
Inherited from
CanvasRenderingContext2D.closePath
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1598
createConicGradient()
createConicGradient(startAngle, x, y)
createConicGradient(
startAngle,
x,
y): CanvasGradient
Parameters
Parameter | Type |
---|---|
startAngle | number |
x | number |
y | number |
Returns
CanvasGradient
Inherited from
CanvasRenderingContext2D.createConicGradient
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5434
createConicGradient(startAngle, x, y)
createConicGradient(
startAngle,
x,
y): CanvasGradient
Parameters
Parameter | Type |
---|---|
startAngle | number |
x | number |
y | number |
Returns
CanvasGradient
Inherited from
CanvasRenderingContext2D.createConicGradient
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1537
createImageData()
createImageData(sw, sh, settings)
createImageData(
sw,
sh,
settings?): ImageData
Parameters
Parameter | Type |
---|---|
sw | number |
sh | number |
settings ? | ImageDataSettings |
Returns
ImageData
Inherited from
CanvasRenderingContext2D.createImageData
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5471
createImageData(imagedata)
createImageData(imagedata): ImageData
Parameters
Parameter | Type |
---|---|
imagedata | ImageData |
Returns
ImageData
Inherited from
CanvasRenderingContext2D.createImageData
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5472
createImageData(sw, sh, settings)
createImageData(
sw,
sh,
settings?): ImageData
Parameters
Parameter | Type |
---|---|
sw | number |
sh | number |
settings ? | ImageDataSettings |
Returns
ImageData
Inherited from
CanvasRenderingContext2D.createImageData
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1574
createImageData(imagedata)
createImageData(imagedata): ImageData
Parameters
Parameter | Type |
---|---|
imagedata | ImageData |
Returns
ImageData
Inherited from
CanvasRenderingContext2D.createImageData
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1575
createLinearGradient()
createLinearGradient(x0, y0, x1, y1)
createLinearGradient(
x0,
y0,
x1,
y1): CanvasGradient
Parameters
Parameter | Type |
---|---|
x0 | number |
y0 | number |
x1 | number |
y1 | number |
Returns
CanvasGradient
Inherited from
CanvasRenderingContext2D.createLinearGradient
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5436
createLinearGradient(x0, y0, x1, y1)
createLinearGradient(
x0,
y0,
x1,
y1): CanvasGradient
Parameters
Parameter | Type |
---|---|
x0 | number |
y0 | number |
x1 | number |
y1 | number |
Returns
CanvasGradient
Inherited from
CanvasRenderingContext2D.createLinearGradient
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1539
createPattern()
createPattern(image, repetition)
createPattern(image, repetition): null | CanvasPattern
Parameters
Parameter | Type |
---|---|
image | CanvasImageSource |
repetition | null | string |
Returns
null
| CanvasPattern
Inherited from
CanvasRenderingContext2D.createPattern
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5438
createPattern(image, repetition)
createPattern(image, repetition): null | CanvasPattern
Parameters
Parameter | Type |
---|---|
image | CanvasImageSource |
repetition | null | string |
Returns
null
| CanvasPattern
Inherited from
CanvasRenderingContext2D.createPattern
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1541
createRadialGradient()
createRadialGradient(x0, y0, r0, x1, y1, r1)
createRadialGradient(
x0,
y0,
r0,
x1,
y1,
r1): CanvasGradient
Parameters
Parameter | Type |
---|---|
x0 | number |
y0 | number |
r0 | number |
x1 | number |
y1 | number |
r1 | number |
Returns
CanvasGradient
Inherited from
CanvasRenderingContext2D.createRadialGradient
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5440
createRadialGradient(x0, y0, r0, x1, y1, r1)
createRadialGradient(
x0,
y0,
r0,
x1,
y1,
r1): CanvasGradient
Parameters
Parameter | Type |
---|---|
x0 | number |
y0 | number |
r0 | number |
x1 | number |
y1 | number |
r1 | number |
Returns
CanvasGradient
Inherited from
CanvasRenderingContext2D.createRadialGradient
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1543
drawFocusIfNeeded()
drawFocusIfNeeded(element)
drawFocusIfNeeded(element): void
Parameters
Parameter | Type |
---|---|
element | Element |
Returns
void
Inherited from
CanvasRenderingContext2D.drawFocusIfNeeded
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5646
drawFocusIfNeeded(path, element)
drawFocusIfNeeded(path, element): void
Parameters
Parameter | Type |
---|---|
path | Path2D |
element | Element |
Returns
void
Inherited from
CanvasRenderingContext2D.drawFocusIfNeeded
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5647
drawImage()
drawImage(image, dx, dy)
drawImage(
image,
dx,
dy): void
Parameters
Parameter | Type |
---|---|
image | CanvasImageSource |
dx | number |
dy | number |
Returns
void
Inherited from
CanvasRenderingContext2D.drawImage
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5403
drawImage(image, dx, dy, dw, dh)
drawImage(
image,
dx,
dy,
dw,
dh): void
Parameters
Parameter | Type |
---|---|
image | CanvasImageSource |
dx | number |
dy | number |
dw | number |
dh | number |
Returns
void
Inherited from
CanvasRenderingContext2D.drawImage
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5404
drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh)
drawImage(
image,
sx,
sy,
sw,
sh,
dx,
dy,
dw,
dh): void
Parameters
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
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5405
drawImage(image, dx, dy)
drawImage(
image,
dx,
dy): void
Parameters
Parameter | Type |
---|---|
image | CanvasImageSource |
dx | number |
dy | number |
Returns
void
Inherited from
CanvasRenderingContext2D.drawImage
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1506
drawImage(image, dx, dy, dw, dh)
drawImage(
image,
dx,
dy,
dw,
dh): void
Parameters
Parameter | Type |
---|---|
image | CanvasImageSource |
dx | number |
dy | number |
dw | number |
dh | number |
Returns
void
Inherited from
CanvasRenderingContext2D.drawImage
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1507
drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh)
drawImage(
image,
sx,
sy,
sw,
sh,
dx,
dy,
dw,
dh): void
Parameters
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
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1508
ellipse()
ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, counterclockwise)
ellipse(
x,
y,
radiusX,
radiusY,
rotation,
startAngle,
endAngle,
counterclockwise?): void
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
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5497
ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, counterclockwise)
ellipse(
x,
y,
radiusX,
radiusY,
rotation,
startAngle,
endAngle,
counterclockwise?): void
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
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1600
fill()
fill(fillRule)
fill(fillRule?): void
Parameters
Parameter | Type |
---|---|
fillRule ? | CanvasFillRule |
Returns
void
Inherited from
CanvasRenderingContext2D.fill
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5415
fill(path, fillRule)
fill(path, fillRule?): void
Parameters
Parameter | Type |
---|---|
path | Path2D |
fillRule ? | CanvasFillRule |
Returns
void
Inherited from
CanvasRenderingContext2D.fill
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5416
fill(fillRule)
fill(fillRule?): void
Parameters
Parameter | Type |
---|---|
fillRule ? | CanvasFillRule |
Returns
void
Inherited from
CanvasRenderingContext2D.fill
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1518
fill(path, fillRule)
fill(path, fillRule?): void
Parameters
Parameter | Type |
---|---|
path | Path2D |
fillRule ? | CanvasFillRule |
Returns
void
Inherited from
CanvasRenderingContext2D.fill
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1519
fillRect()
fillRect(x, y, w, h)
fillRect(
x,
y,
w,
h): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
Returns
void
Inherited from
CanvasRenderingContext2D.fillRect
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5550
fillRect(x, y, w, h)
fillRect(
x,
y,
w,
h): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
Returns
void
Inherited from
CanvasRenderingContext2D.fillRect
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1653
fillText()
fillText(text, x, y, maxWidth)
fillText(
text,
x,
y,
maxWidth?): void
Parameters
Parameter | Type |
---|---|
text | string |
x | number |
y | number |
maxWidth ? | number |
Returns
void
Inherited from
CanvasRenderingContext2D.fillText
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5596
fillText(text, x, y, maxWidth)
fillText(
text,
x,
y,
maxWidth?): void
Parameters
Parameter | Type |
---|---|
text | string |
x | number |
y | number |
maxWidth ? | number |
Returns
void
Inherited from
CanvasRenderingContext2D.fillText
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1682
getContextAttributes()
getContextAttributes(): CanvasRenderingContext2DSettings
Returns
CanvasRenderingContext2DSettings
Inherited from
CanvasRenderingContext2D.getContextAttributes
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5564
getImageData()
getImageData(sx, sy, sw, sh, settings)
getImageData(
sx,
sy,
sw,
sh,
settings?): ImageData
Parameters
Parameter | Type |
---|---|
sx | number |
sy | number |
sw | number |
sh | number |
settings ? | ImageDataSettings |
Returns
ImageData
Inherited from
CanvasRenderingContext2D.getImageData
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5474
getImageData(sx, sy, sw, sh, settings)
getImageData(
sx,
sy,
sw,
sh,
settings?): ImageData
Parameters
Parameter | Type |
---|---|
sx | number |
sy | number |
sw | number |
sh | number |
settings ? | ImageDataSettings |
Returns
ImageData
Inherited from
CanvasRenderingContext2D.getImageData
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1577
getLineDash()
getLineDash(undefined)
getLineDash(): number[]
Returns
number
[]
Inherited from
CanvasRenderingContext2D.getLineDash
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5522
getLineDash(undefined)
getLineDash(): number[]
Returns
number
[]
Inherited from
CanvasRenderingContext2D.getLineDash
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1625
getTransform()
getTransform(undefined)
getTransform(): DOMMatrix
Returns
DOMMatrix
Inherited from
CanvasRenderingContext2D.getTransform
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5628
getTransform(undefined)
getTransform(): DOMMatrix
Returns
DOMMatrix
Inherited from
CanvasRenderingContext2D.getTransform
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1714
isContextLost()
isContextLost(undefined)
isContextLost(): boolean
Returns
boolean
Inherited from
CanvasRenderingContext2D.isContextLost
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5585
isContextLost(undefined)
isContextLost(): boolean
Returns
boolean
Inherited from
CanvasRenderingContext2D.isContextLost
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1671
isPointInPath()
isPointInPath(x, y, fillRule)
isPointInPath(
x,
y,
fillRule?): boolean
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
fillRule ? | CanvasFillRule |
Returns
boolean
Inherited from
CanvasRenderingContext2D.isPointInPath
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5418
isPointInPath(path, x, y, fillRule)
isPointInPath(
path,
x,
y,
fillRule?): boolean
Parameters
Parameter | Type |
---|---|
path | Path2D |
x | number |
y | number |
fillRule ? | CanvasFillRule |
Returns
boolean
Inherited from
CanvasRenderingContext2D.isPointInPath
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5419
isPointInPath(x, y, fillRule)
isPointInPath(
x,
y,
fillRule?): boolean
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
fillRule ? | CanvasFillRule |
Returns
boolean
Inherited from
CanvasRenderingContext2D.isPointInPath
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1521
isPointInPath(path, x, y, fillRule)
isPointInPath(
path,
x,
y,
fillRule?): boolean
Parameters
Parameter | Type |
---|---|
path | Path2D |
x | number |
y | number |
fillRule ? | CanvasFillRule |
Returns
boolean
Inherited from
CanvasRenderingContext2D.isPointInPath
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1522
isPointInStroke()
isPointInStroke(x, y)
isPointInStroke(x, y): boolean
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
boolean
Inherited from
CanvasRenderingContext2D.isPointInStroke
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5421
isPointInStroke(path, x, y)
isPointInStroke(
path,
x,
y): boolean
Parameters
Parameter | Type |
---|---|
path | Path2D |
x | number |
y | number |
Returns
boolean
Inherited from
CanvasRenderingContext2D.isPointInStroke
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5422
isPointInStroke(x, y)
isPointInStroke(x, y): boolean
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
boolean
Inherited from
CanvasRenderingContext2D.isPointInStroke
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1524
isPointInStroke(path, x, y)
isPointInStroke(
path,
x,
y): boolean
Parameters
Parameter | Type |
---|---|
path | Path2D |
x | number |
y | number |
Returns
boolean
Inherited from
CanvasRenderingContext2D.isPointInStroke
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1525
lineTo()
lineTo(x, y)
lineTo(x, y): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
CanvasRenderingContext2D.lineTo
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5499
lineTo(x, y)
lineTo(x, y): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
CanvasRenderingContext2D.lineTo
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1602
measureText()
measureText(text)
measureText(text): TextMetrics
Parameters
Parameter | Type |
---|---|
text | string |
Returns
TextMetrics
Inherited from
CanvasRenderingContext2D.measureText
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5598
measureText(text)
measureText(text): TextMetrics
Parameters
Parameter | Type |
---|---|
text | string |
Returns
TextMetrics
Inherited from
CanvasRenderingContext2D.measureText
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1684
moveTo()
moveTo(x, y)
moveTo(x, y): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
CanvasRenderingContext2D.moveTo
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5501
moveTo(x, y)
moveTo(x, y): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
CanvasRenderingContext2D.moveTo
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1604
putImageData()
putImageData(imagedata, dx, dy)
putImageData(
imagedata,
dx,
dy): void
Parameters
Parameter | Type |
---|---|
imagedata | ImageData |
dx | number |
dy | number |
Returns
void
Inherited from
CanvasRenderingContext2D.putImageData
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5476
putImageData(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight)
putImageData(
imagedata,
dx,
dy,
dirtyX,
dirtyY,
dirtyWidth,
dirtyHeight): void
Parameters
Parameter | Type |
---|---|
imagedata | ImageData |
dx | number |
dy | number |
dirtyX | number |
dirtyY | number |
dirtyWidth | number |
dirtyHeight | number |
Returns
void
Inherited from
CanvasRenderingContext2D.putImageData
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5477
putImageData(imagedata, dx, dy)
putImageData(
imagedata,
dx,
dy): void
Parameters
Parameter | Type |
---|---|
imagedata | ImageData |
dx | number |
dy | number |
Returns
void
Inherited from
CanvasRenderingContext2D.putImageData
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1579
putImageData(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight)
putImageData(
imagedata,
dx,
dy,
dirtyX,
dirtyY,
dirtyWidth,
dirtyHeight): void
Parameters
Parameter | Type |
---|---|
imagedata | ImageData |
dx | number |
dy | number |
dirtyX | number |
dirtyY | number |
dirtyWidth | number |
dirtyHeight | number |
Returns
void
Inherited from
CanvasRenderingContext2D.putImageData
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1580
quadraticCurveTo()
quadraticCurveTo(cpx, cpy, x, y)
quadraticCurveTo(
cpx,
cpy,
x,
y): void
Parameters
Parameter | Type |
---|---|
cpx | number |
cpy | number |
x | number |
y | number |
Returns
void
Inherited from
CanvasRenderingContext2D.quadraticCurveTo
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5503
quadraticCurveTo(cpx, cpy, x, y)
quadraticCurveTo(
cpx,
cpy,
x,
y): void
Parameters
Parameter | Type |
---|---|
cpx | number |
cpy | number |
x | number |
y | number |
Returns
void
Inherited from
CanvasRenderingContext2D.quadraticCurveTo
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1606
rect()
rect(x, y, w, h)
rect(
x,
y,
w,
h): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
Returns
void
Inherited from
CanvasRenderingContext2D.rect
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5505
rect(x, y, w, h)
rect(
x,
y,
w,
h): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
Returns
void
Inherited from
CanvasRenderingContext2D.rect
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1608
reset()
reset(undefined)
reset(): void
Returns
void
Inherited from
CanvasRenderingContext2D.reset
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5587
reset(undefined)
reset(): void
Returns
void
Inherited from
CanvasRenderingContext2D.reset
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1673
resetTransform()
resetTransform(undefined)
resetTransform(): void
Returns
void
Inherited from
CanvasRenderingContext2D.resetTransform
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5630
resetTransform(undefined)
resetTransform(): void
Returns
void
Inherited from
CanvasRenderingContext2D.resetTransform
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1716
restore()
restore(undefined)
restore(): void
Returns
void
Inherited from
CanvasRenderingContext2D.restore
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5589
restore(undefined)
restore(): void
Returns
void
Inherited from
CanvasRenderingContext2D.restore
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1675
rotate()
rotate(angle)
rotate(angle): void
Parameters
Parameter | Type |
---|---|
angle | number |
Returns
void
Inherited from
CanvasRenderingContext2D.rotate
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5632
rotate(angle)
rotate(angle): void
Parameters
Parameter | Type |
---|---|
angle | number |
Returns
void
Inherited from
CanvasRenderingContext2D.rotate
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1718
roundRect()
roundRect(x, y, w, h, radii)
roundRect(
x,
y,
w,
h,
radii?): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
radii ? | number | DOMPointInit | (number | DOMPointInit )[] |
Returns
void
Inherited from
CanvasRenderingContext2D.roundRect
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5507
roundRect(x, y, w, h, radii)
roundRect(
x,
y,
w,
h,
radii?): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
radii ? | number | DOMPointInit | Iterable <number | DOMPointInit , any , any > |
Returns
void
Inherited from
CanvasRenderingContext2D.roundRect
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.iterable.d.ts:83
roundRect(x, y, w, h, radii)
roundRect(
x,
y,
w,
h,
radii?): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
radii ? | number | DOMPointInit | (number | DOMPointInit )[] |
Returns
void
Inherited from
CanvasRenderingContext2D.roundRect
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1610
save()
save(undefined)
save(): void
Returns
void
Inherited from
CanvasRenderingContext2D.save
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5591
save(undefined)
save(): void
Returns
void
Inherited from
CanvasRenderingContext2D.save
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1677
scale()
scale(x, y)
scale(x, y): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
CanvasRenderingContext2D.scale
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5634
scale(x, y)
scale(x, y): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
CanvasRenderingContext2D.scale
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1720
setLineDash()
setLineDash(segments)
setLineDash(segments): void
Parameters
Parameter | Type |
---|---|
segments | number [] |
Returns
void
Inherited from
CanvasRenderingContext2D.setLineDash
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5524
setLineDash(segments)
setLineDash(segments): void
Parameters
Parameter | Type |
---|---|
segments | Iterable <number , any , any > |
Returns
void
Inherited from
CanvasRenderingContext2D.setLineDash
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.iterable.d.ts:88
setLineDash(segments)
setLineDash(segments): void
Parameters
Parameter | Type |
---|---|
segments | number [] |
Returns
void
Inherited from
CanvasRenderingContext2D.setLineDash
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1627
setTransform()
setTransform(a, b, c, d, e, f)
setTransform(
a,
b,
c,
d,
e,
f): void
Parameters
Parameter | Type |
---|---|
a | number |
b | number |
c | number |
d | number |
e | number |
f | number |
Returns
void
Inherited from
CanvasRenderingContext2D.setTransform
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5636
setTransform(transform)
setTransform(transform?): void
Parameters
Parameter | Type |
---|---|
transform ? | DOMMatrix2DInit |
Returns
void
Inherited from
CanvasRenderingContext2D.setTransform
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5637
setTransform(a, b, c, d, e, f)
setTransform(
a,
b,
c,
d,
e,
f): void
Parameters
Parameter | Type |
---|---|
a | number |
b | number |
c | number |
d | number |
e | number |
f | number |
Returns
void
Inherited from
CanvasRenderingContext2D.setTransform
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1722
setTransform(transform)
setTransform(transform?): void
Parameters
Parameter | Type |
---|---|
transform ? | DOMMatrix2DInit |
Returns
void
Inherited from
CanvasRenderingContext2D.setTransform
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1723
stroke()
stroke(undefined)
stroke(): void
Returns
void
Inherited from
CanvasRenderingContext2D.stroke
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5424
stroke(path)
stroke(path): void
Parameters
Parameter | Type |
---|---|
path | Path2D |
Returns
void
Inherited from
CanvasRenderingContext2D.stroke
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5425
stroke(undefined)
stroke(): void
Returns
void
Inherited from
CanvasRenderingContext2D.stroke
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1527
stroke(path)
stroke(path): void
Parameters
Parameter | Type |
---|---|
path | Path2D |
Returns
void
Inherited from
CanvasRenderingContext2D.stroke
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1528
strokeRect()
strokeRect(x, y, w, h)
strokeRect(
x,
y,
w,
h): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
Returns
void
Inherited from
CanvasRenderingContext2D.strokeRect
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5552
strokeRect(x, y, w, h)
strokeRect(
x,
y,
w,
h): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
Returns
void
Inherited from
CanvasRenderingContext2D.strokeRect
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1655
strokeText()
strokeText(text, x, y, maxWidth)
strokeText(
text,
x,
y,
maxWidth?): void
Parameters
Parameter | Type |
---|---|
text | string |
x | number |
y | number |
maxWidth ? | number |
Returns
void
Inherited from
CanvasRenderingContext2D.strokeText
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5600
strokeText(text, x, y, maxWidth)
strokeText(
text,
x,
y,
maxWidth?): void
Parameters
Parameter | Type |
---|---|
text | string |
x | number |
y | number |
maxWidth ? | number |
Returns
void
Inherited from
CanvasRenderingContext2D.strokeText
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1686
transform()
transform(a, b, c, d, e, f)
transform(
a,
b,
c,
d,
e,
f): void
Parameters
Parameter | Type |
---|---|
a | number |
b | number |
c | number |
d | number |
e | number |
f | number |
Returns
void
Inherited from
CanvasRenderingContext2D.transform
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5639
transform(a, b, c, d, e, f)
transform(
a,
b,
c,
d,
e,
f): void
Parameters
Parameter | Type |
---|---|
a | number |
b | number |
c | number |
d | number |
e | number |
f | number |
Returns
void
Inherited from
CanvasRenderingContext2D.transform
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1725
translate()
translate(x, y)
translate(x, y): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
CanvasRenderingContext2D.translate
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:5641
translate(x, y)
translate(x, y): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
CanvasRenderingContext2D.translate
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:1727