The cap and join styles of a stroke, and the miter limit that every backend uses.
Attributes
- Companion
- class
- Source
- style.scala
- Graph
-
- Supertypes
- Self type
-
StrokeStyle.type
Members list
Type members
Classlikes
How the start and end of stroked lines and paths are drawn.
How the start and end of stroked lines and paths are drawn.
Attributes
- Source
- style.scala
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
How the connection between two line segments of a stroke is drawn.
How the connection between two line segments of a stroke is drawn.
The join applies to shapes. The outlines of a smile.pictures.Text's glyphs are always stroked with round joins, whatever its style says, so that the text's bounds can reserve one stroke radius around its glyphs.
Attributes
- Source
- style.scala
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Inherited and Abstract types
The names of the product elements.
The name of the type.
Value members
Concrete fields
How long a miter join may get before it is cut off into a bevel, as a multiple of the stroke's width. Java2D, the HTML canvas, and SVG all measure the miter limit this way. A miter's length is the stroke's width divided by the sine of half the corner's angle, so the limit of 10 bevels corners sharper than about 11.5 degrees. Every backend is set to this one value, and the boundaries count on it. SVG's own default is 4.
How long a miter join may get before it is cut off into a bevel, as a multiple of the stroke's width. Java2D, the HTML canvas, and SVG all measure the miter limit this way. A miter's length is the stroke's width divided by the sine of half the corner's angle, so the limit of 10 bevels corners sharper than about 11.5 degrees. Every backend is set to this one value, and the boundaries count on it. SVG's own default is 4.
Attributes
- Source
- style.scala
Givens
Givens
Attributes
- Source
- style.scala
