Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
Panel tooltips: real explanations instead of label echoes
nyblnet91ab37c1e75e
diff --git a/slides/src/editor/panels.ts b/slides/src/editor/panels.tsindex 49ddc283..46e7205c 100644--- a/slides/src/editor/panels.ts+++ b/slides/src/editor/panels.ts@@ -12,6 +12,69 @@ import { FONT_CHOICES, firstFamily, injectFonts } from '../fonts'import { ICONS } from '../icons'import { t } from '../i18n'+// Hover help for panel rows, keyed by the RAW English label (translated at+// render). A missing entry means no tooltip — better silence than an echo.+// i18n NOTE: both the keys (row labels) and the values here reach t() as+// VARIABLES — literal-extraction sweeps must treat this table as in-use+// catalog keys, never prune them.+const ROW_TIPS: Record<string, string> = {+ 'Page size': 'Deck-wide slide size. Elements keep their positions — changing size reframes the canvas, never rescales your art.',+ 'Width': 'Custom slide width in pixels',+ 'Height': 'Custom slide height in pixels',+ 'Background': 'This slide’s background colour',+ 'Transition': 'How this slide enters. Morph animates elements that share ids with the previous slide.',+ 'Name': 'A friendly name for this slide — shown in link pickers and state badges',+ 'Hover': 'What hovering does while presenting: reveal swaps content sets; focus-group dims the other groups',+ 'Hover dim': 'How strongly the non-hovered groups fade (focus-group mode)',+ 'Default set': 'The hover set everyone sees before any hover happens',+ 'Preview set': 'Which hover set to show on the canvas while you edit',+ 'Role': 'What this text IS in a layout (title, body…) — applying a layout matches elements by role',+ 'Shadow': 'Drop-shadow presets — the shadow follows the element’s real shape, corners and transparency',+ 'Color': 'Colour with opacity — pick with the swatch, the % field is transparency',+ 'Enter': 'Entrance animation when the slide appears (plays on non-morph entries; equal order = together)',+ 'Enter secs': 'How long the entrance takes, in seconds',+ 'Count up': 'Numbers in this text count up from zero when the slide enters',+ 'Ambient': 'Continuous motion while the slide is on screen — Ken Burns drift or zoom',+ 'Zoom': 'Ken Burns direction — drift, settle out, or settle in',+ 'Zoom %': 'How far the Ken Burns zoom travels',+ 'Zoom secs': 'How long one Ken Burns pass takes',+ 'Loop': 'A repeating animation: marching dashes along strokes, or motion along a drawn path',+ 'Loop secs': 'Seconds per lap of the loop',+ 'Path': 'The motion path — edit it as draggable points on the canvas',+ 'Lap easing': 'Tempo across one lap — ease-in-out dwells at the ends, linear is constant',+ 'Show on hover': 'Puts this element in a hover set — visible only while that set is active',+ 'Group': 'Presentation group — with focus-group hover, the other groups dim',+ 'Link to': 'Clicking this element during the show jumps to the chosen slide',+ 'Font': 'Typeface for this text',+ 'Size (pt)': 'Font size in points',+ 'Weight': 'Font weight — 400 regular, 700 bold',+ 'Align': 'Horizontal text alignment',+ 'V-align': 'Vertical alignment inside the box',+ 'Line height': 'Line spacing as a multiple of the font size',+ 'Fill style': 'Solid colour or a linear gradient',+ 'Fill': 'Fill colour with opacity — for lines this IS the line colour',+ 'Grad. angle': 'Gradient direction in degrees (CSS convention: 0° points up)',+ 'Stroke': 'Outline colour',+ 'Stroke width': 'Outline thickness in pixels',+ 'Line style': 'Solid, dashed or dotted stroke',+ 'Start tip': 'Decoration at the line’s start — arrow, dot or bar',+ 'End tip': 'Decoration at the line’s end — arrow, dot or bar',+ 'Corner radius': 'How rounded the corners are, in pixels',+ 'Type': 'Chart type — switching bar⇄pie animates the data across',+ 'Legend': 'Show the series legend above the chart',+ 'Second axis': 'Adds a right-hand value axis — assign series to it in the list below',+ 'Header row': 'Style the first row as a header',+ 'Preset': 'Quick table looks — Lined, Zebra, Boxed, Minimal',+ 'Header fill': 'Header row background colour',+ 'Header text': 'Header row text colour',+ 'Text': 'Table text colour',+ 'Grid lines': 'Colour of the lines between cells',+ 'Fit': 'How the media fills its box — cover crops to fill, contain letterboxes',+ 'URL': 'Link a hosted file instead of embedding — keeps the deck small',+ 'Poster': 'Preview image shown before the video plays',+ 'State of': 'Makes this slide a hidden state of another — reached by clicked links, skipped by arrow keys',+}+export class PropsPanel {private burst = false@@ -138,7 +201,7 @@ export class PropsPanel {const { width: dw, height: dh } = this.store.doc.sizeconst presetKey =Object.entries(PropsPanel.PAGE_PRESETS).find(([, s]) => s.w === dw && s.h === dh)?.[0] ?? 'Custom…'- this.row(t('Page size'), this.select(+ this.row('Page size', this.select([...Object.keys(PropsPanel.PAGE_PRESETS), 'Custom…'],presetKey,(v) => {@@ -148,14 +211,14 @@ export class PropsPanel {},))if (presetKey === 'Custom…') {- this.row(t('Width'), this.number(dw, 10, (v, fin) =>+ this.row('Width', this.number(dw, 10, (v, fin) =>this.edit(() => { this.store.doc.size.width = Math.max(320, Math.min(4000, Math.round(v))) }, fin)))- this.row(t('Height'), this.number(dh, 10, (v, fin) =>+ this.row('Height', this.number(dh, 10, (v, fin) =>this.edit(() => { this.store.doc.size.height = Math.max(320, Math.min(4000, Math.round(v))) }, fin)))}- this.row(t('Background'), this.color(slide.background, (v, fin) =>+ this.row('Background', this.color(slide.background, (v, fin) =>this.edit(() => { this.store.slide.background = v }, fin)))- this.row(t('Transition'), this.select(+ this.row('Transition', this.select(['none', 'fade', 'slide', 'zoom', 'morph'],slide.transition,(v) => this.edit(() => { this.store.slide.transition = v as TransitionKind }, true),@@ -175,7 +238,7 @@ export class PropsPanel {name.value = slide.name ?? ''name.addEventListener('change', () =>this.edit(() => { this.store.slide.name = name.value || undefined }, true))- this.row(t('Name'), name)+ this.row('Name', name)const stateSel = document.createElement('select')const optNone = document.createElement('option')@@ -196,7 +259,7 @@ export class PropsPanel {this.store.emit('slides')}, true))stateSel.title = t('A state is hidden from arrow-key flow — viewers reach it by clicking a linked element. Shared element ids morph between states.')- this.row(t('State of'), stateSel)+ this.row('State of', stateSel)if (slide.stateOf) {const sync = document.createElement('button')@@ -207,7 +270,7 @@ export class PropsPanel {this.host.appendChild(sync)}- this.row(t('Hover'), this.select(+ this.row('Hover', this.select(['none', 'focus-group', 'reveal'],slide.hover?.type ?? 'none',(v) => this.edit(() => {@@ -216,7 +279,7 @@ export class PropsPanel {: { ...(this.store.slide.hover ?? {}), type: v as 'focus-group' | 'reveal' }}, true)))if (slide.hover?.type === 'focus-group') {- this.row(t('Hover dim'), this.number(slide.hover.dim ?? 0.15, 0.01, (v, fin) =>+ this.row('Hover dim', this.number(slide.hover.dim ?? 0.15, 0.01, (v, fin) =>this.edit(() => { if (this.store.slide.hover) this.store.slide.hover.dim = Math.min(Math.max(v, 0), 1) }, fin)))}if (slide.hover?.type === 'reveal') {@@ -227,9 +290,9 @@ export class PropsPanel {defIn.value = slide.hover.default ?? ''defIn.addEventListener('change', () =>this.edit(() => { if (this.store.slide.hover) this.store.slide.hover.default = defIn.value || undefined }, true))- this.row(t('Default set'), defIn)+ this.row('Default set', defIn)if (sets.length) {- this.row(t('Preview set'), this.select(sets, this.store.hoverPreview ?? slide.hover.default ?? sets[0], (v) => {+ this.row('Preview set', this.select(sets, this.store.hoverPreview ?? slide.hover.default ?? sets[0], (v) => {this.store.hoverPreview = vthis.store.emit('current') // re-render canvas without touching the doc}))@@ -310,7 +373,7 @@ export class PropsPanel {)this.host.appendChild(geo)- this.row(t('Role'), this.select(+ this.row('Role', this.select(['none', 'title', 'subtitle', 'body', 'kicker'],el.role ?? 'none',(v) => this.mutate(el.id, (e) => {@@ -321,7 +384,7 @@ export class PropsPanel {this.section(t('Effects'))const current = Object.entries(SHADOW_PRESETS).find(([, p]) => JSON.stringify(p) === JSON.stringify(el.shadow))?.[0]?? (el.shadow ? 'custom' : 'none')- this.row(t('Shadow'), this.select(+ this.row('Shadow', this.select([...(current === 'custom' ? ['custom'] : []), 'none', ...Object.keys(SHADOW_PRESETS)],current,(v) => this.mutate(el.id, (e) => {@@ -352,7 +415,7 @@ export class PropsPanel {this.mini(t('Blur'), sh.blur, (v) => setShadow(i, { blur: Math.max(v, 0) })),)this.host.appendChild(grid)- this.row(t('Color'), this.colorAlpha(sh.color, (v, fin) => setShadow(i, { color: v }, fin)))+ this.row('Color', this.colorAlpha(sh.color, (v, fin) => setShadow(i, { color: v }, fin)))})@@ -377,7 +440,7 @@ export class PropsPanel {else e.fx = fx}, true)- this.row(t('Enter'), this.select(+ this.row('Enter', this.select(['none', 'fade', 'fade-up', 'fade-down', 'slide-left', 'slide-right', 'slide-up', 'slide-down'],el.fx?.enter ?? 'none',(v) => setFx(v === 'none'@@ -385,14 +448,14 @@ export class PropsPanel {: { enter: v as NonNullable<typeof el.fx>['enter'] })))if (el.fx?.enter) {// per-kind default (slide-* 0.75s, fade-* 0.55s); lower = snappier- this.row(t('Enter secs'), this.number(+ this.row('Enter secs', this.number(el.fx.enterDur ?? (el.fx.enter.startsWith('slide-') ? 0.75 : 0.55), 0.05,(v, fin) => { if (fin) setFx({ enterDur: Math.max(v, 0.05) }) }))}- this.row(t('Count up'), this.select(+ this.row('Count up', this.select(['off', 'on'], el.fx?.countUp ? 'on' : 'off',(v) => setFx({ countUp: v === 'on' ? true : undefined })))- this.row(t('Ambient'), this.select(+ this.row('Ambient', this.select(['none', 'kenburns'], el.fx?.ambient ?? 'none',(v) => setFx(v === 'none' ? { ambient: undefined, ken: undefined } : { ambient: 'kenburns' })))if (el.fx?.ambient === 'kenburns') {@@ -400,7 +463,7 @@ export class PropsPanel {const dir = ken.dir ?? 'drift'const setKen = (patch: Partial<NonNullable<NonNullable<SlideElement['fx']>['ken']>>) =>setFx({ ken: { ...ken, ...patch } })- this.row(t('Zoom'), this.select(+ this.row('Zoom', this.select(['drift', 'zoom-out', 'zoom-in'],dir === 'out' ? 'zoom-out' : dir === 'in' ? 'zoom-in' : 'drift',(v) => {@@ -408,17 +471,17 @@ export class PropsPanel {// give each style its natural pace when switchingsetFx({ ken: d === 'drift' ? undefined : { dir: d, scale: 1.06, duration: 2.5 } })}))- this.row(t('Zoom %'), this.number(+ this.row('Zoom %', this.number(Math.round(((ken.scale ?? (dir === 'drift' ? 1.1 : 1.06)) - 1) * 100), 1,(v, fin) => { if (fin) setKen({ scale: 1 + Math.min(Math.max(v, 0), 100) / 100 }) }))- this.row(t('Zoom secs'), this.number(+ this.row('Zoom secs', this.number(ken.duration ?? (dir === 'drift' ? 26 : 2.5), 0.1,(v, fin) => { if (fin) setKen({ duration: Math.max(v, 0.1) }) }))}// continuous loop animationconst loop = el.fx?.loop- this.row(t('Loop'), this.select(+ this.row('Loop', this.select(['none', 'dash-march', 'motion-path'],loop?.type ?? 'none',(v) => setFx({@@ -427,7 +490,7 @@ export class PropsPanel {: { type: 'motion-path', path: (loop as any)?.path ?? 'M 0 0 L 100 0', duration: (loop as any)?.duration ?? 3 },})))if (loop) {- this.row(t('Loop secs'), this.number(loop.duration ?? 2, 0.1, (v, fin) =>+ this.row('Loop secs', this.number(loop.duration ?? 2, 0.1, (v, fin) =>this.mutate(el.id, (e) => { if (e.fx?.loop) e.fx.loop.duration = Math.max(v, 0.1) }, fin)))if (loop.type === 'motion-path') {const path = document.createElement('input')@@ -436,10 +499,10 @@ export class PropsPanel {path.title = t('SVG path the element travels along, relative to its position')path.addEventListener('change', () =>this.mutate(el.id, (e) => { if (e.fx?.loop?.type === 'motion-path') e.fx.loop.path = path.value }, true))- this.row(t('Path'), path)+ this.row('Path', path)// lap easing — the tempo of a whole lap (per-anchor speed is edited on canvas)- this.row(t('Lap easing'), this.labeledSelect(+ this.row('Lap easing', this.labeledSelect([['none', t('Constant')], ['sine.inOut', t('Ease in-out')], ['power2.in', t('Ease in')], ['power2.out', t('Ease out')]],(loop as { ease?: string }).ease ?? 'none',(v) => this.mutate(el.id, (e) => {@@ -477,7 +540,7 @@ export class PropsPanel {this.store.hoverPreview = soh.value || nullthis.store.emit('current')})- this.row(t('Show on hover'), soh)+ this.row('Show on hover', soh)// group tag (hover focus & interaction targeting)const group = document.createElement('input')@@ -489,7 +552,7 @@ export class PropsPanel {if (group.value) e.group = group.valueelse delete e.group}, true))- this.row(t('Group'), group)+ this.row('Group', group)// link → slide pickerconst sel = document.createElement('select')@@ -509,7 +572,7 @@ export class PropsPanel {if (sel.value) e.link = sel.valueelse delete e.link}, true))- this.row(t('Link to'), sel)+ this.row('Link to', sel)// one-click interactivity: duplicate this slide as a hidden state// (element ids preserved ⇒ it morphs) and link this element to it@@ -612,21 +675,21 @@ export class PropsPanel {hint.className = 'ed-hint'hint.innerHTML = t('While editing: <b>⌘B</b>/<b>⌘I</b>/<b>⌘U</b> · markdown auto-converts — **bold*​* *italic*​ `code` ~~strike~~ and "- " bullets; pasting markdown converts too. Escape with \\ or press ⌘Z right after to keep the literal characters.')this.host.appendChild(hint)- this.row(t('Font'), this.fontSelect(el))+ this.row('Font', this.fontSelect(el))// Shown in POINTS (the unit office users know); the model stores slide-space// px. 1pt = 4/3 px at the slide's 96dpi space, so 32px = 24pt exactly.- this.row(t('Size (pt)'), this.number(Math.round(el.fontSize * 0.75 * 10) / 10, 1, (v, fin) =>+ this.row('Size (pt)', this.number(Math.round(el.fontSize * 0.75 * 10) / 10, 1, (v, fin) =>this.mutate(el.id, (e) => {(e as TextElement).fontSize = Math.round(Math.max(v, 3) * (4 / 3) * 100) / 100}, fin)))- this.row(t('Weight'), this.weightSelect(el))- this.row(t('Color'), this.color(el.color, (v, fin) =>+ this.row('Weight', this.weightSelect(el))+ this.row('Color', this.color(el.color, (v, fin) =>this.mutate(el.id, (e) => { (e as TextElement).color = v }, fin)))- this.row(t('Align'), this.select(['left', 'center', 'right'], el.align, (v) =>+ this.row('Align', this.select(['left', 'center', 'right'], el.align, (v) =>this.mutate(el.id, (e) => { (e as TextElement).align = v as TextElement['align'] }, true)))- this.row(t('V-align'), this.select(['top', 'middle', 'bottom'], el.valign, (v) =>+ this.row('V-align', this.select(['top', 'middle', 'bottom'], el.valign, (v) =>this.mutate(el.id, (e) => { (e as TextElement).valign = v as TextElement['valign'] }, true)))- this.row(t('Line height'), this.number(el.lineHeight, 0.05, (v, fin) =>+ this.row('Line height', this.number(el.lineHeight, 0.05, (v, fin) =>this.mutate(el.id, (e) => { (e as TextElement).lineHeight = Math.max(v, 0.5) }, fin)))const embed = document.createElement('button')@@ -703,7 +766,7 @@ export class PropsPanel {private buildShapeProps(el: ShapeElement) {this.section(t('Fill & stroke'))const grad = el.fillGradient- this.row(t('Fill style'), this.select(['solid', 'gradient'], grad ? 'gradient' : 'solid', (v) =>+ this.row('Fill style', this.select(['solid', 'gradient'], grad ? 'gradient' : 'solid', (v) =>this.mutate(el.id, (e) => {const s = e as ShapeElementif (v === 'gradient') {@@ -721,10 +784,10 @@ export class PropsPanel {}, true)))if (!grad) {- this.row(t('Fill'), this.colorAlpha(el.fill, (v, fin) =>+ this.row('Fill', this.colorAlpha(el.fill, (v, fin) =>this.mutate(el.id, (e) => { (e as ShapeElement).fill = v }, fin)))} else {- this.row(t('Grad. angle'), this.number(grad.angle, 1, (v, fin) =>+ this.row('Grad. angle', this.number(grad.angle, 1, (v, fin) =>this.mutate(el.id, (e) => {const g = (e as ShapeElement).fillGradientif (g) g.angle = v@@ -772,11 +835,11 @@ export class PropsPanel {this.host.appendChild(add)}- this.row(t('Stroke'), this.colorAlpha(el.stroke === 'transparent' ? 'rgba(30, 42, 58, 0)' : el.stroke, (v, fin) =>+ this.row('Stroke', this.colorAlpha(el.stroke === 'transparent' ? 'rgba(30, 42, 58, 0)' : el.stroke, (v, fin) =>this.mutate(el.id, (e) => { (e as ShapeElement).stroke = v }, fin)))- this.row(t('Stroke width'), this.number(el.strokeWidth, 0.5, (v, fin) =>+ this.row('Stroke width', this.number(el.strokeWidth, 0.5, (v, fin) =>this.mutate(el.id, (e) => { (e as ShapeElement).strokeWidth = Math.max(v, 0) }, fin)))- this.row(t('Line style'), this.select(+ this.row('Line style', this.select(['solid', 'dashed', 'dotted'],el.strokeStyle ?? (el.strokeDash ? 'dashed' : 'solid'),(v) => this.mutate(el.id, (e) => {@@ -786,13 +849,13 @@ export class PropsPanel {}, true)))if (el.shape === 'line') {const ENDINGS = ['none', 'arrow', 'dot', 'bar']- this.row(t('Start tip'), this.select(ENDINGS, el.lineStart ?? 'none', (v) =>+ this.row('Start tip', this.select(ENDINGS, el.lineStart ?? 'none', (v) =>this.mutate(el.id, (e) => { (e as ShapeElement).lineStart = v === 'none' ? undefined : (v as LineEnding) }, true)))- this.row(t('End tip'), this.select(ENDINGS, el.lineEnd ?? 'none', (v) =>+ this.row('End tip', this.select(ENDINGS, el.lineEnd ?? 'none', (v) =>this.mutate(el.id, (e) => { (e as ShapeElement).lineEnd = v === 'none' ? undefined : (v as LineEnding) }, true)))}if (el.shape === 'rect') {- this.row(t('Corner radius'), this.number(el.radius, 1, (v, fin) =>+ this.row('Corner radius', this.number(el.radius, 1, (v, fin) =>this.mutate(el.id, (e) => { (e as ShapeElement).radius = Math.max(v, 0) }, fin)))}}@@ -837,7 +900,7 @@ export class PropsPanel {linkRow.append(label, unlink)this.host.appendChild(linkRow)}- this.row(t('Type'), this.select(Object.keys(CHART_PRESETS), el.preset ?? 'bar', (v) =>+ this.row('Type', this.select(Object.keys(CHART_PRESETS), el.preset ?? 'bar', (v) =>this.mutate(el.id, (e) => {const c = e as ChartElementc.preset = v@@ -884,10 +947,10 @@ export class PropsPanel {const yAxis: any[] = Array.isArray(opt.yAxis) ? opt.yAxis : opt.yAxis ? [opt.yAxis] : [{ type: 'value' }]const twoAxes = yAxis.length > 1- this.row(t('Legend'), this.toggle(!!opt.legend, (on) =>+ this.row('Legend', this.toggle(!!opt.legend, (on) =>this.editOption(el.id, (o) => { if (on) o.legend = { bottom: 0 }; else delete o.legend })))- this.row(t('Second axis'), this.toggle(twoAxes, (on) => this.editOption(el.id, (o) => {+ this.row('Second axis', this.toggle(twoAxes, (on) => this.editOption(el.id, (o) => {const ss: any[] = Array.isArray(o.series) ? o.series : o.series ? [o.series] : []if (on) {const first = Array.isArray(o.yAxis) ? (o.yAxis[0] ?? {}) : (o.yAxis ?? {})@@ -1115,7 +1178,7 @@ export class PropsPanel {else if (tb.rows.length > minRows) tb.rows.pop()}, true))- this.row(t('Header row'), this.toggle(el.header, (v) => this.mutate(el.id, (e) => {+ this.row('Header row', this.toggle(el.header, (v) => this.mutate(el.id, (e) => {(e as TableElement).header = v}, true)))@@ -1126,7 +1189,7 @@ export class PropsPanel {: st.zebra ? 'Zebra': 'Minimal'this.section(t('Style'))- this.row(t('Preset'), this.select(['Lined', 'Zebra', 'Boxed', 'Minimal'], preset, (v) =>+ this.row('Preset', this.select(['Lined', 'Zebra', 'Boxed', 'Minimal'], preset, (v) =>this.mutate(el.id, (e) => {const s = (e as TableElement).styles.borderWidth = v === 'Lined' || v === 'Boxed' ? 1 : 0@@ -1135,13 +1198,13 @@ export class PropsPanel {else if (s.headerBg === 'transparent') { s.headerBg = '#1E2A3A'; s.headerColor = '#FFFFFF' }}, true)))- this.row(t('Header fill'), this.colorAlpha(st.headerBg, (v, fin) =>+ this.row('Header fill', this.colorAlpha(st.headerBg, (v, fin) =>this.mutate(el.id, (e) => { (e as TableElement).style.headerBg = v }, fin)))- this.row(t('Header text'), this.colorAlpha(st.headerColor, (v, fin) =>+ this.row('Header text', this.colorAlpha(st.headerColor, (v, fin) =>this.mutate(el.id, (e) => { (e as TableElement).style.headerColor = v }, fin)))- this.row(t('Text'), this.colorAlpha(st.color, (v, fin) =>+ this.row('Text', this.colorAlpha(st.color, (v, fin) =>this.mutate(el.id, (e) => { (e as TableElement).style.color = v }, fin)))- this.row(t('Grid lines'), this.colorAlpha(st.borderColor, (v, fin) =>+ this.row('Grid lines', this.colorAlpha(st.borderColor, (v, fin) =>this.mutate(el.id, (e) => { (e as TableElement).style.borderColor = v }, fin)))const grid = document.createElement('div')@@ -1242,9 +1305,9 @@ export class PropsPanel {private buildImageProps(el: SlideElement) {this.section(t('Fit & corners'))- this.row(t('Fit'), this.select(['contain', 'cover', 'fill'], (el as any).fit, (v) =>+ this.row('Fit', this.select(['contain', 'cover', 'fill'], (el as any).fit, (v) =>this.mutate(el.id, (e) => { (e as any).fit = v }, true)))- this.row(t('Corner radius'), this.number((el as any).radius, 1, (v, fin) =>+ this.row('Corner radius', this.number((el as any).radius, 1, (v, fin) =>this.mutate(el.id, (e) => { (e as any).radius = Math.max(v, 0) }, fin)))}@@ -1291,7 +1354,7 @@ export class PropsPanel {url.value = el.src && !el.src.startsWith('data:') ? el.src : ''url.addEventListener('change', () =>this.mutate(el.id, (e) => { (e as MediaElement).src = url.value.trim() }, true))- this.row(t('URL'), url)+ this.row('URL', url)// playbackconst toggle = (label: string, on: boolean, set: (v: boolean) => void) =>@@ -1306,9 +1369,9 @@ export class PropsPanel {this.host.appendChild(note)if (el.kind === 'video') {- this.row(t('Fit'), this.select(['contain', 'cover', 'fill'], el.fit ?? 'contain', (v) =>+ this.row('Fit', this.select(['contain', 'cover', 'fill'], el.fit ?? 'contain', (v) =>this.mutate(el.id, (e) => { (e as MediaElement).fit = v as MediaElement['fit'] }, true)))- this.row(t('Corner radius'), this.number(el.radius ?? 0, 1, (v, fin) =>+ this.row('Corner radius', this.number(el.radius ?? 0, 1, (v, fin) =>this.mutate(el.id, (e) => { (e as MediaElement).radius = Math.max(v, 0) }, fin)))const poster = document.createElement('input')poster.type = 'text'@@ -1320,7 +1383,7 @@ export class PropsPanel {const v = poster.value.trim()if (v) m.poster = v; else delete m.poster}, true))- this.row(t('Poster'), poster)+ this.row('Poster', poster)}}@@ -1535,10 +1598,11 @@ export class PropsPanel {const row = document.createElement('label')row.className = 'ed-row'const span = document.createElement('span')- span.textContent = label- // baseline discoverability: every control answers "what is this?" on hover;- // controls with a richer, specific tooltip keep their own- if (!input.title) input.title = label+ span.textContent = t(label)+ // real help on hover (label + control): looked up by the RAW English label;+ // rows without an entry get no tooltip — never a useless label echo+ const tip = ROW_TIPS[label]+ if (tip && !input.title) row.title = t(tip)row.append(span, input)this.host.appendChild(row)}diff --git a/slides/src/i18n/de.ts b/slides/src/i18n/de.tsindex f497c4cc..b5af9eb6 100644--- a/slides/src/i18n/de.ts+++ b/slides/src/i18n/de.ts@@ -556,4 +556,59 @@ export const de: Catalog = {"you": "du","{name} was removed": "{name} wurde entfernt",+ 'Deck-wide slide size. Elements keep their positions — changing size reframes the canvas, never rescales your art.': 'Foliengröße für das ganze Deck. Elemente behalten ihre Position — eine Größenänderung rahmt die Leinwand neu, skaliert aber nie deine Inhalte.',+ 'Custom slide width in pixels': 'Eigene Folienbreite in Pixeln',+ 'Custom slide height in pixels': 'Eigene Folienhöhe in Pixeln',+ 'This slide’s background colour': 'Hintergrundfarbe dieser Folie',+ 'How this slide enters. Morph animates elements that share ids with the previous slide.': 'Wie diese Folie erscheint. Morph animiert Elemente, die eine id mit der vorigen Folie teilen.',+ 'A friendly name for this slide — shown in link pickers and state badges': 'Name dieser Folie — erscheint in Link-Auswahlen und Zustands-Badges',+ 'What hovering does while presenting: reveal swaps content sets; focus-group dims the other groups': 'Was Hovern beim Präsentieren tut: reveal wechselt Inhaltssets; focus-group dimmt die anderen Gruppen',+ 'How strongly the non-hovered groups fade (focus-group mode)': 'Wie stark nicht gehoverte Gruppen abdunkeln (focus-group-Modus)',+ 'The hover set everyone sees before any hover happens': 'Das Set, das vor jedem Hovern sichtbar ist',+ 'Which hover set to show on the canvas while you edit': 'Welches Hover-Set beim Bearbeiten auf der Leinwand gezeigt wird',+ 'What this text IS in a layout (title, body…) — applying a layout matches elements by role': 'Was dieser Text in einem Layout IST (Titel, Fließtext…) — beim Anwenden wird nach Rolle zugeordnet',+ 'Drop-shadow presets — the shadow follows the element’s real shape, corners and transparency': 'Schatten-Presets — der Schatten folgt der echten Form des Elements, Rundungen und Transparenz',+ 'Colour with opacity — pick with the swatch, the % field is transparency': 'Farbe mit Deckkraft — per Farbfeld wählen, das %-Feld ist die Transparenz',+ 'Entrance animation when the slide appears (plays on non-morph entries; equal order = together)': 'Eingangsanimation beim Erscheinen der Folie (nur bei Nicht-Morph-Einstiegen; gleiche Reihenfolge = gleichzeitig)',+ 'How long the entrance takes, in seconds': 'Dauer des Eingangs in Sekunden',+ 'Numbers in this text count up from zero when the slide enters': 'Zahlen in diesem Text zählen beim Folieneintritt von null hoch',+ 'Continuous motion while the slide is on screen — Ken Burns drift or zoom': 'Dauerbewegung, solange die Folie zu sehen ist — Ken-Burns-Drift oder -Zoom',+ 'Ken Burns direction — drift, settle out, or settle in': 'Ken-Burns-Richtung — Drift, Heraus- oder Hineinzoomen',+ 'How far the Ken Burns zoom travels': 'Wie weit der Ken-Burns-Zoom fährt',+ 'How long one Ken Burns pass takes': 'Dauer eines Ken-Burns-Durchlaufs',+ 'A repeating animation: marching dashes along strokes, or motion along a drawn path': 'Eine Endlos-Animation: wandernde Striche entlang Konturen oder Bewegung entlang eines gezeichneten Pfads',+ 'Seconds per lap of the loop': 'Sekunden pro Runde',+ 'The motion path — edit it as draggable points on the canvas': 'Der Bewegungspfad — als ziehbare Punkte auf der Leinwand editierbar',+ 'Tempo across one lap — ease-in-out dwells at the ends, linear is constant': 'Tempo pro Runde — ease-in-out verweilt an den Enden, linear ist konstant',+ 'Puts this element in a hover set — visible only while that set is active': 'Steckt dieses Element in ein Hover-Set — nur sichtbar, solange das Set aktiv ist',+ 'Presentation group — with focus-group hover, the other groups dim': 'Präsentationsgruppe — beim focus-group-Hovern dimmen die anderen Gruppen',+ 'Clicking this element during the show jumps to the chosen slide': 'Ein Klick auf dieses Element springt in der Show zur gewählten Folie',+ 'Typeface for this text': 'Schriftart dieses Texts',+ 'Font size in points': 'Schriftgröße in Punkt',+ 'Font weight — 400 regular, 700 bold': 'Schriftstärke — 400 normal, 700 fett',+ 'Horizontal text alignment': 'Horizontale Textausrichtung',+ 'Vertical alignment inside the box': 'Vertikale Ausrichtung im Rahmen',+ 'Line spacing as a multiple of the font size': 'Zeilenabstand als Vielfaches der Schriftgröße',+ 'Solid colour or a linear gradient': 'Volltonfarbe oder linearer Verlauf',+ 'Fill colour with opacity — for lines this IS the line colour': 'Füllfarbe mit Deckkraft — bei Linien IST das die Linienfarbe',+ 'Gradient direction in degrees (CSS convention: 0° points up)': 'Verlaufsrichtung in Grad (CSS-Konvention: 0° zeigt nach oben)',+ 'Outline colour': 'Konturfarbe',+ 'Outline thickness in pixels': 'Konturstärke in Pixeln',+ 'Solid, dashed or dotted stroke': 'Durchgezogen, gestrichelt oder gepunktet',+ 'Decoration at the line’s start — arrow, dot or bar': 'Verzierung am Linienanfang — Pfeil, Punkt oder Balken',+ 'Decoration at the line’s end — arrow, dot or bar': 'Verzierung am Linienende — Pfeil, Punkt oder Balken',+ 'How rounded the corners are, in pixels': 'Eckenrundung in Pixeln',+ 'Chart type — switching bar⇄pie animates the data across': 'Diagrammtyp — der Wechsel Balken⇄Kreis animiert die Daten',+ 'Show the series legend above the chart': 'Serienlegende über dem Diagramm anzeigen',+ 'Adds a right-hand value axis — assign series to it in the list below': 'Fügt rechts eine zweite Werteachse hinzu — Serien unten in der Liste zuweisen',+ 'Style the first row as a header': 'Erste Zeile als Kopfzeile formatieren',+ 'Quick table looks — Lined, Zebra, Boxed, Minimal': 'Schnelle Tabellen-Looks — Lined, Zebra, Boxed, Minimal',+ 'Header row background colour': 'Hintergrundfarbe der Kopfzeile',+ 'Header row text colour': 'Textfarbe der Kopfzeile',+ 'Table text colour': 'Textfarbe der Tabelle',+ 'Colour of the lines between cells': 'Farbe der Linien zwischen Zellen',+ 'How the media fills its box — cover crops to fill, contain letterboxes': 'Wie das Medium seinen Rahmen füllt — cover beschneidet, contain passt ein',+ 'Link a hosted file instead of embedding — keeps the deck small': 'Statt einzubetten eine gehostete Datei verlinken — hält das Deck klein',+ 'Preview image shown before the video plays': 'Vorschaubild, das vor dem Abspielen des Videos gezeigt wird',+ 'Makes this slide a hidden state of another — reached by clicked links, skipped by arrow keys': 'Macht diese Folie zum verborgenen Zustand einer anderen — per Klick-Link erreichbar, Pfeiltasten überspringen sie',}diff --git a/slides/src/i18n/es.ts b/slides/src/i18n/es.tsindex af6da0a5..72eeabe4 100644--- a/slides/src/i18n/es.ts+++ b/slides/src/i18n/es.ts@@ -556,4 +556,59 @@ export const es: Catalog = {"you": "tú","{name} was removed": "{name} fue eliminado",+ 'Deck-wide slide size. Elements keep their positions — changing size reframes the canvas, never rescales your art.': 'Tamaño de diapositiva de todo el mazo. Los elementos conservan su posición: cambiar el tamaño reencuadra el lienzo, nunca reescala tu diseño.',+ 'Custom slide width in pixels': 'Ancho personalizado en píxeles',+ 'Custom slide height in pixels': 'Alto personalizado en píxeles',+ 'This slide’s background colour': 'Color de fondo de esta diapositiva',+ 'How this slide enters. Morph animates elements that share ids with the previous slide.': 'Cómo entra esta diapositiva. Morph anima los elementos que comparten id con la anterior.',+ 'A friendly name for this slide — shown in link pickers and state badges': 'Nombre de esta diapositiva — aparece en los selectores de enlaces y en las insignias de estado',+ 'What hovering does while presenting: reveal swaps content sets; focus-group dims the other groups': 'Qué hace el hover al presentar: reveal alterna conjuntos de contenido; focus-group atenúa los demás grupos',+ 'How strongly the non-hovered groups fade (focus-group mode)': 'Cuánto se atenúan los grupos sin hover (modo focus-group)',+ 'The hover set everyone sees before any hover happens': 'El conjunto visible antes de cualquier hover',+ 'Which hover set to show on the canvas while you edit': 'Qué conjunto de hover mostrar en el lienzo mientras editas',+ 'What this text IS in a layout (title, body…) — applying a layout matches elements by role': 'Qué ES este texto en un diseño (título, cuerpo…) — al aplicar un diseño se emparejan por rol',+ 'Drop-shadow presets — the shadow follows the element’s real shape, corners and transparency': 'Preajustes de sombra — la sombra sigue la forma real del elemento, sus esquinas y transparencias',+ 'Colour with opacity — pick with the swatch, the % field is transparency': 'Color con opacidad — elige con la muestra; el campo % es la transparencia',+ 'Entrance animation when the slide appears (plays on non-morph entries; equal order = together)': 'Animación de entrada al aparecer la diapositiva (solo en entradas sin morph; mismo orden = a la vez)',+ 'How long the entrance takes, in seconds': 'Duración de la entrada, en segundos',+ 'Numbers in this text count up from zero when the slide enters': 'Los números de este texto cuentan desde cero al entrar la diapositiva',+ 'Continuous motion while the slide is on screen — Ken Burns drift or zoom': 'Movimiento continuo mientras la diapositiva está en pantalla — deriva o zoom Ken Burns',+ 'Ken Burns direction — drift, settle out, or settle in': 'Dirección Ken Burns — deriva, asentar alejando o asentar acercando',+ 'How far the Ken Burns zoom travels': 'Cuánto avanza el zoom Ken Burns',+ 'How long one Ken Burns pass takes': 'Duración de una pasada Ken Burns',+ 'A repeating animation: marching dashes along strokes, or motion along a drawn path': 'Animación en bucle: guiones en marcha por los trazos, o movimiento por una ruta dibujada',+ 'Seconds per lap of the loop': 'Segundos por vuelta del bucle',+ 'The motion path — edit it as draggable points on the canvas': 'La ruta de movimiento — edítala como puntos arrastrables en el lienzo',+ 'Tempo across one lap — ease-in-out dwells at the ends, linear is constant': 'Ritmo de cada vuelta — ease-in-out se demora en los extremos, linear es constante',+ 'Puts this element in a hover set — visible only while that set is active': 'Pone este elemento en un conjunto de hover — visible solo mientras ese conjunto está activo',+ 'Presentation group — with focus-group hover, the other groups dim': 'Grupo de presentación — con hover focus-group, los demás grupos se atenúan',+ 'Clicking this element during the show jumps to the chosen slide': 'Al hacer clic en este elemento durante la presentación se salta a la diapositiva elegida',+ 'Typeface for this text': 'Tipografía de este texto',+ 'Font size in points': 'Tamaño de fuente en puntos',+ 'Font weight — 400 regular, 700 bold': 'Peso de la fuente — 400 normal, 700 negrita',+ 'Horizontal text alignment': 'Alineación horizontal del texto',+ 'Vertical alignment inside the box': 'Alineación vertical dentro de la caja',+ 'Line spacing as a multiple of the font size': 'Interlineado como múltiplo del tamaño de fuente',+ 'Solid colour or a linear gradient': 'Color sólido o degradado lineal',+ 'Fill colour with opacity — for lines this IS the line colour': 'Color de relleno con opacidad — en las líneas este ES el color de la línea',+ 'Gradient direction in degrees (CSS convention: 0° points up)': 'Dirección del degradado en grados (convención CSS: 0° apunta arriba)',+ 'Outline colour': 'Color del contorno',+ 'Outline thickness in pixels': 'Grosor del contorno en píxeles',+ 'Solid, dashed or dotted stroke': 'Trazo sólido, discontinuo o punteado',+ 'Decoration at the line’s start — arrow, dot or bar': 'Decoración al inicio de la línea — flecha, punto o barra',+ 'Decoration at the line’s end — arrow, dot or bar': 'Decoración al final de la línea — flecha, punto o barra',+ 'How rounded the corners are, in pixels': 'Redondez de las esquinas, en píxeles',+ 'Chart type — switching bar⇄pie animates the data across': 'Tipo de gráfico — cambiar barra⇄circular anima los datos',+ 'Show the series legend above the chart': 'Mostrar la leyenda de series sobre el gráfico',+ 'Adds a right-hand value axis — assign series to it in the list below': 'Añade un eje de valores a la derecha — asigna series en la lista de abajo',+ 'Style the first row as a header': 'Dar formato de encabezado a la primera fila',+ 'Quick table looks — Lined, Zebra, Boxed, Minimal': 'Estilos rápidos de tabla — Lined, Zebra, Boxed, Minimal',+ 'Header row background colour': 'Color de fondo de la fila de encabezado',+ 'Header row text colour': 'Color del texto del encabezado',+ 'Table text colour': 'Color del texto de la tabla',+ 'Colour of the lines between cells': 'Color de las líneas entre celdas',+ 'How the media fills its box — cover crops to fill, contain letterboxes': 'Cómo llena el medio su caja — cover recorta para llenar, contain lo encaja entero',+ 'Link a hosted file instead of embedding — keeps the deck small': 'Enlaza un archivo alojado en vez de incrustarlo — mantiene el mazo ligero',+ 'Preview image shown before the video plays': 'Imagen de vista previa mostrada antes de reproducir el vídeo',+ 'Makes this slide a hidden state of another — reached by clicked links, skipped by arrow keys': 'Convierte esta diapositiva en un estado oculto de otra — se llega con enlaces, las flechas la saltan',}diff --git a/slides/src/i18n/fr.ts b/slides/src/i18n/fr.tsindex 985d58ab..dff8e49f 100644--- a/slides/src/i18n/fr.ts+++ b/slides/src/i18n/fr.ts@@ -556,4 +556,59 @@ export const fr: Catalog = {"you": "vous","{name} was removed": "{name} a été retiré",+ 'Deck-wide slide size. Elements keep their positions — changing size reframes the canvas, never rescales your art.': 'Taille de diapositive pour tout le deck. Les éléments gardent leur position — changer la taille recadre le canevas, sans jamais redimensionner votre travail.',+ 'Custom slide width in pixels': 'Largeur personnalisée en pixels',+ 'Custom slide height in pixels': 'Hauteur personnalisée en pixels',+ 'This slide’s background colour': 'Couleur de fond de cette diapositive',+ 'How this slide enters. Morph animates elements that share ids with the previous slide.': 'Comment cette diapositive entre. Morph anime les éléments qui partagent un id avec la précédente.',+ 'A friendly name for this slide — shown in link pickers and state badges': 'Nom de cette diapositive — affiché dans les sélecteurs de liens et les badges d’état',+ 'What hovering does while presenting: reveal swaps content sets; focus-group dims the other groups': 'Effet du survol en présentation : reveal alterne les jeux de contenu ; focus-group atténue les autres groupes',+ 'How strongly the non-hovered groups fade (focus-group mode)': 'Intensité de l’atténuation des groupes non survolés (mode focus-group)',+ 'The hover set everyone sees before any hover happens': 'Le jeu affiché avant tout survol',+ 'Which hover set to show on the canvas while you edit': 'Jeu de survol à afficher sur le canevas pendant l’édition',+ 'What this text IS in a layout (title, body…) — applying a layout matches elements by role': 'Ce que ce texte EST dans une mise en page (titre, corps…) — l’application d’une mise en page apparie par rôle',+ 'Drop-shadow presets — the shadow follows the element’s real shape, corners and transparency': 'Préréglages d’ombre portée — l’ombre épouse la forme réelle de l’élément, ses angles et sa transparence',+ 'Colour with opacity — pick with the swatch, the % field is transparency': 'Couleur avec opacité — choisissez via la pastille, le champ % est la transparence',+ 'Entrance animation when the slide appears (plays on non-morph entries; equal order = together)': 'Animation d’entrée à l’apparition de la diapositive (jouée hors morph ; même ordre = ensemble)',+ 'How long the entrance takes, in seconds': 'Durée de l’entrée, en secondes',+ 'Numbers in this text count up from zero when the slide enters': 'Les nombres de ce texte comptent depuis zéro à l’entrée de la diapositive',+ 'Continuous motion while the slide is on screen — Ken Burns drift or zoom': 'Mouvement continu pendant l’affichage — dérive ou zoom Ken Burns',+ 'Ken Burns direction — drift, settle out, or settle in': 'Direction Ken Burns — dérive, zoom arrière ou zoom avant',+ 'How far the Ken Burns zoom travels': 'Amplitude du zoom Ken Burns',+ 'How long one Ken Burns pass takes': 'Durée d’un passage Ken Burns',+ 'A repeating animation: marching dashes along strokes, or motion along a drawn path': 'Animation en boucle : tirets défilant le long des traits, ou déplacement le long d’un tracé',+ 'Seconds per lap of the loop': 'Secondes par tour de boucle',+ 'The motion path — edit it as draggable points on the canvas': 'Le tracé de mouvement — modifiable par points déplaçables sur le canevas',+ 'Tempo across one lap — ease-in-out dwells at the ends, linear is constant': 'Tempo d’un tour — ease-in-out ralentit aux extrémités, linear est constant',+ 'Puts this element in a hover set — visible only while that set is active': 'Place cet élément dans un jeu de survol — visible seulement quand ce jeu est actif',+ 'Presentation group — with focus-group hover, the other groups dim': 'Groupe de présentation — avec le survol focus-group, les autres groupes s’atténuent',+ 'Clicking this element during the show jumps to the chosen slide': 'Cliquer sur cet élément pendant la présentation mène à la diapositive choisie',+ 'Typeface for this text': 'Police de ce texte',+ 'Font size in points': 'Corps en points',+ 'Font weight — 400 regular, 700 bold': 'Graisse — 400 normal, 700 gras',+ 'Horizontal text alignment': 'Alignement horizontal du texte',+ 'Vertical alignment inside the box': 'Alignement vertical dans le bloc',+ 'Line spacing as a multiple of the font size': 'Interligne en multiple du corps',+ 'Solid colour or a linear gradient': 'Couleur unie ou dégradé linéaire',+ 'Fill colour with opacity — for lines this IS the line colour': 'Couleur de remplissage avec opacité — pour les lignes, c’est LA couleur de la ligne',+ 'Gradient direction in degrees (CSS convention: 0° points up)': 'Direction du dégradé en degrés (convention CSS : 0° vers le haut)',+ 'Outline colour': 'Couleur du contour',+ 'Outline thickness in pixels': 'Épaisseur du contour en pixels',+ 'Solid, dashed or dotted stroke': 'Trait plein, tirets ou pointillés',+ 'Decoration at the line’s start — arrow, dot or bar': 'Décoration au départ de la ligne — flèche, point ou barre',+ 'Decoration at the line’s end — arrow, dot or bar': 'Décoration à l’arrivée de la ligne — flèche, point ou barre',+ 'How rounded the corners are, in pixels': 'Arrondi des angles, en pixels',+ 'Chart type — switching bar⇄pie animates the data across': 'Type de graphique — passer de barres⇄secteurs anime les données',+ 'Show the series legend above the chart': 'Afficher la légende des séries au-dessus du graphique',+ 'Adds a right-hand value axis — assign series to it in the list below': 'Ajoute un axe de valeurs à droite — affectez-y des séries dans la liste ci-dessous',+ 'Style the first row as a header': 'Mettre la première ligne en en-tête',+ 'Quick table looks — Lined, Zebra, Boxed, Minimal': 'Styles rapides de tableau — Lined, Zebra, Boxed, Minimal',+ 'Header row background colour': 'Couleur de fond de l’en-tête',+ 'Header row text colour': 'Couleur du texte de l’en-tête',+ 'Table text colour': 'Couleur du texte du tableau',+ 'Colour of the lines between cells': 'Couleur des lignes entre cellules',+ 'How the media fills its box — cover crops to fill, contain letterboxes': 'Ajustement du média dans son bloc — cover recadre pour remplir, contain montre tout',+ 'Link a hosted file instead of embedding — keeps the deck small': 'Liez un fichier hébergé au lieu de l’incorporer — le deck reste léger',+ 'Preview image shown before the video plays': 'Image d’aperçu affichée avant la lecture de la vidéo',+ 'Makes this slide a hidden state of another — reached by clicked links, skipped by arrow keys': 'Fait de cette diapositive un état caché d’une autre — atteint par lien cliqué, ignoré par les flèches',}diff --git a/slides/src/i18n/it.ts b/slides/src/i18n/it.tsindex 4939e0df..3f90ff4d 100644--- a/slides/src/i18n/it.ts+++ b/slides/src/i18n/it.ts@@ -556,4 +556,59 @@ export const it: Catalog = {"you": "tu","{name} was removed": "{name} è stato rimosso",+ 'Deck-wide slide size. Elements keep their positions — changing size reframes the canvas, never rescales your art.': 'Dimensione delle slide per tutto il deck. Gli elementi mantengono la posizione — cambiare dimensione reinquadra la tela, non riscala mai il tuo lavoro.',+ 'Custom slide width in pixels': 'Larghezza personalizzata in pixel',+ 'Custom slide height in pixels': 'Altezza personalizzata in pixel',+ 'This slide’s background colour': 'Colore di sfondo di questa slide',+ 'How this slide enters. Morph animates elements that share ids with the previous slide.': 'Come entra questa slide. Morph anima gli elementi che condividono l’id con la precedente.',+ 'A friendly name for this slide — shown in link pickers and state badges': 'Nome di questa slide — mostrato nei selettori di link e nei badge di stato',+ 'What hovering does while presenting: reveal swaps content sets; focus-group dims the other groups': 'Cosa fa l’hover durante la presentazione: reveal alterna i set di contenuto; focus-group attenua gli altri gruppi',+ 'How strongly the non-hovered groups fade (focus-group mode)': 'Quanto si attenuano i gruppi non attivi (modalità focus-group)',+ 'The hover set everyone sees before any hover happens': 'Il set visibile prima di qualsiasi hover',+ 'Which hover set to show on the canvas while you edit': 'Quale set di hover mostrare sulla tela durante la modifica',+ 'What this text IS in a layout (title, body…) — applying a layout matches elements by role': 'Cosa È questo testo in un layout (titolo, corpo…) — applicando un layout si abbina per ruolo',+ 'Drop-shadow presets — the shadow follows the element’s real shape, corners and transparency': 'Preset di ombra — l’ombra segue la forma reale dell’elemento, angoli e trasparenze',+ 'Colour with opacity — pick with the swatch, the % field is transparency': 'Colore con opacità — scegli dal campione, il campo % è la trasparenza',+ 'Entrance animation when the slide appears (plays on non-morph entries; equal order = together)': 'Animazione d’ingresso all’apparire della slide (solo su ingressi senza morph; stesso ordine = insieme)',+ 'How long the entrance takes, in seconds': 'Durata dell’ingresso, in secondi',+ 'Numbers in this text count up from zero when the slide enters': 'I numeri in questo testo contano da zero all’ingresso della slide',+ 'Continuous motion while the slide is on screen — Ken Burns drift or zoom': 'Movimento continuo mentre la slide è visibile — deriva o zoom Ken Burns',+ 'Ken Burns direction — drift, settle out, or settle in': 'Direzione Ken Burns — deriva, assestamento in uscita o in entrata',+ 'How far the Ken Burns zoom travels': 'Quanto avanza lo zoom Ken Burns',+ 'How long one Ken Burns pass takes': 'Durata di un passaggio Ken Burns',+ 'A repeating animation: marching dashes along strokes, or motion along a drawn path': 'Animazione in loop: trattini in marcia lungo i tratti, o movimento lungo un percorso disegnato',+ 'Seconds per lap of the loop': 'Secondi per giro del loop',+ 'The motion path — edit it as draggable points on the canvas': 'Il percorso di movimento — modificalo come punti trascinabili sulla tela',+ 'Tempo across one lap — ease-in-out dwells at the ends, linear is constant': 'Ritmo di ogni giro — ease-in-out indugia agli estremi, linear è costante',+ 'Puts this element in a hover set — visible only while that set is active': 'Mette questo elemento in un set di hover — visibile solo quando quel set è attivo',+ 'Presentation group — with focus-group hover, the other groups dim': 'Gruppo di presentazione — con l’hover focus-group gli altri gruppi si attenuano',+ 'Clicking this element during the show jumps to the chosen slide': 'Cliccando questo elemento durante lo show si salta alla slide scelta',+ 'Typeface for this text': 'Carattere di questo testo',+ 'Font size in points': 'Dimensione del carattere in punti',+ 'Font weight — 400 regular, 700 bold': 'Peso del carattere — 400 normale, 700 grassetto',+ 'Horizontal text alignment': 'Allineamento orizzontale del testo',+ 'Vertical alignment inside the box': 'Allineamento verticale nel riquadro',+ 'Line spacing as a multiple of the font size': 'Interlinea come multiplo della dimensione del carattere',+ 'Solid colour or a linear gradient': 'Colore pieno o gradiente lineare',+ 'Fill colour with opacity — for lines this IS the line colour': 'Colore di riempimento con opacità — per le linee questo È il colore della linea',+ 'Gradient direction in degrees (CSS convention: 0° points up)': 'Direzione del gradiente in gradi (convenzione CSS: 0° verso l’alto)',+ 'Outline colour': 'Colore del contorno',+ 'Outline thickness in pixels': 'Spessore del contorno in pixel',+ 'Solid, dashed or dotted stroke': 'Tratto pieno, tratteggiato o punteggiato',+ 'Decoration at the line’s start — arrow, dot or bar': 'Decorazione all’inizio della linea — freccia, punto o barra',+ 'Decoration at the line’s end — arrow, dot or bar': 'Decorazione alla fine della linea — freccia, punto o barra',+ 'How rounded the corners are, in pixels': 'Arrotondamento degli angoli, in pixel',+ 'Chart type — switching bar⇄pie animates the data across': 'Tipo di grafico — passare da barre⇄torta anima i dati',+ 'Show the series legend above the chart': 'Mostra la legenda delle serie sopra il grafico',+ 'Adds a right-hand value axis — assign series to it in the list below': 'Aggiunge un asse dei valori a destra — assegna le serie nell’elenco sotto',+ 'Style the first row as a header': 'Formatta la prima riga come intestazione',+ 'Quick table looks — Lined, Zebra, Boxed, Minimal': 'Stili rapidi di tabella — Lined, Zebra, Boxed, Minimal',+ 'Header row background colour': 'Colore di sfondo dell’intestazione',+ 'Header row text colour': 'Colore del testo dell’intestazione',+ 'Table text colour': 'Colore del testo della tabella',+ 'Colour of the lines between cells': 'Colore delle linee tra le celle',+ 'How the media fills its box — cover crops to fill, contain letterboxes': 'Come il media riempie il riquadro — cover ritaglia per riempire, contain mostra tutto',+ 'Link a hosted file instead of embedding — keeps the deck small': 'Collega un file ospitato invece di incorporarlo — mantiene il deck leggero',+ 'Preview image shown before the video plays': 'Immagine di anteprima mostrata prima della riproduzione del video',+ 'Makes this slide a hidden state of another — reached by clicked links, skipped by arrow keys': 'Rende questa slide uno stato nascosto di un’altra — raggiunta dai link, saltata dalle frecce',}diff --git a/slides/src/i18n/ja.ts b/slides/src/i18n/ja.tsindex 7d5d3728..4a1594ce 100644--- a/slides/src/i18n/ja.ts+++ b/slides/src/i18n/ja.ts@@ -556,4 +556,59 @@ export const ja: Catalog = {"you": "あなた","{name} was removed": "{name} を削除しました",+ 'Deck-wide slide size. Elements keep their positions — changing size reframes the canvas, never rescales your art.': 'デッキ全体のスライドサイズ。要素の位置はそのまま — サイズ変更はキャンバスを組み直すだけで、作品を拡大縮小しません。',+ 'Custom slide width in pixels': 'スライドの幅(px)',+ 'Custom slide height in pixels': 'スライドの高さ(px)',+ 'This slide’s background colour': 'このスライドの背景色',+ 'How this slide enters. Morph animates elements that share ids with the previous slide.': 'スライドの入り方。モーフは前のスライドと id を共有する要素をアニメーションでつなぎます。',+ 'A friendly name for this slide — shown in link pickers and state badges': 'このスライドの名前 — リンク選択や状態バッジに表示されます',+ 'What hovering does while presenting: reveal swaps content sets; focus-group dims the other groups': '発表中のホバーの動作: reveal はコンテンツセットを切り替え、focus-group は他のグループを暗くします',+ 'How strongly the non-hovered groups fade (focus-group mode)': 'ホバーしていないグループの暗さ(focus-group モード)',+ 'The hover set everyone sees before any hover happens': 'ホバーする前に表示されるセット',+ 'Which hover set to show on the canvas while you edit': '編集中にキャンバスに表示するホバーセット',+ 'What this text IS in a layout (title, body…) — applying a layout matches elements by role': 'レイアウト内でのこのテキストの役割(タイトル、本文…)— レイアウト適用時は役割で対応付けます',+ 'Drop-shadow presets — the shadow follows the element’s real shape, corners and transparency': 'ドロップシャドウのプリセット — 影は要素の実際の形・角丸・透明部分に沿います',+ 'Colour with opacity — pick with the swatch, the % field is transparency': '不透明度つきの色 — スウォッチで選択、% は透明度',+ 'Entrance animation when the slide appears (plays on non-morph entries; equal order = together)': 'スライド表示時の登場アニメーション(モーフ以外の入りで再生。同じ順番 = 同時)',+ 'How long the entrance takes, in seconds': '登場にかける秒数',+ 'Numbers in this text count up from zero when the slide enters': 'スライド表示時にテキスト中の数字が 0 からカウントアップ',+ 'Continuous motion while the slide is on screen — Ken Burns drift or zoom': 'スライド表示中の常時モーション — Ken Burns のドリフトまたはズーム',+ 'Ken Burns direction — drift, settle out, or settle in': 'Ken Burns の方向 — ドリフト、ズームアウト、ズームイン',+ 'How far the Ken Burns zoom travels': 'Ken Burns ズームの移動量',+ 'How long one Ken Burns pass takes': 'Ken Burns 1 回の秒数',+ 'A repeating animation: marching dashes along strokes, or motion along a drawn path': '繰り返しアニメーション: 線に沿う破線の行進、または描いたパスに沿う移動',+ 'Seconds per lap of the loop': 'ループ 1 周の秒数',+ 'The motion path — edit it as draggable points on the canvas': 'モーションパス — キャンバス上でドラッグ可能な点として編集できます',+ 'Tempo across one lap — ease-in-out dwells at the ends, linear is constant': '1 周のテンポ — ease-in-out は両端で緩み、linear は一定',+ 'Puts this element in a hover set — visible only while that set is active': 'この要素をホバーセットに入れる — そのセットが有効な間だけ表示されます',+ 'Presentation group — with focus-group hover, the other groups dim': 'プレゼングループ — focus-group ホバーで他のグループが暗くなります',+ 'Clicking this element during the show jumps to the chosen slide': '発表中にこの要素をクリックすると指定スライドへ移動します',+ 'Typeface for this text': 'このテキストの書体',+ 'Font size in points': 'フォントサイズ(pt)',+ 'Font weight — 400 regular, 700 bold': 'フォントの太さ — 400 標準、700 太字',+ 'Horizontal text alignment': '横方向の配置',+ 'Vertical alignment inside the box': 'ボックス内の縦方向の配置',+ 'Line spacing as a multiple of the font size': '行間(フォントサイズの倍数)',+ 'Solid colour or a linear gradient': '単色またはリニアグラデーション',+ 'Fill colour with opacity — for lines this IS the line colour': '不透明度つきの塗り色 — 線ではこれが線の色になります',+ 'Gradient direction in degrees (CSS convention: 0° points up)': 'グラデーションの角度(CSS 方式: 0° は上向き)',+ 'Outline colour': '枠線の色',+ 'Outline thickness in pixels': '枠線の太さ(px)',+ 'Solid, dashed or dotted stroke': '実線・破線・点線',+ 'Decoration at the line’s start — arrow, dot or bar': '線の始点の飾り — 矢印・点・バー',+ 'Decoration at the line’s end — arrow, dot or bar': '線の終点の飾り — 矢印・点・バー',+ 'How rounded the corners are, in pixels': '角の丸み(px)',+ 'Chart type — switching bar⇄pie animates the data across': 'グラフの種類 — 棒⇄円の切り替えはデータをアニメーションでつなぎます',+ 'Show the series legend above the chart': 'グラフ上に系列の凡例を表示',+ 'Adds a right-hand value axis — assign series to it in the list below': '右側に第 2 の値軸を追加 — 下のリストで系列を割り当てます',+ 'Style the first row as a header': '最初の行をヘッダーとして表示',+ 'Quick table looks — Lined, Zebra, Boxed, Minimal': '表のクイックスタイル — Lined・Zebra・Boxed・Minimal',+ 'Header row background colour': 'ヘッダー行の背景色',+ 'Header row text colour': 'ヘッダー行の文字色',+ 'Table text colour': '表の文字色',+ 'Colour of the lines between cells': 'セル間の罫線の色',+ 'How the media fills its box — cover crops to fill, contain letterboxes': 'メディアのボックスへの収め方 — cover は切り抜いて満たし、contain は全体を収めます',+ 'Link a hosted file instead of embedding — keeps the deck small': '埋め込む代わりにホストされたファイルへリンク — デッキを小さく保てます',+ 'Preview image shown before the video plays': '動画再生前に表示されるプレビュー画像',+ 'Makes this slide a hidden state of another — reached by clicked links, skipped by arrow keys': 'このスライドを別スライドの隠れ状態にします — リンクのクリックで到達、矢印キーではスキップ',}diff --git a/slides/src/i18n/zh-Hans.ts b/slides/src/i18n/zh-Hans.tsindex 558adde5..99b42d6a 100644--- a/slides/src/i18n/zh-Hans.ts+++ b/slides/src/i18n/zh-Hans.ts@@ -556,4 +556,59 @@ export const zhHans: Catalog = {"you": "你","{name} was removed": "已移除 {name}",+ 'Deck-wide slide size. Elements keep their positions — changing size reframes the canvas, never rescales your art.': '整套幻灯片的页面尺寸。元素位置保持不变 — 改变尺寸只会重排画布,不会缩放你的内容。',+ 'Custom slide width in pixels': '自定义幻灯片宽度(像素)',+ 'Custom slide height in pixels': '自定义幻灯片高度(像素)',+ 'This slide’s background colour': '本页幻灯片的背景色',+ 'How this slide enters. Morph animates elements that share ids with the previous slide.': '本页的进入方式。变形会为与上一页共享 id 的元素做过渡动画。',+ 'A friendly name for this slide — shown in link pickers and state badges': '本页的名称 — 显示在链接选择器和状态标记中',+ 'What hovering does while presenting: reveal swaps content sets; focus-group dims the other groups': '放映时悬停的行为:reveal 切换内容组;focus-group 让其他组变暗',+ 'How strongly the non-hovered groups fade (focus-group mode)': '未悬停的组变暗的程度(focus-group 模式)',+ 'The hover set everyone sees before any hover happens': '悬停发生前显示的默认组',+ 'Which hover set to show on the canvas while you edit': '编辑时画布上预览的悬停组',+ 'What this text IS in a layout (title, body…) — applying a layout matches elements by role': '这段文字在版式中的角色(标题、正文…)— 应用版式时按角色匹配',+ 'Drop-shadow presets — the shadow follows the element’s real shape, corners and transparency': '投影预设 — 阴影贴合元素的实际形状、圆角和透明区域',+ 'Colour with opacity — pick with the swatch, the % field is transparency': '带不透明度的颜色 — 点击色块选取,% 为透明度',+ 'Entrance animation when the slide appears (plays on non-morph entries; equal order = together)': '幻灯片出现时的入场动画(仅非变形进入时播放;顺序相同 = 同时)',+ 'How long the entrance takes, in seconds': '入场动画时长(秒)',+ 'Numbers in this text count up from zero when the slide enters': '幻灯片进入时文字中的数字从 0 开始递增',+ 'Continuous motion while the slide is on screen — Ken Burns drift or zoom': '幻灯片显示期间的持续动效 — Ken Burns 漂移或缩放',+ 'Ken Burns direction — drift, settle out, or settle in': 'Ken Burns 方向 — 漂移、缩小定格或放大定格',+ 'How far the Ken Burns zoom travels': 'Ken Burns 缩放幅度',+ 'How long one Ken Burns pass takes': 'Ken Burns 单次时长(秒)',+ 'A repeating animation: marching dashes along strokes, or motion along a drawn path': '循环动画:描边上的虚线行进,或沿绘制路径移动',+ 'Seconds per lap of the loop': '每圈时长(秒)',+ 'The motion path — edit it as draggable points on the canvas': '运动路径 — 在画布上以可拖动的点进行编辑',+ 'Tempo across one lap — ease-in-out dwells at the ends, linear is constant': '单圈节奏 — ease-in-out 在两端放缓,linear 匀速',+ 'Puts this element in a hover set — visible only while that set is active': '将此元素放入悬停组 — 仅在该组激活时可见',+ 'Presentation group — with focus-group hover, the other groups dim': '演示分组 — 使用 focus-group 悬停时其他组会变暗',+ 'Clicking this element during the show jumps to the chosen slide': '放映时点击此元素跳转到所选页',+ 'Typeface for this text': '此文字的字体',+ 'Font size in points': '字号(磅)',+ 'Font weight — 400 regular, 700 bold': '字重 — 400 常规,700 粗体',+ 'Horizontal text alignment': '水平对齐',+ 'Vertical alignment inside the box': '框内垂直对齐',+ 'Line spacing as a multiple of the font size': '行距(字号的倍数)',+ 'Solid colour or a linear gradient': '纯色或线性渐变',+ 'Fill colour with opacity — for lines this IS the line colour': '带不透明度的填充色 — 对线条来说这就是线条颜色',+ 'Gradient direction in degrees (CSS convention: 0° points up)': '渐变方向(角度,CSS 约定:0° 朝上)',+ 'Outline colour': '轮廓颜色',+ 'Outline thickness in pixels': '轮廓粗细(像素)',+ 'Solid, dashed or dotted stroke': '实线、虚线或点线',+ 'Decoration at the line’s start — arrow, dot or bar': '线条起点装饰 — 箭头、圆点或短杠',+ 'Decoration at the line’s end — arrow, dot or bar': '线条终点装饰 — 箭头、圆点或短杠',+ 'How rounded the corners are, in pixels': '圆角大小(像素)',+ 'Chart type — switching bar⇄pie animates the data across': '图表类型 — 柱状⇄饼图切换时数据会平滑过渡',+ 'Show the series legend above the chart': '在图表上方显示系列图例',+ 'Adds a right-hand value axis — assign series to it in the list below': '添加右侧数值轴 — 在下方列表中为系列指定',+ 'Style the first row as a header': '将首行设为表头',+ 'Quick table looks — Lined, Zebra, Boxed, Minimal': '表格快速样式 — Lined、Zebra、Boxed、Minimal',+ 'Header row background colour': '表头行背景色',+ 'Header row text colour': '表头行文字颜色',+ 'Table text colour': '表格文字颜色',+ 'Colour of the lines between cells': '单元格之间线条的颜色',+ 'How the media fills its box — cover crops to fill, contain letterboxes': '媒体在框内的填充方式 — cover 裁剪填满,contain 完整显示',+ 'Link a hosted file instead of embedding — keeps the deck small': '链接托管文件而非嵌入 — 保持文件小巧',+ 'Preview image shown before the video plays': '视频播放前显示的预览图',+ 'Makes this slide a hidden state of another — reached by clicked links, skipped by arrow keys': '将本页设为另一页的隐藏状态 — 通过点击链接到达,方向键会跳过',}diff --git a/slides/src/i18n/zh-Hant.ts b/slides/src/i18n/zh-Hant.tsindex db7a13ff..af6d66b2 100644--- a/slides/src/i18n/zh-Hant.ts+++ b/slides/src/i18n/zh-Hant.ts@@ -556,4 +556,59 @@ export const zhHant: Catalog = {"you": "你","{name} was removed": "已移除 {name}",+ 'Deck-wide slide size. Elements keep their positions — changing size reframes the canvas, never rescales your art.': '整份簡報的頁面尺寸。元素位置維持不變 — 變更尺寸只會重排畫布,不會縮放你的內容。',+ 'Custom slide width in pixels': '自訂投影片寬度(像素)',+ 'Custom slide height in pixels': '自訂投影片高度(像素)',+ 'This slide’s background colour': '此頁投影片的背景色',+ 'How this slide enters. Morph animates elements that share ids with the previous slide.': '此頁的進場方式。變形會為與上一頁共享 id 的元素做過渡動畫。',+ 'A friendly name for this slide — shown in link pickers and state badges': '此頁的名稱 — 顯示在連結選擇器與狀態標記中',+ 'What hovering does while presenting: reveal swaps content sets; focus-group dims the other groups': '放映時懸停的行為:reveal 切換內容組;focus-group 讓其他群組變暗',+ 'How strongly the non-hovered groups fade (focus-group mode)': '未懸停群組變暗的程度(focus-group 模式)',+ 'The hover set everyone sees before any hover happens': '懸停發生前顯示的預設組',+ 'Which hover set to show on the canvas while you edit': '編輯時畫布上預覽的懸停組',+ 'What this text IS in a layout (title, body…) — applying a layout matches elements by role': '這段文字在版面中的角色(標題、內文…)— 套用版面時按角色配對',+ 'Drop-shadow presets — the shadow follows the element’s real shape, corners and transparency': '陰影預設 — 陰影貼合元素的實際形狀、圓角與透明區域',+ 'Colour with opacity — pick with the swatch, the % field is transparency': '帶不透明度的顏色 — 點色塊選取,% 為透明度',+ 'Entrance animation when the slide appears (plays on non-morph entries; equal order = together)': '投影片出現時的進場動畫(僅非變形進場時播放;順序相同 = 同時)',+ 'How long the entrance takes, in seconds': '進場動畫秒數',+ 'Numbers in this text count up from zero when the slide enters': '投影片進場時文字中的數字從 0 開始遞增',+ 'Continuous motion while the slide is on screen — Ken Burns drift or zoom': '投影片顯示期間的持續動態 — Ken Burns 漂移或縮放',+ 'Ken Burns direction — drift, settle out, or settle in': 'Ken Burns 方向 — 漂移、縮小定格或放大定格',+ 'How far the Ken Burns zoom travels': 'Ken Burns 縮放幅度',+ 'How long one Ken Burns pass takes': 'Ken Burns 單次秒數',+ 'A repeating animation: marching dashes along strokes, or motion along a drawn path': '循環動畫:沿描邊的虛線行進,或沿繪製路徑移動',+ 'Seconds per lap of the loop': '每圈秒數',+ 'The motion path — edit it as draggable points on the canvas': '運動路徑 — 在畫布上以可拖曳的點編輯',+ 'Tempo across one lap — ease-in-out dwells at the ends, linear is constant': '單圈節奏 — ease-in-out 在兩端放緩,linear 等速',+ 'Puts this element in a hover set — visible only while that set is active': '將此元素放入懸停組 — 僅在該組啟用時可見',+ 'Presentation group — with focus-group hover, the other groups dim': '簡報群組 — 使用 focus-group 懸停時其他群組會變暗',+ 'Clicking this element during the show jumps to the chosen slide': '放映時點擊此元素跳至所選頁',+ 'Typeface for this text': '此文字的字體',+ 'Font size in points': '字級(點)',+ 'Font weight — 400 regular, 700 bold': '字重 — 400 標準,700 粗體',+ 'Horizontal text alignment': '水平對齊',+ 'Vertical alignment inside the box': '框內垂直對齊',+ 'Line spacing as a multiple of the font size': '行距(字級的倍數)',+ 'Solid colour or a linear gradient': '純色或線性漸層',+ 'Fill colour with opacity — for lines this IS the line colour': '帶不透明度的填色 — 對線條而言這就是線條顏色',+ 'Gradient direction in degrees (CSS convention: 0° points up)': '漸層方向(角度,CSS 慣例:0° 朝上)',+ 'Outline colour': '外框顏色',+ 'Outline thickness in pixels': '外框粗細(像素)',+ 'Solid, dashed or dotted stroke': '實線、虛線或點線',+ 'Decoration at the line’s start — arrow, dot or bar': '線條起點裝飾 — 箭頭、圓點或短槓',+ 'Decoration at the line’s end — arrow, dot or bar': '線條終點裝飾 — 箭頭、圓點或短槓',+ 'How rounded the corners are, in pixels': '圓角大小(像素)',+ 'Chart type — switching bar⇄pie animates the data across': '圖表類型 — 長條⇄圓餅切換時資料會平滑過渡',+ 'Show the series legend above the chart': '在圖表上方顯示數列圖例',+ 'Adds a right-hand value axis — assign series to it in the list below': '新增右側數值軸 — 在下方清單為數列指定',+ 'Style the first row as a header': '將首列設為表頭',+ 'Quick table looks — Lined, Zebra, Boxed, Minimal': '表格快速樣式 — Lined、Zebra、Boxed、Minimal',+ 'Header row background colour': '表頭列背景色',+ 'Header row text colour': '表頭列文字顏色',+ 'Table text colour': '表格文字顏色',+ 'Colour of the lines between cells': '儲存格之間線條的顏色',+ 'How the media fills its box — cover crops to fill, contain letterboxes': '媒體在框內的填充方式 — cover 裁切填滿,contain 完整顯示',+ 'Link a hosted file instead of embedding — keeps the deck small': '連結託管檔案而非嵌入 — 保持檔案輕巧',+ 'Preview image shown before the video plays': '影片播放前顯示的預覽圖',+ 'Makes this slide a hidden state of another — reached by clicked links, skipped by arrow keys': '將此頁設為另一頁的隱藏狀態 — 透過點擊連結到達,方向鍵會略過',}