@univerjs/engine-render v0.4.2 • 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
submodules/univer/packages/engine-render/src/basics/draw.ts:64 (opens in a new tab)