Skip to content

Conversation

JoeAtHPI
Copy link
Collaborator

@JoeAtHPI JoeAtHPI commented Feb 12, 2025

Usage
Call the action 'backtrack' (alt , on block) on either Examples, Variation Points, or Example Watches to create a filtered copy of the current History that only includes the selected widget. Nothing will be displayed if Exploriants is not open in the Sandblocks Editor.

The pictures below show an example of backtracking the example 'big' (1) and displays the filtered copy to the right of the original history (2).
image
image

Code changes

  • Introduces a 'SBTag' class which can be added to the new #SBTag property of Morphs. A tag captures the widgets' state used to generate the Morph.
  • Using the function 'snapshotSatisfying:' on a Morph creates a filtered copy which only includes the given tags. Non-tagged Morphs are turned into images. So, typically, the resulted copy will be a mix of the original tagged Morphs and ImageMorphs inbetween. Tagged Morphs not satisfying the tags are removed. Therefore, the position of tags in the Morph hierarchy determines how the layout in the copy changes. Subclasses can overwrite this method to create custom copy behavior (see SBTabView).
  • 'layoutedTaggedCopy' describes how the Morph should be copied to create an "empty template" of it and must be considered when using the new API
  • Few bug fixes

@JoeAtHPI JoeAtHPI added documentation Improvements or additions to documentation enhancement New feature or request Exploriants labels Feb 12, 2025
@JoeAtHPI JoeAtHPI self-assigned this Feb 12, 2025
@JoeAtHPI JoeAtHPI force-pushed the feature/example-history branch from 50b24dd to be57ac4 Compare February 14, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request Exploriants

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant