Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

slides: reveal steps are discoverable — verbs, canvas badges, help (#470)

nyblneta8d46d714382
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1467c420..0a138f5e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1339,6 +1339,13 @@ jobs:
# step. Decisions in slides/src/steps.ts, DOM-free (#282, option 2).
run: node scripts/test-slides-steps.ts
+ - name: Reveal authoring rig
+ # Reading order (top-to-bottom, then left-to-right, rows by vertical
+ # overlap) is deterministic; the verbs continue the slide's sequence;
+ # the badge cycle never reaches 0; and the badge layer is editor
+ # chrome that render/present/preview do not know.
+ run: node scripts/test-slides-reveal-ui.ts
+
- name: Web links and bullets rig
# A link is one thing in four places — isWebUrl — and every surface
# that lets a URL in or out asks it: the shape gate, the text
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 388dc4a0..a67124c9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -58,6 +58,17 @@ pre-1.0.
the slide number, and an audience following a live broadcast follows the
steps too. A deck opened in an older version shows every element at once.
The other half of discussion #282, and the one its author wanted more.
+- **Reveals are one right-click away.** Select the elements, right-click,
+ *Reveal in order*: they are numbered top-to-bottom, then left-to-right, the
+ way a reader scans the slide — a bullet list builds down, a row of cards
+ builds across. *Reveal together* puts the selection on one step and
+ *Remove reveal* shows it with the slide again; the same three sit in the
+ panel's Presenting section, for one element or many. Every stepped element
+ wears a numbered badge on the canvas — click a badge to move that element
+ to the next step — and the badges are editor chrome only: thumbnails, the
+ show, print and file-manager previews never carry them. The `?` sheet names
+ the entry point. Measured on a fresh deck with no panel open: a reveal is
+ three clicks away (click, right-click, *Reveal in order*).
- **Clickable links.** Give any element a *Web link* in the Presenting
section, or type `[caption](https://…)` in a text box, and clicking it
during the show opens the page in a new tab — never navigating the deck
diff --git a/scripts/test-slides-reveal-ui.ts b/scripts/test-slides-reveal-ui.ts
new file mode 100644
index 00000000..9909ccac
--- /dev/null
+++ b/scripts/test-slides-reveal-ui.ts
@@ -0,0 +1,102 @@
+#!/usr/bin/env node
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+// Reveal authoring rig: reading order, the three verbs, the badge cycle, and
+// the badges never reaching a render output.
+//
+// node scripts/test-slides-reveal-ui.ts
+//
+// WHAT THIS PROVES. "Reveal in order" is a pure function of the selection's
+// geometry — top-to-bottom, then left-to-right, rows found by vertical
+// overlap — so two runs give the same numbers and a list numbers down while a
+// row of cards numbers across. The verbs continue the slide's sequence rather
+// than restarting it; Remove clears only what was stepped; a badge click
+// walks 1…max+1 and wraps, never to 0. And the badge layer is editor chrome
+// beside the render surface: render.ts, present.ts and preview.ts do not know
+// its class name, so thumbnails, present, print and the file-manager preview
+// cannot carry one.
+
+import { readFileSync } from 'node:fs'
+import { fileURLToPath } from 'node:url'
+import { dirname, join } from 'node:path'
+import { readingOrder, revealInOrder, revealTogether, removeReveal, cycleStep, hasSteps, type Placed } from '../slides/src/editor/reveal.ts'
+
+let failures = 0
+let checks = 0
+function ok(cond: boolean, msg: string) {
+ checks++
+ if (!cond) { failures++; console.log(` FAIL ${msg}`) }
+ else console.log(` ok ${msg}`)
+}
+const root = join(dirname(fileURLToPath(import.meta.url)), '..')
+const read = (f: string) => readFileSync(join(root, f), 'utf8')
+const el = (id: string, x: number, y: number, w = 200, h = 60, step?: number): Placed =>
+ ({ id, x, y, w, h, ...(step ? { fx: { step } } : {}) })
+const ids = (els: { id: string }[]) => els.map((e) => e.id).join(' ')
+const steps = (p: { id: string; step: number }[]) => p.map((q) => `${q.id}:${q.step}`).join(' ')
+
+console.log('reading order\n')
+const list = [el('c', 100, 300), el('a', 100, 100), el('b', 100, 200)]
+ok(ids(readingOrder(list)) === 'a b c', 'a bullet list numbers down the page')
+const cards = [el('r', 900, 200, 300, 200), el('l', 100, 200, 300, 200), el('m', 500, 200, 300, 200)]
+ok(ids(readingOrder(cards)) === 'l m r', 'a row of cards numbers across')
+const ragged = [el('r', 900, 210, 300, 180), el('l', 100, 200, 300, 220), el('m', 500, 190, 300, 200)]
+ok(ids(readingOrder(ragged)) === 'l m r', 'cards a few pixels off each other are still one row')
+const grid = [el('d', 500, 400), el('b', 500, 100), el('c', 100, 400), el('a', 100, 100)]
+ok(ids(readingOrder(grid)) === 'a b c d', 'a 2×2 grid reads row by row')
+const twoCol = [el('r1', 700, 100, 200, 60), el('l2', 100, 180, 200, 60), el('l1', 100, 100, 200, 60), el('r2', 700, 180, 200, 60)]
+ok(ids(readingOrder(twoCol)) === 'l1 r1 l2 r2', 'two columns of lines interleave by row, as a reader scans them')
+const tall = [el('title', 100, 40, 1000, 80), el('body', 100, 140, 1000, 400), el('side', 900, 200, 200, 60)]
+ok(ids(readingOrder(tall)) === 'title body side', 'an element inside a taller neighbour\'s extent joins its row, after it')
+const shuffled = [...grid].reverse()
+ok(ids(readingOrder(shuffled)) === ids(readingOrder(grid)), 'order does not depend on input order')
+ok(ids(readingOrder([el('y', 100, 100), el('x', 100, 100)])) === 'x y', 'exact ties break by id — deterministic')
+ok(readingOrder([]).length === 0, 'empty selection, empty order')
+
+console.log('\nreveal in order\n')
+const slide = [el('t', 100, 40, 1000, 80), el('p1', 100, 200), el('p2', 100, 300), el('p3', 100, 400)]
+ok(steps(revealInOrder(slide, [slide[3], slide[1], slide[2]])) === 'p1:1 p2:2 p3:3', 'three bullets → steps 1, 2, 3 in reading order')
+const withBase = [el('t', 100, 40, 1000, 80, 2), el('p1', 100, 200), el('p2', 100, 300)]
+ok(steps(revealInOrder(withBase, [withBase[1], withBase[2]])) === 'p1:3 p2:4', 'a second batch continues after the slide\'s last step')
+const renumber = [el('p1', 100, 200, 200, 60, 5), el('p2', 100, 300, 200, 60, 9)]
+ok(steps(revealInOrder(renumber, renumber)) === 'p1:1 p2:2', 're-ordering the same batch renumbers it from 1 (its own steps do not count as a base)')
+ok(steps(revealInOrder(slide, [slide[2]])) === 'p2:1', 'one element → the next free step')
+
+console.log('\nreveal together / remove\n')
+ok(steps(revealTogether(slide, [slide[1], slide[2], slide[3]])) === 'p1:1 p2:1 p3:1', 'together → one step for all')
+ok(steps(revealTogether(withBase, [withBase[1], withBase[2]])) === 'p1:3 p2:3', '…after the rest of the slide')
+ok(steps(removeReveal([el('a', 0, 0, 1, 1, 2), el('b', 0, 0, 1, 1), el('c', 0, 0, 1, 1, 1)])) === 'a:0 c:0', 'remove clears only the stepped ones')
+ok(removeReveal([el('b', 0, 0, 1, 1)]).length === 0, 'nothing stepped → nothing to write (no spurious undo step)')
+
+console.log('\nbadge cycle\n')
+const cyc = [el('a', 0, 0, 1, 1, 1), el('b', 0, 0, 1, 1, 2), el('c', 0, 0, 1, 1, 3)]
+ok(cycleStep(cyc, cyc[0]) === 2, '1 → 2')
+ok(cycleStep(cyc, cyc[2]) === 1, 'at the top (3, others max 2 → top 3) wraps to 1')
+ok(cycleStep(cyc, cyc[1]) === 3, '2 → 3')
+ok(cycleStep([el('a', 0, 0, 1, 1, 1)], el('a', 0, 0, 1, 1, 1)) === 1, 'alone on the slide: 1 → 1 (top is 1, wraps)')
+ok(cycleStep([el('a', 0, 0, 1, 1, 1), el('z', 0, 0, 1, 1, 1)], el('a', 0, 0, 1, 1, 1)) === 2, 'joins one past the others\' last step')
+ok([1, 2, 3, 4].every((s) => cycleStep(cyc, el('x', 0, 0, 1, 1, s)) > 0), 'never cycles to 0 — removing is a verb, not a click')
+ok(!hasSteps(slide) && hasSteps(withBase), 'badges show only when the slide has a step')
+
+console.log('\nbadges never reach a render output\n')
+for (const f of ['slides/src/render.ts', 'slides/src/present.ts', 'slides/src/preview.ts', 'slides/src/print.ts']) {
+ let src = ''
+ try { src = read(f) } catch { continue }
+ ok(!/step-badge|stepbadges|StepBadges/.test(src), `${f} knows nothing of the badge`)
+}
+const canvas = read('slides/src/editor/canvas.ts')
+ok(/new StepBadges\(store, this\.stage,/.test(canvas), 'the layer mounts on the STAGE beside the render surface, not inside it')
+const badges = read('slides/src/editor/stepbadges.ts')
+ok(/hasSteps\(slide\.elements\)/.test(badges), 'the layer stands down on a slide without steps')
+ok(!/renderSlide|sanitizeHtml/.test(badges), 'the badge module never renders slide content')
+
+console.log('\nentry points\n')
+const editor = read('slides/src/editor/editor.ts')
+ok(/label: t\('Reveal in order'\)/.test(editor) && /label: t\('Reveal together'\)/.test(editor) && /label: t\('Remove reveal'\)/.test(editor), 'the element context menu carries the three verbs')
+ok(/Right-click ▸ Reveal in order/.test(editor), 'the ? help sheet names the entry point')
+const panels = read('slides/src/editor/panels.ts')
+ok(/this\.revealRow\(els\)/.test(panels.slice(panels.indexOf('private buildMultiPanel'), panels.indexOf('private buildElementPanel'))), 'a multi-selection panel offers the verbs')
+ok(/this\.revealRow\(\[el\]\)/.test(panels.slice(panels.indexOf('private buildPresentingProps'))), 'the Presenting section offers them for one element')
+
+console.log(`\n${checks - failures}/${checks} checks passed`)
+process.exit(failures ? 1 : 0)
diff --git a/slides/src/editor/canvas.ts b/slides/src/editor/canvas.ts
index 2fcb9f74..bbe839c8 100644
--- a/slides/src/editor/canvas.ts
+++ b/slides/src/editor/canvas.ts
@@ -20,6 +20,7 @@ import { simplifyPoints } from './patheditor'
const SVG_NS = 'http://www.w3.org/2000/svg'
type DrawKind = 'line' | 'path' | 'connector' | 'free' | 'poly'
import { CommentsUI } from './comments'
+import { StepBadges } from './stepbadges'
import type { Peer } from '../sync/session'
/** How far a finger may travel and still count as a tap rather than a drag.
@@ -69,6 +70,7 @@ export class SlideCanvas {
private bezierEditor!: BezierEditor
private drawOverlay: HTMLElement | null = null
private comments!: CommentsUI
+ private stepBadges!: StepBadges
constructor(
private wrap: HTMLElement,
@@ -315,6 +317,7 @@ export class SlideCanvas {
}) as EventListener)
this.comments = new CommentsUI(store, this.stage, () => this.scale)
+ this.stepBadges = new StepBadges(store, this.stage, () => this.scale)
// Alt/Option-click digs through overlapping elements: first click grabs
// the topmost, each further alt-click steps one element deeper (wrapping).
@@ -519,6 +522,7 @@ export class SlideCanvas {
this.moveable.updateRect()
if (this.zoomLabel) this.zoomLabel.textContent = `${Math.round(this.scale * 100)}%`
this.comments?.refresh()
+ this.stepBadges?.refresh()
this.drawRemote()
}
@@ -958,6 +962,7 @@ export class SlideCanvas {
// otherwise shift-click resurrects targets from a previously shown slide.
this.selecto.setSelectedTargets(targets)
this.updateTableHandles()
+ this.stepBadges?.refresh()
}
// --- column resize handles (single selected table) --------------------------
diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.ts
index 2849b670..745fa177 100644
--- a/slides/src/editor/editor.ts
+++ b/slides/src/editor/editor.ts
@@ -32,6 +32,7 @@ import { openSpeakerWindow, speakerIdleBody } from '../screens'
import { borderPoint, boxCenter, lineEndpoints, setLineEndpoints, sideMidpoint } from './lineedit'
import { ICONS } from '../icons'
import { t, setLocale, locale, localeChoices, LOCALE_CHOICES, applyDirection, isRtl } from '../i18n'
+import { stepOf } from '../steps'
import { availablePacks, fetchPack, markFileSaved, packCoverage, packsInFile, stageForFile, unstageFromFile } from '../packs'
import { injectFonts } from '../fonts'
import { appConfig } from '../../../kernel/src/app.ts'
@@ -2781,6 +2782,7 @@ export class Editor {
['B', t('Black screen — and back')],
['G', t('All slides in the speaker view — pick one to jump to')],
['← · →', t('Previous · next slide, or the next reveal step on a slide that has them')],
+ [t('Right-click ▸ Reveal in order'), t('Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order')],
['Esc', t('End the show')],
])
const tips = div('ed-help-sec')
@@ -3177,6 +3179,12 @@ export class Editor {
? { label: t('Ungroup'), hint: '⇧⌘G', run: () => this.panel.ungroup(els) }
: { label: t('Group'), hint: '⌘G', disabled: els.length < 2, run: () => this.panel.group(els) },
'sep',
+ // Reveal (fx.step) from the menu — the one place a user who has never
+ // opened the Presenting section will find it. In order = reading order.
+ { label: t('Reveal in order'), run: () => this.panel.revealInOrder(els) },
+ { label: t('Reveal together'), run: () => this.panel.revealTogether(els) },
+ { label: t('Remove reveal'), disabled: !els.some((e) => stepOf(e) > 0), run: () => this.panel.removeReveal(els) },
+ 'sep',
{ label: t('Delete'), hint: '⌫', danger: true, run: () => this.deleteSelection() },
]
}
diff --git a/slides/src/editor/panels.ts b/slides/src/editor/panels.ts
index 933881cf..c41b8032 100644
--- a/slides/src/editor/panels.ts
+++ b/slides/src/editor/panels.ts
@@ -14,6 +14,8 @@ import { isMacOS } from '../screens'
import { CHART_PRESETS } from '../charts'
import { FONT_CHOICES, firstFamily, injectFonts } from '../fonts'
import { CODE_SCOPES, DEFAULT_CODE_COLORS } from '../code'
+import { revealInOrder, revealTogether, removeReveal, type StepPatch } from './reveal'
+import { stepOf } from '../steps'
import { ICONS } from '../icons'
import { t } from '../i18n'
import { lsJson, lsSet } from '../../../kernel/src/storage.ts'
@@ -473,6 +475,8 @@ export class PropsPanel {
this.opsRow(els)
this.section(t('Arrange'))
this.arrangeRows(els)
+ this.section(t('Presenting'))
+ this.revealRow(els)
}
private buildElementPanel(el: SlideElement) {
@@ -719,6 +723,9 @@ export class PropsPanel {
}
// "Animate on click": hidden until the n-th → on this slide (0 = with the
// slide). The element's Enter plays when its step comes, or a plain fade.
+ // The verbs come first (one click, no number to think about); the number
+ // row underneath is the precise control, and the canvas badge cycles it.
+ this.revealRow([el])
this.row('Reveal step', this.number(el.fx?.step ?? 0, 1,
(v, fin) => { if (fin) setFx({ step: v >= 1 ? Math.floor(v) : undefined }) }))
if (el.fx?.step) {
@@ -2077,6 +2084,58 @@ export class PropsPanel {
this.edit(() => { for (const el of els) el.groupId = gid }, true)
}
+ // --- reveal verbs (editor/reveal.ts decides, this applies) ---------------
+
+ /** Number the selection in reading order: top-to-bottom, then left-to-right. */
+ revealInOrder(els: SlideElement[]) { this.applySteps(revealInOrder(this.store.slide.elements, els)) }
+
+ /** The whole selection on one step, after everything else on the slide. */
+ revealTogether(els: SlideElement[]) { this.applySteps(revealTogether(this.store.slide.elements, els)) }
+
+ /** Shown with the slide again. */
+ removeReveal(els: SlideElement[]) { this.applySteps(removeReveal(els)) }
+
+ private applySteps(patches: StepPatch[]) {
+ if (!patches.length) return
+ this.edit(() => {
+ for (const { id, step } of patches) {
+ const el = this.store.element(id)
+ if (!el) continue
+ const fx = { ...(el.fx ?? {}), step: step > 0 ? step : undefined }
+ if (!fx.enter && !fx.countUp && !fx.ambient && !fx.loop && !fx.step) delete el.fx
+ else el.fx = fx
+ }
+ }, true)
+ }
+
+ /** The three reveal verbs as a captioned button row (multi panel + Presenting). */
+ private revealRow(els: SlideElement[]) {
+ const stepped = els.some((e) => stepOf(e) > 0)
+ const row = document.createElement('div')
+ row.className = 'ed-reveal-row'
+ const cap = document.createElement('span')
+ cap.className = 'ed-arrange-cap'
+ cap.textContent = t('Reveal')
+ row.appendChild(cap)
+ const btn = (label: string, title: string, run: () => void, enabled = true) => {
+ const b = document.createElement('button')
+ b.className = 'ed-btn'
+ b.textContent = label
+ b.title = title
+ b.disabled = !enabled
+ b.addEventListener('click', run)
+ row.appendChild(b)
+ }
+ btn(t('In order'), t('Hide until → is pressed, one after another in reading order — top to bottom, then left to right'), () => this.revealInOrder(els))
+ btn(t('Together'), t('Hide until → is pressed, all at once'), () => this.revealTogether(els))
+ btn(t('Remove'), t('Show with the slide again'), () => this.removeReveal(els), stepped)
+ this.host.appendChild(row)
+ const hint = document.createElement('p')
+ hint.className = 'ed-hint'
+ hint.textContent = t('Numbered badges on the canvas show the order; click one for the next step.')
+ this.host.appendChild(hint)
+ }
+
ungroup(els: SlideElement[]) {
const gids = new Set(els.map((e) => e.groupId).filter(Boolean))
this.edit(() => {
diff --git a/slides/src/editor/reveal.ts b/slides/src/editor/reveal.ts
new file mode 100644
index 00000000..6ac2c541
--- /dev/null
+++ b/slides/src/editor/reveal.ts
@@ -0,0 +1,80 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+/**
+ * Reveal authoring — the decisions behind "Reveal in order", "Reveal
+ * together", "Remove reveal" and the canvas step badges. Editor UI only: the
+ * format keeps a single number, `fx.step` (steps.ts says what it means while
+ * presenting). Nothing here touches the DOM, so scripts/test-slides-reveal-ui.ts
+ * drives it without one.
+ *
+ * READING ORDER. "Reveal in order" numbers a selection the way a reader would
+ * scan it: top-to-bottom, then left-to-right within a row. Rows are found by
+ * vertical overlap, not by a pixel band — an element joins the row that is
+ * open when its vertical centre falls inside the row's extent, so a bullet
+ * list numbers down the page while a row of three cards numbers across, and
+ * a card that is a few pixels taller than its neighbours is still their
+ * neighbour. Ties break by x, then id, so the order is a pure function of the
+ * elements and two runs give the same numbers.
+ */
+
+import { stepOf, maxStep, type Stepped } from '../steps.ts'
+
+export type Placed = Stepped & { x: number; y: number; w: number; h: number }
+
+/** The selection sorted as a reader scans it. */
+export function readingOrder<E extends Placed>(els: ReadonlyArray<E>): E[] {
+ const byY = [...els].sort((a, b) => a.y - b.y || a.x - b.x || a.id.localeCompare(b.id))
+ const rows: { top: number; bottom: number; items: E[] }[] = []
+ for (const el of byY) {
+ const cy = el.y + el.h / 2
+ const row = rows[rows.length - 1]
+ if (row && cy >= row.top && cy <= row.bottom) {
+ row.items.push(el)
+ row.bottom = Math.max(row.bottom, el.y + el.h)
+ } else rows.push({ top: el.y, bottom: el.y + el.h, items: [el] })
+ }
+ return rows.flatMap((r) => r.items.sort((a, b) => a.x - b.x || a.y - b.y || a.id.localeCompare(b.id)))
+}
+
+/** One `fx.step` assignment; `step` 0 clears it. */
+export type StepPatch = { id: string; step: number }
+
+/**
+ * "Reveal in order": the selection gets consecutive steps in reading order,
+ * starting AFTER the slide's last step among elements outside the selection —
+ * so ordering a second batch continues the sequence rather than restarting it,
+ * and re-ordering the same batch renumbers it from the same start.
+ */
+export function revealInOrder(slide: ReadonlyArray<Placed>, selected: ReadonlyArray<Placed>): StepPatch[] {
+ const chosen = new Set(selected.map((e) => e.id))
+ const base = maxStep(slide.filter((e) => !chosen.has(e.id)))
+ return readingOrder(selected).map((el, i) => ({ id: el.id, step: base + 1 + i }))
+}
+
+/** "Reveal together": the whole selection on ONE step — the next one after
+ * the rest of the slide, so it lands as a group at the end of the sequence. */
+export function revealTogether(slide: ReadonlyArray<Placed>, selected: ReadonlyArray<Placed>): StepPatch[] {
+ const chosen = new Set(selected.map((e) => e.id))
+ const step = maxStep(slide.filter((e) => !chosen.has(e.id))) + 1
+ return selected.map((el) => ({ id: el.id, step }))
+}
+
+/** "Remove reveal": the selection is shown with the slide again. */
+export const removeReveal = (selected: ReadonlyArray<Stepped>): StepPatch[] =>
+ selected.filter((el) => stepOf(el) > 0).map((el) => ({ id: el.id, step: 0 }))
+
+/**
+ * A click on a step badge walks the element through the slide's steps:
+ * 1, 2, … up to one past the last step anyone else has, then back to 1.
+ * Never to 0 — removing is a deliberate verb, not a click too many.
+ */
+export function cycleStep(slide: ReadonlyArray<Stepped>, el: Stepped): number {
+ const others = slide.filter((e) => e.id !== el.id)
+ const top = maxStep(others) + 1
+ const cur = stepOf(el)
+ return cur >= top ? 1 : cur + 1
+}
+
+/** Does the canvas show badges for this slide? Only when there is a step to
+ * show — a fresh slide carries no chrome for a feature it does not use. */
+export const hasSteps = (slide: ReadonlyArray<Stepped>): boolean => maxStep(slide) > 0
diff --git a/slides/src/editor/stepbadges.ts b/slides/src/editor/stepbadges.ts
new file mode 100644
index 00000000..a6d85f7b
--- /dev/null
+++ b/slides/src/editor/stepbadges.ts
@@ -0,0 +1,63 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+/**
+ * Step badges — a numbered chip at the top-left corner of every element that
+ * has a reveal step (`fx.step`), so the order a slide will build in is visible
+ * on the canvas instead of buried in the Presenting section. EDITOR-ONLY: the
+ * layer sits beside the rendered slide, not inside it, so thumbnails, present,
+ * print and the file-manager preview (all built from render.ts) never carry a
+ * badge — scripts/test-slides-reveal-ui.ts holds render.ts to that.
+ *
+ * Shown only while the slide has a step at all (reveal.ts hasSteps): a slide
+ * that does not use reveals carries no chrome for them. Clicking a badge
+ * selects the element and walks it to the next step (reveal.ts cycleStep);
+ * the number is also editable in the panel's Presenting section.
+ */
+
+import type { Store } from '../store'
+import { stepOf } from '../steps'
+import { cycleStep, hasSteps } from './reveal'
+import { t } from '../i18n'
+
+export class StepBadges {
+ private layer: HTMLElement
+
+ constructor(
+ private store: Store,
+ stageParent: HTMLElement,
+ private scaleOf: () => number,
+ ) {
+ this.layer = document.createElement('div')
+ this.layer.className = 'ed-step-layer'
+ stageParent.appendChild(this.layer)
+ }
+
+ /** Rebuild the badges for the current slide (after render/relayout/selection). */
+ refresh() {
+ this.layer.innerHTML = ''
+ const slide = this.store.slide
+ if (!slide || !hasSteps(slide.elements)) return
+ const scale = this.scaleOf()
+ const selected = new Set(this.store.selection)
+ for (const el of slide.elements) {
+ const step = stepOf(el)
+ if (!step) continue
+ const badge = document.createElement('button')
+ badge.className = 'ed-step-badge' + (selected.has(el.id) ? ' sel' : '')
+ badge.textContent = String(step)
+ badge.title = t('Reveal step {n} — click for the next step; set the number in Presenting', { n: String(step) })
+ badge.style.left = `${el.x * scale - 9}px`
+ badge.style.top = `${el.y * scale - 9}px`
+ badge.addEventListener('mousedown', (ev) => ev.stopPropagation()) // not a marquee start
+ badge.addEventListener('click', (ev) => {
+ ev.stopPropagation()
+ const cur = this.store.element(el.id)
+ if (!cur) return
+ const next = cycleStep(this.store.slide.elements, cur)
+ this.store.select([el.id])
+ this.store.commit(() => { cur.fx = { ...(cur.fx ?? {}), step: next } })
+ })
+ this.layer.appendChild(badge)
+ }
+ }
+}
diff --git a/slides/src/i18n/de.ts b/slides/src/i18n/de.ts
index b466b42b..6c4e7aba 100644
--- a/slides/src/i18n/de.ts
+++ b/slides/src/i18n/de.ts
@@ -850,4 +850,17 @@ export const de: Catalog = {
"Use the built-in code colours": "Eingebaute Codefarben verwenden",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Entfernt die Codepalette des Decks; Ausschnitte werden wieder im Standardschema dargestellt",
"Code keywords": "Schlüsselwörter im Code",
+ "Reveal in order": "Der Reihe nach einblenden",
+ "Reveal together": "Zusammen einblenden",
+ "Remove reveal": "Einblenden entfernen",
+ "Reveal": "Einblenden",
+ "In order": "Der Reihe nach",
+ "Together": "Zusammen",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Verborgen bis → gedrückt wird, eines nach dem anderen in Leserichtung — von oben nach unten, dann von links nach rechts",
+ "Hide until → is pressed, all at once": "Verborgen bis → gedrückt wird, alle auf einmal",
+ "Show with the slide again": "Wieder mit der Folie zeigen",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Nummerierte Marken auf der Leinwand zeigen die Reihenfolge; ein Klick setzt den nächsten Schritt.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Einblendschritt {n} — Klick für den nächsten Schritt; die Zahl steht unter Präsentation",
+ "Right-click ▸ Reveal in order": "Rechtsklick ▸ Der Reihe nach einblenden",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Verbirgt die ausgewählten Elemente, bis → gedrückt wird, eines nach dem anderen in Leserichtung — nummerierte Marken auf der Leinwand zeigen die Reihenfolge",
}
diff --git a/slides/src/i18n/es.ts b/slides/src/i18n/es.ts
index 087da5a2..24ddd66e 100644
--- a/slides/src/i18n/es.ts
+++ b/slides/src/i18n/es.ts
@@ -850,4 +850,17 @@ export const es: Catalog = {
"Use the built-in code colours": "Usar los colores de código integrados",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Quita la paleta de código de la presentación; los fragmentos vuelven al esquema estándar",
"Code keywords": "Palabras clave del código",
+ "Reveal in order": "Revelar en orden",
+ "Reveal together": "Revelar juntos",
+ "Remove reveal": "Quitar revelado",
+ "Reveal": "Revelar",
+ "In order": "En orden",
+ "Together": "Juntos",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Ocultos hasta pulsar →, uno tras otro en orden de lectura: de arriba abajo y de izquierda a derecha",
+ "Hide until → is pressed, all at once": "Ocultos hasta pulsar →, todos a la vez",
+ "Show with the slide again": "Mostrar de nuevo con la diapositiva",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Las insignias numeradas del lienzo muestran el orden; haz clic en una para el paso siguiente.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Paso de revelado {n}: clic para el paso siguiente; el número se ajusta en Presentación",
+ "Right-click ▸ Reveal in order": "Clic derecho ▸ Revelar en orden",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Oculta los elementos seleccionados hasta pulsar →, uno tras otro en orden de lectura; las insignias numeradas del lienzo muestran el orden",
}
diff --git a/slides/src/i18n/fr.ts b/slides/src/i18n/fr.ts
index 896f9090..2de7fe29 100644
--- a/slides/src/i18n/fr.ts
+++ b/slides/src/i18n/fr.ts
@@ -850,4 +850,17 @@ export const fr: Catalog = {
"Use the built-in code colours": "Utiliser les couleurs de code intégrées",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Retire la palette de code de la présentation ; les extraits reprennent le schéma standard",
"Code keywords": "Mots-clés du code",
+ "Reveal in order": "Révéler dans l’ordre",
+ "Reveal together": "Révéler ensemble",
+ "Remove reveal": "Retirer la révélation",
+ "Reveal": "Révéler",
+ "In order": "Dans l’ordre",
+ "Together": "Ensemble",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Masqués jusqu’à l’appui sur →, l’un après l’autre dans l’ordre de lecture — de haut en bas, puis de gauche à droite",
+ "Hide until → is pressed, all at once": "Masqués jusqu’à l’appui sur →, tous en même temps",
+ "Show with the slide again": "Afficher de nouveau avec la diapositive",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Les badges numérotés sur le canevas indiquent l’ordre ; cliquez sur l’un d’eux pour l’étape suivante.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Étape de révélation {n} — cliquez pour l’étape suivante ; le nombre se règle dans Présentation",
+ "Right-click ▸ Reveal in order": "Clic droit ▸ Révéler dans l’ordre",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Masque les éléments sélectionnés jusqu’à l’appui sur →, l’un après l’autre dans l’ordre de lecture — les badges numérotés sur le canevas indiquent l’ordre",
}
diff --git a/slides/src/i18n/it.ts b/slides/src/i18n/it.ts
index 64a85f63..521ddd18 100644
--- a/slides/src/i18n/it.ts
+++ b/slides/src/i18n/it.ts
@@ -850,4 +850,17 @@ export const it: Catalog = {
"Use the built-in code colours": "Usa i colori del codice integrati",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Rimuove la palette del codice della presentazione; gli snippet tornano allo schema standard",
"Code keywords": "Parole chiave del codice",
+ "Reveal in order": "Rivela in ordine",
+ "Reveal together": "Rivela insieme",
+ "Remove reveal": "Rimuovi rivelazione",
+ "Reveal": "Rivela",
+ "In order": "In ordine",
+ "Together": "Insieme",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Nascosti finché non si preme →, uno dopo l’altro in ordine di lettura — dall’alto in basso, poi da sinistra a destra",
+ "Hide until → is pressed, all at once": "Nascosti finché non si preme →, tutti insieme",
+ "Show with the slide again": "Mostra di nuovo con la diapositiva",
+ "Numbered badges on the canvas show the order; click one for the next step.": "I badge numerati sulla tela mostrano l’ordine; fai clic su uno per il passo successivo.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Passo di rivelazione {n} — clic per il passo successivo; il numero si imposta in Presentazione",
+ "Right-click ▸ Reveal in order": "Clic destro ▸ Rivela in ordine",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Nasconde gli elementi selezionati finché non si preme →, uno dopo l’altro in ordine di lettura — i badge numerati sulla tela mostrano l’ordine",
}
diff --git a/slides/src/i18n/ja.ts b/slides/src/i18n/ja.ts
index f348d183..027eecb6 100644
--- a/slides/src/i18n/ja.ts
+++ b/slides/src/i18n/ja.ts
@@ -850,4 +850,17 @@ export const ja: Catalog = {
"Use the built-in code colours": "組み込みのコード配色を使う",
"Removes the deck’s code palette; snippets render with the standard scheme again": "デッキのコードパレットを削除し、スニペットを標準の配色で表示します",
"Code keywords": "コードのキーワード",
+ "Reveal in order": "順番に表示",
+ "Reveal together": "まとめて表示",
+ "Remove reveal": "表示ステップを解除",
+ "Reveal": "表示",
+ "In order": "順番に",
+ "Together": "まとめて",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "→ を押すまで非表示。読み順(上から下、次に左から右)にひとつずつ表示します",
+ "Hide until → is pressed, all at once": "→ を押すまで非表示。すべて同時に表示します",
+ "Show with the slide again": "スライドと同時に表示に戻す",
+ "Numbered badges on the canvas show the order; click one for the next step.": "キャンバスの番号バッジが順番を示します。クリックで次のステップへ。",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "表示ステップ {n} — クリックで次のステップへ。番号は「プレゼン」で設定できます",
+ "Right-click ▸ Reveal in order": "右クリック ▸ 順番に表示",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "選択した要素を → を押すまで非表示にし、読み順にひとつずつ表示します — キャンバスの番号バッジが順番を示します",
}
diff --git a/slides/src/i18n/packed.ts b/slides/src/i18n/packed.ts
index d3749d6f..bfadd63b 100644
--- a/slides/src/i18n/packed.ts
+++ b/slides/src/i18n/packed.ts
@@ -856,4 +856,17 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Use the built-in code colours": ["組み込みのコード配色を使う","使用内置代码颜色","使用內建程式碼顏色","Usar los colores de código integrados","Utiliser les couleurs de code intégrées","Eingebaute Codefarben verwenden","Usa i colori del codice integrati","Usar as cores de código incorporadas"],
"Removes the deck’s code palette; snippets render with the standard scheme again": ["デッキのコードパレットを削除し、スニペットを標準の配色で表示します","移除文稿的代码调色板;片段恢复为标准配色","移除文稿的程式碼調色盤;片段恢復為標準配色","Quita la paleta de código de la presentación; los fragmentos vuelven al esquema estándar","Retire la palette de code de la présentation ; les extraits reprennent le schéma standard","Entfernt die Codepalette des Decks; Ausschnitte werden wieder im Standardschema dargestellt","Rimuove la palette del codice della presentazione; gli snippet tornano allo schema standard","Remove a paleta de código da apresentação; os excertos voltam ao esquema padrão"],
"Code keywords": ["コードのキーワード","代码关键字","程式碼關鍵字","Palabras clave del código","Mots-clés du code","Schlüsselwörter im Code","Parole chiave del codice","Palavras-chave do código"],
+ "Reveal in order": ["順番に表示","按顺序显示","按順序顯示","Revelar en orden","Révéler dans l’ordre","Der Reihe nach einblenden","Rivela in ordine","Revelar por ordem"],
+ "Reveal together": ["まとめて表示","一起显示","一起顯示","Revelar juntos","Révéler ensemble","Zusammen einblenden","Rivela insieme","Revelar em conjunto"],
+ "Remove reveal": ["表示ステップを解除","移除显示步骤","移除顯示步驟","Quitar revelado","Retirer la révélation","Einblenden entfernen","Rimuovi rivelazione","Remover revelação"],
+ "Reveal": ["表示","显示","顯示","Revelar","Révéler","Einblenden","Rivela","Revelar"],
+ "In order": ["順番に","按顺序","按順序","En orden","Dans l’ordre","Der Reihe nach","In ordine","Por ordem"],
+ "Together": ["まとめて","一起","一起","Juntos","Ensemble","Zusammen","Insieme","Em conjunto"],
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": ["→ を押すまで非表示。読み順(上から下、次に左から右)にひとつずつ表示します","按下 → 之前隐藏,按阅读顺序逐个显示——先从上到下,再从左到右","按下 → 之前隱藏,按閱讀順序逐一顯示——先由上到下,再由左到右","Ocultos hasta pulsar →, uno tras otro en orden de lectura: de arriba abajo y de izquierda a derecha","Masqués jusqu’à l’appui sur →, l’un après l’autre dans l’ordre de lecture — de haut en bas, puis de gauche à droite","Verborgen bis → gedrückt wird, eines nach dem anderen in Leserichtung — von oben nach unten, dann von links nach rechts","Nascosti finché non si preme →, uno dopo l’altro in ordine di lettura — dall’alto in basso, poi da sinistra a destra","Ocultos até premir →, um após outro pela ordem de leitura — de cima para baixo, depois da esquerda para a direita"],
+ "Hide until → is pressed, all at once": ["→ を押すまで非表示。すべて同時に表示します","按下 → 之前隐藏,然后一起显示","按下 → 之前隱藏,然後一起顯示","Ocultos hasta pulsar →, todos a la vez","Masqués jusqu’à l’appui sur →, tous en même temps","Verborgen bis → gedrückt wird, alle auf einmal","Nascosti finché non si preme →, tutti insieme","Ocultos até premir →, todos de uma vez"],
+ "Show with the slide again": ["スライドと同時に表示に戻す","恢复随幻灯片一起显示","恢復隨投影片一起顯示","Mostrar de nuevo con la diapositiva","Afficher de nouveau avec la diapositive","Wieder mit der Folie zeigen","Mostra di nuovo con la diapositiva","Mostrar de novo com o diapositivo"],
+ "Numbered badges on the canvas show the order; click one for the next step.": ["キャンバスの番号バッジが順番を示します。クリックで次のステップへ。","画布上的数字标记显示顺序;点击一个即进入下一步。","畫布上的數字標記顯示順序;點一下即進入下一步。","Las insignias numeradas del lienzo muestran el orden; haz clic en una para el paso siguiente.","Les badges numérotés sur le canevas indiquent l’ordre ; cliquez sur l’un d’eux pour l’étape suivante.","Nummerierte Marken auf der Leinwand zeigen die Reihenfolge; ein Klick setzt den nächsten Schritt.","I badge numerati sulla tela mostrano l’ordine; fai clic su uno per il passo successivo.","Os emblemas numerados na tela mostram a ordem; clique num deles para o passo seguinte."],
+ "Reveal step {n} — click for the next step; set the number in Presenting": ["表示ステップ {n} — クリックで次のステップへ。番号は「プレゼン」で設定できます","显示步骤 {n} — 点击进入下一步;在“演示”中设置数字","顯示步驟 {n} — 點一下進入下一步;在「簡報」中設定數字","Paso de revelado {n}: clic para el paso siguiente; el número se ajusta en Presentación","Étape de révélation {n} — cliquez pour l’étape suivante ; le nombre se règle dans Présentation","Einblendschritt {n} — Klick für den nächsten Schritt; die Zahl steht unter Präsentation","Passo di rivelazione {n} — clic per il passo successivo; il numero si imposta in Presentazione","Passo de revelação {n} — clique para o passo seguinte; o número ajusta-se em Apresentação"],
+ "Right-click ▸ Reveal in order": ["右クリック ▸ 順番に表示","右键 ▸ 按顺序显示","右鍵 ▸ 按順序顯示","Clic derecho ▸ Revelar en orden","Clic droit ▸ Révéler dans l’ordre","Rechtsklick ▸ Der Reihe nach einblenden","Clic destro ▸ Rivela in ordine","Clique direito ▸ Revelar por ordem"],
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": ["選択した要素を → を押すまで非表示にし、読み順にひとつずつ表示します — キャンバスの番号バッジが順番を示します","按下 → 之前隐藏所选元素,按阅读顺序逐个显示——画布上的数字标记显示顺序","按下 → 之前隱藏所選元素,按閱讀順序逐一顯示——畫布上的數字標記顯示順序","Oculta los elementos seleccionados hasta pulsar →, uno tras otro en orden de lectura; las insignias numeradas del lienzo muestran el orden","Masque les éléments sélectionnés jusqu’à l’appui sur →, l’un après l’autre dans l’ordre de lecture — les badges numérotés sur le canevas indiquent l’ordre","Verbirgt die ausgewählten Elemente, bis → gedrückt wird, eines nach dem anderen in Leserichtung — nummerierte Marken auf der Leinwand zeigen die Reihenfolge","Nasconde gli elementi selezionati finché non si preme →, uno dopo l’altro in ordine di lettura — i badge numerati sulla tela mostrano l’ordine","Oculta os elementos selecionados até premir →, um após outro pela ordem de leitura — os emblemas numerados na tela mostram a ordem"],
}
diff --git a/slides/src/i18n/packs/ar.ts b/slides/src/i18n/packs/ar.ts
index adc8f5c4..5050ae3a 100644
--- a/slides/src/i18n/packs/ar.ts
+++ b/slides/src/i18n/packs/ar.ts
@@ -796,4 +796,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "استخدام ألوان الكود المضمّنة",
"Removes the deck’s code palette; snippets render with the standard scheme again": "يزيل لوحة ألوان الكود من العرض؛ تعود المقتطفات إلى النظام القياسي",
"Code keywords": "الكلمات المفتاحية في الكود",
+ "Reveal in order": "إظهار بالترتيب",
+ "Reveal together": "إظهار معًا",
+ "Remove reveal": "إزالة الإظهار",
+ "Reveal": "إظهار",
+ "In order": "بالترتيب",
+ "Together": "معًا",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "مخفية حتى الضغط على →، واحدًا تلو الآخر بترتيب القراءة — من الأعلى إلى الأسفل ثم من اليسار إلى اليمين",
+ "Hide until → is pressed, all at once": "مخفية حتى الضغط على →، كلها دفعة واحدة",
+ "Show with the slide again": "إظهارها مع الشريحة مجددًا",
+ "Numbered badges on the canvas show the order; click one for the next step.": "الشارات المرقّمة على اللوحة تُظهر الترتيب؛ انقر إحداها للخطوة التالية.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "خطوة الإظهار {n} — انقر للخطوة التالية؛ يُضبط الرقم في «العرض»",
+ "Right-click ▸ Reveal in order": "نقر بزر الفأرة الأيمن ▸ إظهار بالترتيب",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "يخفي العناصر المحددة حتى الضغط على →، واحدًا تلو الآخر بترتيب القراءة — الشارات المرقّمة على اللوحة تُظهر الترتيب",
}
diff --git a/slides/src/i18n/packs/bn.ts b/slides/src/i18n/packs/bn.ts
index 9765fea9..77b0fa19 100644
--- a/slides/src/i18n/packs/bn.ts
+++ b/slides/src/i18n/packs/bn.ts
@@ -799,4 +799,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "অন্তর্নির্মিত কোডের রং ব্যবহার করুন",
"Removes the deck’s code palette; snippets render with the standard scheme again": "ডেকের কোড প্যালেট সরায়; স্নিপেট আবার মানক স্কিমে দেখায়",
"Code keywords": "কোডের কীওয়ার্ড",
+ "Reveal in order": "ক্রমানুসারে দেখান",
+ "Reveal together": "একসাথে দেখান",
+ "Remove reveal": "দেখানো সরান",
+ "Reveal": "দেখান",
+ "In order": "ক্রমানুসারে",
+ "Together": "একসাথে",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "→ চাপা পর্যন্ত লুকানো, পড়ার ক্রমে একের পর এক — উপর থেকে নিচে, তারপর বাম থেকে ডানে",
+ "Hide until → is pressed, all at once": "→ চাপা পর্যন্ত লুকানো, সব একসাথে",
+ "Show with the slide again": "স্লাইডের সাথে আবার দেখান",
+ "Numbered badges on the canvas show the order; click one for the next step.": "ক্যানভাসের সংখ্যাযুক্ত ব্যাজ ক্রম দেখায়; পরের ধাপের জন্য একটিতে ক্লিক করুন।",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "দেখানোর ধাপ {n} — পরের ধাপের জন্য ক্লিক করুন; সংখ্যাটি উপস্থাপনায় সেট করুন",
+ "Right-click ▸ Reveal in order": "রাইট-ক্লিক ▸ ক্রমানুসারে দেখান",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "নির্বাচিত উপাদানগুলো → চাপা পর্যন্ত লুকায়, পড়ার ক্রমে একের পর এক — ক্যানভাসের সংখ্যাযুক্ত ব্যাজ ক্রম দেখায়",
}
diff --git a/slides/src/i18n/packs/da.ts b/slides/src/i18n/packs/da.ts
index 21c5a6f2..2da07305 100644
--- a/slides/src/i18n/packs/da.ts
+++ b/slides/src/i18n/packs/da.ts
@@ -788,4 +788,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "Brug de indbyggede kodefarver",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Fjerner dækkets kodepalet; kodestykker vises igen med standardskemaet",
"Code keywords": "Nøgleord i koden",
+ "Reveal in order": "Vis i rækkefølge",
+ "Reveal together": "Vis sammen",
+ "Remove reveal": "Fjern visning",
+ "Reveal": "Vis",
+ "In order": "I rækkefølge",
+ "Together": "Sammen",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Skjult indtil der trykkes på →, ét ad gangen i læseretning — oppefra og ned, derefter fra venstre mod højre",
+ "Hide until → is pressed, all at once": "Skjult indtil der trykkes på →, alle på én gang",
+ "Show with the slide again": "Vis igen sammen med diasset",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Nummererede mærker på lærredet viser rækkefølgen; klik på ét for næste trin.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Visningstrin {n} — klik for næste trin; tallet sættes under Præsentation",
+ "Right-click ▸ Reveal in order": "Højreklik ▸ Vis i rækkefølge",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Skjuler de valgte elementer indtil der trykkes på →, ét ad gangen i læseretning — nummererede mærker på lærredet viser rækkefølgen",
}
diff --git a/slides/src/i18n/packs/fa.ts b/slides/src/i18n/packs/fa.ts
index 31eb99b1..e59123bd 100644
--- a/slides/src/i18n/packs/fa.ts
+++ b/slides/src/i18n/packs/fa.ts
@@ -792,4 +792,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "استفاده از رنگ‌های کد داخلی",
"Removes the deck’s code palette; snippets render with the standard scheme again": "پالت کد دک را حذف می‌کند؛ قطعه‌کدها دوباره با طرح استاندارد نمایش داده می‌شوند",
"Code keywords": "کلیدواژه‌های کد",
+ "Reveal in order": "نمایش به ترتیب",
+ "Reveal together": "نمایش با هم",
+ "Remove reveal": "حذف نمایش مرحله‌ای",
+ "Reveal": "نمایش",
+ "In order": "به ترتیب",
+ "Together": "با هم",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "تا فشردن → پنهان، یکی پس از دیگری به ترتیب خواندن — از بالا به پایین، سپس از چپ به راست",
+ "Hide until → is pressed, all at once": "تا فشردن → پنهان، همه با هم",
+ "Show with the slide again": "دوباره همراه اسلاید نمایش داده شود",
+ "Numbered badges on the canvas show the order; click one for the next step.": "نشان‌های شماره‌دار روی بوم ترتیب را نشان می‌دهند؛ برای مرحلهٔ بعد روی یکی کلیک کنید.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "مرحلهٔ نمایش {n} — برای مرحلهٔ بعد کلیک کنید؛ عدد در «ارائه» تنظیم می‌شود",
+ "Right-click ▸ Reveal in order": "راست‌کلیک ▸ نمایش به ترتیب",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "عناصر انتخاب‌شده را تا فشردن → پنهان می‌کند، یکی پس از دیگری به ترتیب خواندن — نشان‌های شماره‌دار روی بوم ترتیب را نشان می‌دهند",
}
diff --git a/slides/src/i18n/packs/fi.ts b/slides/src/i18n/packs/fi.ts
index 9b3f69f8..bc2f20e7 100644
--- a/slides/src/i18n/packs/fi.ts
+++ b/slides/src/i18n/packs/fi.ts
@@ -793,4 +793,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "Käytä sisäänrakennettuja koodin värejä",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Poistaa pakan koodipaletin; katkelmat näytetään taas vakiovärein",
"Code keywords": "Koodin avainsanat",
+ "Reveal in order": "Paljasta järjestyksessä",
+ "Reveal together": "Paljasta yhdessä",
+ "Remove reveal": "Poista paljastus",
+ "Reveal": "Paljasta",
+ "In order": "Järjestyksessä",
+ "Together": "Yhdessä",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Piilossa kunnes → painetaan, yksi kerrallaan lukujärjestyksessä — ylhäältä alas, sitten vasemmalta oikealle",
+ "Hide until → is pressed, all at once": "Piilossa kunnes → painetaan, kaikki kerralla",
+ "Show with the slide again": "Näytä taas dian mukana",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Numeroidut merkit kankaalla näyttävät järjestyksen; napsauta yhtä seuraavaan vaiheeseen.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Paljastusvaihe {n} — napsauta seuraavaan vaiheeseen; numero asetetaan Esittäminen-osiossa",
+ "Right-click ▸ Reveal in order": "Hiiren oikea ▸ Paljasta järjestyksessä",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Piilottaa valitut elementit kunnes → painetaan, yksi kerrallaan lukujärjestyksessä — numeroidut merkit kankaalla näyttävät järjestyksen",
}
diff --git a/slides/src/i18n/packs/fil.ts b/slides/src/i18n/packs/fil.ts
index f7bcd88f..e68748e0 100644
--- a/slides/src/i18n/packs/fil.ts
+++ b/slides/src/i18n/packs/fil.ts
@@ -805,4 +805,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "Gamitin ang built-in na mga kulay ng code",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Tinatanggal ang code palette ng deck; babalik ang mga snippet sa karaniwang scheme",
"Code keywords": "Mga keyword ng code",
+ "Reveal in order": "Ipakita nang sunud-sunod",
+ "Reveal together": "Ipakita nang sabay",
+ "Remove reveal": "Alisin ang pagpapakita",
+ "Reveal": "Ipakita",
+ "In order": "Sunud-sunod",
+ "Together": "Sabay",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Nakatago hanggang pindutin ang →, isa-isa sa pagkakasunod ng pagbasa — mula itaas pababa, saka kaliwa pakanan",
+ "Hide until → is pressed, all at once": "Nakatago hanggang pindutin ang →, sabay-sabay",
+ "Show with the slide again": "Ipakitang muli kasama ng slide",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Ipinapakita ng mga may-numerong badge sa canvas ang pagkakasunod; i-click ang isa para sa susunod na hakbang.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Hakbang ng pagpapakita {n} — i-click para sa susunod na hakbang; itakda ang numero sa Presenting",
+ "Right-click ▸ Reveal in order": "Right-click ▸ Ipakita nang sunud-sunod",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Itinatago ang mga piniling elemento hanggang pindutin ang →, isa-isa sa pagkakasunod ng pagbasa — ipinapakita ng mga may-numerong badge sa canvas ang pagkakasunod",
}
diff --git a/slides/src/i18n/packs/he.ts b/slides/src/i18n/packs/he.ts
index 9b093329..82040df8 100644
--- a/slides/src/i18n/packs/he.ts
+++ b/slides/src/i18n/packs/he.ts
@@ -789,4 +789,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "שימוש בצבעי הקוד המובנים",
"Removes the deck’s code palette; snippets render with the standard scheme again": "מסיר את פלטת הקוד של המצגת; קטעי הקוד יוצגו שוב בסכמה הרגילה",
"Code keywords": "מילות מפתח בקוד",
+ "Reveal in order": "חשיפה לפי סדר",
+ "Reveal together": "חשיפה יחד",
+ "Remove reveal": "הסרת חשיפה",
+ "Reveal": "חשיפה",
+ "In order": "לפי סדר",
+ "Together": "יחד",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "מוסתרים עד לחיצה על →, בזה אחר זה לפי סדר הקריאה — מלמעלה למטה, ואז משמאל לימין",
+ "Hide until → is pressed, all at once": "מוסתרים עד לחיצה על →, כולם בבת אחת",
+ "Show with the slide again": "להציג שוב יחד עם השקופית",
+ "Numbered badges on the canvas show the order; click one for the next step.": "תגים ממוספרים על הקנבס מציגים את הסדר; לחצו על אחד לשלב הבא.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "שלב חשיפה {n} — לחיצה לשלב הבא; המספר נקבע תחת הצגה",
+ "Right-click ▸ Reveal in order": "לחיצה ימנית ▸ חשיפה לפי סדר",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "מסתיר את הרכיבים שנבחרו עד לחיצה על →, בזה אחר זה לפי סדר הקריאה — תגים ממוספרים על הקנבס מציגים את הסדר",
}
diff --git a/slides/src/i18n/packs/hi.ts b/slides/src/i18n/packs/hi.ts
index 75421fc2..a8e6ebcc 100644
--- a/slides/src/i18n/packs/hi.ts
+++ b/slides/src/i18n/packs/hi.ts
@@ -796,4 +796,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "बिल्ट-इन कोड रंग इस्तेमाल करें",
"Removes the deck’s code palette; snippets render with the standard scheme again": "डेक का कोड पैलेट हटाता है; स्निपेट फिर मानक योजना में दिखते हैं",
"Code keywords": "कोड के कीवर्ड",
+ "Reveal in order": "क्रम से दिखाएँ",
+ "Reveal together": "एक साथ दिखाएँ",
+ "Remove reveal": "दिखाना हटाएँ",
+ "Reveal": "दिखाएँ",
+ "In order": "क्रम से",
+ "Together": "एक साथ",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "→ दबाने तक छिपा, पढ़ने के क्रम में एक के बाद एक — ऊपर से नीचे, फिर बाएँ से दाएँ",
+ "Hide until → is pressed, all at once": "→ दबाने तक छिपा, सब एक साथ",
+ "Show with the slide again": "स्लाइड के साथ फिर दिखाएँ",
+ "Numbered badges on the canvas show the order; click one for the next step.": "कैनवास पर क्रमांकित बैज क्रम दिखाते हैं; अगले चरण के लिए किसी एक पर क्लिक करें।",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "दिखाने का चरण {n} — अगले चरण के लिए क्लिक करें; संख्या प्रस्तुति में सेट करें",
+ "Right-click ▸ Reveal in order": "राइट-क्लिक ▸ क्रम से दिखाएँ",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "चुने गए तत्वों को → दबाने तक छिपाता है, पढ़ने के क्रम में एक के बाद एक — कैनवास पर क्रमांकित बैज क्रम दिखाते हैं",
}
diff --git a/slides/src/i18n/packs/id.ts b/slides/src/i18n/packs/id.ts
index 893d1260..f7fd994a 100644
--- a/slides/src/i18n/packs/id.ts
+++ b/slides/src/i18n/packs/id.ts
@@ -786,4 +786,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "Gunakan warna kode bawaan",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Menghapus palet kode dek; cuplikan kembali ke skema standar",
"Code keywords": "Kata kunci kode",
+ "Reveal in order": "Tampilkan berurutan",
+ "Reveal together": "Tampilkan bersama",
+ "Remove reveal": "Hapus penampilan bertahap",
+ "Reveal": "Tampilkan",
+ "In order": "Berurutan",
+ "Together": "Bersama",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Tersembunyi sampai → ditekan, satu per satu sesuai urutan baca — dari atas ke bawah, lalu kiri ke kanan",
+ "Hide until → is pressed, all at once": "Tersembunyi sampai → ditekan, semuanya sekaligus",
+ "Show with the slide again": "Tampilkan lagi bersama slide",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Lencana bernomor di kanvas menunjukkan urutannya; klik salah satu untuk langkah berikutnya.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Langkah tampil {n} — klik untuk langkah berikutnya; atur angkanya di Presentasi",
+ "Right-click ▸ Reveal in order": "Klik kanan ▸ Tampilkan berurutan",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Menyembunyikan elemen terpilih sampai → ditekan, satu per satu sesuai urutan baca — lencana bernomor di kanvas menunjukkan urutannya",
}
diff --git a/slides/src/i18n/packs/ko.ts b/slides/src/i18n/packs/ko.ts
index 6972bbd2..4c3bcf8a 100644
--- a/slides/src/i18n/packs/ko.ts
+++ b/slides/src/i18n/packs/ko.ts
@@ -780,4 +780,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "기본 코드 색 사용",
"Removes the deck’s code palette; snippets render with the standard scheme again": "덱의 코드 팔레트를 제거하고 스니펫을 표준 배색으로 표시합니다",
"Code keywords": "코드 키워드",
+ "Reveal in order": "순서대로 표시",
+ "Reveal together": "함께 표시",
+ "Remove reveal": "표시 단계 제거",
+ "Reveal": "표시",
+ "In order": "순서대로",
+ "Together": "함께",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "→ 를 누를 때까지 숨기고 읽는 순서대로 하나씩 표시 — 위에서 아래로, 그다음 왼쪽에서 오른쪽으로",
+ "Hide until → is pressed, all at once": "→ 를 누를 때까지 숨기고 한꺼번에 표시",
+ "Show with the slide again": "슬라이드와 함께 다시 표시",
+ "Numbered badges on the canvas show the order; click one for the next step.": "캔버스의 번호 배지가 순서를 보여줍니다. 하나를 클릭하면 다음 단계로 갑니다.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "표시 단계 {n} — 클릭하면 다음 단계; 숫자는 발표 섹션에서 설정",
+ "Right-click ▸ Reveal in order": "오른쪽 클릭 ▸ 순서대로 표시",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "선택한 요소를 → 를 누를 때까지 숨기고 읽는 순서대로 하나씩 표시합니다 — 캔버스의 번호 배지가 순서를 보여줍니다",
}
diff --git a/slides/src/i18n/packs/ms.ts b/slides/src/i18n/packs/ms.ts
index 5732e6ec..effbe94a 100644
--- a/slides/src/i18n/packs/ms.ts
+++ b/slides/src/i18n/packs/ms.ts
@@ -789,4 +789,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "Guna warna kod terbina dalam",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Membuang palet kod dek; coretan kembali kepada skema piawai",
"Code keywords": "Kata kunci kod",
+ "Reveal in order": "Dedahkan mengikut urutan",
+ "Reveal together": "Dedahkan bersama",
+ "Remove reveal": "Buang pendedahan",
+ "Reveal": "Dedahkan",
+ "In order": "Mengikut urutan",
+ "Together": "Bersama",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Tersembunyi sehingga → ditekan, satu demi satu mengikut urutan bacaan — dari atas ke bawah, kemudian kiri ke kanan",
+ "Hide until → is pressed, all at once": "Tersembunyi sehingga → ditekan, semua serentak",
+ "Show with the slide again": "Tunjukkan semula bersama slaid",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Lencana bernombor pada kanvas menunjukkan urutan; klik satu untuk langkah seterusnya.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Langkah pendedahan {n} — klik untuk langkah seterusnya; tetapkan nombor di Persembahan",
+ "Right-click ▸ Reveal in order": "Klik kanan ▸ Dedahkan mengikut urutan",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Menyembunyikan elemen yang dipilih sehingga → ditekan, satu demi satu mengikut urutan bacaan — lencana bernombor pada kanvas menunjukkan urutan",
}
diff --git a/slides/src/i18n/packs/nb.ts b/slides/src/i18n/packs/nb.ts
index 25877504..ea928ba7 100644
--- a/slides/src/i18n/packs/nb.ts
+++ b/slides/src/i18n/packs/nb.ts
@@ -790,4 +790,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "Bruk de innebygde kodefargene",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Fjerner kortstokkens kodepalett; kodesnutter vises igjen med standardskjemaet",
"Code keywords": "Nøkkelord i koden",
+ "Reveal in order": "Vis i rekkefølge",
+ "Reveal together": "Vis sammen",
+ "Remove reveal": "Fjern visning",
+ "Reveal": "Vis",
+ "In order": "I rekkefølge",
+ "Together": "Sammen",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Skjult til → trykkes, ett om gangen i leseretning — ovenfra og ned, deretter fra venstre mot høyre",
+ "Hide until → is pressed, all at once": "Skjult til → trykkes, alle på én gang",
+ "Show with the slide again": "Vis igjen sammen med lysbildet",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Nummererte merker på lerretet viser rekkefølgen; klikk på ett for neste trinn.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Visningstrinn {n} — klikk for neste trinn; tallet settes under Presentasjon",
+ "Right-click ▸ Reveal in order": "Høyreklikk ▸ Vis i rekkefølge",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Skjuler de valgte elementene til → trykkes, ett om gangen i leseretning — nummererte merker på lerretet viser rekkefølgen",
}
diff --git a/slides/src/i18n/packs/nl.ts b/slides/src/i18n/packs/nl.ts
index ed2dbc8b..bd3d6667 100644
--- a/slides/src/i18n/packs/nl.ts
+++ b/slides/src/i18n/packs/nl.ts
@@ -784,4 +784,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "De ingebouwde codekleuren gebruiken",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Verwijdert het codepalet van het deck; fragmenten gebruiken weer het standaardschema",
"Code keywords": "Sleutelwoorden in code",
+ "Reveal in order": "In volgorde onthullen",
+ "Reveal together": "Samen onthullen",
+ "Remove reveal": "Onthulling verwijderen",
+ "Reveal": "Onthullen",
+ "In order": "In volgorde",
+ "Together": "Samen",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Verborgen tot → wordt ingedrukt, een voor een in leesvolgorde — van boven naar beneden, dan van links naar rechts",
+ "Hide until → is pressed, all at once": "Verborgen tot → wordt ingedrukt, allemaal tegelijk",
+ "Show with the slide again": "Weer samen met de dia tonen",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Genummerde badges op het canvas tonen de volgorde; klik op een badge voor de volgende stap.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Onthulstap {n} — klik voor de volgende stap; het getal staat onder Presenteren",
+ "Right-click ▸ Reveal in order": "Rechtsklik ▸ In volgorde onthullen",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Verbergt de geselecteerde elementen tot → wordt ingedrukt, een voor een in leesvolgorde — genummerde badges op het canvas tonen de volgorde",
}
diff --git a/slides/src/i18n/packs/pl.ts b/slides/src/i18n/packs/pl.ts
index afc0e242..bd5a03bb 100644
--- a/slides/src/i18n/packs/pl.ts
+++ b/slides/src/i18n/packs/pl.ts
@@ -787,4 +787,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "Użyj wbudowanych kolorów kodu",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Usuwa paletę kodu prezentacji; fragmenty wracają do standardowego schematu",
"Code keywords": "Słowa kluczowe kodu",
+ "Reveal in order": "Odsłaniaj po kolei",
+ "Reveal together": "Odsłoń razem",
+ "Remove reveal": "Usuń odsłanianie",
+ "Reveal": "Odsłaniaj",
+ "In order": "Po kolei",
+ "Together": "Razem",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Ukryte do naciśnięcia →, jeden po drugim w kolejności czytania — z góry na dół, potem od lewej do prawej",
+ "Hide until → is pressed, all at once": "Ukryte do naciśnięcia →, wszystkie naraz",
+ "Show with the slide again": "Pokaż znów razem ze slajdem",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Numerowane plakietki na płótnie pokazują kolejność; kliknij jedną, by przejść do następnego kroku.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Krok odsłaniania {n} — kliknij, by przejść do następnego; liczbę ustawisz w sekcji Prezentowanie",
+ "Right-click ▸ Reveal in order": "Prawy przycisk ▸ Odsłaniaj po kolei",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Ukrywa zaznaczone elementy do naciśnięcia →, jeden po drugim w kolejności czytania — numerowane plakietki na płótnie pokazują kolejność",
}
diff --git a/slides/src/i18n/packs/ru.ts b/slides/src/i18n/packs/ru.ts
index fa1be34d..6d4f0dba 100644
--- a/slides/src/i18n/packs/ru.ts
+++ b/slides/src/i18n/packs/ru.ts
@@ -788,4 +788,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "Использовать встроенные цвета кода",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Удаляет палитру кода презентации; фрагменты снова показываются в стандартной схеме",
"Code keywords": "Ключевые слова кода",
+ "Reveal in order": "Показывать по порядку",
+ "Reveal together": "Показать вместе",
+ "Remove reveal": "Убрать показ по шагам",
+ "Reveal": "Показ",
+ "In order": "По порядку",
+ "Together": "Вместе",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Скрыты до нажатия →, один за другим в порядке чтения — сверху вниз, затем слева направо",
+ "Hide until → is pressed, all at once": "Скрыты до нажатия →, все сразу",
+ "Show with the slide again": "Снова показывать вместе со слайдом",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Нумерованные значки на холсте показывают порядок; щёлкните один для следующего шага.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Шаг показа {n} — щёлкните для следующего шага; число задаётся в разделе «Показ»",
+ "Right-click ▸ Reveal in order": "Правый клик ▸ Показывать по порядку",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Скрывает выбранные элементы до нажатия →, один за другим в порядке чтения — нумерованные значки на холсте показывают порядок",
}
diff --git a/slides/src/i18n/packs/sv.ts b/slides/src/i18n/packs/sv.ts
index c91444e3..e86a442c 100644
--- a/slides/src/i18n/packs/sv.ts
+++ b/slides/src/i18n/packs/sv.ts
@@ -785,4 +785,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "Använd de inbyggda kodfärgerna",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Tar bort presentationens kodpalett; kodsnuttar visas åter med standardschemat",
"Code keywords": "Nyckelord i koden",
+ "Reveal in order": "Visa i ordning",
+ "Reveal together": "Visa tillsammans",
+ "Remove reveal": "Ta bort visning",
+ "Reveal": "Visa",
+ "In order": "I ordning",
+ "Together": "Tillsammans",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Dolda tills → trycks, ett i taget i läsordning — uppifrån och ned, sedan från vänster till höger",
+ "Hide until → is pressed, all at once": "Dolda tills → trycks, alla på en gång",
+ "Show with the slide again": "Visa igen tillsammans med bilden",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Numrerade märken på arbetsytan visar ordningen; klicka på ett för nästa steg.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Visningssteg {n} — klicka för nästa steg; talet sätts under Presentation",
+ "Right-click ▸ Reveal in order": "Högerklick ▸ Visa i ordning",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Döljer de markerade elementen tills → trycks, ett i taget i läsordning — numrerade märken på arbetsytan visar ordningen",
}
diff --git a/slides/src/i18n/packs/th.ts b/slides/src/i18n/packs/th.ts
index 0b84fa43..0207ee15 100644
--- a/slides/src/i18n/packs/th.ts
+++ b/slides/src/i18n/packs/th.ts
@@ -790,4 +790,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "ใช้สีโค้ดในตัว",
"Removes the deck’s code palette; snippets render with the standard scheme again": "นำจานสีโค้ดของเด็คออก สนิปเป็ตจะแสดงด้วยชุดสีมาตรฐานอีกครั้ง",
"Code keywords": "คีย์เวิร์ดของโค้ด",
+ "Reveal in order": "แสดงตามลำดับ",
+ "Reveal together": "แสดงพร้อมกัน",
+ "Remove reveal": "เอาการแสดงทีละขั้นออก",
+ "Reveal": "แสดง",
+ "In order": "ตามลำดับ",
+ "Together": "พร้อมกัน",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "ซ่อนจนกว่าจะกด → แล้วแสดงทีละรายการตามลำดับการอ่าน — บนลงล่าง แล้วซ้ายไปขวา",
+ "Hide until → is pressed, all at once": "ซ่อนจนกว่าจะกด → แล้วแสดงพร้อมกันทั้งหมด",
+ "Show with the slide again": "แสดงพร้อมสไลด์อีกครั้ง",
+ "Numbered badges on the canvas show the order; click one for the next step.": "ป้ายตัวเลขบนผืนผ้าใบแสดงลำดับ คลิกป้ายเพื่อไปขั้นถัดไป",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "ขั้นการแสดง {n} — คลิกเพื่อไปขั้นถัดไป ตั้งตัวเลขได้ในส่วนการนำเสนอ",
+ "Right-click ▸ Reveal in order": "คลิกขวา ▸ แสดงตามลำดับ",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "ซ่อนองค์ประกอบที่เลือกจนกว่าจะกด → แล้วแสดงทีละรายการตามลำดับการอ่าน — ป้ายตัวเลขบนผืนผ้าใบแสดงลำดับ",
}
diff --git a/slides/src/i18n/packs/tk.ts b/slides/src/i18n/packs/tk.ts
index fa241019..d4b09392 100644
--- a/slides/src/i18n/packs/tk.ts
+++ b/slides/src/i18n/packs/tk.ts
@@ -813,4 +813,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "Gurlan kod reňklerini ulanmak",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Toparyň kod palitrasyny aýyrýar; bölekler ýene standart shema bilen görkezilýär",
"Code keywords": "Kod açar sözleri",
+ "Reveal in order": "Tertip bilen görkez",
+ "Reveal together": "Bilelikde görkez",
+ "Remove reveal": "Görkezişi aýyr",
+ "Reveal": "Görkez",
+ "In order": "Tertip bilen",
+ "Together": "Bilelikde",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "→ basylýança gizlin, okalyş tertibinde biri-biriniň yzyndan — ýokardan aşak, soňra çepden saga",
+ "Hide until → is pressed, all at once": "→ basylýança gizlin, hemmesi bir wagtda",
+ "Show with the slide again": "Slaýd bilen ýene görkez",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Kanwadaky belgili nyşanlar tertibi görkezýär; indiki ädim üçin birine basyň.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Görkeziş ädimi {n} — indiki ädim üçin basyň; sany Prezentasiýa bölüminde goýuň",
+ "Right-click ▸ Reveal in order": "Sag basmak ▸ Tertip bilen görkez",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Saýlanan elementleri → basylýança gizleýär, okalyş tertibinde biri-biriniň yzyndan — kanwadaky belgili nyşanlar tertibi görkezýär",
}
diff --git a/slides/src/i18n/packs/tr.ts b/slides/src/i18n/packs/tr.ts
index 0b64a43d..66500337 100644
--- a/slides/src/i18n/packs/tr.ts
+++ b/slides/src/i18n/packs/tr.ts
@@ -787,4 +787,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "Yerleşik kod renklerini kullan",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Destenin kod paletini kaldırır; parçacıklar yeniden standart şemayla gösterilir",
"Code keywords": "Kod anahtar sözcükleri",
+ "Reveal in order": "Sırayla göster",
+ "Reveal together": "Birlikte göster",
+ "Remove reveal": "Gösterimi kaldır",
+ "Reveal": "Göster",
+ "In order": "Sırayla",
+ "Together": "Birlikte",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "→ basılana dek gizli, okuma sırasıyla teker teker — yukarıdan aşağıya, sonra soldan sağa",
+ "Hide until → is pressed, all at once": "→ basılana dek gizli, hepsi bir arada",
+ "Show with the slide again": "Slaytla birlikte yeniden göster",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Tuvaldeki numaralı rozetler sırayı gösterir; sonraki adım için birine tıklayın.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Gösterim adımı {n} — sonraki adım için tıklayın; sayı Sunum bölümünde ayarlanır",
+ "Right-click ▸ Reveal in order": "Sağ tık ▸ Sırayla göster",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Seçili öğeleri → basılana dek gizler, okuma sırasıyla teker teker — tuvaldeki numaralı rozetler sırayı gösterir",
}
diff --git a/slides/src/i18n/packs/uk.ts b/slides/src/i18n/packs/uk.ts
index 2b1ad1e5..fa7615ed 100644
--- a/slides/src/i18n/packs/uk.ts
+++ b/slides/src/i18n/packs/uk.ts
@@ -796,4 +796,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "Використати вбудовані кольори коду",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Вилучає палітру коду презентації; фрагменти знову показуються у стандартній схемі",
"Code keywords": "Ключові слова коду",
+ "Reveal in order": "Показувати по черзі",
+ "Reveal together": "Показати разом",
+ "Remove reveal": "Прибрати покроковий показ",
+ "Reveal": "Показ",
+ "In order": "По черзі",
+ "Together": "Разом",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Приховані до натискання →, один за одним у порядку читання — згори донизу, потім зліва направо",
+ "Hide until → is pressed, all at once": "Приховані до натискання →, усі разом",
+ "Show with the slide again": "Знову показувати разом зі слайдом",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Пронумеровані значки на полотні показують порядок; клацніть один для наступного кроку.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Крок показу {n} — клацніть для наступного кроку; число задається в розділі «Показ»",
+ "Right-click ▸ Reveal in order": "Правий клік ▸ Показувати по черзі",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Приховує вибрані елементи до натискання →, один за одним у порядку читання — пронумеровані значки на полотні показують порядок",
}
diff --git a/slides/src/i18n/packs/ur.ts b/slides/src/i18n/packs/ur.ts
index 630aee17..74d61c45 100644
--- a/slides/src/i18n/packs/ur.ts
+++ b/slides/src/i18n/packs/ur.ts
@@ -806,4 +806,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "بلٹ اِن کوڈ رنگ استعمال کریں",
"Removes the deck’s code palette; snippets render with the standard scheme again": "ڈیک کا کوڈ پیلٹ ہٹاتا ہے؛ سنپٹس دوبارہ معیاری اسکیم میں دکھتے ہیں",
"Code keywords": "کوڈ کے کلیدی الفاظ",
+ "Reveal in order": "ترتیب سے دکھائیں",
+ "Reveal together": "ایک ساتھ دکھائیں",
+ "Remove reveal": "دکھانا ہٹائیں",
+ "Reveal": "دکھائیں",
+ "In order": "ترتیب سے",
+ "Together": "ایک ساتھ",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "→ دبانے تک پوشیدہ، پڑھنے کی ترتیب میں یکے بعد دیگرے — اوپر سے نیچے، پھر بائیں سے دائیں",
+ "Hide until → is pressed, all at once": "→ دبانے تک پوشیدہ، سب ایک ساتھ",
+ "Show with the slide again": "سلائیڈ کے ساتھ دوبارہ دکھائیں",
+ "Numbered badges on the canvas show the order; click one for the next step.": "کینوس پر نمبر والے بیج ترتیب دکھاتے ہیں؛ اگلے مرحلے کے لیے کسی ایک پر کلک کریں۔",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "دکھانے کا مرحلہ {n} — اگلے مرحلے کے لیے کلک کریں؛ نمبر پیشکش میں سیٹ کریں",
+ "Right-click ▸ Reveal in order": "رائٹ کلک ▸ ترتیب سے دکھائیں",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "منتخب عناصر کو → دبانے تک چھپاتا ہے، پڑھنے کی ترتیب میں یکے بعد دیگرے — کینوس پر نمبر والے بیج ترتیب دکھاتے ہیں",
}
diff --git a/slides/src/i18n/packs/vi.ts b/slides/src/i18n/packs/vi.ts
index 5a1e31e7..b0114397 100644
--- a/slides/src/i18n/packs/vi.ts
+++ b/slides/src/i18n/packs/vi.ts
@@ -786,4 +786,17 @@ export const strings: Catalog = {
"Use the built-in code colours": "Dùng màu mã có sẵn",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Xóa bảng màu mã của bộ trang chiếu; các đoạn mã hiển thị lại theo lược đồ chuẩn",
"Code keywords": "Từ khóa mã",
+ "Reveal in order": "Hiện theo thứ tự",
+ "Reveal together": "Hiện cùng lúc",
+ "Remove reveal": "Bỏ hiện dần",
+ "Reveal": "Hiện dần",
+ "In order": "Theo thứ tự",
+ "Together": "Cùng lúc",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Ẩn cho đến khi nhấn →, lần lượt theo thứ tự đọc — từ trên xuống, rồi từ trái sang phải",
+ "Hide until → is pressed, all at once": "Ẩn cho đến khi nhấn →, tất cả cùng lúc",
+ "Show with the slide again": "Hiện lại cùng trang chiếu",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Huy hiệu đánh số trên khung vẽ cho biết thứ tự; nhấp vào một huy hiệu để sang bước tiếp theo.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Bước hiện {n} — nhấp để sang bước tiếp theo; đặt số trong mục Trình chiếu",
+ "Right-click ▸ Reveal in order": "Nhấp chuột phải ▸ Hiện theo thứ tự",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Ẩn các phần tử đã chọn cho đến khi nhấn →, lần lượt theo thứ tự đọc — huy hiệu đánh số trên khung vẽ cho biết thứ tự",
}
diff --git a/slides/src/i18n/pt.ts b/slides/src/i18n/pt.ts
index 0a210615..88a1e186 100644
--- a/slides/src/i18n/pt.ts
+++ b/slides/src/i18n/pt.ts
@@ -848,4 +848,17 @@ export const pt: Catalog = {
"Use the built-in code colours": "Usar as cores de código incorporadas",
"Removes the deck’s code palette; snippets render with the standard scheme again": "Remove a paleta de código da apresentação; os excertos voltam ao esquema padrão",
"Code keywords": "Palavras-chave do código",
+ "Reveal in order": "Revelar por ordem",
+ "Reveal together": "Revelar em conjunto",
+ "Remove reveal": "Remover revelação",
+ "Reveal": "Revelar",
+ "In order": "Por ordem",
+ "Together": "Em conjunto",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "Ocultos até premir →, um após outro pela ordem de leitura — de cima para baixo, depois da esquerda para a direita",
+ "Hide until → is pressed, all at once": "Ocultos até premir →, todos de uma vez",
+ "Show with the slide again": "Mostrar de novo com o diapositivo",
+ "Numbered badges on the canvas show the order; click one for the next step.": "Os emblemas numerados na tela mostram a ordem; clique num deles para o passo seguinte.",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "Passo de revelação {n} — clique para o passo seguinte; o número ajusta-se em Apresentação",
+ "Right-click ▸ Reveal in order": "Clique direito ▸ Revelar por ordem",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "Oculta os elementos selecionados até premir →, um após outro pela ordem de leitura — os emblemas numerados na tela mostram a ordem",
}
diff --git a/slides/src/i18n/zh-Hans.ts b/slides/src/i18n/zh-Hans.ts
index d9a67ba7..213c2d73 100644
--- a/slides/src/i18n/zh-Hans.ts
+++ b/slides/src/i18n/zh-Hans.ts
@@ -850,4 +850,17 @@ export const zhHans: Catalog = {
"Use the built-in code colours": "使用内置代码颜色",
"Removes the deck’s code palette; snippets render with the standard scheme again": "移除文稿的代码调色板;片段恢复为标准配色",
"Code keywords": "代码关键字",
+ "Reveal in order": "按顺序显示",
+ "Reveal together": "一起显示",
+ "Remove reveal": "移除显示步骤",
+ "Reveal": "显示",
+ "In order": "按顺序",
+ "Together": "一起",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "按下 → 之前隐藏,按阅读顺序逐个显示——先从上到下,再从左到右",
+ "Hide until → is pressed, all at once": "按下 → 之前隐藏,然后一起显示",
+ "Show with the slide again": "恢复随幻灯片一起显示",
+ "Numbered badges on the canvas show the order; click one for the next step.": "画布上的数字标记显示顺序;点击一个即进入下一步。",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "显示步骤 {n} — 点击进入下一步;在“演示”中设置数字",
+ "Right-click ▸ Reveal in order": "右键 ▸ 按顺序显示",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "按下 → 之前隐藏所选元素,按阅读顺序逐个显示——画布上的数字标记显示顺序",
}
diff --git a/slides/src/i18n/zh-Hant.ts b/slides/src/i18n/zh-Hant.ts
index 28e93bb5..3a630ff4 100644
--- a/slides/src/i18n/zh-Hant.ts
+++ b/slides/src/i18n/zh-Hant.ts
@@ -850,4 +850,17 @@ export const zhHant: Catalog = {
"Use the built-in code colours": "使用內建程式碼顏色",
"Removes the deck’s code palette; snippets render with the standard scheme again": "移除文稿的程式碼調色盤;片段恢復為標準配色",
"Code keywords": "程式碼關鍵字",
+ "Reveal in order": "按順序顯示",
+ "Reveal together": "一起顯示",
+ "Remove reveal": "移除顯示步驟",
+ "Reveal": "顯示",
+ "In order": "按順序",
+ "Together": "一起",
+ "Hide until → is pressed, one after another in reading order — top to bottom, then left to right": "按下 → 之前隱藏,按閱讀順序逐一顯示——先由上到下,再由左到右",
+ "Hide until → is pressed, all at once": "按下 → 之前隱藏,然後一起顯示",
+ "Show with the slide again": "恢復隨投影片一起顯示",
+ "Numbered badges on the canvas show the order; click one for the next step.": "畫布上的數字標記顯示順序;點一下即進入下一步。",
+ "Reveal step {n} — click for the next step; set the number in Presenting": "顯示步驟 {n} — 點一下進入下一步;在「簡報」中設定數字",
+ "Right-click ▸ Reveal in order": "右鍵 ▸ 按順序顯示",
+ "Hide the selected elements until → is pressed, one after another in reading order — numbered badges on the canvas show the order": "按下 → 之前隱藏所選元素,按閱讀順序逐一顯示——畫布上的數字標記顯示順序",
}
diff --git a/slides/src/styles.css b/slides/src/styles.css
index 99c1dc34..d2315e3e 100644
--- a/slides/src/styles.css
+++ b/slides/src/styles.css
@@ -1170,6 +1170,9 @@ a.ed-btn { text-decoration: none; } /* the update block's "What's new" link is
padding: 5px 0;
justify-content: center;
}
+/* reveal verbs: caption + three text buttons sharing the row */
+.ed-reveal-row { display: flex; align-items: center; gap: 4px; margin: 3px 0; }
+.ed-reveal-row .ed-btn { flex: 1; min-width: 0; padding: 5px 4px; justify-content: center; font-size: 11px; }
.ed-arrange-cap {
flex: none;
width: 46px;
@@ -1274,6 +1277,29 @@ a.ed-btn { text-decoration: none; } /* the update block's "What's new" link is
.ed-comment-marker.fresh { animation: ed-cmt-pop 0.45s ease-out; }
.ed-comment-layer { position: absolute; inset: 0; pointer-events: none; z-index: 12; }
+
+/* reveal-step badges (editor/stepbadges.ts): editor-only chrome beside the
+ rendered slide, never inside it */
+.ed-step-layer { position: absolute; inset: 0; pointer-events: none; z-index: 12; }
+.ed-step-badge {
+ position: absolute;
+ pointer-events: auto;
+ min-width: 19px;
+ height: 19px;
+ padding: 0 5px;
+ border: 2px solid var(--surface);
+ border-radius: 10px;
+ background: #1e2a3a;
+ color: #fff;
+ font: 700 10px/15px inherit;
+ font-family: inherit;
+ text-align: center;
+ box-sizing: border-box;
+ cursor: pointer;
+ box-shadow: 0 1px 4px rgb(15 23 36 / 0.3);
+}
+.ed-step-badge.sel { background: var(--accent); color: #3a2800; }
+.ed-step-badge:hover { transform: scale(1.15); }
.ed-comment-marker {
position: absolute;
pointer-events: auto;