Skip to content

Commit

Permalink
feat(geom): add centroid() & convexHull() impl for Path
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed May 5, 2024
1 parent 74ce227 commit 76aa229
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/geom/src/centroid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const centroid: MultiFn1O<IShape, Vec, Maybe<Vec>> = defmulti<
bpatch: "points",
ellipse: "circle",
line3: "line",
path: "group",
points3: "points",
polyline: "points",
quad: "poly",
Expand Down
1 change: 1 addition & 0 deletions packages/geom/src/convex-hull.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const convexHull: MultiFn1<IShape, IShape> = defmulti<any, IShape>(
cubic: "group",
ellipse: "tri",
line: "tri",
path: "group",
poly: "points",
polyline: "points",
quad: "points",
Expand Down

0 comments on commit 76aa229

Please sign in to comment.