@univerjs/engine-render v0.5.0-beta.1 • Docs
Class: UniverPrintingContext
Extends
Constructors
new UniverPrintingContext()
new UniverPrintingContext(context): UniverPrintingContext
Parameters
Parameter | Type |
---|---|
context | CanvasRenderingContext2D |
Returns
Inherited from
UniverRenderingContext2D
.constructor
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:34
Properties
Property | Modifier | Type | Default value | Description | Overrides | Inherited from | Defined in |
---|---|---|---|---|---|---|---|
__mode | public | string | 'printing' | - | UniverRenderingContext2D .__mode | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:1015 |
_context | public | CanvasRenderingContext2D | undefined | - | - | UniverRenderingContext2D ._context | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:28 |
canvas | readonly | HTMLCanvasElement | undefined | MDN Reference | - | UniverRenderingContext2D .canvas | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:26 |
renderConfig | public | Readonly <IRenderConfig > | {} | - | - | UniverRenderingContext2D .renderConfig | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:32 |
Accessors
direction
Get Signature
get direction(): CanvasDirection
Returns
CanvasDirection
Set Signature
set direction(val): void
Parameters
Parameter | Type |
---|---|
val | CanvasDirection |
Returns
void
Inherited from
UniverRenderingContext2D
.direction
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:205
fillStyle
Get Signature
get fillStyle(): string | CanvasGradient | CanvasPattern
Returns
string
| CanvasGradient
| CanvasPattern
Set Signature
set fillStyle(val): void
Parameters
Parameter | Type |
---|---|
val | string | CanvasGradient | CanvasPattern |
Returns
void
Inherited from
UniverRenderingContext2D
.fillStyle
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:73
filter
Get Signature
get filter(): string
Returns
string
Set Signature
set filter(val): void
Parameters
Parameter | Type |
---|---|
val | string |
Returns
void
Inherited from
UniverRenderingContext2D
.filter
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:91
font
Get Signature
get font(): string
Returns
string
Set Signature
set font(val): void
Parameters
Parameter | Type |
---|---|
val | string |
Returns
void
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:214
fontKerning
Get Signature
get fontKerning(): CanvasFontKerning
Returns
CanvasFontKerning
Set Signature
set fontKerning(val): void
Parameters
Parameter | Type |
---|---|
val | CanvasFontKerning |
Returns
void
Inherited from
UniverRenderingContext2D
.fontKerning
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:223
fontStretch
Get Signature
get fontStretch(): CanvasFontStretch
Returns
CanvasFontStretch
Set Signature
set fontStretch(val): void
Parameters
Parameter | Type |
---|---|
val | CanvasFontStretch |
Returns
void
Inherited from
UniverRenderingContext2D
.fontStretch
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:232
fontVariantCaps
Get Signature
get fontVariantCaps(): CanvasFontVariantCaps
Returns
CanvasFontVariantCaps
Set Signature
set fontVariantCaps(val): void
Parameters
Parameter | Type |
---|---|
val | CanvasFontVariantCaps |
Returns
void
Inherited from
UniverRenderingContext2D
.fontVariantCaps
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:243
globalAlpha
Get Signature
get globalAlpha(): number
Returns
number
Set Signature
set globalAlpha(val): void
Parameters
Parameter | Type |
---|---|
val | number |
Returns
void
Inherited from
UniverRenderingContext2D
.globalAlpha
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:55
globalCompositeOperation
Get Signature
get globalCompositeOperation(): GlobalCompositeOperation
Returns
GlobalCompositeOperation
Set Signature
set globalCompositeOperation(val): void
Parameters
Parameter | Type |
---|---|
val | GlobalCompositeOperation |
Returns
void
Inherited from
UniverRenderingContext2D
.globalCompositeOperation
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:64
imageSmoothingEnabled
Get Signature
get imageSmoothingEnabled(): boolean
Returns
boolean
Set Signature
set imageSmoothingEnabled(val): void
Parameters
Parameter | Type |
---|---|
val | boolean |
Returns
void
Inherited from
UniverRenderingContext2D
.imageSmoothingEnabled
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:100
imageSmoothingQuality
Get Signature
get imageSmoothingQuality(): ImageSmoothingQuality
Returns
ImageSmoothingQuality
Set Signature
set imageSmoothingQuality(val): void
Parameters
Parameter | Type |
---|---|
val | ImageSmoothingQuality |
Returns
void
Inherited from
UniverRenderingContext2D
.imageSmoothingQuality
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:109
letterSpacing
Get Signature
get letterSpacing(): string
Returns
string
Set Signature
set letterSpacing(val): void
Parameters
Parameter | Type |
---|---|
val | string |
Returns
void
Inherited from
UniverRenderingContext2D
.letterSpacing
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:254
lineCap
Get Signature
get lineCap(): CanvasLineCap
Returns
CanvasLineCap
Set Signature
set lineCap(val): void
Parameters
Parameter | Type |
---|---|
val | CanvasLineCap |
Returns
void
Inherited from
UniverRenderingContext2D
.lineCap
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:118
lineDashOffset
Get Signature
get lineDashOffset(): number
Returns
number
Set Signature
set lineDashOffset(val): void
Parameters
Parameter | Type |
---|---|
val | number |
Returns
void
Inherited from
UniverRenderingContext2D
.lineDashOffset
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:127
lineJoin
Get Signature
get lineJoin(): CanvasLineJoin
Returns
CanvasLineJoin
Set Signature
set lineJoin(val): void
Parameters
Parameter | Type |
---|---|
val | CanvasLineJoin |
Returns
void
Inherited from
UniverRenderingContext2D
.lineJoin
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:136
lineWidth
Get Signature
get lineWidth(): number
Returns
number
Set Signature
set lineWidth(val): void
Parameters
Parameter | Type |
---|---|
val | number |
Returns
void
Inherited from
UniverRenderingContext2D
.lineWidth
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:145
miterLimit
Get Signature
get miterLimit(): number
Returns
number
Set Signature
set miterLimit(val): void
Parameters
Parameter | Type |
---|---|
val | number |
Returns
void
Inherited from
UniverRenderingContext2D
.miterLimit
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:160
shadowBlur
Get Signature
get shadowBlur(): number
Returns
number
Set Signature
set shadowBlur(val): void
Parameters
Parameter | Type |
---|---|
val | number |
Returns
void
Inherited from
UniverRenderingContext2D
.shadowBlur
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:169
shadowColor
Get Signature
get shadowColor(): string
Returns
string
Set Signature
set shadowColor(val): void
Parameters
Parameter | Type |
---|---|
val | string |
Returns
void
Inherited from
UniverRenderingContext2D
.shadowColor
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:178
shadowOffsetX
Get Signature
get shadowOffsetX(): number
Returns
number
Set Signature
set shadowOffsetX(val): void
Parameters
Parameter | Type |
---|---|
val | number |
Returns
void
Inherited from
UniverRenderingContext2D
.shadowOffsetX
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:187
shadowOffsetY
Get Signature
get shadowOffsetY(): number
Returns
number
Set Signature
set shadowOffsetY(val): void
Parameters
Parameter | Type |
---|---|
val | number |
Returns
void
Inherited from
UniverRenderingContext2D
.shadowOffsetY
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:196
strokeStyle
Get Signature
get strokeStyle(): string | CanvasGradient | CanvasPattern
Returns
string
| CanvasGradient
| CanvasPattern
Set Signature
set strokeStyle(val): void
Parameters
Parameter | Type |
---|---|
val | string | CanvasGradient | CanvasPattern |
Returns
void
Inherited from
UniverRenderingContext2D
.strokeStyle
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:82
textAlign
Get Signature
get textAlign(): CanvasTextAlign
Returns
CanvasTextAlign
Set Signature
set textAlign(val): void
Parameters
Parameter | Type |
---|---|
val | CanvasTextAlign |
Returns
void
Inherited from
UniverRenderingContext2D
.textAlign
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:287
textBaseline
Get Signature
get textBaseline(): CanvasTextBaseline
Returns
CanvasTextBaseline
Set Signature
set textBaseline(val): void
Parameters
Parameter | Type |
---|---|
val | CanvasTextBaseline |
Returns
void
Inherited from
UniverRenderingContext2D
.textBaseline
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:296
textRendering
Get Signature
get textRendering(): CanvasTextRendering
Returns
CanvasTextRendering
Set Signature
set textRendering(val): void
Parameters
Parameter | Type |
---|---|
val | CanvasTextRendering |
Returns
void
Inherited from
UniverRenderingContext2D
.textRendering
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:265
wordSpacing
Get Signature
get wordSpacing(): string
Returns
string
Set Signature
set wordSpacing(val): void
Parameters
Parameter | Type |
---|---|
val | string |
Returns
void
Inherited from
UniverRenderingContext2D
.wordSpacing
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:276
Methods
_getScale()
protected _getScale(): {
scaleX: number;
scaleY: number;
}
Get scale from ctx. DOMMatrix.a DOMMatrix.d would affect by ctx.rotate()
Returns
{
scaleX: number;
scaleY: number;
}
Name | Type | Defined in |
---|---|---|
scaleX | number | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:317 |
scaleY | number | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:318 |
Inherited from
UniverRenderingContext2D
._getScale
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:308
arc()
arc(
x,
y,
radius,
startAngle,
endAngle,
counterClockwise?): void
arc function.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
radius | number |
startAngle | number |
endAngle | number |
counterClockwise ? | boolean |
Returns
void
Method
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:397
arcByPrecision()
arcByPrecision(
x,
y,
radius,
startAngle,
endAngle,
counterClockwise?): void
arc function.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
radius | number |
startAngle | number |
endAngle | number |
counterClockwise ? | boolean |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.arcByPrecision
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:405
arcTo()
arcTo(
x1,
y1,
x2,
y2,
radius): void
arcTo function.
Parameters
Parameter | Type |
---|---|
x1 | number |
y1 | number |
x2 | number |
y2 | number |
radius | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.arcTo
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:418
arcToByPrecision()
arcToByPrecision(
x1,
y1,
x2,
y2,
radius): void
arcTo function.
Parameters
Parameter | Type |
---|---|
x1 | number |
y1 | number |
x2 | number |
y2 | number |
radius | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.arcToByPrecision
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:427
beginPath()
beginPath(): void
beginPath function.
Returns
void
Method
Inherited from
UniverRenderingContext2D
.beginPath
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:441
bezierCurveTo()
bezierCurveTo(
cp1x,
cp1y,
cp2x,
cp2y,
x,
y): void
bezierCurveTo function.
Parameters
Parameter | Type |
---|---|
cp1x | number |
cp1y | number |
cp2x | number |
cp2y | number |
x | number |
y | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.bezierCurveTo
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:449
bezierCurveToByPrecision()
bezierCurveToByPrecision(
cp1x,
cp1y,
cp2x,
cp2y,
x,
y): void
bezierCurveTo function precision.
Parameters
Parameter | Type |
---|---|
cp1x | number |
cp1y | number |
cp2x | number |
cp2y | number |
x | number |
y | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.bezierCurveToByPrecision
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:457
clearRect()
clearRect(
x,
y,
width,
height): void
clearRect function.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
width | number |
height | number |
Returns
void
Method
Overrides
UniverRenderingContext2D
.clearRect
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:1017
clearRectByPrecision()
clearRectByPrecision(
x,
y,
width,
height): void
clearRect function.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
width | number |
height | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.clearRectByPrecision
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:481
clearRectForTexture()
clearRectForTexture(
x,
y,
width,
height): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
width | number |
height | number |
Returns
void
Overrides
UniverRenderingContext2D
.clearRectForTexture
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:1030
clip()
clip(undefined)
clip(): void
clip function.
Returns
void
Method
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:495
clip(path)
clip(path): void
Parameters
Parameter | Type |
---|---|
path | Path2D |
Returns
void
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:497
clip(fillRule)
clip(fillRule?): void
Parameters
Parameter | Type |
---|---|
fillRule ? | CanvasFillRule |
Returns
void
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:499
clip(path, fillRule)
clip(path, fillRule?): void
Parameters
Parameter | Type |
---|---|
path | Path2D |
fillRule ? | CanvasFillRule |
Returns
void
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:501
closePath()
closePath(): void
closePath function.
Returns
void
Method
Inherited from
UniverRenderingContext2D
.closePath
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:511
closePathByEnv()
closePathByEnv(): void
Chrome hardware acceleration causes canvas stroke to fail to draw lines on Mac.
Returns
void
Inherited from
UniverRenderingContext2D
.closePathByEnv
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:532
createConicGradient()
createConicGradient(
startAngle,
x,
y): CanvasGradient
Parameters
Parameter | Type |
---|---|
startAngle | number |
x | number |
y | number |
Returns
CanvasGradient
Inherited from
UniverRenderingContext2D
.createConicGradient
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:338
createImageData()
createImageData(width, height, settings)
createImageData(
width,
height,
settings?): ImageData
createImageData function.
Parameters
Parameter | Type |
---|---|
width | number |
height | number |
settings ? | ImageDataSettings |
Returns
ImageData
Method
Inherited from
UniverRenderingContext2D
.createImageData
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:549
createImageData(imagedata)
createImageData(imagedata): ImageData
Parameters
Parameter | Type |
---|---|
imagedata | ImageData |
Returns
ImageData
Inherited from
UniverRenderingContext2D
.createImageData
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:551
createLinearGradient()
createLinearGradient(
x0,
y0,
x1,
y1): CanvasGradient
createLinearGradient function.
Parameters
Parameter | Type |
---|---|
x0 | number |
y0 | number |
x1 | number |
y1 | number |
Returns
CanvasGradient
Method
Inherited from
UniverRenderingContext2D
.createLinearGradient
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:570
createPattern()
createPattern(image, repetition): null | CanvasPattern
createPattern function.
Parameters
Parameter | Type |
---|---|
image | CanvasImageSource |
repetition | null | string |
Returns
null
| CanvasPattern
Method
Inherited from
UniverRenderingContext2D
.createPattern
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:578
createRadialGradient()
createRadialGradient(
x0,
y0,
r0,
x1,
y1,
r1): CanvasGradient
createRadialGradient function.
Parameters
Parameter | Type |
---|---|
x0 | number |
y0 | number |
r0 | number |
x1 | number |
y1 | number |
r1 | number |
Returns
CanvasGradient
Method
Inherited from
UniverRenderingContext2D
.createRadialGradient
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:586
drawFocusIfNeeded()
drawFocusIfNeeded(element)
drawFocusIfNeeded(element): void
Parameters
Parameter | Type |
---|---|
element | Element |
Returns
void
Inherited from
UniverRenderingContext2D
.drawFocusIfNeeded
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:378
drawFocusIfNeeded(path, element)
drawFocusIfNeeded(path, element): void
Parameters
Parameter | Type |
---|---|
path | Path2D |
element | Element |
Returns
void
Inherited from
UniverRenderingContext2D
.drawFocusIfNeeded
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:379
drawImage()
drawImage(
image,
sx,
sy,
sWidth?,
sHeight?,
dx?,
dy?,
dWidth?,
dHeight?): void
drawImage function.
Parameters
Parameter | Type |
---|---|
image | CanvasImageSource |
sx | number |
sy | number |
sWidth ? | number |
sHeight ? | number |
dx ? | number |
dy ? | number |
dWidth ? | number |
dHeight ? | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.drawImage
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:594
ellipse()
ellipse(
x,
y,
radiusX,
radiusY,
rotation,
startAngle,
endAngle,
counterclockwise?): void
ellipse function.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
radiusX | number |
radiusY | number |
rotation | number |
startAngle | number |
endAngle | number |
counterclockwise ? | boolean |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.ellipse
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:634
fill()
fill(fillRule)
fill(fillRule?): void
fill function.
Parameters
Parameter | Type |
---|---|
fillRule ? | CanvasFillRule |
Returns
void
Method
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:670
fill(path, fillRule)
fill(path, fillRule?): void
Parameters
Parameter | Type |
---|---|
path | Path2D |
fillRule ? | CanvasFillRule |
Returns
void
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:672
fillRect()
fillRect(
x,
y,
width,
height): void
fillRect function.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
width | number |
height | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.fillRect
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:684
fillRectByPrecision()
fillRectByPrecision(
x,
y,
width,
height): void
fillRect function precision.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
width | number |
height | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.fillRectByPrecision
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:692
fillText()
fillText(
text,
x,
y,
maxWidth?): void
fillText function.
Parameters
Parameter | Type |
---|---|
text | string |
x | number |
y | number |
maxWidth ? | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.fillText
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:728
fillTextPrecision()
fillTextPrecision(
text,
x,
y,
maxWidth?): void
fillText function.
Parameters
Parameter | Type |
---|---|
text | string |
x | number |
y | number |
maxWidth ? | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.fillTextPrecision
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:746
getBrowserType()
getBrowserType(): string
Returns
string
Inherited from
UniverRenderingContext2D
.getBrowserType
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:522
getContextAttributes()
getContextAttributes(): CanvasRenderingContext2DSettings
Returns
CanvasRenderingContext2DSettings
Inherited from
UniverRenderingContext2D
.getContextAttributes
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:326
getId()
getId(): string
Returns
string
Inherited from
UniverRenderingContext2D
.getId
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:41
getImageData()
getImageData(
sx,
sy,
sw,
sh): ImageData
getImageData function.
Parameters
Parameter | Type |
---|---|
sx | number |
sy | number |
sw | number |
sh | number |
Returns
ImageData
Method
Inherited from
UniverRenderingContext2D
.getImageData
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:772
getLineDash()
getLineDash(): number[]
getLineDash function.
Returns
number
[]
Method
Inherited from
UniverRenderingContext2D
.getLineDash
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:919
getScale()
getScale(): {
scaleX: number;
scaleY: number;
}
Returns
{
scaleX: number;
scaleY: number;
}
Name | Type | Defined in |
---|---|---|
scaleX | number | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:317 |
scaleY | number | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:318 |
Inherited from
UniverRenderingContext2D
.getScale
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:322
getSystemType()
getSystemType(): string
Returns
string
Inherited from
UniverRenderingContext2D
.getSystemType
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:515
getTransform()
getTransform(): DOMMatrix
Returns
DOMMatrix
Inherited from
UniverRenderingContext2D
.getTransform
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:368
isContextLost()
isContextLost(): boolean
Returns
boolean
Inherited from
UniverRenderingContext2D
.isContextLost
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:49
isPointInPath()
isPointInPath(x, y, fillRule)
isPointInPath(
x,
y,
fillRule?): boolean
isPointInPath function.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
fillRule ? | CanvasFillRule |
Returns
boolean
Method
Inherited from
UniverRenderingContext2D
.isPointInPath
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:658
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
UniverRenderingContext2D
.isPointInPath
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:660
isPointInStroke()
isPointInStroke(x, y)
isPointInStroke(x, y): boolean
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
boolean
Inherited from
UniverRenderingContext2D
.isPointInStroke
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:330
isPointInStroke(path, x, y)
isPointInStroke(
path,
x,
y): boolean
Parameters
Parameter | Type |
---|---|
path | Path2D |
x | number |
y | number |
Returns
boolean
Inherited from
UniverRenderingContext2D
.isPointInStroke
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:332
lineTo()
lineTo(x, y): void
lineTo function.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.lineTo
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:780
lineToByPrecision()
lineToByPrecision(x, y): void
lineTo function precision.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.lineToByPrecision
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:788
measureText()
measureText(text): TextMetrics
measureText function.
Parameters
Parameter | Type |
---|---|
text | string |
Returns
TextMetrics
Method
Inherited from
UniverRenderingContext2D
.measureText
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:764
moveTo()
moveTo(x, y): void
moveTo function.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.moveTo
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:800
moveToByPrecision()
moveToByPrecision(x, y): void
moveTo function precision.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.moveToByPrecision
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:808
moveToByPrecisionLog()
moveToByPrecisionLog(x, y): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
UniverRenderingContext2D
.moveToByPrecisionLog
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:815
putImageData()
putImageData(
imageData,
dx,
dy): void
putImageData function.
Parameters
Parameter | Type |
---|---|
imageData | ImageData |
dx | number |
dy | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.putImageData
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:848
quadraticCurveTo()
quadraticCurveTo(
cpx,
cpy,
x,
y): void
quadraticCurveTo function.
Parameters
Parameter | Type |
---|---|
cpx | number |
cpy | number |
x | number |
y | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.quadraticCurveTo
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:856
rect()
rect(
x,
y,
width,
height): void
rect function.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
width | number |
height | number |
Returns
void
Method
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:826
rectByPrecision()
rectByPrecision(
x,
y,
width,
height): void
rect function.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
width | number |
height | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.rectByPrecision
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:834
reset()
reset(): void
reset canvas context transform
Returns
void
Method
Inherited from
UniverRenderingContext2D
.reset
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:388
resetTransform()
resetTransform(): void
Returns
void
Inherited from
UniverRenderingContext2D
.resetTransform
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:373
restore()
restore(): void
restore function.
Returns
void
Method
Inherited from
UniverRenderingContext2D
.restore
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:864
rotate()
rotate(angle): void
rotate function.
Parameters
Parameter | Type |
---|---|
angle | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.rotate
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:872
roundRect()
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
UniverRenderingContext2D
.roundRect
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:342
roundRectByPrecision()
roundRectByPrecision(
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
UniverRenderingContext2D
.roundRectByPrecision
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:352
save()
save(): void
save function.
Returns
void
Method
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:881
scale()
scale(x, y): void
scale function.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.scale
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:889
setGlobalCompositeOperation()
setGlobalCompositeOperation(val): void
Parameters
Parameter | Type |
---|---|
val | GlobalCompositeOperation |
Returns
void
Overrides
UniverRenderingContext2D
.setGlobalCompositeOperation
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:1034
setId()
setId(id): void
Parameters
Parameter | Type |
---|---|
id | string |
Returns
void
Inherited from
UniverRenderingContext2D
.setId
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:45
setLineDash()
setLineDash(segments): void
setLineDash function.
Parameters
Parameter | Type |
---|---|
segments | number [] |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.setLineDash
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:898
setLineWidthByPrecision()
setLineWidthByPrecision(val): void
Parameters
Parameter | Type |
---|---|
val | number |
Returns
void
Inherited from
UniverRenderingContext2D
.setLineWidthByPrecision
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:153
setTransform()
setTransform(transform)
setTransform(transform?): void
setTransform function.
Parameters
Parameter | Type |
---|---|
transform ? | DOMMatrix2DInit |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.setTransform
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:927
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
UniverRenderingContext2D
.setTransform
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:929
stroke()
stroke(path2d?): void
stroke function.
Parameters
Parameter | Type |
---|---|
path2d ? | Path2D |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.stroke
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:940
strokeRect()
strokeRect(
x,
y,
width,
height): void
strokeRect function.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
width | number |
height | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.strokeRect
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:706
strokeRectPrecision()
strokeRectPrecision(
x,
y,
width,
height): void
strokeRect function precision.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
width | number |
height | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.strokeRectPrecision
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:714
strokeText()
strokeText(
text,
x,
y,
maxWidth?): void
strokeText function.
Parameters
Parameter | Type |
---|---|
text | string |
x | number |
y | number |
maxWidth ? | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.strokeText
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:952
strokeTextByPrecision()
strokeTextByPrecision(
text,
x,
y,
maxWidth?): void
strokeText function precision.
Parameters
Parameter | Type |
---|---|
text | string |
x | number |
y | number |
maxWidth ? | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.strokeTextByPrecision
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:960
transform()
transform(
a,
b,
c,
d,
e,
f): void
transform function.
Parameters
Parameter | Type |
---|---|
a | number |
b | number |
c | number |
d | number |
e | number |
f | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.transform
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:975
translate()
translate(x, y): void
translate function.
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Method
Inherited from
UniverRenderingContext2D
.translate
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:984
translateWithPrecision()
translateWithPrecision(x, y): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
UniverRenderingContext2D
.translateWithPrecision
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:989
translateWithPrecisionRatio()
translateWithPrecisionRatio(x, y): void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
UniverRenderingContext2D
.translateWithPrecisionRatio
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/context.ts:997