Feature: Create EE workflow logic and structure#907
Merged
Conversation
…to snapshot, and handle onleave
…. fix image draw cb
… function for animated line
…add clear method to main canvas
…p prev callback for figure persistence
… events on loop changes inside togglePause callback
…r for any duplication
…l into feat/ee-workflow
mohdsayed
approved these changes
Aug 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds code that enhances the capabilities of the EE workflow
Relevant Technical Choices
TravellerClassshouldTravelvalue to be true and pass atravelInitcallback.travelInitcallback has parameters that include the figure instance and a spread array of any values passed to be used.setTraveller,setResetTravel, andsetCompleteTravel.setTravellerstores the logic that will be used to render figure/group progressively.setResetTravelis used to reintialize the default state to rerender figure(s) progressively.setCompleteTravelcallback allows for completion in an instant without progressively drawing the figure(s).FigureFactoryClassMainClassshouldTravelproperty is found true, a new traveller instance is created that hijacks the draw loop, stops the queues and runs the traveller function, which was set during the initialization of the figure.Figure,Group,AnimatorClassTesting Instructions
npm run dev:ee-workflow:demo.Additional Information:
Screenshot/Screencast
Checklist
This code is covered by unit tests to verify that it works as intended.The QA of this PR is done by a member of the QA team (to be checked by QA).Fixes #