Skip to content

feat: click-by-click reveal in the slideshow - #204

Merged
anderix merged 2 commits into
mainfrom
181-reveal
Nov 24, 2026
Merged

anderix merged 2 commits into
mainfrom
181-reveal

Conversation

@anderix

@anderix anderix commented Nov 24, 2026

Copy link
Copy Markdown
Member

Closes #181

  • Core: doc/anim.rs reads a slide's main sequence into Steps.
    • Steps::read(page), len, visible(step, Target) and veiled(step, shape).
    • Target is Shape(index) or Paragraph(index, n).
    • An on-click effect opens a step; with-previous and after-previous effects join it.
    • An effect counts by the visibility it sets, else by its entrance or exit class.
    • Before a target's first effect, it is the opposite of what that effect makes it.
    • Ns::Anim and Ns::Smil are added.
  • Fixture: builds.odp, written by LibreOffice 25.2 through build.sh. It has an appear-on-click shape with a with-previous and an after-previous one, a three-paragraph by-paragraph build, and an exit on the last click.
    • Tests: shape_hidden_until_its_click, paragraphs_appear_one_per_click, exit_effect_hides_after_click, with_previous_joins_step, after_previous_joins_step, slide_without_timing_has_zero_steps.
  • Renderer: Canvas::build skips shapes not yet shown. Flow::veiled lays out paragraphs not yet shown at zero opacity, so the others keep their places.
  • xodp show: forward takes the next step and then the next slide. Back undoes a step, then enters the previous slide at its last step. Page Up and Page Down, Home and End move by whole slides.
    • Tested by a_show_clicks_through_builds_before_the_next_slide.
    • Checked in Xephyr at steps 0, 1, 3 and 5.
  • Not done: emphasis and motion effects, interactive sequences, and targets inside groups. The rulings are in the plan ledger.

@anderix

anderix commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

The review fixes are in the second commit.

Critical

  • 1: the clicks are now read before input_mut, which ends the deadlock. That bug was already on main. Checked in Xephyr: clicks on empty slide area and on shown text each take a step.

Important

  • 2: a paragraph not yet shown now responds only to hover and paints no text, label or link. The show advances on a primary click anywhere on it, except where the pointer was over a link on the frame before; that link is followed instead. Checked in Xephyr with a link in a veiled paragraph and a fake BROWSER:
    • While the paragraph is hidden, hovering shows no tooltip, and a click advances and opens nothing.
    • Once it shows, a click opens the link and doesn't advance.
  • 3: anim:sub-item="text" on a shape now targets each of the shape's paragraphs, and the shape stays drawn (a_text_only_effect_leaves_the_shape_and_veils_its_paragraphs).
  • 4: nothing inside a draw:g is resolved any more. A group named whole is still a target (a_paragraph_in_a_group_is_not_a_target, a_group_named_whole_is_a_target). The fixture has a third slide, written by LibreOffice, with both cases.

Minors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xodp: reveal a slide's items one click at a time in the slideshow

1 participant