Create a new SolidLine to fill the line object with a single solid Color.
Example:
// create linestyle with Solid fillstyle and thickness
const solidLineStyle = new SolidLine({
fillStyle: new SolidFill({ color: ColorHEX('#F00') }),
thickness: 5
})
Optional object containing parameters for creation of SolidLine
Get automatically computed highlight style.
LineStyle object
Get fill style of SolidLine.
SolidFill object
Get highlighted line thickness multiplier.
Line thickness multiplier.
Get thickness of SolidLine
Thickness as pixels
Construct a new Visible line 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 )
)
Either a SolidFill object or a function, which will be used to create a new VisibleFill based on current value.
New SolidLine object
Construct a new SolidLine object based on this one, but with modified highlight thickness multiplier.
Only works when the highlighted style has not been set separately.
Amount to multiply the line thickness with when highlighted.
Construct a new SolidLine object based on this one, but with modified thickness.
Thickness as pixels.
Unlike other types in Immutable.js, the Record()
function creates a new
Record Factory, which is a function that creates Record instances.
See above for examples of using Record()
.
Note: Record
is a factory function and not a class, and does not use the
new
keyword during construction.
Class for specifying a solid line style.
Instances of SolidLine are immutable, meaning that its setters don't modify the object, but instead return a completely new modified object.