-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Re-factor and convert the code in src/core/pattern.js
to use standard classes
#13377
Conversation
…core/pattern.js` Neither the `type` or the `cs` properties are used outside of the "constructors", and we can thus remove them.[1] Note that a lot of this code is very old, and that it actually predates the main/worker-thread split before which the *same* file was used on both the main- *and* worker-threads. --- [1] On the main-thread, a similar `type` property was removed in PR 12591.
5a0cee4
to
9515d8c
Compare
Note that this patch only covers `Pattern` and `MeshStreamReader`, since the `Shadings`-implementation required additional re-factoring.
9515d8c
to
ad8cb5c
Compare
…standard classes This patch replaces the old structure with a abstract base-class, which the new RadialAxial/Mesh-shading classes then inherit from.[1] The old `MeshClosure` can now be removed, since it's not necessary any more, and most of the functions inside of it are now instead methods on the new `MeshShading` class. This is particularly nice, in my opinion, since we previously were *manually* passing around a reference to the current `Mesh`-instance. --- [1] If we want/need to, in the future, split e.g. the Mesh-handling into multiple classes that should now be easy to do.
ad8cb5c
to
ebe3ee4
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/e2cd2b7aed2ff3a/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://3.101.106.178:8877/157bc9d1e6e1eed/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/e2cd2b7aed2ff3a/output.txt Total script time: 26.30 mins
Image differences available at: http://54.67.70.0:8877/e2cd2b7aed2ff3a/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/157bc9d1e6e1eed/output.txt Total script time: 29.80 mins
Image differences available at: http://3.101.106.178:8877/157bc9d1e6e1eed/reftest-analyzer.html#web=eq.log |
Looks a lot better, thanks! |
No description provided.