Skip to content

v1.3.0: Laser pointer

Latest

Choose a tag to compare

@KhaledSaeed18 KhaledSaeed18 released this 03 Nov 09:10

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-ring and --laser-fade in tokens.css, with rules in chrome.css. The starter theme includes them. A theme without --laser-size keeps the normal cursor, and L shows a short message instead. The examples work this way and are unchanged.
  • Sync. A new laser message 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 the retheme skill 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

  1. Copy src/engine/ from this release (new: src/engine/laser.ts).
  2. Add the six --laser-* tokens to your src/theme/tokens.css, and the .laser rules to your src/theme/chrome.css, choosing colours that suit your theme. Without them, everything else still works and L only shows a message.
  3. Run pnpm check and pnpm test:deck, then try L in pnpm dev and 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