Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter Exploriants History for individual widgets #145

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

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