Readonly
lineReadonly
typeConstruct a new LineStyle object based on this one, but with modified fill style.
Example (SolidFill):
// specify new fillstyle
solidLineStyle.setFillStyle( new SolidFill({
color: ColorHex('#F00')
}) )
// change fillstyle properties
solidLineStyle.setFillStyle(
solidfill => solidfill.setA( 80 )
)
New LineStyle object
Either a FillStyle object or a function, which will be used to create a new FillStyle based on current value.
Construct a new LineStyle object based on this one, but with modified thickness.
-1 can be used to signify smallest available thickness. With most features, this will result in slightly better GPU performance, but less detailed line.
Thickness as pixels.
Base interface for line styles.
For implementations with more detailed documentation, see: