Modernize the Shadings structure, in src/core/pattern.js, to use 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.
This commit is contained in:
Jonas Jenwald 2021-05-14 16:46:36 +02:00
parent 6acb2db4be
commit ebe3ee4f25

File diff suppressed because it is too large Load Diff