diff --git a/apps/ui/components/primitives-construction-motion.tsx b/apps/ui/components/primitives-construction-motion.tsx
index f0f8a6975..4921c5156 100644
--- a/apps/ui/components/primitives-construction-motion.tsx
+++ b/apps/ui/components/primitives-construction-motion.tsx
@@ -1,6 +1,7 @@
import type { ReactNode } from "react";
import {
morphCycleDuration,
+ morphHoldDuration,
morphKeyTimes,
morphStageDuration,
} from "./primitives-morph-timing";
@@ -70,3 +71,31 @@ export function ConstructionAnnotation({
);
}
+
+export function ConstructionStage({
+ children,
+ stage,
+}: {
+ children: ReactNode;
+ stage: number;
+}) {
+ return (
+
+
+ {children}
+
+ );
+}
diff --git a/apps/ui/components/primitives-grid-label-mask.tsx b/apps/ui/components/primitives-grid-label-mask.tsx
new file mode 100644
index 000000000..fd605aa30
--- /dev/null
+++ b/apps/ui/components/primitives-grid-label-mask.tsx
@@ -0,0 +1,45 @@
+import {
+ ConstructionAnnotation,
+ ConstructionStage,
+} from "./primitives-construction-motion";
+import {
+ SwitchRadiusVisibility,
+ SwitchThumbVisibility,
+} from "./primitives-switch";
+
+// Clear only the grid segments behind each stage’s visible annotations.
+const labelGaps = [
+ // Avatar radius and angle.
+ "M324 132V163 M283 164H354",
+ // Pill radius and width.
+ "M172 164H200 M284 298V320",
+ // Switch width; its thumb radius follows a separate timeline below.
+ "M284 298V320",
+ // Button padding.
+ "M164 240V260 M140 244H168",
+ // Card inset and inner width.
+ "M374 204H394 M284 298V320",
+ // Slider travel and percentage labels.
+ "M284 121V142 M273 124H295 M124 298V320 M284 298V320 M444 298V320",
+];
+
+export function PrimitivesGridLabelMask() {
+ return (
+
+ {labelGaps.map((d, stage) => (
+
+
+
+
+
+ ))}
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/apps/ui/components/primitives-morph.tsx b/apps/ui/components/primitives-morph.tsx
index 59c0ea33d..503628488 100644
--- a/apps/ui/components/primitives-morph.tsx
+++ b/apps/ui/components/primitives-morph.tsx
@@ -2,6 +2,8 @@
import { useEffect, useId, useRef } from "react";
import { BlueprintDrawing } from "./blueprint-drawing";
+import { ConstructionStage } from "./primitives-construction-motion";
+import { PrimitivesGridLabelMask } from "./primitives-grid-label-mask";
import { MorphDetails, morphDetailIds } from "./primitives-morph-details";
import { secondaryLine } from "./primitives-morph-style";
import {
@@ -121,22 +123,8 @@ const tangentIds = [
] as const;
const gridPaths = [
- "M124 68V298 M124 320V348",
- "M164 68V240 M164 260V348",
- "M204 68V348",
- "M244 68V348",
- "M284 68V121 M284 142V298 M284 320V348",
- "M324 68V132 M324 163V348",
- "M364 68V348",
- "M404 68V348",
- "M444 68V298 M444 320V348",
- "M104 84H464",
- "M104 124H273 M295 124H464",
- "M104 164H172 M200 164H283 M354 164H464",
- "M104 204H374 M394 204H464",
- "M104 244H140 M168 244H464",
- "M104 284H464",
- "M104 324H464",
+ ...Array.from({ length: 9 }, (_, index) => `M${124 + index * 40} 68V348`),
+ ...Array.from({ length: 7 }, (_, index) => `M104 ${84 + index * 40}H464`),
];
export function PrimitivesMorph({ paused }: { paused: boolean }) {
@@ -211,6 +199,7 @@ export function PrimitivesMorph({ paused }: { paused: boolean }) {
strokeOpacity="1"
/>
+
{/* Origin at the circle center aligns a hatch line with its 45° radius. */}
{morphDetailIds.map((stage, index) => (
-
-
-
+
+
+
+
))}
diff --git a/apps/ui/components/primitives-switch.tsx b/apps/ui/components/primitives-switch.tsx
index 3a9496d4d..a4ae8d95a 100644
--- a/apps/ui/components/primitives-switch.tsx
+++ b/apps/ui/components/primitives-switch.tsx
@@ -47,15 +47,7 @@ export function SwitchConstruction() {
export function SwitchThumb() {
return (
-
+
{/* Geometry resets after the whole thumb is hidden. */}
-
+
);
}
+
+export function SwitchThumbVisibility() {
+ return (
+
+ );
+}
+
+export function SwitchRadiusVisibility() {
+ return (
+
+ );
+}