You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const slotBounds = slot.getBounds()
if (!slotBounds.rectangle.contains(position.x, position.y)) {
Container
Container doesn't accept another type inside of it on v8.0.0.
Container<ICharacterLifeInstance>-> Container
Extending Application class
class Game extends Application<Renderer<HTMLCanvasElement>> {
The new types are mentioned here:
But it's not clear to me which I should use, I mean, if I define it as WebGLRenderer type, Pixi.js will be locked on this renderer and will never try WebGPURenderer automatically. Should I put Renderer to let Pixi.js choose which one is available on the current browser? - I know it's just the types, but this is not clear to me on v8 migration guide.
Looks like super with params is now deprecated, but there's no direct mention of it when extending the Application class on the migration guide.
CompositeTilemap
CompositeTilemap no longer accepts name.
tilemap.name = 'ground'
Can't add CompositeTilemap into a Container (TS error).
When I find more, I'll update this readme and ping as a comment so whoever is checking this issue gets notified.
are.
Environment
pixi.js version: 8.0.0
Browser & Version: * 122.0.6261.94*
OS & Version: MacOS Ventura 13.2.1
The text was updated successfully, but these errors were encountered:
danielbarion
changed the title
Bug: [v8]
Bug: [v8] Missing information on Migration guide for v8 or in the Blog post of v8
Mar 8, 2024
Migration v7 -> v8
Things that are not documented or missing some specific mention on docs: https://pixijs.com/guides/migrations/v8 and https://pixijs.com/blog/pixi-v8-launches
Breaking Changes
Bounds
Bounds.contains(...)
->Bounds.rectangle.contains(...)
Container
Container
doesn't accept another type inside of it on v8.0.0.Container<ICharacterLifeInstance>
->Container
Extending Application class
class Game extends Application<Renderer<HTMLCanvasElement>> {
The new types are mentioned here:
But it's not clear to me which I should use, I mean, if I define it as
WebGLRenderer
type, Pixi.js will be locked on this renderer and will never tryWebGPURenderer
automatically. Should I putRenderer
to let Pixi.js choose which one is available on the current browser? - I know it's just the types, but this is not clear to me on v8 migration guide.Looks like
super
with params is now deprecated, but there's no direct mention of it when extending the Application class on the migration guide.CompositeTilemap
CompositeTilemap
no longer acceptsname
.Can't add
CompositeTilemap
into a Container (TS error).When I find more, I'll update this readme and ping as a comment so whoever is checking this issue gets notified.
are.
Environment
pixi.js
version: 8.0.0The text was updated successfully, but these errors were encountered: