From 959518a1bb1acba0779ac25b70226757d7f22607 Mon Sep 17 00:00:00 2001 From: seveibar Date: Thu, 3 Oct 2024 21:03:34 -0700 Subject: [PATCH] create center for sphere --- lib/jscad-fns/sphere.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/jscad-fns/sphere.tsx b/lib/jscad-fns/sphere.tsx index c55c4cf..e6b36df 100644 --- a/lib/jscad-fns/sphere.tsx +++ b/lib/jscad-fns/sphere.tsx @@ -1,3 +1,4 @@ +import { withOffsetProp } from "lib/wrappers/with-offset-prop" import { withColorProp } from "../wrappers/with-color-prop" export type SphereProps = { @@ -9,4 +10,4 @@ const SphereBase = ({ radius, segments }: SphereProps) => { return } -export const Sphere = withColorProp(SphereBase) +export const Sphere = withColorProp(withOffsetProp(SphereBase))