Module: ol/style/Stroke

ol/style/Stroke


Classes

Stroke

Type Definitions

Options{Object}

Properties:
Name Type Description
color Color | ColorLike | undefined

颜色、渐变或图案。有关可能的格式,请参见 ColorColorLike。默认为 null;如果为 null,将使用 Canvas/渲染器的默认黑色。

lineCap CanvasLineCap
(defaults to 'round')

线端点样式:buttroundsquare

lineJoin CanvasLineJoin
(defaults to 'round')

线连接样式:bevelroundmiter

lineDash Array.<number> | undefined

虚线模式。默认为 null(无虚线)。

lineDashOffset number
(defaults to 0)

虚线偏移。

miterLimit number
(defaults to 10)

斜接限制。

offset number | undefined

沿法线的线偏移量(像素)。正值相对于线的方向将线向右偏移。默认为 undefined(无偏移)。

width number | undefined

宽度。