ShukantPal / pixi-essentials

The best goodies for performant, enterprise-level applications built on PixiJS
https://api.pixijs.io
MIT License
285 stars 37 forks source link

[Transformer] Event for when transforming? #66

Closed m4rvr closed 1 year ago

m4rvr commented 2 years ago

Hey! Is there an event I can hook into to know when the transformer updates the properties (for example x or y)? I need to update an input field where I show the current value and I'm not sure how I would do it.

Something like transformer.on('transform', () => ...) maybe?

Not sure if #64 is related?

EDIT: Okay there is the transformchange event I've overlooked, sorry! Now I only need to figure out how I can transform the matrix to the specific properties like x, y or rotation.

ShukantPal commented 1 year ago

Yep, the transformchange event is what you’re looking for!