Skip to content

Commit

Permalink
create center for sphere
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Oct 4, 2024
1 parent b94bb2c commit 959518a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/jscad-fns/sphere.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { withOffsetProp } from "lib/wrappers/with-offset-prop"
import { withColorProp } from "../wrappers/with-color-prop"

export type SphereProps = {
Expand All @@ -9,4 +10,4 @@ const SphereBase = ({ radius, segments }: SphereProps) => {
return <sphere radius={radius} segments={segments || 32} />
}

export const Sphere = withColorProp(SphereBase)
export const Sphere = withColorProp(withOffsetProp(SphereBase))

0 comments on commit 959518a

Please sign in to comment.