davidfig / pixi-viewport

A highly configurable viewport/2D camera designed to work with pixi.js
https://davidfig.github.io/pixi-viewport/
MIT License
1.04k stars 174 forks source link

Missing event property from IViewportOptions #484

Open ArthurTimofey opened 4 months ago

ArthurTimofey commented 4 months ago

Hey,

Seems like the new updated code for pixi8 is missing properties for events:

image

Unless im missing something?

bumberboy commented 4 months ago

temp solution:

npm i "https://github.com/davidfig/pixi-viewport.git#master" --save

you might need:

npm install --save-dev husky
npm install --global yarn
ArthurTimofey commented 4 months ago

@bumberboy doesn't seem to work for me as the issue seems to be in the src itself as even doing "pixi-viewport/src" yields same results.

bumberboy commented 4 months ago

I believe the issue is in the version hosted by npm. In the master branch here, the Viewport has events instead of interactions. The command above will force npm to use the master branch on github instead of the package on npm. You might also want to try deleting the pixi-viewport directory from your node modules before running the command.