Open xbgbtx opened 3 years ago
This is my project: https://github.com/xbgbtx/L-Systems
I am including the viewport lib using html script tags with the latest github release.
Initializing pixi / viewport is done here: https://github.com/xbgbtx/L-Systems/blob/88e4d4b753da8c94fce6610375a86cee5290e8bb/lib/pixi_app.js#L5-L59
Using:
Including penner.js from https://github.com/bcherny/penner worked for me. Just make sure that Penner (with capital P) is defined globally (the library defines it as window.penner) So you might need to rename the variable.
Hope that helps.
I get the following when I use the 'snap' funcion.
Something not initialized in these lines?
https://github.com/xbgbtx/L-Systems/blob/88e4d4b753da8c94fce6610375a86cee5290e8bb/lib/external/pixi-plugin/viewport.min.js#L19-L21
Am I missing a plugin for these Penner functions?