Skip to content

Retake 0.0.3

Latest

Choose a tag to compare

@justinseanmartin justinseanmartin released this 12 Nov 07:57
· 1 commit to main since this release

Breaking Change: Scenes

A scene now behaves the same way edits do in how it picks a device to run on. Scenes move out of
scenes/iphone/ and scenes/ipad/, which aren't read any more, into scenes/. Retake names any
scene left behind, in validate and record, and records nothing until it's moved.

  • A scene names the device types it plays on, devices, every one unless it says, and a
    step's own devices the types among those it plays on: on another it's skipped but keeps its
    number, so the steps after it are numbered alike, and an anchor to it fails there. Anything at a
    scene's top or in a step can be given again under iphone or ipad, laid over what it overrides,
    as in an edit; an override or a step's devices naming a type the scene doesn't play on is
    refused.
  • compose writes the scene for the device it's on, keeping each step it doesn't change as the
    file has it, its overrides and devices with it.
  • retake init starts a project with scenes/ and one launch scene for every type.
  • An edit's devices is every type unless it names some, as a scene's is.
  • To move a project, put each scene in scenes/. Where a type's scene and the other's say the
    same, keep one. Where they differ, keep one and give the other's differences under "iphone": { … } or "ipad": { … }, in a step or at the top, as in an edit; give a step only one type plays
    "devices": ["ipad"]. A scene for only one type names it: "devices": ["iphone"].
  • An edit that anchored by step number to a scene that now has a step for one type only should
    anchor by the step's id: the step keeps its number on both types, so the numbers after it don't
    move, but nothing can anchor to it on the type that skips it.

New Feature: Taps and Drag offsets

  • A tap or a drag's end on an element can be moved off it, by offset in points and
    offsetPercent in percent of the element's width and height, from its activation point: for a
    finger that has to touch or lift somewhere the element places rather than on it, such as a game
    piece drawn above the finger. A tap or a drag's start with an offset is touched where Retake finds
    it on the screen just before. Nothing breaks.

Bug Fix: Compose respects holds

  • retake compose waits out each step's hold before answering, as record does, rather than
    only writing it into the scene: a tap's from when it's sent, any other step's from when it ends,
    and the scene's defaultHold for a step that gives none. The next step no longer runs while the
    app is still moving from the last, landing where it wouldn't in a take, and the screen compose
    prints after a step, with its suggestion, is the one once the hold is over. Nothing breaks.