-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[p5.js 2.0] State machines and renderer refactoring #7270
Draft
limzykenneth
wants to merge
24
commits into
processing:dev-2.0
Choose a base branch
from
limzykenneth:2.0-modules
base: dev-2.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,599
−1,748
Draft
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
09f57c9
Set up states machine in p5.Renderer
limzykenneth ab22f1d
Expose p5.Element methods to p5.Renderer2D directly
limzykenneth c5441dc
Move more things into state
davepagurek e93cbd5
Start converting WebGL state
davepagurek 94e8267
Move more properties into states
davepagurek c80e364
Merge branch 'dev-2.0' into 2.0-modules
davepagurek f0b3766
Fix some uses of .elt
davepagurek 7299220
Minor cleanup
limzykenneth 84ecc61
Rework how variables are exposed in global mode
limzykenneth 282cabb
Global functions now also use getter
limzykenneth 3a356d5
Move DOM initialization from p5.Renderer to individual renderers
limzykenneth 6ef1afc
Concentrate DOM creation of renderer in the createCanvas method
limzykenneth 2f7f824
Indentation
limzykenneth 9c47a4c
Fix p5.Graphics creation
limzykenneth c39cfa6
p5.Graphics acts as wrapper of p5.Renderer
limzykenneth 263ae57
Fix p5.Graphics.remove and simplify it
limzykenneth 8427978
Fix webgl canvas creation
limzykenneth 5c68e24
Minor adjustment to p5.Renderer and p5.Graphics remove
limzykenneth e3c3683
Make resizeCanvas() independent of DOM
limzykenneth f1d8735
Remove renderer createCanvas() method as it is redundant with constru…
limzykenneth 7a91e53
Global width/height read directly from renderer
limzykenneth b07b438
Move ownership of pixel density to renderer
limzykenneth 55c45ed
Fix a few tests
limzykenneth beb432f
Fix a few more tests
limzykenneth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davepagurek Probably shouldn't update right away but just to let you know in advanced. The refactor for Renderer2D moves all DOM related operation and references to be handled by the renderer's
createCanvas
method along with reshuffling of the initialization logic around default canvas and others. As such WebGL renderer will also need updating accordingly.I'm working on getting p5.Graphics to work first before I do a round of clean up refactoring.