When creating a new SolidLine object from scratch, parameters can be passed like follows:
Optional object containing parameters for creation of SolidLine
Get automatically computed highlight style.
LineStyle object
Get fill style of SolidLine.
VisibleFill object
Get thickness of SolidLine
Thickness as pixels
Construct a new SolidLine object based on this one, but with modified fill style.
Example usage:
| Desired result | Argument |
|---|---|
| Specified VisibleFill | new SolidFill({ color: ColorHex('#F00') }) |
| Changed transparency | (solidFill) => solidFill.setA(80) |
Either a VisibleFill 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 thickness.
Thickness as pixels. This will be rounded to closest integer!
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.
When creating a new SolidLine object from scratch, parameters can be passed like follows: