We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__samples
1 parent 5d594c6 commit 3d7bd8cCopy full SHA for 3d7bd8c
packages/geom/src/as-polygon.ts
@@ -88,7 +88,7 @@ export const asPolygon = <AsPolygonFn>(
88
),
89
90
path: ($: Path, opts) => {
91
- const tmp = new Path();
+ const tmp = new Path([], [], $.attribs);
92
return [$.segments, ...$.subPaths].map((segments) => {
93
tmp.segments = segments;
94
return new Polygon(vertices(tmp, opts), __attribs($));
packages/geom/src/as-polyline.ts
@@ -106,7 +106,7 @@ export const asPolyline = <AsPolylineFn>(
106
],
107
108
109
110
111
112
const pts = vertices(tmp, opts);
0 commit comments