Skip to content

Commit

Permalink
Modernize the Shadings structure, in src/core/pattern.js, to use …
Browse files Browse the repository at this point in the history
…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 particularily 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.
  • Loading branch information
Snuffleupagus committed May 14, 2021
1 parent a98a89a commit 5a0cee4
Showing 1 changed file with 454 additions and 445 deletions.
Loading

0 comments on commit 5a0cee4

Please sign in to comment.