@univerjs/engine-render v0.5.0-beta.1 • Docs
Function: drawLineByBorderType()
function drawLineByBorderType(
ctx,
type,
lineWidthBuffer,
position): void
Parameters
Parameter | Type | Description |
---|---|---|
ctx | UniverRenderingContext | canvas context |
type | BORDER_TYPE | top bottom left right |
lineWidthBuffer | number | Solving the problem of mitered corners in the drawing of borders thicker than 2 pixels, caused by the line segments being centered. |
position | IPosition | border draw position |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:64