[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CSTXT68B91KJWTVBPKVB9M":3,"skill-same:01M7CSTXT68B91KJWTVBPKVB9M":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CSTXT68B91KJWTVBPKVB9M","pixijs-migration-v8",null,"Use this skill when upgrading to PixiJS v8 from v7 or diagnosing broken v7 code after an upgrade. Covers async app.init, single pixi.js package (deprecated @pixi\u002F* sub-packages), Graphics shape-then-fill, BaseTexture → TextureSource, shader\u002Funiform rework, ParticleContainer+Particle, constructor options objects, DisplayObject removal, settings\u002Futils removal, Ticker signature, events rewrite. Triggers on: migrate v7, v8 breaking changes, @pixi\u002F import, DisplayObject, beginFill, endFill, cacheAsBitmap, BaseTexture, deprecated.","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fpixijs-pixijs-skills\u002Fpixijs-migration-v8\u002Fskills\u002Fpixijs-migration-v8\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pixijs-migration-v8\ndescription: \"Use this skill when upgrading to PixiJS v8 from v7 or diagnosing broken v7 code after an upgrade. Covers async app.init, single pixi.js package (deprecated @pixi\u002F* sub-packages), Graphics shape-then-fill, BaseTexture → TextureSource, shader\u002Funiform rework, ParticleContainer+Particle, constructor options objects, DisplayObject removal, settings\u002Futils removal, Ticker signature, events rewrite. Triggers on: migrate v7, v8 breaking changes, @pixi\u002F import, DisplayObject, beginFill, endFill, cacheAsBitmap, BaseTexture, deprecated.\"\nlicense: MIT\n---\n\nThis skill is a breaking-change checklist for bringing a v7 codebase up to v8. Work top-down through the categories; the list maps each v7 pattern to its v8 replacement.\n\n## Quick Start\n\nInstall the single package, then port in this order: imports → Application init → Graphics → Text → events → shaders\u002Ffilters → cleanup.\n\n```ts\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n\nconst g = new Graphics()\n  .rect(0, 0, 100, 100)\n  .fill({ color: 0xff0000 })\n  .stroke({ width: 2, color: 0x000000 });\napp.stage.addChild(g);\n```\n\n**Related skills:** `pixijs-application` (async init), `pixijs-scene-graphics` (new fill\u002Fstroke API), `pixijs-custom-rendering` (shader rework), `pixijs-scene-text` (Text constructor changes), `pixijs-performance` (destroy patterns).\n\n## Migration Checklist: v7 to v8\n\nWork through each category. Each item shows the expected v8 pattern and the v7 pattern that must be replaced.\n\n### Initialization\n\n**Async app.init()** -- Expected:\n\n```ts\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n```\n\nFail: passing options to `new Application({...})` and using synchronously.\n\n**app.canvas replaces app.view** -- `app.view` emits a deprecation warning.\n\n**Application type parameter** -- Expected: `new Application\u003CRenderer\u003CHTMLCanvasElement>>()`. Fail: `new Application\u003CHTMLCanvasElement>()`.\n\n### Imports\n\n**Single package** -- Expected:\n\n```ts\nimport { Sprite, Application, Assets, Graphics } from \"pixi.js\";\n```\n\nFail: importing from any of the deprecated v7 core `@pixi\u002F*` sub-packages (see list below). Supplemental packages like `@pixi\u002Fsound` are still valid and should continue to be used.\n\nDeprecated `@pixi\u002F*` packages (never use, any version):\n`@pixi\u002Faccessibility`, `@pixi\u002Fapp`, `@pixi\u002Fassets`, `@pixi\u002Fcompressed-textures`, `@pixi\u002Fcore`, `@pixi\u002Fdisplay`, `@pixi\u002Fevents`, `@pixi\u002Fextensions`, `@pixi\u002Fextract`, `@pixi\u002Ffilter-alpha`, `@pixi\u002Ffilter-blur`, `@pixi\u002Ffilter-color-matrix`, `@pixi\u002Ffilter-displacement`, `@pixi\u002Ffilter-fxaa`, `@pixi\u002Ffilter-noise`, `@pixi\u002Fgraphics`, `@pixi\u002Fmesh`, `@pixi\u002Fmesh-extras`, `@pixi\u002Fmixin-cache-as-bitmap`, `@pixi\u002Fmixin-get-child-by-name`, `@pixi\u002Fmixin-get-global-position`, `@pixi\u002Fparticle-container`, `@pixi\u002Fprepare`, `@pixi\u002Fsprite`, `@pixi\u002Fsprite-animated`, `@pixi\u002Fsprite-tiling`, `@pixi\u002Fspritesheet`, `@pixi\u002Ftext`, `@pixi\u002Ftext-bitmap`, `@pixi\u002Ftext-html`.\n\n**Custom builds** -- Set `skipExtensionImports: true` and import only needed extensions:\n\n```ts\nimport \"pixi.js\u002Fgraphics\";\nimport \"pixi.js\u002Ftext\";\nimport \"pixi.js\u002Fevents\";\nimport { Application } from \"pixi.js\";\nawait app.init({ skipExtensionImports: true });\n```\n\nNote: `manageImports: false` is still accepted but `@deprecated since 8.1.6`; prefer `skipExtensionImports: true`.\n\n**Extensions not auto-imported** (require explicit import even with default auto-imports enabled):\n`pixi.js\u002Fadvanced-blend-modes`, `pixi.js\u002Funsafe-eval`, `pixi.js\u002Fprepare`, `pixi.js\u002Fmath-extras`, `pixi.js\u002Fdds`, `pixi.js\u002Fktx`, `pixi.js\u002Fktx2`, `pixi.js\u002Fbasis`.\n\n**Community filters** -- Expected: `import { AdjustmentFilter } from 'pixi-filters\u002Fadjustment'`. Fail: `@pixi\u002Ffilter-adjustment`.\n\n### Graphics API\n\n**Shape-then-fill** -- Expected:\n\n```ts\nconst g = new Graphics().rect(50, 50, 100, 100).fill(0xff0000);\n```\n\nFail: `beginFill(0xff0000).drawRect(50, 50, 100, 100).endFill()`.\n\n**Renamed shape methods:**\n\n| v7                   | v8            |\n| -------------------- | ------------- |\n| `drawRect`           | `rect`        |\n| `drawCircle`         | `circle`      |\n| `drawEllipse`        | `ellipse`     |\n| `drawPolygon`        | `poly`        |\n| `drawRoundedRect`    | `roundRect`   |\n| `drawStar`           | `star`        |\n| `drawRegularPolygon` | `regularPoly` |\n| `drawRoundedPolygon` | `roundPoly`   |\n| `drawRoundedShape`   | `roundShape`  |\n| `drawChamferRect`    | `chamferRect` |\n| `drawFilletRect`     | `filletRect`  |\n\n**Fill replaces beginFill\u002FbeginTextureFill** -- Expected:\n\n```ts\ngraphics\n  .rect(0, 0, 100, 100)\n  .fill({ texture: Texture.WHITE, alpha: 0.5, color: 0xff0000 });\n```\n\nFail: `beginFill(color, alpha)` or `beginTextureFill({ texture, alpha, color })`.\n\n**Stroke replaces lineStyle** -- Expected:\n\n```ts\ngraphics.rect(0, 0, 100, 100).fill(\"blue\").stroke({ width: 2, color: \"white\" });\n```\n\nFail: `lineStyle(2, 'white')` or `lineTextureStyle({ texture, width, color })`.\n\n**Holes use cut()** -- Expected:\n\n```ts\ngraphics.rect(0, 0, 100, 100).fill(0x00ff00).circle(50, 50, 20).cut();\n```\n\nFail: `beginHole()` \u002F `endHole()`.\n\n**GraphicsContext replaces GraphicsGeometry** -- Expected:\n\n```ts\nconst context = new GraphicsContext().rect(0, 0, 100, 100).fill(0xff0000);\nconst g1 = new Graphics(context);\nconst g2 = new Graphics(context);\n```\n\nFail: `new Graphics(graphics.geometry)`.\n\n### Text\n\n**Options object constructor** -- Expected:\n\n```ts\nconst text = new Text({ text: \"Hello\", style: { fontSize: 24 } });\nconst bmp = new BitmapText({ text: \"Hello\", style: { fontFamily: \"MyFont\" } });\nconst html = new HTMLText({ text: \"\u003Cb>Hello\u003C\u002Fb>\", style: { fontSize: 24 } });\n```\n\nFail: `new Text('Hello', { fontSize: 24 })` (positional args).\n\n**Bitmap font loading** -- Must `import 'pixi.js\u002Ftext-bitmap'` before `Assets.load('font.fnt')`.\n\n### Sprites \u002F Mesh\n\n**Texture.from no longer loads URLs** -- Must call `await Assets.load('image.png')` first, then `Texture.from('image.png')`.\n\n**NineSliceSprite replaces NineSlicePlane** -- Expected:\n\n```ts\nconst ns = new NineSliceSprite({\n  texture,\n  leftWidth: 10,\n  topHeight: 10,\n  rightWidth: 10,\n  bottomHeight: 10,\n});\n```\n\n**Mesh renames:** `SimpleMesh` -> `MeshSimple`, `SimplePlane` -> `MeshPlane`, `SimpleRope` -> `MeshRope`. All use options objects.\n\n**MeshGeometry options** -- Expected:\n\n```ts\nconst geom = new MeshGeometry({\n  positions: vertices,\n  uvs,\n  indices,\n  topology: \"triangle-list\",\n});\n```\n\nFail: `new MeshGeometry(vertices, uvs, indices)`.\n\n**ParticleContainer uses Particle** -- Expected:\n\n```ts\nconst container = new ParticleContainer({\n  boundsArea: new Rectangle(0, 0, 800, 600),\n});\nconst particle = new Particle(texture);\ncontainer.addParticle(particle);\n```\n\nFail: `container.addChild(new Sprite(texture))`.\n\n### Events\n\n**eventMode replaces interactive** -- Expected:\n\n```ts\nsprite.eventMode = \"static\";\nsprite.cursor = \"pointer\";\nsprite.on(\"pointertap\", () => {\n  \u002F* handle *\u002F\n});\n```\n\nLegacy: `sprite.interactive = true;` (still works as an alias for `eventMode = 'static'`, but prefer the explicit form).\n\nDefault `eventMode` is `'passive'` (no events). Must set `'static'` or `'dynamic'` explicitly.\n\n**Ticker callback** -- Expected:\n\n```ts\napp.ticker.add((ticker) => {\n  bunny.rotation += ticker.deltaTime;\n});\n```\n\nBroken: `app.ticker.add((dt) => { bunny.rotation += dt; })` -- compiles but `dt` is a `Ticker` object, not a number. Coerces to `NaN`, silently corrupting rotation.\n\n**updateTransform removed** -- Use `this.onRender = this._onRender.bind(this)` in constructor instead.\n\n### Shaders\n\n**Shader.from uses options** -- Expected:\n\n```ts\nconst shader = Shader.from({\n  gl: { vertex: vertexSrc, fragment: fragmentSrc },\n  resources: {\n    myUniforms: new UniformGroup({ uTime: { value: 0, type: \"f32\" } }),\n  },\n});\n```\n\nFail: `Shader.from(vertex, fragment, uniforms)`.\n\n**Filter constructor** -- Expected:\n\n```ts\nconst filter = new Filter({\n  glProgram: GlProgram.from({ fragment, vertex }),\n  resources: { filterUniforms: { uTime: { value: 0, type: \"f32\" } } },\n});\n```\n\nFail: `new Filter(vertex, fragment, { uTime: 0 })`.\n\n**Uniforms require type** -- `new UniformGroup({ uTime: { value: 1, type: 'f32' } })`. Fail: `new UniformGroup({ uTime: 1 })`.\n\n**Textures are resources, not uniforms** -- Pass as top-level resource entries (`texture.source`, `texture.style`), not inside UniformGroup.\n\n### Textures\n\n**Sprite no longer auto-detects texture UV changes** -- If you modify a texture's frame after creation, call `texture.update()` to recalculate UVs, then call `sprite.onViewUpdate()` to refresh the sprite. Both calls are required in this order. Updating source data (e.g. video textures) is still automatic.\n\n```ts\ntexture.frame.width = texture.frame.width \u002F 2;\ntexture.update(); \u002F\u002F recalculate texture UVs first\nsprite.onViewUpdate(); \u002F\u002F then refresh the sprite's display\n```\n\n**Mipmaps** -- `BaseTexture.mipmap` renamed to `autoGenerateMipmaps`. For RenderTextures, you must manually update mipmaps:\n\n```ts\nconst rt = RenderTexture.create({\n  width: 100,\n  height: 100,\n  autoGenerateMipmaps: true,\n});\nrenderer.render({ target: rt, container: scene });\nrt.source.updateMipmaps();\n```\n\n### Adapters\n\n**DOMAdapter replaces settings.ADAPTER** -- Expected:\n\n```ts\nimport { DOMAdapter, WebWorkerAdapter } from \"pixi.js\";\nDOMAdapter.set(WebWorkerAdapter);\nDOMAdapter.get().createCanvas();\n```\n\nFail: `settings.ADAPTER = WebWorkerAdapter; settings.ADAPTER.createCanvas();`.\n\nBuilt-in adapters: `BrowserAdapter` (default), `WebWorkerAdapter` (for web workers).\n\n### Other\n\n**DisplayObject removed** -- `Container` is the base class. `class MyObj extends DisplayObject` fails.\n\n**Leaf nodes cannot have children** -- `Sprite`, `Graphics`, `Mesh`, `Text` are leaf nodes. Wrap in `Container`.\n\n**Renamed properties** (old names still exist as deprecated aliases with warnings):\n\n- `container.name` -> `container.label`\n- `container.cacheAsBitmap = true` -> `container.cacheAsTexture(true)`\n\n**getBounds() return type changed:** `getBounds()` now returns a `Bounds` object, not a `Rectangle`. `Bounds` has `.x`, `.y`, `.width`, `.height` getters, so basic usage works. Use `.rectangle` when you need a `Rectangle` instance (e.g., for `.contains()`).\n\n**settings object removed** -- Use `AbstractRenderer.defaultOptions.resolution = 1` and `DOMAdapter.set(BrowserAdapter)`.\n\n**utils namespace removed** -- `import { isMobile } from 'pixi.js'` instead of `utils.isMobile`.\n\n**Text parser renames:**\n\n- `TextFormat` -> `bitmapFontTextParser`\n- `XMLStringFormat` -> `bitmapFontXMLStringParser`\n- `XMLFormat` -> `bitmapFontXMLParser`\n\n**Assets.add** -- `Assets.add({ alias: 'bunny', src: 'bunny.png' })`. Fail: `Assets.add('bunny', 'bunny.png')`.\n\n**Enum constants replaced with strings:**\n\n| v7                           | v8                 |\n| ---------------------------- | ------------------ |\n| `SCALE_MODES.NEAREST`        | `'nearest'`        |\n| `SCALE_MODES.LINEAR`         | `'linear'`         |\n| `WRAP_MODES.CLAMP`           | `'clamp-to-edge'`  |\n| `WRAP_MODES.REPEAT`          | `'repeat'`         |\n| `WRAP_MODES.MIRRORED_REPEAT` | `'mirror-repeat'`  |\n| `DRAW_MODES.TRIANGLES`       | `'triangle-list'`  |\n| `DRAW_MODES.TRIANGLE_STRIP`  | `'triangle-strip'` |\n| `DRAW_MODES.LINES`           | `'line-list'`      |\n| `DRAW_MODES.LINE_STRIP`      | `'line-strip'`     |\n| `DRAW_MODES.POINTS`          | `'point-list'`     |\n\n**Culling is manual** -- Set `cullable = true`, then call `Culler.shared.cull(container, viewRect)` before render. Or add `CullerPlugin` via `extensions.add(CullerPlugin)`.\n\n## Pre-Migration Summary\n\n- [ ] No deprecated v7 core `@pixi\u002F*` packages in dependencies (supplemental packages like `@pixi\u002Fsound` are fine)\n- [ ] All core `@pixi\u002F*` imports converted to `pixi.js`\n- [ ] All `new Application({...})` converted to `await app.init({...})`\n- [ ] All Graphics code uses shape-then-fill pattern\n- [ ] All constructors use options objects (Text, Mesh, NineSliceSprite, etc.)\n- [ ] Shader\u002FFilter code uses `{gl, resources}` pattern with typed uniforms\n- [ ] ParticleContainer code uses `Particle`, not `Sprite`\n- [ ] Ticker callbacks access `ticker.deltaTime`, not first param as delta\n- [ ] Event handling uses `eventMode` instead of `interactive`\n- [ ] `settings` and `utils` references removed\n- [ ] `DisplayObject` references replaced with `Container`\n- [ ] Texture UV modifications call `sprite.onViewUpdate()` where needed\n- [ ] RenderTexture mipmap code calls `source.updateMipmaps()` manually\n- [ ] `settings.ADAPTER` replaced with `DOMAdapter.set()`\n\n## Common Mistakes\n\n### [CRITICAL] Importing from deprecated v7 core @pixi\u002F\\* sub-packages\n\nWrong:\n\n```ts\nimport { Sprite } from \"@pixi\u002Fsprite\";\nimport { Application } from \"@pixi\u002Fapp\";\n```\n\nCorrect:\n\n```ts\nimport { Sprite, Application } from \"pixi.js\";\n```\n\nv8 uses a single `pixi.js` package. The v7 core `@pixi\u002F*` sub-packages are deprecated and must not be used (see the full list under Imports above). Supplemental packages like `@pixi\u002Fsound` are still valid.\n\n\n### [CRITICAL] Using DisplayObject as base class\n\nWrong: `class MyObject extends DisplayObject { ... }`\nCorrect: `class MyObject extends Container { ... }`\n\n`DisplayObject` was removed in v8. `Container` is the base class for all display objects.\n\n\n### [HIGH] Using old SCALE_MODES\u002FWRAP_MODES\u002FDRAW_MODES enums\n\nWrong: `texture.source.scaleMode = SCALE_MODES.NEAREST;`\nCorrect: `texture.source.scaleMode = 'nearest';`\n\nv8 uses string values. Old enums may work as deprecated aliases but should be replaced.\n\n\n### [HIGH] Using `interactive = true` instead of `eventMode`\n\nLegacy: `sprite.interactive = true;` (still works as an alias for `eventMode = 'static'`)\nPreferred: `sprite.eventMode = 'static';`\n\nDefault `eventMode` is `'passive'` (no events). Must set `'static'` (hit-testable, no tick checks) or `'dynamic'` (hit-testable with tick checks) explicitly. `interactive = true` still works without a deprecation warning, but `eventMode` is the canonical v8 API.\n\n\n### [HIGH] Using utils namespace\n\nWrong: `import { utils } from 'pixi.js'; utils.isMobile.any();`\nCorrect: `import { isMobile } from 'pixi.js'; isMobile.any();`\n\nThe `utils` namespace was removed. All utility functions are direct imports.\n\n\n### [HIGH] Expecting texture UV changes to auto-update sprites\n\nWrong: modifying `texture.frame` and assuming the sprite updates automatically.\nCorrect: call `sprite.onViewUpdate()` after modifying texture UVs.\n\nSprites no longer subscribe to texture UV change events for performance. Source data updates (e.g. video) still auto-reflect.\n\n\n## API Reference\n\n- [v8 Migration Guide](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fmigrations.html.md)\n- [v7 Migration Guide](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fmigrations-1.html.md)\n- [Application](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.Application.html.md)\n- [Graphics](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fscene.Graphics.html.md)\n- [Container](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fscene.Container.html.md)\n","This skill is a breaking-change checklist for bringing a v7 codebase up to v8. Work top-down through the categories; the list maps each v7 pattern to its v8 replacement.\n\n## Quick Start\n\nInstall the single package, then port in this order: imports → Application init → Graphics → Text → events → shaders\u002Ffilters → cleanup.\n\n```ts\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n\nconst g = new Graphics()\n  .rect(0, 0, 100, 100)\n  .fill({ color: 0xff0000 })\n  .stroke({ width: 2, color: 0x000000 });\napp.stage.addChild(g);\n```\n\n**Related skills:** `pixijs-application` (async init), `pixijs-scene-graphics` (new fill\u002Fstroke API), `pixijs-custom-rendering` (shader rework), `pixijs-scene-text` (Text constructor changes), `pixijs-performance` (destroy patterns).\n\n## Migration Checklist: v7 to v8\n\nWork through each category. Each item shows the expected v8 pattern and the v7 pattern that must be replaced.\n\n### Initialization\n\n**Async app.init()** -- Expected:\n\n```ts\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n```\n\nFail: passing options to `new Application({...})` and using synchronously.\n\n**app.canvas replaces app.view** -- `app.view` emits a deprecation warning.\n\n**Application type parameter** -- Expected: `new Application\u003CRenderer\u003CHTMLCanvasElement>>()`. Fail: `new Application\u003CHTMLCanvasElement>()`.\n\n### Imports\n\n**Single package** -- Expected:\n\n```ts\nimport { Sprite, Application, Assets, Graphics } from \"pixi.js\";\n```\n\nFail: importing from any of the deprecated v7 core `@pixi\u002F*` sub-packages (see list below). Supplemental packages like `@pixi\u002Fsound` are still valid and should continue to be used.\n\nDeprecated `@pixi\u002F*` packages (never use, any version):\n`@pixi\u002Faccessibility`, `@pixi\u002Fapp`, `@pixi\u002Fassets`, `@pixi\u002Fcompressed-textures`, `@pixi\u002Fcore`, `@pixi\u002Fdisplay`, `@pixi\u002Fevents`, `@pixi\u002Fextensions`, `@pixi\u002Fextract`, `@pixi\u002Ffilter-alpha`, `@pixi\u002Ffilter-blur`, `@pixi\u002Ffilter-color-matrix`, `@pixi\u002Ffilter-displacement`, `@pixi\u002Ffilter-fxaa`, `@pixi\u002Ffilter-noise`, `@pixi\u002Fgraphics`, `@pixi\u002Fmesh`, `@pixi\u002Fmesh-extras`, `@pixi\u002Fmixin-cache-as-bitmap`, `@pixi\u002Fmixin-get-child-by-name`, `@pixi\u002Fmixin-get-global-position`, `@pixi\u002Fparticle-container`, `@pixi\u002Fprepare`, `@pixi\u002Fsprite`, `@pixi\u002Fsprite-animated`, `@pixi\u002Fsprite-tiling`, `@pixi\u002Fspritesheet`, `@pixi\u002Ftext`, `@pixi\u002Ftext-bitmap`, `@pixi\u002Ftext-html`.\n\n**Custom builds** -- Set `skipExtensionImports: true` and import only needed extensions:\n\n```ts\nimport \"pixi.js\u002Fgraphics\";\nimport \"pixi.js\u002Ftext\";\nimport \"pixi.js\u002Fevents\";\nimport { Application } from \"pixi.js\";\nawait app.init({ skipExtensionImports: true });\n```\n\nNote: `manageImports: false` is still accepted but `@deprecated since 8.1.6`; prefer `skipExtensionImports: true`.\n\n**Extensions not auto-imported** (require explicit import even with default auto-imports enabled):\n`pixi.js\u002Fadvanced-blend-modes`, `pixi.js\u002Funsafe-eval`, `pixi.js\u002Fprepare`, `pixi.js\u002Fmath-extras`, `pixi.js\u002Fdds`, `pixi.js\u002Fktx`, `pixi.js\u002Fktx2`, `pixi.js\u002Fbasis`.\n\n**Community filters** -- Expected: `import { AdjustmentFilter } from 'pixi-filters\u002Fadjustment'`. Fail: `@pixi\u002Ffilter-adjustment`.\n\n### Graphics API\n\n**Shape-then-fill** -- Expected:\n\n```ts\nconst g = new Graphics().rect(50, 50, 100, 100).fill(0xff0000);\n```\n\nFail: `beginFill(0xff0000).drawRect(50, 50, 100, 100).endFill()`.\n\n**Renamed shape methods:**\n\n| v7                   | v8            |\n| -------------------- | ------------- |\n| `drawRect`           | `rect`        |\n| `drawCircle`         | `circle`      |\n| `drawEllipse`        | `ellipse`     |\n| `drawPolygon`        | `poly`        |\n| `drawRoundedRect`    | `roundRect`   |\n| `drawStar`           | `star`        |\n| `drawRegularPolygon` | `regularPoly` |\n| `drawRoundedPolygon` | `roundPoly`   |\n| `drawRoundedShape`   | `roundShape`  |\n| `drawChamferRect`    | `chamferRect` |\n| `drawFilletRect`     | `filletRect`  |\n\n**Fill replaces beginFill\u002FbeginTextureFill** -- Expected:\n\n```ts\ngraphics\n  .rect(0, 0, 100, 100)\n  .fill({ texture: Texture.WHITE, alpha: 0.5, color: 0xff0000 });\n```\n\nFail: `beginFill(color, alpha)` or `beginTextureFill({ texture, alpha, color })`.\n\n**Stroke replaces lineStyle** -- Expected:\n\n```ts\ngraphics.rect(0, 0, 100, 100).fill(\"blue\").stroke({ width: 2, color: \"white\" });\n```\n\nFail: `lineStyle(2, 'white')` or `lineTextureStyle({ texture, width, color })`.\n\n**Holes use cut()** -- Expected:\n\n```ts\ngraphics.rect(0, 0, 100, 100).fill(0x00ff00).circle(50, 50, 20).cut();\n```\n\nFail: `beginHole()` \u002F `endHole()`.\n\n**GraphicsContext replaces GraphicsGeometry** -- Expected:\n\n```ts\nconst context = new GraphicsContext().rect(0, 0, 100, 100).fill(0xff0000);\nconst g1 = new Graphics(context);\nconst g2 = new Graphics(context);\n```\n\nFail: `new Graphics(graphics.geometry)`.\n\n### Text\n\n**Options object constructor** -- Expected:\n\n```ts\nconst text = new Text({ text: \"Hello\", style: { fontSize: 24 } });\nconst bmp = new BitmapText({ text: \"Hello\", style: { fontFamily: \"MyFont\" } });\nconst html = new HTMLText({ text: \"\u003Cb>Hello\u003C\u002Fb>\", style: { fontSize: 24 } });\n```\n\nFail: `new Text('Hello', { fontSize: 24 })` (positional args).\n\n**Bitmap font loading** -- Must `import 'pixi.js\u002Ftext-bitmap'` before `Assets.load('font.fnt')`.\n\n### Sprites \u002F Mesh\n\n**Texture.from no longer loads URLs** -- Must call `await Assets.load('image.png')` first, then `Texture.from('image.png')`.\n\n**NineSliceSprite replaces NineSlicePlane** -- Expected:\n\n```ts\nconst ns = new NineSliceSprite({\n  texture,\n  leftWidth: 10,\n  topHeight: 10,\n  rightWidth: 10,\n  bottomHeight: 10,\n});\n```\n\n**Mesh renames:** `SimpleMesh` -> `MeshSimple`, `SimplePlane` -> `MeshPlane`, `SimpleRope` -> `MeshRope`. All use options objects.\n\n**MeshGeometry options** -- Expected:\n\n```ts\nconst geom = new MeshGeometry({\n  positions: vertices,\n  uvs,\n  indices,\n  topology: \"triangle-list\",\n});\n```\n\nFail: `new MeshGeometry(vertices, uvs, indices)`.\n\n**ParticleContainer uses Particle** -- Expected:\n\n```ts\nconst container = new ParticleContainer({\n  boundsArea: new Rectangle(0, 0, 800, 600),\n});\nconst particle = new Particle(texture);\ncontainer.addParticle(particle);\n```\n\nFail: `container.addChild(new Sprite(texture))`.\n\n### Events\n\n**eventMode replaces interactive** -- Expected:\n\n```ts\nsprite.eventMode = \"static\";\nsprite.cursor = \"pointer\";\nsprite.on(\"pointertap\", () => {\n  \u002F* handle *\u002F\n});\n```\n\nLegacy: `sprite.interactive = true;` (still works as an alias for `eventMode = 'static'`, but prefer the explicit form).\n\nDefault `eventMode` is `'passive'` (no events). Must set `'static'` or `'dynamic'` explicitly.\n\n**Ticker callback** -- Expected:\n\n```ts\napp.ticker.add((ticker) => {\n  bunny.rotation += ticker.deltaTime;\n});\n```\n\nBroken: `app.ticker.add((dt) => { bunny.rotation += dt; })` -- compiles but `dt` is a `Ticker` object, not a number. Coerces to `NaN`, silently corrupting rotation.\n\n**updateTransform removed** -- Use `this.onRender = this._onRender.bind(this)` in constructor instead.\n\n### Shaders\n\n**Shader.from uses options** -- Expected:\n\n```ts\nconst shader = Shader.from({\n  gl: { vertex: vertexSrc, fragment: fragmentSrc },\n  resources: {\n    myUniforms: new UniformGroup({ uTime: { value: 0, type: \"f32\" } }),\n  },\n});\n```\n\nFail: `Shader.from(vertex, fragment, uniforms)`.\n\n**Filter constructor** -- Expected:\n\n```ts\nconst filter = new Filter({\n  glProgram: GlProgram.from({ fragment, vertex }),\n  resources: { filterUniforms: { uTime: { value: 0, type: \"f32\" } } },\n});\n```\n\nFail: `new Filter(vertex, fragment, { uTime: 0 })`.\n\n**Uniforms require type** -- `new UniformGroup({ uTime: { value: 1, type: 'f32' } })`. Fail: `new UniformGroup({ uTime: 1 })`.\n\n**Textures are resources, not uniforms** -- Pass as top-level resource entries (`texture.source`, `texture.style`), not inside UniformGroup.\n\n### Textures\n\n**Sprite no longer auto-detects texture UV changes** -- If you modify a texture's frame after creation, call `texture.update()` to recalculate UVs, then call `sprite.onViewUpdate()` to refresh the sprite. Both calls are required in this order. Updating source data (e.g. video textures) is still automatic.\n\n```ts\ntexture.frame.width = texture.frame.width \u002F 2;\ntexture.update(); \u002F\u002F recalculate texture UVs first\nsprite.onViewUpdate(); \u002F\u002F then refresh the sprite's display\n```\n\n**Mipmaps** -- `BaseTexture.mipmap` renamed to `autoGenerateMipmaps`. For RenderTextures, you must manually update mipmaps:\n\n```ts\nconst rt = RenderTexture.create({\n  width: 100,\n  height: 100,\n  autoGenerateMipmaps: true,\n});\nrenderer.render({ target: rt, container: scene });\nrt.source.updateMipmaps();\n```\n\n### Adapters\n\n**DOMAdapter replaces settings.ADAPTER** -- Expected:\n\n```ts\nimport { DOMAdapter, WebWorkerAdapter } from \"pixi.js\";\nDOMAdapter.set(WebWorkerAdapter);\nDOMAdapter.get().createCanvas();\n```\n\nFail: `settings.ADAPTER = WebWorkerAdapter; settings.ADAPTER.createCanvas();`.\n\nBuilt-in adapters: `BrowserAdapter` (default), `WebWorkerAdapter` (for web workers).\n\n### Other\n\n**DisplayObject removed** -- `Container` is the base class. `class MyObj extends DisplayObject` fails.\n\n**Leaf nodes cannot have children** -- `Sprite`, `Graphics`, `Mesh`, `Text` are leaf nodes. Wrap in `Container`.\n\n**Renamed properties** (old names still exist as deprecated aliases with warnings):\n\n- `container.name` -> `container.label`\n- `container.cacheAsBitmap = true` -> `container.cacheAsTexture(true)`\n\n**getBounds() return type changed:** `getBounds()` now returns a `Bounds` object, not a `Rectangle`. `Bounds` has `.x`, `.y`, `.width`, `.height` getters, so basic usage works. Use `.rectangle` when you need a `Rectangle` instance (e.g., for `.contains()`).\n\n**settings object removed** -- Use `AbstractRenderer.defaultOptions.resolution = 1` and `DOMAdapter.set(BrowserAdapter)`.\n\n**utils namespace removed** -- `import { isMobile } from 'pixi.js'` instead of `utils.isMobile`.\n\n**Text parser renames:**\n\n- `TextFormat` -> `bitmapFontTextParser`\n- `XMLStringFormat` -> `bitmapFontXMLStringParser`\n- `XMLFormat` -> `bitmapFontXMLParser`\n\n**Assets.add** -- `Assets.add({ alias: 'bunny', src: 'bunny.png' })`. Fail: `Assets.add('bunny', 'bunny.png')`.\n\n**Enum constants replaced with strings:**\n\n| v7                           | v8                 |\n| ---------------------------- | ------------------ |\n| `SCALE_MODES.NEAREST`        | `'nearest'`        |\n| `SCALE_MODES.LINEAR`         | `'linear'`         |\n| `WRAP_MODES.CLAMP`           | `'clamp-to-edge'`  |\n| `WRAP_MODES.REPEAT`          | `'repeat'`         |\n| `WRAP_MODES.MIRRORED_REPEAT` | `'mirror-repeat'`  |\n| `DRAW_MODES.TRIANGLES`       | `'triangle-list'`  |\n| `DRAW_MODES.TRIANGLE_STRIP`  | `'triangle-strip'` |\n| `DRAW_MODES.LINES`           | `'line-list'`      |\n| `DRAW_MODES.LINE_STRIP`      | `'line-strip'`     |\n| `DRAW_MODES.POINTS`          | `'point-list'`     |\n\n**Culling is manual** -- Set `cullable = true`, then call `Culler.shared.cull(container, viewRect)` before render. Or add `CullerPlugin` via `extensions.add(CullerPlugin)`.\n\n## Pre-Migration Summary\n\n- [ ] No deprecated v7 core `@pixi\u002F*` packages in dependencies (supplemental packages like `@pixi\u002Fsound` are fine)\n- [ ] All core `@pixi\u002F*` imports converted to `pixi.js`\n- [ ] All `new Application({...})` converted to `await app.init({...})`\n- [ ] All Graphics code uses shape-then-fill pattern\n- [ ] All constructors use options objects (Text, Mesh, NineSliceSprite, etc.)\n- [ ] Shader\u002FFilter code uses `{gl, resources}` pattern with typed uniforms\n- [ ] ParticleContainer code uses `Particle`, not `Sprite`\n- [ ] Ticker callbacks access `ticker.deltaTime`, not first param as delta\n- [ ] Event handling uses `eventMode` instead of `interactive`\n- [ ] `settings` and `utils` references removed\n- [ ] `DisplayObject` references replaced with `Container`\n- [ ] Texture UV modifications call `sprite.onViewUpdate()` where needed\n- [ ] RenderTexture mipmap code calls `source.updateMipmaps()` manually\n- [ ] `settings.ADAPTER` replaced with `DOMAdapter.set()`\n\n## Common Mistakes\n\n### [CRITICAL] Importing from deprecated v7 core @pixi\u002F\\* sub-packages\n\nWrong:\n\n```ts\nimport { Sprite } from \"@pixi\u002Fsprite\";\nimport { Application } from \"@pixi\u002Fapp\";\n```\n\nCorrect:\n\n```ts\nimport { Sprite, Application } from \"pixi.js\";\n```\n\nv8 uses a single `pixi.js` package. The v7 core `@pixi\u002F*` sub-packages are deprecated and must not be used (see the full list under Imports above). Supplemental packages like `@pixi\u002Fsound` are still valid.\n\n\n### [CRITICAL] Using DisplayObject as base class\n\nWrong: `class MyObject extends DisplayObject { ... }`\nCorrect: `class MyObject extends Container { ... }`\n\n`DisplayObject` was removed in v8. `Container` is the base class for all display objects.\n\n\n### [HIGH] Using old SCALE_MODES\u002FWRAP_MODES\u002FDRAW_MODES enums\n\nWrong: `texture.source.scaleMode = SCALE_MODES.NEAREST;`\nCorrect: `texture.source.scaleMode = 'nearest';`\n\nv8 uses string values. Old enums may work as deprecated aliases but should be replaced.\n\n\n### [HIGH] Using `interactive = true` instead of `eventMode`\n\nLegacy: `sprite.interactive = true;` (still works as an alias for `eventMode = 'static'`)\nPreferred: `sprite.eventMode = 'static';`\n\nDefault `eventMode` is `'passive'` (no events). Must set `'static'` (hit-testable, no tick checks) or `'dynamic'` (hit-testable with tick checks) explicitly. `interactive = true` still works without a deprecation warning, but `eventMode` is the canonical v8 API.\n\n\n### [HIGH] Using utils namespace\n\nWrong: `import { utils } from 'pixi.js'; utils.isMobile.any();`\nCorrect: `import { isMobile } from 'pixi.js'; isMobile.any();`\n\nThe `utils` namespace was removed. All utility functions are direct imports.\n\n\n### [HIGH] Expecting texture UV changes to auto-update sprites\n\nWrong: modifying `texture.frame` and assuming the sprite updates automatically.\nCorrect: call `sprite.onViewUpdate()` after modifying texture UVs.\n\nSprites no longer subscribe to texture UV change events for performance. Source data updates (e.g. video) still auto-reflect.\n\n\n## API Reference\n\n- [v8 Migration Guide](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fmigrations.html.md)\n- [v7 Migration Guide](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fmigrations-1.html.md)\n- [Application](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.Application.html.md)\n- [Graphics](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fscene.Graphics.html.md)\n- [Container](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fscene.Container.html.md)\n",{"name":5,"license":15,"description":7},"main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fpixijs-pixijs-skills\u002Fpixijs-migration-v8\u002Fskills\u002Fpixijs-migration-v8",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill pixijs-migration-v8",{"tool":38,"command":39},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill pixijs-migration-v8",{"tool":41,"command":42},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill pixijs-migration-v8","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fpixijs-pixijs-skills\u002Fpixijs-migration-v8\u002Fskills\u002Fpixijs-migration-v8\u002FSKILL.md",true,[],[47,54,59,66,71,78],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":55,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":67,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":79,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]