@docyrus/animaguru 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/NOTICE.md +256 -0
  2. package/README.md +241 -0
  3. package/dist/animaguru.js +27338 -0
  4. package/package.json +37 -0
  5. package/skills/animaguru/SKILL.md +115 -0
  6. package/skills/animaguru-advertising/SKILL.md +25 -0
  7. package/skills/animaguru-advertising/references/brand-bumper.md +11 -0
  8. package/skills/animaguru-advertising/references/comparison.md +11 -0
  9. package/skills/animaguru-advertising/references/creator-testimonial.md +11 -0
  10. package/skills/animaguru-advertising/references/editorial-advertorial.md +11 -0
  11. package/skills/animaguru-advertising/references/game-reward.md +11 -0
  12. package/skills/animaguru-advertising/references/offer-promotion.md +11 -0
  13. package/skills/animaguru-advertising/references/product-launch.md +11 -0
  14. package/skills/animaguru-advertising/references/product-proof.md +11 -0
  15. package/skills/animaguru-analog-film-tape/SKILL.md +29 -0
  16. package/skills/animaguru-analog-film-tape/references/recipe.md +23 -0
  17. package/skills/animaguru-animated-data-visualization/SKILL.md +39 -0
  18. package/skills/animaguru-animated-data-visualization/references/data-contract.md +16 -0
  19. package/skills/animaguru-animated-data-visualization/references/variants.md +17 -0
  20. package/skills/animaguru-art-deco-motion/SKILL.md +29 -0
  21. package/skills/animaguru-art-deco-motion/references/recipe.md +22 -0
  22. package/skills/animaguru-ascii-crt/SKILL.md +29 -0
  23. package/skills/animaguru-ascii-crt/references/recipe.md +22 -0
  24. package/skills/animaguru-blueprint-drafting/SKILL.md +29 -0
  25. package/skills/animaguru-blueprint-drafting/references/recipe.md +22 -0
  26. package/skills/animaguru-cartoon-character-animation/SKILL.md +35 -0
  27. package/skills/animaguru-cartoon-character-animation/references/variants.md +17 -0
  28. package/skills/animaguru-cutout-animation/SKILL.md +33 -0
  29. package/skills/animaguru-cutout-animation/references/production-recipe.md +37 -0
  30. package/skills/animaguru-cutout-animation/references/variants.md +17 -0
  31. package/skills/animaguru-cutout-animation/references/visual-style.md +34 -0
  32. package/skills/animaguru-dark-tech-stage/SKILL.md +29 -0
  33. package/skills/animaguru-dark-tech-stage/references/recipe.md +23 -0
  34. package/skills/animaguru-diagram-formula-motion/SKILL.md +36 -0
  35. package/skills/animaguru-diagram-formula-motion/references/variants.md +17 -0
  36. package/skills/animaguru-engraved-relief-print/SKILL.md +29 -0
  37. package/skills/animaguru-engraved-relief-print/references/recipe.md +24 -0
  38. package/skills/animaguru-flat-vector-motion/SKILL.md +35 -0
  39. package/skills/animaguru-flat-vector-motion/references/variants.md +17 -0
  40. package/skills/animaguru-general-video/SKILL.md +20 -0
  41. package/skills/animaguru-general-video/references/ambient-loop.md +11 -0
  42. package/skills/animaguru-general-video/references/music-lyrics.md +11 -0
  43. package/skills/animaguru-general-video/references/short-film.md +11 -0
  44. package/skills/animaguru-general-video/references/titles-event.md +11 -0
  45. package/skills/animaguru-general-video/references/visual-essay.md +11 -0
  46. package/skills/animaguru-generative-light-signal/SKILL.md +29 -0
  47. package/skills/animaguru-generative-light-signal/references/recipe.md +23 -0
  48. package/skills/animaguru-glass-mosaic/SKILL.md +29 -0
  49. package/skills/animaguru-glass-mosaic/references/recipe.md +23 -0
  50. package/skills/animaguru-halftone-editorial/SKILL.md +29 -0
  51. package/skills/animaguru-halftone-editorial/references/recipe.md +23 -0
  52. package/skills/animaguru-holographic-scan/SKILL.md +29 -0
  53. package/skills/animaguru-holographic-scan/references/recipe.md +22 -0
  54. package/skills/animaguru-interface-motion/SKILL.md +36 -0
  55. package/skills/animaguru-interface-motion/references/screen-mapping.md +16 -0
  56. package/skills/animaguru-interface-motion/references/variants.md +17 -0
  57. package/skills/animaguru-isometric-worlds/SKILL.md +35 -0
  58. package/skills/animaguru-isometric-worlds/references/variants.md +17 -0
  59. package/skills/animaguru-kinetic-typography/SKILL.md +35 -0
  60. package/skills/animaguru-kinetic-typography/references/variants.md +17 -0
  61. package/skills/animaguru-miniature-diorama/SKILL.md +29 -0
  62. package/skills/animaguru-miniature-diorama/references/recipe.md +23 -0
  63. package/skills/animaguru-painterly-depth-animation/SKILL.md +35 -0
  64. package/skills/animaguru-painterly-depth-animation/references/variants.md +17 -0
  65. package/skills/animaguru-paper-popup/SKILL.md +29 -0
  66. package/skills/animaguru-paper-popup/references/recipe.md +22 -0
  67. package/skills/animaguru-photo-footage-editorial/SKILL.md +29 -0
  68. package/skills/animaguru-photo-footage-editorial/references/recipe.md +23 -0
  69. package/skills/animaguru-pixel-art-animation/SKILL.md +36 -0
  70. package/skills/animaguru-pixel-art-animation/references/variants.md +17 -0
  71. package/skills/animaguru-portal-zoom/SKILL.md +29 -0
  72. package/skills/animaguru-portal-zoom/references/recipe.md +21 -0
  73. package/skills/animaguru-risograph-print/SKILL.md +29 -0
  74. package/skills/animaguru-risograph-print/references/recipe.md +23 -0
  75. package/skills/animaguru-sand-drawing/SKILL.md +29 -0
  76. package/skills/animaguru-sand-drawing/references/recipe.md +21 -0
  77. package/skills/animaguru-shadow-theatre/SKILL.md +29 -0
  78. package/skills/animaguru-shadow-theatre/references/recipe.md +23 -0
  79. package/skills/animaguru-silkscreen-poster/SKILL.md +29 -0
  80. package/skills/animaguru-silkscreen-poster/references/recipe.md +22 -0
  81. package/skills/animaguru-stop-motion-objects/SKILL.md +29 -0
  82. package/skills/animaguru-stop-motion-objects/references/recipe.md +23 -0
  83. package/skills/animaguru-studio-product-reveal/SKILL.md +29 -0
  84. package/skills/animaguru-studio-product-reveal/references/recipe.md +23 -0
  85. package/skills/animaguru-video/SKILL.md +79 -0
  86. package/skills/animaguru-whiteboard-line-drawing/SKILL.md +34 -0
  87. package/skills/animaguru-whiteboard-line-drawing/references/variants.md +17 -0
  88. package/templates/video/AGENTS.md +34 -0
  89. package/templates/video/CLAUDE.md +19 -0
  90. package/templates/video/README.md +101 -0
  91. package/templates/video/VIDEO-STYLE-NOTICES.txt +54 -0
  92. package/templates/video/film.config.json +10 -0
  93. package/templates/video/gitignore +11 -0
  94. package/templates/video/index.html +14 -0
  95. package/templates/video/package.json +28 -0
  96. package/templates/video/public/brand/logo-mark.svg +5 -0
  97. package/templates/video/scripts/build.mjs +12 -0
  98. package/templates/video/scripts/export-html.mjs +12 -0
  99. package/templates/video/scripts/export-mp4.mjs +209 -0
  100. package/templates/video/scripts/html-export-plugin.mjs +35 -0
  101. package/templates/video/scripts/html-export.mjs +54 -0
  102. package/templates/video/scripts/install-example.mjs +32 -0
  103. package/templates/video/scripts/review-analysis.mjs +29 -0
  104. package/templates/video/scripts/review-audio.mjs +24 -0
  105. package/templates/video/scripts/review.mjs +37 -0
  106. package/templates/video/scripts/starter-film.sha256 +1 -0
  107. package/templates/video/shared/locales/en/export.json +10 -0
  108. package/templates/video/shared/locales/en/film.json +42 -0
  109. package/templates/video/shared/locales/en/player.json +31 -0
  110. package/templates/video/shared/locales/en/style-studies.json +168 -0
  111. package/templates/video/shared/locales/en/timeline.json +33 -0
  112. package/templates/video/src/assets.ts +4 -0
  113. package/templates/video/src/download.ts +27 -0
  114. package/templates/video/src/exporter.ts +70 -0
  115. package/templates/video/src/film-resources.ts +29 -0
  116. package/templates/video/src/film.ts +132 -0
  117. package/templates/video/src/main.ts +219 -0
  118. package/templates/video/src/resource-timeline.ts +193 -0
  119. package/templates/video/src/review.ts +50 -0
  120. package/templates/video/src/studies/film.ts +26 -0
  121. package/templates/video/src/studies/media.ts +46 -0
  122. package/templates/video/src/studies/model.ts +60 -0
  123. package/templates/video/src/studies/pixi-renderer.ts +121 -0
  124. package/templates/video/src/studies/scenes.ts +410 -0
  125. package/templates/video/src/studies/timing.ts +53 -0
  126. package/templates/video/src/studies/variants.ts +39 -0
  127. package/templates/video/src/style.css +111 -0
  128. package/templates/video/src/timeline-model.ts +55 -0
  129. package/templates/video/style-source-provenance.json +11 -0
  130. package/templates/video/tsconfig.json +15 -0
  131. package/templates/video/vite.config.mjs +9 -0
  132. package/vendor/pixijs-skills/LICENSE +21 -0
  133. package/vendor/pixijs-skills/provenance.json +79 -0
  134. package/vendor/pixijs-skills/skills/pixijs/SKILL.md +66 -0
  135. package/vendor/pixijs-skills/skills/pixijs/references/index.md +136 -0
  136. package/vendor/pixijs-skills/skills/pixijs-accessibility/SKILL.md +224 -0
  137. package/vendor/pixijs-skills/skills/pixijs-application/SKILL.md +293 -0
  138. package/vendor/pixijs-skills/skills/pixijs-application/references/application-options.md +314 -0
  139. package/vendor/pixijs-skills/skills/pixijs-assets/SKILL.md +303 -0
  140. package/vendor/pixijs-skills/skills/pixijs-assets/references/background.md +137 -0
  141. package/vendor/pixijs-skills/skills/pixijs-assets/references/bundles.md +122 -0
  142. package/vendor/pixijs-skills/skills/pixijs-assets/references/caching.md +143 -0
  143. package/vendor/pixijs-skills/skills/pixijs-assets/references/compressed-textures.md +120 -0
  144. package/vendor/pixijs-skills/skills/pixijs-assets/references/fonts.md +205 -0
  145. package/vendor/pixijs-skills/skills/pixijs-assets/references/gif.md +171 -0
  146. package/vendor/pixijs-skills/skills/pixijs-assets/references/manifests.md +175 -0
  147. package/vendor/pixijs-skills/skills/pixijs-assets/references/progress.md +142 -0
  148. package/vendor/pixijs-skills/skills/pixijs-assets/references/resolution.md +142 -0
  149. package/vendor/pixijs-skills/skills/pixijs-assets/references/spritesheet.md +119 -0
  150. package/vendor/pixijs-skills/skills/pixijs-assets/references/svg.md +132 -0
  151. package/vendor/pixijs-skills/skills/pixijs-assets/references/video.md +158 -0
  152. package/vendor/pixijs-skills/skills/pixijs-blend-modes/SKILL.md +215 -0
  153. package/vendor/pixijs-skills/skills/pixijs-color/SKILL.md +299 -0
  154. package/vendor/pixijs-skills/skills/pixijs-core-concepts/SKILL.md +132 -0
  155. package/vendor/pixijs-skills/skills/pixijs-core-concepts/references/render-loop.md +216 -0
  156. package/vendor/pixijs-skills/skills/pixijs-core-concepts/references/renderers.md +287 -0
  157. package/vendor/pixijs-skills/skills/pixijs-create/SKILL.md +276 -0
  158. package/vendor/pixijs-skills/skills/pixijs-custom-rendering/SKILL.md +405 -0
  159. package/vendor/pixijs-skills/skills/pixijs-custom-rendering/references/advanced-gpu.md +244 -0
  160. package/vendor/pixijs-skills/skills/pixijs-custom-rendering/references/uniform-types.md +94 -0
  161. package/vendor/pixijs-skills/skills/pixijs-environments/SKILL.md +243 -0
  162. package/vendor/pixijs-skills/skills/pixijs-events/SKILL.md +387 -0
  163. package/vendor/pixijs-skills/skills/pixijs-filters/SKILL.md +300 -0
  164. package/vendor/pixijs-skills/skills/pixijs-html-source/SKILL.md +228 -0
  165. package/vendor/pixijs-skills/skills/pixijs-math/SKILL.md +489 -0
  166. package/vendor/pixijs-skills/skills/pixijs-migration-v8/SKILL.md +415 -0
  167. package/vendor/pixijs-skills/skills/pixijs-performance/SKILL.md +489 -0
  168. package/vendor/pixijs-skills/skills/pixijs-scene-container/SKILL.md +345 -0
  169. package/vendor/pixijs-skills/skills/pixijs-scene-core-concepts/SKILL.md +243 -0
  170. package/vendor/pixijs-skills/skills/pixijs-scene-core-concepts/references/constructor-options.md +155 -0
  171. package/vendor/pixijs-skills/skills/pixijs-scene-core-concepts/references/container-hierarchy.md +232 -0
  172. package/vendor/pixijs-skills/skills/pixijs-scene-core-concepts/references/layers.md +145 -0
  173. package/vendor/pixijs-skills/skills/pixijs-scene-core-concepts/references/masking.md +129 -0
  174. package/vendor/pixijs-skills/skills/pixijs-scene-core-concepts/references/render-groups.md +140 -0
  175. package/vendor/pixijs-skills/skills/pixijs-scene-core-concepts/references/scene-management.md +169 -0
  176. package/vendor/pixijs-skills/skills/pixijs-scene-core-concepts/references/transforms.md +198 -0
  177. package/vendor/pixijs-skills/skills/pixijs-scene-dom-container/SKILL.md +193 -0
  178. package/vendor/pixijs-skills/skills/pixijs-scene-gif/SKILL.md +233 -0
  179. package/vendor/pixijs-skills/skills/pixijs-scene-graphics/SKILL.md +576 -0
  180. package/vendor/pixijs-skills/skills/pixijs-scene-mesh/SKILL.md +141 -0
  181. package/vendor/pixijs-skills/skills/pixijs-scene-mesh/references/mesh-perspective.md +189 -0
  182. package/vendor/pixijs-skills/skills/pixijs-scene-mesh/references/mesh-plane.md +159 -0
  183. package/vendor/pixijs-skills/skills/pixijs-scene-mesh/references/mesh-rope.md +176 -0
  184. package/vendor/pixijs-skills/skills/pixijs-scene-mesh/references/mesh-simple.md +144 -0
  185. package/vendor/pixijs-skills/skills/pixijs-scene-mesh/references/mesh.md +213 -0
  186. package/vendor/pixijs-skills/skills/pixijs-scene-particle-container/SKILL.md +323 -0
  187. package/vendor/pixijs-skills/skills/pixijs-scene-sprite/SKILL.md +120 -0
  188. package/vendor/pixijs-skills/skills/pixijs-scene-sprite/references/animated-sprite.md +262 -0
  189. package/vendor/pixijs-skills/skills/pixijs-scene-sprite/references/nineslice-sprite.md +202 -0
  190. package/vendor/pixijs-skills/skills/pixijs-scene-sprite/references/sprite.md +181 -0
  191. package/vendor/pixijs-skills/skills/pixijs-scene-sprite/references/tiling-sprite.md +216 -0
  192. package/vendor/pixijs-skills/skills/pixijs-scene-text/SKILL.md +136 -0
  193. package/vendor/pixijs-skills/skills/pixijs-scene-text/references/bitmap-text.md +232 -0
  194. package/vendor/pixijs-skills/skills/pixijs-scene-text/references/html-text.md +192 -0
  195. package/vendor/pixijs-skills/skills/pixijs-scene-text/references/split-bitmap-text.md +187 -0
  196. package/vendor/pixijs-skills/skills/pixijs-scene-text/references/split-text.md +168 -0
  197. package/vendor/pixijs-skills/skills/pixijs-scene-text/references/text.md +311 -0
  198. package/vendor/pixijs-skills/skills/pixijs-ticker/SKILL.md +292 -0
