Skip to content

Commit

Permalink
refactor(geom): minor internal updates asPolygon()
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed May 25, 2024
1 parent d1fb9bf commit 599572e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/geom/src/as-polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export type AsPolygonFn = {
*
* Currently implemented for:
*
* - {@link Arc}
* - {@link Circle}
* - {@link ComplexPolygon}
* - {@link Ellipse}
Expand Down Expand Up @@ -99,11 +100,11 @@ export const asPolygon = <AsPolygonFn>(
});
},

points: ($: IShape, opts) => [
points: ($: IShape2, opts) => [
new Polygon(vertices($, opts), __attribs($)),
],

points3: ($: IShape, opts) => [
points3: ($: IShape3, opts) => [
new Polygon3(vertices($, opts), __attribs($)),
],
}
Expand Down

0 comments on commit 599572e

Please sign in to comment.