Repository navigation
v42 Junction: branching tours, tilt-shift bokeh, print PDF, and galleries - #33
Merged
Merged
Conversation
A tour hotspot gets a target (a page id, or null for the next step). New DOM-free src/state/tour-core.js normalizes tours and turns targets into step indexes when the steps are collected, so blank pages and deleted targets fall back to the next step. The shared player follows goto, retraces visited steps on Back and preloads jump targets; the share manifest keeps a goto only when it is a step inside the tour. The Tour panel gets a Goes to picker, the board draws the jumps as dashed arrows (not stored), and schema goes 25 to 26. Also fixes two older bugs found on the way: the callout position picker stored the old side, and dragging a page tile other than the one being edited filed the editor's design under the dragged page. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016tciSQnGXkzRKmBjqMtyUC
Bokeh gets a second mode: tilt-shift keeps one band sharp (position, width, softness, angle) and needs no subject mask, so it works on any image and on every composition path. The lens blur is now cached per amount, and the tilt band and the new Motion Studio focus lane only composite cached layers: a pull moves the band, or in subject mode fades the blur. state.bokeh gains mode / tilt / pull through normalizeBokeh (schema 26). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016tciSQnGXkzRKmBjqMtyUC
…xpire A new gallery manifest kind holds up to 30 captioned images; the Share panel offers it as Roll (every shot, rendered with the design as set) and Pins (this page's pinned steps). The viewer shows a grid with a keyboard-friendly lightbox, and the link preview is a tile poster. Links can last 1, 7 or 30 days. The client sends only the choice; share-commit stamps expiresAt, the manifest and page routes answer 404 once it has passed, and the daily sweep deletes the files through a marker whose name carries the time. Deleting a link removes its marker. No new function or route. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016tciSQnGXkzRKmBjqMtyUC
A new Print PDF section (Export, Pro) places the design on A3 to business-card paper or a custom size: Fit inside a margin or Fill edge to edge, 0 to 10 mm bleed, crop marks, this page or all pages, JPEG or PNG. Geometry lives in the DOM-free render/print-core.js (trim, bleed and page boxes, the source crop for Fill, mark segments, effective dpi) and is covered by tests. The PDF is RGB and uses the design's own pixels with an optional smooth upscale; the panel shows the real dpi and warns when it is low. Settings are per-viewer prefs (glint_print_prefs), so no schema change. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016tciSQnGXkzRKmBjqMtyUC
Version 42.0.0, the v42 Junction header, What's new, the changelog spotlight and entry, a Features page line, and a real junction-tour shot (the Iris steps as a branching tour in the viewer). CLAUDE.md: state registry (tour targets, Bokeh tilt and pull, schema 26), the v42 shipped row, share kinds and expiry, and the backlog. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016tciSQnGXkzRKmBjqMtyUC
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
One conflict, in scripts/regression-tests.mjs: both import lines are kept. Also makes the waitlist privacy test deterministic: it looked for the fragments ada, grace and example in random base64, which matched by chance about once in a hundred runs; it now looks for the addresses themselves. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016tciSQnGXkzRKmBjqMtyUC
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This release adds four major features to Glint:
Branching Tours
src/state/tour-core.jsprovides DOM-free tour helpers:normalizeTour(),resolveTourTargets(), andtourLinks()for validating and resolving page targets to step indicessrc/share/tour-player.js) now tracks visited steps and supports back navigation via atrailarrayTilt-Shift Bokeh & Focus Pull
tilt(sharp band with blur growing away) alongside existingsubjectmodesrc/render/bokeh-core.jsaddstiltBand()geometry andpullEase()easing for Motion Studio focus pullsblurCachekeeps blurred copies by input + settings, so focus pull and tilt band only composite without re-running expensive lens blurtiltActive()andfocusProgress()helpers insrc/render/bokeh.jsdrive the new modesPrint-Ready PDF Export
src/features/print-pdf.jsandsrc/render/print-core.jsprovide print geometry and PDF generationGalleries (Roll Shots & Pins)
galleryshare kind for collections of images with captionssrc/features/share-links.jsaddscollectGallery()to render Roll shots or page Pins as a gallerysrc/share/viewer.js) renders galleries as responsive grid with lightbox modalsrc/share/share-poster.jsgenerates gallery posters (up to 4 tiles + count chip)src/features/roll.jsexportsrenderRollShots()for iterating shots with callbackSupporting Changes
EXPIRYconstants (never, 1d, 7d, 30d) andisExpired()checksrc/state/motion-clock.jsaddslocalProgress()for Motion Studio timeline integrationaction: 'next'hotspots gaintarget: nulland drop the action fieldAll new modules are DOM-free where possible (tour-core, bokeh-core, print-core) to support testing and reuse.