|
|
Donner 0.5.1
Embeddable browser-grade SVG2 engine
|
Parameters for converting a stroked path to a filled outline. More...
#include "donner/base/Path.h"
Public Member Functions | |
| bool | operator== (const StrokeStyle &other) const =default |
| Defaulted memberwise equality. Used as a cache key by the Geode stroke-encode cache (design doc 0030 Milestone 2): a cached Path::strokeToFill result is reused only when the source StrokeStyle still compares equal. | |
Public Attributes | |
| double | width = 1.0 |
| Stroke width. | |
| LineCap | cap = LineCap::Butt |
| Line cap style for open subpath endpoints. | |
| LineJoin | join = LineJoin::Miter |
| Line join style for corners between segments. | |
| double | miterLimit = 4.0 |
| Maximum miter length ratio (as per SVG stroke-miterlimit). | |
| std::vector< double > | dashArray |
| Dash pattern lengths alternating on/off segments (SVG stroke-dasharray). Empty vector means solid stroke. If the vector has an odd number of entries, the pattern is implicitly doubled per the SVG spec. | |
| double | dashOffset = 0.0 |
| Initial phase offset along the dash pattern (SVG stroke-dashoffset). Positive values shift the dash pattern forward; negative values shift it backward. The phase wraps modulo the pattern length. | |
| double | pathLength = 0.0 |
| SVG pathLength attribute. When non-zero, dasharray values and dashoffset are interpreted relative to this length rather than the actual path length, so all dash distances are scaled by actualLength / pathLength. Zero (the default) means use the actual path length unchanged. | |
Parameters for converting a stroked path to a filled outline.