Inheritance Hierarchy
Remarks
All of these values are in terms of multiples of the thickness of a Stroke. This is different from the corresponding properties of an SVG stroke.
This is a convertible type that can be used with the following notation(s) in parameter lists, parameter objects or setters.
CSS border-style strings are converted to DashStyles. For example:
'solid'
'dash'
'dot'
'dash-dot'
'dash-dot-dot'
'5 10'
'5, 10'It is also possible to specify an Array<Object> or to define the pattern of dashes:
[5, 10]
10Members
No filters for this type
Constructors
Initializes a new instance of the DashStyle class using the provided dash pattern and offset.
Initializes a new instance of the DashStyle class using the provided dash pattern and offset.
Properties
Methods
Clones this instance by returning a memberwise clone, or by returning this if this instance is frozen.
Clones this instance by returning a memberwise clone, or by returning
this if this instance is frozen.final
Return Value
- any
- An instance of the same type as this instance.
Freezes and returns this instance.
Freezes and returns this instance.
Freezing an object makes it immutable, which can result in performance enhancements.
final
Return Value
- DashStyle
- This instance, made immutable.
Constants
Gets the dash style with a single dash.
Gets the dash style with a single dash.
Gets the dash style with a single dash and dot.
Gets the dash style with a single dash and dot.
Gets the dash style with a single dash and two dots.
Gets the dash style with a single dash and two dots.
Gets the dash style with a single dot.
Gets the dash style with a single dot.