fix: stroke color not working unless path is specified
i found this issue testing encoded paths. If width is not specifed, stroke color does not work Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
eac048977f
commit
186623bfa4
1 changed files with 2 additions and 2 deletions
|
|
@ -511,8 +511,8 @@ const drawPath = (ctx, path, query, pathQuery, z) => {
|
||||||
if ('stroke' in query) {
|
if ('stroke' in query) {
|
||||||
ctx.strokeStyle = query.stroke;
|
ctx.strokeStyle = query.stroke;
|
||||||
}
|
}
|
||||||
// Path Width gets higher priority
|
// Path Stroke gets higher priority
|
||||||
if (pathHasWidth) {
|
if (pathHasStroke) {
|
||||||
ctx.strokeStyle = splitPaths
|
ctx.strokeStyle = splitPaths
|
||||||
.find((x) => x.startsWith('stroke:'))
|
.find((x) => x.startsWith('stroke:'))
|
||||||
.replace('stroke:', '');
|
.replace('stroke:', '');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue