jonobr1 / two.js

A renderer agnostic two-dimensional drawing api for the web.
https://two.js.org
MIT License
8.29k stars 454 forks source link

[Issue 659] Client Surface Inconsistencies #661

Closed jonobr1 closed 2 years ago

jonobr1 commented 2 years ago

This PR resolves inconsistencies around ZUI.clientToSurface and ZUI.surfaceToClient. Developers can now pass in either an object (or Two.Vector) or pass x, y, (and optionally z) arguments as numbers to either method.