polylux icon indicating copy to clipboard operation
polylux copied to clipboard

Decouple introspection and update

Open andreasKroepelin opened this issue 4 months ago • 0 comments

By @laurmaedje on Discord:

What I'm referring to specifically is to change this

locate(loc => {
  repetitions.update(rep => calc.max(rep, pause-counter.at(loc).first() + 1))
})

to this

locate(loc => {
  let c = pause-counter.at(loc).first()
  repetitions.update(rep => calc.max(rep, c + 1))
})

referring to this: https://github.com/typst/packages/blob/98677b0833970b0b08f77e456cdd14aee7e10768/packages/preview/polylux/0.3.1/logic.typ#L252

andreasKroepelin avatar Feb 21 '24 17:02 andreasKroepelin