Repository navigation
v1.3.0: Laser pointer
Decks can now point at what the speaker is talking about, from the deck or from the presenter window. The slide format is unchanged.
What changed
- Laser pointer (L). The cursor on the stage becomes a red dot with a short fading trail. The block under it (card, table row, list item, figure, bridge line) gets a quiet ring, and everything fades after 2.5 seconds without movement. Press L again to turn it off.
- Point from the presenter window. With the laser on, moving the mouse over the current-slide preview moves the dot on the audience screen. L toggles the laser in both windows, and the presenter status line shows "laser on".
- Idle cursor hides itself. On the deck, the system cursor disappears after 2.5 seconds still, even with the laser off.
- Theme tokens. The look comes from
--laser,--laser-size,--laser-radius,--laser-halo,--laser-target-ringand--laser-fadeintokens.css, with rules inchrome.css. The starter theme includes them. A theme without--laser-sizekeeps the normal cursor, and L shows a short message instead. The examples work this way and are unchanged. - Sync. A new
lasermessage joins the existing deck and presenter protocol (version 1). Positions are in canvas units, so any window size works. - Docs. The keys table and features list in the README, the help overlay (
?) and therethemeskill now cover the laser. - Community standards. Adds a contributing guide, code of conduct, security policy, and issue and pull request templates.
Upgrading an existing deck
- Copy
src/engine/from this release (new:src/engine/laser.ts). - Add the six
--laser-*tokens to yoursrc/theme/tokens.css, and the.laserrules to yoursrc/theme/chrome.css, choosing colours that suit your theme. Without them, everything else still works and L only shows a message. - Run
pnpm checkandpnpm test:deck, then try L inpnpm devand in/presenter.html.
Your slides and deck manifest do not need changes.
Validation
pnpm check: 80 tests passed, including 3 new laser unit tests. The same nine CSS specificity warnings as before.pnpm test:engine: 72 passed, 4 skipped, in Chromium and WebKit. Firefox was not run. New test: on a theme without laser styles, L keeps the cursor and shows the message.- Deck suite in Chromium: all passed. New test: the dot follows the mouse on the deck, and follows the presenter's pointer over the current-slide preview.
- Checked visually in headless Chromium at 1920x1080. Print and PDF exports hide the laser, like the rest of the chrome.
Full changes: v1.2.0...v1.3.0