Spaces:
Running
Running
Revert to v9 as default (v10 kept as reverted)
Browse filesFiles changed (4)
- BACKLOG.md+6-2
- README.md+1-1
- src/main.ts+3-1
- src/versions.ts+5-4
99 unmodified lines10010110210310410510639 unmodified lines14614714814915015115299 unmodified linesOpenRouter shadow_3 / shadow_6). They follow the hands every frame, pinned or not. Uses thelogo alpha mask (`mask-type: alpha`), which Figma may not honour on SVG import.## v9: one press arcThe edge bow is one press arc for the whole logo instead of one bow per path: the pressededge points (same rule as v8's edge bow) are gathered from every path, split into groups39 unmodified lines17 → 26.7 px at one spot) or the fit switches which edge rays it leaves out (Pydantic, ~5 px);springs ease these over ~0.2 s while dragging.## v10 (current): smooth swell fitv9 with Huggy's moon swells fitted smoothly, so a swell never snaps between shapes whiledragging. Each ray's openness fades in (0 → 1) with its room to the pocket's far wall and with99 unmodified lines10010110210310410510639 unmodified lines14614714814915015115215315415515699 unmodified linesOpenRouter shadow_3 / shadow_6). They follow the hands every frame, pinned or not. Uses thelogo alpha mask (`mask-type: alpha`), which Figma may not honour on SVG import.## v9 (current): one press arcThe edge bow is one press arc for the whole logo instead of one bow per path: the pressededge points (same rule as v8's edge bow) are gathered from every path, split into groups39 unmodified lines17 → 26.7 px at one spot) or the fit switches which edge rays it leaves out (Pydantic, ~5 px);springs ease these over ~0.2 s while dragging.## v10 (reverted): smooth swell fitReverted: blending trims / merges made the swells stop being clean moon arcs (a blend ofarcs isn't an arc; merging swells showed two lumps). v9 is the default again.v9 with Huggy's moon swells fitted smoothly, so a swell never snaps between shapes whiledragging. Each ray's openness fades in (0 → 1) with its room to the pocket's far wall and with
40 unmodified lines4142434445464740 unmodified linesHuggy's swell and both logo bows, so everything squishes harder the further the logo ispushed in, up to the set maximums. The sidebar's "Squish tuning" panel (`src/tuner.ts`)edits every setting live and records / exports "sweet spots" as JSON.- `src/versions.ts` lists every stage of the squish (v1 Figma bend … v10 smooth swell fit, the current one) with ashort description; the sidebar's Version dropdown switches between them (engine, defaults andrelevant sliders) for quick comparison. v6 (push field, reverted) lives in `src/warpField.ts`.- `src/hands.ts` keeps the right hand near home (small snap to the nearest edge) and lets40 unmodified lines4142434445464740 unmodified linesHuggy's swell and both logo bows, so everything squishes harder the further the logo ispushed in, up to the set maximums. The sidebar's "Squish tuning" panel (`src/tuner.ts`)edits every setting live and records / exports "sweet spots" as JSON.- `src/versions.ts` lists every stage of the squish (v1 Figma bend … v9 one press arc, the current one; v10 was tried and reverted) with ashort description; the sidebar's Version dropdown switches between them (engine, defaults andrelevant sliders) for quick comparison. v6 (push field, reverted) lives in `src/warpField.ts`.- `src/hands.ts` keeps the right hand near home (small snap to the nearest edge) and lets
100 unmodified lines101102103104105106107100 unmodified lineslet warp: LogoWarp | FieldWarp | null = null;// Selected squish version (Version dropdown); remembered across reloads.const VERSION_KEY = 'hugging-partnership.version';let version: Version = VERSIONS.find((v) => v.id === localStorage.getItem(VERSION_KEY)) ?? CURRENT_VERSION;let squish = 0; // global squish level 0..1 (how deep the logo is in Huggy)// How close (px) the logo must get to the right cheek before the mouth cover starts to grow.const DEFAULT_COVER_REACH = 74; // designer sweet spots: 77 (Pydantic), 70 (Fal)100 unmodified lines101102103104105106107108109100 unmodified lineslet warp: LogoWarp | FieldWarp | null = null;// Selected squish version (Version dropdown); remembered across reloads.const VERSION_KEY = 'hugging-partnership.version';// A saved choice of a reverted version falls back to the current one.const savedVersion = VERSIONS.find((v) => v.id === localStorage.getItem(VERSION_KEY));let version: Version = savedVersion && !savedVersion.label.includes('(reverted)') ? savedVersion : CURRENT_VERSION;let squish = 0; // global squish level 0..1 (how deep the logo is in Huggy)// How close (px) the logo must get to the right cheek before the mouth cover starts to grow.const DEFAULT_COVER_REACH = 74; // designer sweet spots: 77 (Pydantic), 70 (Fal)
171 unmodified lines17217317417517617717817 unmodified lines19619719819920020120220317 unmodified lines221222223224171 unmodified lines},{id: 'v9',label: 'v9 · One press arc',desc: 'v8, but the edge bow is one press arc across every path facing Huggy, so a logo whose pressed side is made of separate pieces (e.g. Mistral’s stacked bars) gets one wide bow instead of one bow per piece. Single smooth edges look as in v8.',engine: 'bows',mode: { profile: 'moon', pocket: 'lowerLeft', combine: 'max', limit: 'ease', corners: true, outerOnly: true, smoothHandles: true, shadows: true, pressArc: true },17 unmodified lines},{id: 'v10',label: 'v10 · Smooth swell fit (current)',desc: 'v9, but Huggy’s swell arcs are fitted smoothly: neighbouring swells merge gradually and the arc’s ends slide instead of jumping, so a swell never snaps between shapes while dragging.',engine: 'bows',mode: { profile: 'moon', pocket: 'lowerLeft', combine: 'max', limit: 'ease', corners: true, outerOnly: true, smoothHandles: true, shadows: true, pressArc: true },depthDriven: true,17 unmodified lines},];export const CURRENT_VERSION = VERSIONS[VERSIONS.length - 1];171 unmodified lines17217317417517617717817 unmodified lines19619719819920020120220317 unmodified lines221222223224225171 unmodified lines},{id: 'v9',label: 'v9 · One press arc (current)',desc: 'v8, but the edge bow is one press arc across every path facing Huggy, so a logo whose pressed side is made of separate pieces (e.g. Mistral’s stacked bars) gets one wide bow instead of one bow per piece. Single smooth edges look as in v8.',engine: 'bows',mode: { profile: 'moon', pocket: 'lowerLeft', combine: 'max', limit: 'ease', corners: true, outerOnly: true, smoothHandles: true, shadows: true, pressArc: true },17 unmodified lines},{id: 'v10',label: 'v10 · Smooth swell fit (reverted)',desc: 'v9, but Huggy’s swell arcs are fitted smoothly (blended trims and merges): no snaps while dragging, but the swells stop being clean moon arcs, so it was reverted.',engine: 'bows',mode: { profile: 'moon', pocket: 'lowerLeft', combine: 'max', limit: 'ease', corners: true, outerOnly: true, smoothHandles: true, shadows: true, pressArc: true },depthDriven: true,17 unmodified lines},];// The default version (v10 was tried and reverted: its blended swells weren't clean moon arcs).export const CURRENT_VERSION = VERSIONS.find((v) => v.id === 'v9')!;
BACKLOG.md+6-2
README.md+1-1
src/main.ts+3-1
src/versions.ts+5-4