Skip to content

Function: computeSegmentFrame() ​

ts
function computeSegmentFrame(prev, a, b, next, width, join, cap, miterLimit): SegmentFrame;

Experimental

Vertex-stage mirror: build the frame of segment a → b given optional neighbors (screen px).

Parameters ​

ParameterType
prevV2 | undefined
aV2
bV2
nextV2 | undefined
widthnumber
joinLineJoin
capLineCap
miterLimitnumber

Returns ​

SegmentFrame

Released under the MIT License.