diff options
| author | bobzel <zzzman@gmail.com> | 2024-11-22 10:27:33 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-11-22 10:27:33 -0500 |
| commit | 89424e0a8efc6cf3364a2fd1ffc85c9d0d837453 (patch) | |
| tree | 9f0bb770707b2e4239c0618d7435976bcc1c0f16 /src/client/util/bezierFit.ts | |
| parent | 7b38bbc4d845fa524e8310a0ec05b0e776b47c82 (diff) | |
added initial Firefly endpoint and hanged smartDrawHandler to generate an image and an svg.
Diffstat (limited to 'src/client/util/bezierFit.ts')
| -rw-r--r-- | src/client/util/bezierFit.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/util/bezierFit.ts b/src/client/util/bezierFit.ts index d52460023..84b27e84c 100644 --- a/src/client/util/bezierFit.ts +++ b/src/client/util/bezierFit.ts @@ -703,7 +703,6 @@ export function SVGToBezier(name: SVGType, attributes: any): Point[] { coordList.push({ X: parseInt(match[1]), Y: parseInt(match[2]) }); coordList.push({ X: parseInt(match[1]), Y: parseInt(match[2]) }); coordList.push({ X: parseInt(match[3]), Y: parseInt(match[4]) }); - coordList.push({ X: parseInt(match[3]), Y: parseInt(match[4]) }); lastPt = { X: parseInt(match[3]), Y: parseInt(match[4]) }; } else if (match[0].startsWith('C')) { coordList.push({ X: parseInt(match[5]), Y: parseInt(match[6]) }); @@ -720,7 +719,7 @@ export function SVGToBezier(name: SVGType, attributes: any): Point[] { } }); const hasZ = attributes.d.match(/Z/); - if (hasZ) { + if (hasZ || attributes.fill) { coordList.push(lastPt); coordList.push(startPt); coordList.push(startPt); |
