Open Friksel opened 3 years ago
BBs are waiting for their hero who makes PR.
Thanks @ivanpopelyshev . Your reactions are faster than a falling meteorite!
@ivanpopelyshev Are Bounding Box gonna be added to pixi-spine soon? I would love to use them, but don't understand how to add them myself. If not any chance to be done soon or any hints where to start working on it?
I started working on it ,but started to getting error on lerna build:
@pixi-spine/base@4.0.3 build:types
rimraf compile && tsc -p tsconfig-api.json && api-extractor run && node ../../scripts/injectGlobalMixins
[!] SyntaxError: Unexpected identifier at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18) at async link (internal/modules/esm/module_job.js:67:21)
npm ERR! Lifecycle script build:rollup
failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: @pixi-spine/base@4.0.3
npm ERR! at location: C:\Users\Asus\WebstormProjects\spine\packages\base
ERROR: "build:rollup" exited with 1.
npm ERR! Lifecycle script build
failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: @pixi-spine/base@4.0.3
npm ERR! at location: C:\Users\Asus\WebstormProjects\spine\packages\base
@ivanpopelyshev Did by any chance this functionality was added?
The size of the loaded pixi-spine object is calculated well when using Region attachments, but it seems to ignore Spine's Bounding Box attachments as these don't influence the total size calculation of the object.
Bounding Box attachments are very useful for lots of things, but also to define the total size as a placeholder and prevents us to use a huge image we don't want for that.
Could the calculation of the total size of the pixi-spine skeleton please be expanded to also take into account Bounding Box Attachments? That would be sweet!