@@ -0,0 +1,415 @@
1
+ ---
2
+ name: pixijs-migration-v8
3
+ description: "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/* sub-packages), Graphics shape-then-fill, BaseTexture → TextureSource, shader/uniform rework, ParticleContainer+Particle, constructor options objects, DisplayObject removal, settings/utils removal, Ticker signature, events rewrite. Triggers on: migrate v7, v8 breaking changes, @pixi/ import, DisplayObject, beginFill, endFill, cacheAsBitmap, BaseTexture, deprecated."
4
+ license: MIT
5
+ ---
6
+
7
+ 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.
8
+
9
+ ## Quick Start
10
+
11
+ Install the single package, then port in this order: imports → Application init → Graphics → Text → events → shaders/filters → cleanup.
12
+
13
+ ```ts
14
+ const app = new Application();
15
+ await app.init({ width: 800, height: 600 });
16
+ document.body.appendChild(app.canvas);
17
+
18
+ const g = new Graphics()
19
+ .rect(0, 0, 100, 100)
20
+ .fill({ color: 0xff0000 })
21
+ .stroke({ width: 2, color: 0x000000 });
22
+ app.stage.addChild(g);
23
+ ```
24
+
25
+ **Related skills:** `pixijs-application` (async init), `pixijs-scene-graphics` (new fill/stroke API), `pixijs-custom-rendering` (shader rework), `pixijs-scene-text` (Text constructor changes), `pixijs-performance` (destroy patterns).
26
+
27
+ ## Migration Checklist: v7 to v8
28
+
29
+ Work through each category. Each item shows the expected v8 pattern and the v7 pattern that must be replaced.
30
+
31
+ ### Initialization
32
+
33
+ **Async app.init()** -- Expected:
34
+
35
+ ```ts
36
+ const app = new Application();
37
+ await app.init({ width: 800, height: 600 });
38
+ document.body.appendChild(app.canvas);
39
+ ```
40
+
41
+ Fail: passing options to `new Application({...})` and using synchronously.
42
+
43
+ **app.canvas replaces app.view** -- `app.view` emits a deprecation warning.
44
+
45
+ **Application type parameter** -- Expected: `new Application<Renderer<HTMLCanvasElement>>()`. Fail: `new Application<HTMLCanvasElement>()`.
46
+
47
+ ### Imports
48
+
49
+ **Single package** -- Expected:
50
+
51
+ ```ts
52
+ import { Sprite, Application, Assets, Graphics } from "pixi.js";
53
+ ```
54
+
55
+ Fail: importing from any of the deprecated v7 core `@pixi/*` sub-packages (see list below). Supplemental packages like `@pixi/sound` are still valid and should continue to be used.
56
+
57
+ Deprecated `@pixi/*` packages (never use, any version):
58
+ `@pixi/accessibility`, `@pixi/app`, `@pixi/assets`, `@pixi/compressed-textures`, `@pixi/core`, `@pixi/display`, `@pixi/events`, `@pixi/extensions`, `@pixi/extract`, `@pixi/filter-alpha`, `@pixi/filter-blur`, `@pixi/filter-color-matrix`, `@pixi/filter-displacement`, `@pixi/filter-fxaa`, `@pixi/filter-noise`, `@pixi/graphics`, `@pixi/mesh`, `@pixi/mesh-extras`, `@pixi/mixin-cache-as-bitmap`, `@pixi/mixin-get-child-by-name`, `@pixi/mixin-get-global-position`, `@pixi/particle-container`, `@pixi/prepare`, `@pixi/sprite`, `@pixi/sprite-animated`, `@pixi/sprite-tiling`, `@pixi/spritesheet`, `@pixi/text`, `@pixi/text-bitmap`, `@pixi/text-html`.
59
+
60
+ **Custom builds** -- Set `skipExtensionImports: true` and import only needed extensions:
61
+
62
+ ```ts
63
+ import "pixi.js/graphics";
64
+ import "pixi.js/text";
65
+ import "pixi.js/events";
66
+ import { Application } from "pixi.js";
67
+ await app.init({ skipExtensionImports: true });
68
+ ```
69
+
70
+ Note: `manageImports: false` is still accepted but `@deprecated since 8.1.6`; prefer `skipExtensionImports: true`.
71
+
72
+ **Extensions not auto-imported** (require explicit import even with default auto-imports enabled):
73
+ `pixi.js/advanced-blend-modes`, `pixi.js/unsafe-eval`, `pixi.js/prepare`, `pixi.js/math-extras`, `pixi.js/dds`, `pixi.js/ktx`, `pixi.js/ktx2`, `pixi.js/basis`.
74
+
75
+ **Community filters** -- Expected: `import { AdjustmentFilter } from 'pixi-filters/adjustment'`. Fail: `@pixi/filter-adjustment`.
76
+
77
+ ### Graphics API
78
+
79
+ **Shape-then-fill** -- Expected:
80
+
81
+ ```ts
82
+ const g = new Graphics().rect(50, 50, 100, 100).fill(0xff0000);
83
+ ```
84
+
85
+ Fail: `beginFill(0xff0000).drawRect(50, 50, 100, 100).endFill()`.
86
+
87
+ **Renamed shape methods:**
88
+
89
+ | v7 | v8 |
90
+ | -------------------- | ------------- |
91
+ | `drawRect` | `rect` |
92
+ | `drawCircle` | `circle` |
93
+ | `drawEllipse` | `ellipse` |
94
+ | `drawPolygon` | `poly` |
95
+ | `drawRoundedRect` | `roundRect` |
96
+ | `drawStar` | `star` |
97
+ | `drawRegularPolygon` | `regularPoly` |
98
+ | `drawRoundedPolygon` | `roundPoly` |
99
+ | `drawRoundedShape` | `roundShape` |
100
+ | `drawChamferRect` | `chamferRect` |
101
+ | `drawFilletRect` | `filletRect` |
102
+
103
+ **Fill replaces beginFill/beginTextureFill** -- Expected:
104
+
105
+ ```ts
106
+ graphics
107
+ .rect(0, 0, 100, 100)
108
+ .fill({ texture: Texture.WHITE, alpha: 0.5, color: 0xff0000 });
109
+ ```
110
+
111
+ Fail: `beginFill(color, alpha)` or `beginTextureFill({ texture, alpha, color })`.
112
+
113
+ **Stroke replaces lineStyle** -- Expected:
114
+
115
+ ```ts
116
+ graphics.rect(0, 0, 100, 100).fill("blue").stroke({ width: 2, color: "white" });
117
+ ```
118
+
119
+ Fail: `lineStyle(2, 'white')` or `lineTextureStyle({ texture, width, color })`.
120
+
121
+ **Holes use cut()** -- Expected:
122
+
123
+ ```ts
124
+ graphics.rect(0, 0, 100, 100).fill(0x00ff00).circle(50, 50, 20).cut();
125
+ ```
126
+
127
+ Fail: `beginHole()` / `endHole()`.
128
+
129
+ **GraphicsContext replaces GraphicsGeometry** -- Expected:
130
+
131
+ ```ts
132
+ const context = new GraphicsContext().rect(0, 0, 100, 100).fill(0xff0000);
133
+ const g1 = new Graphics(context);
134
+ const g2 = new Graphics(context);
135
+ ```
136
+
137
+ Fail: `new Graphics(graphics.geometry)`.
138
+
139
+ ### Text
140
+
141
+ **Options object constructor** -- Expected:
142
+
143
+ ```ts
144
+ const text = new Text({ text: "Hello", style: { fontSize: 24 } });
145
+ const bmp = new BitmapText({ text: "Hello", style: { fontFamily: "MyFont" } });
146
+ const html = new HTMLText({ text: "<b>Hello</b>", style: { fontSize: 24 } });
147
+ ```
148
+
149
+ Fail: `new Text('Hello', { fontSize: 24 })` (positional args).
150
+
151
+ **Bitmap font loading** -- Must `import 'pixi.js/text-bitmap'` before `Assets.load('font.fnt')`.
152
+
153
+ ### Sprites / Mesh
154
+
155
+ **Texture.from no longer loads URLs** -- Must call `await Assets.load('image.png')` first, then `Texture.from('image.png')`.
156
+
157
+ **NineSliceSprite replaces NineSlicePlane** -- Expected:
158
+
159
+ ```ts
160
+ const ns = new NineSliceSprite({
161
+ texture,
162
+ leftWidth: 10,
163
+ topHeight: 10,
164
+ rightWidth: 10,
165
+ bottomHeight: 10,
166
+ });
167
+ ```
168
+
169
+ **Mesh renames:** `SimpleMesh` -> `MeshSimple`, `SimplePlane` -> `MeshPlane`, `SimpleRope` -> `MeshRope`. All use options objects.
170
+
171
+ **MeshGeometry options** -- Expected:
172
+
173
+ ```ts
174
+ const geom = new MeshGeometry({
175
+ positions: vertices,
176
+ uvs,
177
+ indices,
178
+ topology: "triangle-list",
179
+ });
180
+ ```
181
+
182
+ Fail: `new MeshGeometry(vertices, uvs, indices)`.
183
+
184
+ **ParticleContainer uses Particle** -- Expected:
185
+
186
+ ```ts
187
+ const container = new ParticleContainer({
188
+ boundsArea: new Rectangle(0, 0, 800, 600),
189
+ });
190
+ const particle = new Particle(texture);
191
+ container.addParticle(particle);
192
+ ```
193
+
194
+ Fail: `container.addChild(new Sprite(texture))`.
195
+
196
+ ### Events
197
+
198
+ **eventMode replaces interactive** -- Expected:
199
+
200
+ ```ts
201
+ sprite.eventMode = "static";
202
+ sprite.cursor = "pointer";
203
+ sprite.on("pointertap", () => {
204
+ /* handle */
205
+ });
206
+ ```
207
+
208
+ Legacy: `sprite.interactive = true;` (still works as an alias for `eventMode = 'static'`, but prefer the explicit form).
209
+
210
+ Default `eventMode` is `'passive'` (no events). Must set `'static'` or `'dynamic'` explicitly.
211
+
212
+ **Ticker callback** -- Expected:
213
+
214
+ ```ts
215
+ app.ticker.add((ticker) => {
216
+ bunny.rotation += ticker.deltaTime;
217
+ });
218
+ ```
219
+
220
+ Broken: `app.ticker.add((dt) => { bunny.rotation += dt; })` -- compiles but `dt` is a `Ticker` object, not a number. Coerces to `NaN`, silently corrupting rotation.
221
+
222
+ **updateTransform removed** -- Use `this.onRender = this._onRender.bind(this)` in constructor instead.
223
+
224
+ ### Shaders
225
+
226
+ **Shader.from uses options** -- Expected:
227
+
228
+ ```ts
229
+ const shader = Shader.from({
230
+ gl: { vertex: vertexSrc, fragment: fragmentSrc },
231
+ resources: {
232
+ myUniforms: new UniformGroup({ uTime: { value: 0, type: "f32" } }),
233
+ },
234
+ });
235
+ ```
236
+
237
+ Fail: `Shader.from(vertex, fragment, uniforms)`.
238
+
239
+ **Filter constructor** -- Expected:
240
+
241
+ ```ts
242
+ const filter = new Filter({
243
+ glProgram: GlProgram.from({ fragment, vertex }),
244
+ resources: { filterUniforms: { uTime: { value: 0, type: "f32" } } },
245
+ });
246
+ ```
247
+
248
+ Fail: `new Filter(vertex, fragment, { uTime: 0 })`.
249
+
250
+ **Uniforms require type** -- `new UniformGroup({ uTime: { value: 1, type: 'f32' } })`. Fail: `new UniformGroup({ uTime: 1 })`.
251
+
252
+ **Textures are resources, not uniforms** -- Pass as top-level resource entries (`texture.source`, `texture.style`), not inside UniformGroup.
253
+
254
+ ### Textures
255
+
256
+ **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.
257
+
258
+ ```ts
259
+ texture.frame.width = texture.frame.width / 2;
260
+ texture.update(); // recalculate texture UVs first
261
+ sprite.onViewUpdate(); // then refresh the sprite's display
262
+ ```
263
+
264
+ **Mipmaps** -- `BaseTexture.mipmap` renamed to `autoGenerateMipmaps`. For RenderTextures, you must manually update mipmaps:
265
+
266
+ ```ts
267
+ const rt = RenderTexture.create({
268
+ width: 100,
269
+ height: 100,
270
+ autoGenerateMipmaps: true,
271
+ });
272
+ renderer.render({ target: rt, container: scene });
273
+ rt.source.updateMipmaps();
274
+ ```
275
+
276
+ ### Adapters
277
+
278
+ **DOMAdapter replaces settings.ADAPTER** -- Expected:
279
+
280
+ ```ts
281
+ import { DOMAdapter, WebWorkerAdapter } from "pixi.js";
282
+ DOMAdapter.set(WebWorkerAdapter);
283
+ DOMAdapter.get().createCanvas();
284
+ ```
285
+
286
+ Fail: `settings.ADAPTER = WebWorkerAdapter; settings.ADAPTER.createCanvas();`.
287
+
288
+ Built-in adapters: `BrowserAdapter` (default), `WebWorkerAdapter` (for web workers).
289
+
290
+ ### Other
291
+
292
+ **DisplayObject removed** -- `Container` is the base class. `class MyObj extends DisplayObject` fails.
293
+
294
+ **Leaf nodes cannot have children** -- `Sprite`, `Graphics`, `Mesh`, `Text` are leaf nodes. Wrap in `Container`.
295
+
296
+ **Renamed properties** (old names still exist as deprecated aliases with warnings):
297
+
298
+ - `container.name` -> `container.label`
299
+ - `container.cacheAsBitmap = true` -> `container.cacheAsTexture(true)`
300
+
301
+ **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()`).
302
+
303
+ **settings object removed** -- Use `AbstractRenderer.defaultOptions.resolution = 1` and `DOMAdapter.set(BrowserAdapter)`.
304
+
305
+ **utils namespace removed** -- `import { isMobile } from 'pixi.js'` instead of `utils.isMobile`.
306
+
307
+ **Text parser renames:**
308
+
309
+ - `TextFormat` -> `bitmapFontTextParser`
310
+ - `XMLStringFormat` -> `bitmapFontXMLStringParser`
311
+ - `XMLFormat` -> `bitmapFontXMLParser`
312
+
313
+ **Assets.add** -- `Assets.add({ alias: 'bunny', src: 'bunny.png' })`. Fail: `Assets.add('bunny', 'bunny.png')`.
314
+
315
+ **Enum constants replaced with strings:**
316
+
317
+ | v7 | v8 |
318
+ | ---------------------------- | ------------------ |
319
+ | `SCALE_MODES.NEAREST` | `'nearest'` |
320
+ | `SCALE_MODES.LINEAR` | `'linear'` |
321
+ | `WRAP_MODES.CLAMP` | `'clamp-to-edge'` |
322
+ | `WRAP_MODES.REPEAT` | `'repeat'` |
323
+ | `WRAP_MODES.MIRRORED_REPEAT` | `'mirror-repeat'` |
324
+ | `DRAW_MODES.TRIANGLES` | `'triangle-list'` |
325
+ | `DRAW_MODES.TRIANGLE_STRIP` | `'triangle-strip'` |
326
+ | `DRAW_MODES.LINES` | `'line-list'` |
327
+ | `DRAW_MODES.LINE_STRIP` | `'line-strip'` |
328
+ | `DRAW_MODES.POINTS` | `'point-list'` |
329
+
330
+ **Culling is manual** -- Set `cullable = true`, then call `Culler.shared.cull(container, viewRect)` before render. Or add `CullerPlugin` via `extensions.add(CullerPlugin)`.
331
+
332
+ ## Pre-Migration Summary
333
+
334
+ - [ ] No deprecated v7 core `@pixi/*` packages in dependencies (supplemental packages like `@pixi/sound` are fine)
335
+ - [ ] All core `@pixi/*` imports converted to `pixi.js`
336
+ - [ ] All `new Application({...})` converted to `await app.init({...})`
337
+ - [ ] All Graphics code uses shape-then-fill pattern
338
+ - [ ] All constructors use options objects (Text, Mesh, NineSliceSprite, etc.)
339
+ - [ ] Shader/Filter code uses `{gl, resources}` pattern with typed uniforms
340
+ - [ ] ParticleContainer code uses `Particle`, not `Sprite`
341
+ - [ ] Ticker callbacks access `ticker.deltaTime`, not first param as delta
342
+ - [ ] Event handling uses `eventMode` instead of `interactive`
343
+ - [ ] `settings` and `utils` references removed
344
+ - [ ] `DisplayObject` references replaced with `Container`
345
+ - [ ] Texture UV modifications call `sprite.onViewUpdate()` where needed
346
+ - [ ] RenderTexture mipmap code calls `source.updateMipmaps()` manually
347
+ - [ ] `settings.ADAPTER` replaced with `DOMAdapter.set()`
348
+
349
+ ## Common Mistakes
350
+
351
+ ### [CRITICAL] Importing from deprecated v7 core @pixi/\* sub-packages
352
+
353
+ Wrong:
354
+
355
+ ```ts
356
+ import { Sprite } from "@pixi/sprite";
357
+ import { Application } from "@pixi/app";
358
+ ```
359
+
360
+ Correct:
361
+
362
+ ```ts
363
+ import { Sprite, Application } from "pixi.js";
364
+ ```
365
+
366
+ v8 uses a single `pixi.js` package. The v7 core `@pixi/*` sub-packages are deprecated and must not be used (see the full list under Imports above). Supplemental packages like `@pixi/sound` are still valid.
367
+
368
+
369
+ ### [CRITICAL] Using DisplayObject as base class
370
+
371
+ Wrong: `class MyObject extends DisplayObject { ... }`
372
+ Correct: `class MyObject extends Container { ... }`
373
+
374
+ `DisplayObject` was removed in v8. `Container` is the base class for all display objects.
375
+
376
+
377
+ ### [HIGH] Using old SCALE_MODES/WRAP_MODES/DRAW_MODES enums
378
+
379
+ Wrong: `texture.source.scaleMode = SCALE_MODES.NEAREST;`
380
+ Correct: `texture.source.scaleMode = 'nearest';`
381
+
382
+ v8 uses string values. Old enums may work as deprecated aliases but should be replaced.
383
+
384
+
385
+ ### [HIGH] Using `interactive = true` instead of `eventMode`
386
+
387
+ Legacy: `sprite.interactive = true;` (still works as an alias for `eventMode = 'static'`)
388
+ Preferred: `sprite.eventMode = 'static';`
389
+
390
+ Default `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.
391
+
392
+
393
+ ### [HIGH] Using utils namespace
394
+
395
+ Wrong: `import { utils } from 'pixi.js'; utils.isMobile.any();`
396
+ Correct: `import { isMobile } from 'pixi.js'; isMobile.any();`
397
+
398
+ The `utils` namespace was removed. All utility functions are direct imports.
399
+
400
+
401
+ ### [HIGH] Expecting texture UV changes to auto-update sprites
402
+
403
+ Wrong: modifying `texture.frame` and assuming the sprite updates automatically.
404
+ Correct: call `sprite.onViewUpdate()` after modifying texture UVs.
405
+
406
+ Sprites no longer subscribe to texture UV change events for performance. Source data updates (e.g. video) still auto-reflect.
407
+
408
+
409
+ ## API Reference
410
+
411
+ - [v8 Migration Guide](https://pixijs.download/release/docs/migrations.html.md)
412
+ - [v7 Migration Guide](https://pixijs.download/release/docs/migrations-1.html.md)
413
+ - [Application](https://pixijs.download/release/docs/app.Application.html.md)
414
+ - [Graphics](https://pixijs.download/release/docs/scene.Graphics.html.md)
415
+ - [Container](https://pixijs.download/release/docs/scene.Container.html.md)