[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CSN4FGPV5BX1N945FSXQ7V":3,"skill-same:01M7CSN4FGPV5BX1N945FSXQ7V":52},{"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},"01M7CSN4FGPV5BX1N945FSXQ7V","pixijs-application",null,"Use this skill when creating and configuring a PixiJS v8 Application. Covers new Application() + async app.init() options (width, height, background, antialias, resolution, autoDensity, preference, resizeTo, autoStart, sharedTicker, canvas, useBackBuffer, powerPreference, eventFeatures, accessibilityOptions, gcActive, bezierSmoothness, webgl\u002Fwebgpu\u002FcanvasOptions per-renderer overrides), app.stage\u002Frenderer\u002Fcanvas\u002Fscreen\u002FdomContainerRoot access, ResizePlugin, TickerPlugin, CullerPlugin (cullable, cullArea), custom ApplicationPlugin creation via ExtensionType.Application, start\u002Fstop lifecycle, and app.destroy() with releaseGlobalResources. Triggers on: Application, app.init, app.stage, app.renderer, app.canvas, app.screen, app.domContainerRoot, ApplicationOptions, ApplicationPlugin, ExtensionType.Application, resizeTo, preference, autoStart, sharedTicker, useBackBuffer, powerPreference, skipExtensionImports, preferWebGLVersion, preserveDrawingBuffer, cullable, CullerPlugin, app.start, app.stop, app.destroy, releaseGlobalResources.","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-application\u002FSkill.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pixijs-application\ndescription: \"Use this skill when creating and configuring a PixiJS v8 Application. Covers new Application() + async app.init() options (width, height, background, antialias, resolution, autoDensity, preference, resizeTo, autoStart, sharedTicker, canvas, useBackBuffer, powerPreference, eventFeatures, accessibilityOptions, gcActive, bezierSmoothness, webgl\u002Fwebgpu\u002FcanvasOptions per-renderer overrides), app.stage\u002Frenderer\u002Fcanvas\u002Fscreen\u002FdomContainerRoot access, ResizePlugin, TickerPlugin, CullerPlugin (cullable, cullArea), custom ApplicationPlugin creation via ExtensionType.Application, start\u002Fstop lifecycle, and app.destroy() with releaseGlobalResources. Triggers on: Application, app.init, app.stage, app.renderer, app.canvas, app.screen, app.domContainerRoot, ApplicationOptions, ApplicationPlugin, ExtensionType.Application, resizeTo, preference, autoStart, sharedTicker, useBackBuffer, powerPreference, skipExtensionImports, preferWebGLVersion, preserveDrawingBuffer, cullable, CullerPlugin, app.start, app.stop, app.destroy, releaseGlobalResources.\"\nlicense: MIT\n---\n\n`Application` is the convenience wrapper that owns a renderer, a root `stage` Container, a canvas, and the Ticker\u002FResize plugins. In v8 the constructor takes no arguments; all configuration is passed to the async `app.init()` call which instantiates the renderer via `autoDetectRenderer`.\n\n## Quick Start\n\n```ts\nimport { Application } from \"pixi.js\";\n\nconst app = new Application();\n\nawait app.init({\n  resizeTo: window,\n  background: \"#1099bb\",\n  antialias: true,\n  preference: \"webgl\",\n  autoDensity: true,\n  resolution: window.devicePixelRatio,\n});\n\ndocument.body.appendChild(app.canvas);\n```\n\n**Related skills:** `pixijs-core-concepts` (renderers, render pipeline), `pixijs-ticker` (render loop detail), `pixijs-scene-container` (working with `app.stage`), `pixijs-environments` (non-browser setups).\n\n## Core Patterns\n\n### Lifecycle: construct, init, render, destroy\n\n```ts\nimport { Application } from \"pixi.js\";\n\nconst app = new Application();\n\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n\n\u002F\u002F ... run scene, ticker drives app.render() automatically ...\n\napp.destroy(\n  { removeView: true, releaseGlobalResources: true },\n  { children: true, texture: true, textureSource: true },\n);\n```\n\n- `new Application()` allocates the instance but creates nothing. Options passed here are ignored with a v8 deprecation warning.\n- `app.init(options)` is async. It builds the renderer, wires up plugins, and must complete before you can use `app.canvas`, `app.renderer`, or `app.screen`.\n- The TickerPlugin calls `app.render()` every frame once init resolves (unless `autoStart: false`).\n- `app.destroy(rendererDestroyOptions, stageDestroyOptions)` — the first argument forwards to `renderer.destroy()`. Pass `true` or `{ removeView: true }` to remove the canvas from the DOM. Add `releaseGlobalResources: true` to drain global pools (batches, texture caches) when tearing down and re-creating an app in the same tab; omitting it is the usual cause of flickering and stale textures after a re-init (see `pixijs-performance`).\n\n### Key init options\n\n```ts\nawait app.init({\n  width: 800,\n  height: 600,\n  background: 0x1099bb,\n  backgroundAlpha: 1,\n\n  antialias: true,\n  resolution: window.devicePixelRatio,\n  autoDensity: true,\n\n  preference: \"webgpu\",\n\n  autoStart: true,\n  sharedTicker: false,\n\n  resizeTo: window,\n\n  canvas: document.querySelector(\"#game-canvas\") as HTMLCanvasElement,\n});\n```\n\nFor every option — view\u002Fcanvas, background, renderer preference (including the array form), ticker, resize, culler, events, accessibility, WebGL\u002FWebGPU context flags, Graphics bezier smoothness, GC, and per-renderer overrides (`webgl` \u002F `webgpu` \u002F `canvasOptions`) — see [references\u002Fapplication-options.md](references\u002Fapplication-options.md).\n\n### Application properties\n\n```ts\napp.stage; \u002F\u002F root Container; add all display objects here\napp.renderer; \u002F\u002F the WebGL\u002FWebGPU\u002FCanvas renderer instance\napp.canvas; \u002F\u002F the HTMLCanvasElement (insert it into the DOM yourself)\napp.screen; \u002F\u002F Rectangle describing the visible area in CSS pixels\napp.domContainerRoot; \u002F\u002F HTMLDivElement that holds DOMContainer overlays\n```\n\n`app.stage` is a plain `Container`. For scene graph detail (transforms, addChild, destroy) see `pixijs-scene-container`. For renderer-level operations (extract, generateTexture, custom systems) see `pixijs-core-concepts` and `pixijs-custom-rendering`. `app.domContainerRoot` is the `\u003Cdiv>` that the renderer uses to host `DOMContainer` overlays; append it next to `app.canvas` when you need DOM elements pinned to scene nodes (see `pixijs-scene-dom-container`).\n\n### ResizePlugin\n\nSet `resizeTo` at init (or reassign `app.resizeTo` later) to have the plugin listen for the `resize` event and call `renderer.resize()` with the target element's client size. Combine with `autoDensity: true` and `resolution: window.devicePixelRatio` for high-DPI output.\n\n```ts\nawait app.init({ resizeTo: window });\n\napp.resizeTo = document.querySelector(\"#game-container\") as HTMLElement;\n\napp.resize(); \u002F\u002F immediate resize to the target's current size\napp.queueResize(); \u002F\u002F defer the resize to the next animation frame\napp.cancelResize(); \u002F\u002F drop a pending queueResize\n```\n\nThe plugin keeps the canvas matched to the target. `app.screen` and `app.canvas.width\u002Fheight` update in response; read them after the resize to place UI.\n\n- `app.resize()` — immediate synchronous resize.\n- `app.queueResize()` — coalesces rapid calls by deferring to the next frame; internally used by the `window.resize` listener to avoid redundant work.\n- `app.cancelResize()` — cancels a queued resize. Call this before tearing down your own layout code that triggered `queueResize`.\n\n### Ticker basics\n\nThe TickerPlugin creates `app.ticker` and registers `app.render()` on it at `UPDATE_PRIORITY.LOW`. Control the loop with `app.start()`\u002F`app.stop()` and add callbacks with `app.ticker.add` \u002F `app.ticker.addOnce`:\n\n```ts\napp.ticker.add((ticker) => {\n  sprite.rotation += 0.01 * ticker.deltaTime;\n});\n\napp.ticker.addOnce(() => {\n  console.log(\"runs once on the next frame, then removes itself\");\n});\n\napp.stop(); \u002F\u002F pause the render loop (e.g. tab hidden)\napp.start(); \u002F\u002F resume\n```\n\nThe callback receives the `Ticker` instance; read `ticker.deltaTime` for a frame-rate-independent multiplier (~1.0 at 60fps), `ticker.deltaMS` for real milliseconds, or `ticker.FPS` for the current frame rate. See `pixijs-ticker` for priorities, FPS capping, `onRender`, shared vs private tickers, and the v8 callback signature change.\n\n### Manual render loop\n\n```ts\nawait app.init({ autoStart: false, width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n\nfunction frame() {\n  updateScene();\n  app.render();\n  requestAnimationFrame(frame);\n}\nframe();\n```\n\n`autoStart: false` prevents the TickerPlugin from starting the ticker automatically. Call `app.render()` yourself (or `app.renderer.render({ container: app.stage })` for the same effect). If you still want registered ticker callbacks to fire, call `app.ticker.update()` inside your loop before `app.render()`.\n\n### CullerPlugin (opt-in)\n\nThe CullerPlugin skips rendering containers that fall outside `app.renderer.screen`. It isn't registered by default; add it before creating your app:\n\n```ts\nimport {\n  Application,\n  Container,\n  Sprite,\n  extensions,\n  CullerPlugin,\n  Rectangle,\n} from \"pixi.js\";\n\nextensions.add(CullerPlugin);\n\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\n\nconst world = new Container();\nworld.cullable = true; \u002F\u002F this container is culled when its bounds leave the screen\nworld.cullableChildren = true; \u002F\u002F default; set `false` to skip recursing into children\n\nconst tile = Sprite.from(\"tile.png\");\ntile.cullable = true;\nworld.addChild(tile);\napp.stage.addChild(world);\n```\n\nContainers are not culled unless `cullable` is set. Override the default bounds check with `container.cullArea = new Rectangle(x, y, w, h)` when child bounds are expensive to compute. The plugin wraps `app.render()` so `Culler.shared.cull(app.stage, app.renderer.screen)` runs before every frame. See `pixijs-performance` for when culling pays off.\n\n### Custom Application plugins\n\nExtend `Application` by registering a class with `static init`, `static destroy`, and `static extension = ExtensionType.Application`. Both methods are called with `this` bound to the Application instance, so `this.renderer` and `this.stage` are available.\n\n```ts\nimport {\n  Application,\n  ExtensionType,\n  extensions,\n  type ApplicationOptions,\n} from \"pixi.js\";\n\nclass FpsOverlay {\n  public static extension = ExtensionType.Application;\n\n  public static init(this: Application, options: Partial\u003CApplicationOptions>) {\n    \u002F\u002F runs inside app.init() after the renderer is created\n    \u002F\u002F attach props\u002Fmethods to `this` to expose them on the app\n  }\n\n  public static destroy(this: Application) {\n    \u002F\u002F runs inside app.destroy() — tear down anything you attached\n  }\n}\n\nextensions.add(FpsOverlay);\n```\n\nPlugins initialize in registration order and destroy in reverse. To add typed options for your plugin, extend `PixiMixins.ApplicationOptions`:\n\n```ts\ndeclare global {\n  namespace PixiMixins {\n    interface ApplicationOptions {\n      fpsOverlay?: { visible?: boolean };\n    }\n  }\n}\n\nawait app.init({ fpsOverlay: { visible: true } });\n```\n\nThe built-in `ResizePlugin`, `TickerPlugin`, and opt-in `CullerPlugin` all use this same contract. If you set `skipExtensionImports: true`, register the built-ins you need yourself (`extensions.add(ResizePlugin, TickerPlugin)`).\n\n## Common Mistakes\n\n### [CRITICAL] Passing options to the constructor\n\nWrong:\n\n```ts\nconst app = new Application({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n```\n\nCorrect:\n\n```ts\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n```\n\nIn v8 the `Application` constructor takes no arguments. Options passed there are ignored and log a deprecation warning; the renderer is only created inside the async `init()` call.\n\n\n### [HIGH] Using app.view instead of app.canvas\n\nWrong:\n\n```ts\ndocument.body.appendChild(app.view);\n```\n\nCorrect:\n\n```ts\ndocument.body.appendChild(app.canvas);\n```\n\n`app.view` was renamed to `app.canvas` in v8. The old getter still works but emits a deprecation warning.\n\n\n### [MEDIUM] Touching app.canvas or app.renderer before init resolves\n\nWrong:\n\n```ts\nconst app = new Application();\ndocument.body.appendChild(app.canvas);\napp.init({ width: 800, height: 600 });\n```\n\nCorrect:\n\n```ts\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n```\n\n`app.renderer`, `app.canvas`, and `app.screen` are only populated once the `init()` promise resolves. Accessing them earlier returns `undefined`.\n\n\n## API Reference\n\n- [Application](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.Application.html.md)\n- [ApplicationOptions](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ApplicationOptions.html.md)\n- [ApplicationPlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ApplicationPlugin.html.md)\n- [ResizePlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ResizePlugin.html.md)\n- [ResizePluginOptions](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ResizePluginOptions.html.md)\n- [TickerPlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.TickerPlugin.html.md)\n- [TickerPluginOptions](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.TickerPluginOptions.html.md)\n- [CullerPlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.CullerPlugin.html.md)\n- [autoDetectRenderer](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Frendering.autoDetectRenderer.html.md)\n","`Application` is the convenience wrapper that owns a renderer, a root `stage` Container, a canvas, and the Ticker\u002FResize plugins. In v8 the constructor takes no arguments; all configuration is passed to the async `app.init()` call which instantiates the renderer via `autoDetectRenderer`.\n\n## Quick Start\n\n```ts\nimport { Application } from \"pixi.js\";\n\nconst app = new Application();\n\nawait app.init({\n  resizeTo: window,\n  background: \"#1099bb\",\n  antialias: true,\n  preference: \"webgl\",\n  autoDensity: true,\n  resolution: window.devicePixelRatio,\n});\n\ndocument.body.appendChild(app.canvas);\n```\n\n**Related skills:** `pixijs-core-concepts` (renderers, render pipeline), `pixijs-ticker` (render loop detail), `pixijs-scene-container` (working with `app.stage`), `pixijs-environments` (non-browser setups).\n\n## Core Patterns\n\n### Lifecycle: construct, init, render, destroy\n\n```ts\nimport { Application } from \"pixi.js\";\n\nconst app = new Application();\n\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n\n\u002F\u002F ... run scene, ticker drives app.render() automatically ...\n\napp.destroy(\n  { removeView: true, releaseGlobalResources: true },\n  { children: true, texture: true, textureSource: true },\n);\n```\n\n- `new Application()` allocates the instance but creates nothing. Options passed here are ignored with a v8 deprecation warning.\n- `app.init(options)` is async. It builds the renderer, wires up plugins, and must complete before you can use `app.canvas`, `app.renderer`, or `app.screen`.\n- The TickerPlugin calls `app.render()` every frame once init resolves (unless `autoStart: false`).\n- `app.destroy(rendererDestroyOptions, stageDestroyOptions)` — the first argument forwards to `renderer.destroy()`. Pass `true` or `{ removeView: true }` to remove the canvas from the DOM. Add `releaseGlobalResources: true` to drain global pools (batches, texture caches) when tearing down and re-creating an app in the same tab; omitting it is the usual cause of flickering and stale textures after a re-init (see `pixijs-performance`).\n\n### Key init options\n\n```ts\nawait app.init({\n  width: 800,\n  height: 600,\n  background: 0x1099bb,\n  backgroundAlpha: 1,\n\n  antialias: true,\n  resolution: window.devicePixelRatio,\n  autoDensity: true,\n\n  preference: \"webgpu\",\n\n  autoStart: true,\n  sharedTicker: false,\n\n  resizeTo: window,\n\n  canvas: document.querySelector(\"#game-canvas\") as HTMLCanvasElement,\n});\n```\n\nFor every option — view\u002Fcanvas, background, renderer preference (including the array form), ticker, resize, culler, events, accessibility, WebGL\u002FWebGPU context flags, Graphics bezier smoothness, GC, and per-renderer overrides (`webgl` \u002F `webgpu` \u002F `canvasOptions`) — see [references\u002Fapplication-options.md](references\u002Fapplication-options.md).\n\n### Application properties\n\n```ts\napp.stage; \u002F\u002F root Container; add all display objects here\napp.renderer; \u002F\u002F the WebGL\u002FWebGPU\u002FCanvas renderer instance\napp.canvas; \u002F\u002F the HTMLCanvasElement (insert it into the DOM yourself)\napp.screen; \u002F\u002F Rectangle describing the visible area in CSS pixels\napp.domContainerRoot; \u002F\u002F HTMLDivElement that holds DOMContainer overlays\n```\n\n`app.stage` is a plain `Container`. For scene graph detail (transforms, addChild, destroy) see `pixijs-scene-container`. For renderer-level operations (extract, generateTexture, custom systems) see `pixijs-core-concepts` and `pixijs-custom-rendering`. `app.domContainerRoot` is the `\u003Cdiv>` that the renderer uses to host `DOMContainer` overlays; append it next to `app.canvas` when you need DOM elements pinned to scene nodes (see `pixijs-scene-dom-container`).\n\n### ResizePlugin\n\nSet `resizeTo` at init (or reassign `app.resizeTo` later) to have the plugin listen for the `resize` event and call `renderer.resize()` with the target element's client size. Combine with `autoDensity: true` and `resolution: window.devicePixelRatio` for high-DPI output.\n\n```ts\nawait app.init({ resizeTo: window });\n\napp.resizeTo = document.querySelector(\"#game-container\") as HTMLElement;\n\napp.resize(); \u002F\u002F immediate resize to the target's current size\napp.queueResize(); \u002F\u002F defer the resize to the next animation frame\napp.cancelResize(); \u002F\u002F drop a pending queueResize\n```\n\nThe plugin keeps the canvas matched to the target. `app.screen` and `app.canvas.width\u002Fheight` update in response; read them after the resize to place UI.\n\n- `app.resize()` — immediate synchronous resize.\n- `app.queueResize()` — coalesces rapid calls by deferring to the next frame; internally used by the `window.resize` listener to avoid redundant work.\n- `app.cancelResize()` — cancels a queued resize. Call this before tearing down your own layout code that triggered `queueResize`.\n\n### Ticker basics\n\nThe TickerPlugin creates `app.ticker` and registers `app.render()` on it at `UPDATE_PRIORITY.LOW`. Control the loop with `app.start()`\u002F`app.stop()` and add callbacks with `app.ticker.add` \u002F `app.ticker.addOnce`:\n\n```ts\napp.ticker.add((ticker) => {\n  sprite.rotation += 0.01 * ticker.deltaTime;\n});\n\napp.ticker.addOnce(() => {\n  console.log(\"runs once on the next frame, then removes itself\");\n});\n\napp.stop(); \u002F\u002F pause the render loop (e.g. tab hidden)\napp.start(); \u002F\u002F resume\n```\n\nThe callback receives the `Ticker` instance; read `ticker.deltaTime` for a frame-rate-independent multiplier (~1.0 at 60fps), `ticker.deltaMS` for real milliseconds, or `ticker.FPS` for the current frame rate. See `pixijs-ticker` for priorities, FPS capping, `onRender`, shared vs private tickers, and the v8 callback signature change.\n\n### Manual render loop\n\n```ts\nawait app.init({ autoStart: false, width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n\nfunction frame() {\n  updateScene();\n  app.render();\n  requestAnimationFrame(frame);\n}\nframe();\n```\n\n`autoStart: false` prevents the TickerPlugin from starting the ticker automatically. Call `app.render()` yourself (or `app.renderer.render({ container: app.stage })` for the same effect). If you still want registered ticker callbacks to fire, call `app.ticker.update()` inside your loop before `app.render()`.\n\n### CullerPlugin (opt-in)\n\nThe CullerPlugin skips rendering containers that fall outside `app.renderer.screen`. It isn't registered by default; add it before creating your app:\n\n```ts\nimport {\n  Application,\n  Container,\n  Sprite,\n  extensions,\n  CullerPlugin,\n  Rectangle,\n} from \"pixi.js\";\n\nextensions.add(CullerPlugin);\n\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\n\nconst world = new Container();\nworld.cullable = true; \u002F\u002F this container is culled when its bounds leave the screen\nworld.cullableChildren = true; \u002F\u002F default; set `false` to skip recursing into children\n\nconst tile = Sprite.from(\"tile.png\");\ntile.cullable = true;\nworld.addChild(tile);\napp.stage.addChild(world);\n```\n\nContainers are not culled unless `cullable` is set. Override the default bounds check with `container.cullArea = new Rectangle(x, y, w, h)` when child bounds are expensive to compute. The plugin wraps `app.render()` so `Culler.shared.cull(app.stage, app.renderer.screen)` runs before every frame. See `pixijs-performance` for when culling pays off.\n\n### Custom Application plugins\n\nExtend `Application` by registering a class with `static init`, `static destroy`, and `static extension = ExtensionType.Application`. Both methods are called with `this` bound to the Application instance, so `this.renderer` and `this.stage` are available.\n\n```ts\nimport {\n  Application,\n  ExtensionType,\n  extensions,\n  type ApplicationOptions,\n} from \"pixi.js\";\n\nclass FpsOverlay {\n  public static extension = ExtensionType.Application;\n\n  public static init(this: Application, options: Partial\u003CApplicationOptions>) {\n    \u002F\u002F runs inside app.init() after the renderer is created\n    \u002F\u002F attach props\u002Fmethods to `this` to expose them on the app\n  }\n\n  public static destroy(this: Application) {\n    \u002F\u002F runs inside app.destroy() — tear down anything you attached\n  }\n}\n\nextensions.add(FpsOverlay);\n```\n\nPlugins initialize in registration order and destroy in reverse. To add typed options for your plugin, extend `PixiMixins.ApplicationOptions`:\n\n```ts\ndeclare global {\n  namespace PixiMixins {\n    interface ApplicationOptions {\n      fpsOverlay?: { visible?: boolean };\n    }\n  }\n}\n\nawait app.init({ fpsOverlay: { visible: true } });\n```\n\nThe built-in `ResizePlugin`, `TickerPlugin`, and opt-in `CullerPlugin` all use this same contract. If you set `skipExtensionImports: true`, register the built-ins you need yourself (`extensions.add(ResizePlugin, TickerPlugin)`).\n\n## Common Mistakes\n\n### [CRITICAL] Passing options to the constructor\n\nWrong:\n\n```ts\nconst app = new Application({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n```\n\nCorrect:\n\n```ts\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n```\n\nIn v8 the `Application` constructor takes no arguments. Options passed there are ignored and log a deprecation warning; the renderer is only created inside the async `init()` call.\n\n\n### [HIGH] Using app.view instead of app.canvas\n\nWrong:\n\n```ts\ndocument.body.appendChild(app.view);\n```\n\nCorrect:\n\n```ts\ndocument.body.appendChild(app.canvas);\n```\n\n`app.view` was renamed to `app.canvas` in v8. The old getter still works but emits a deprecation warning.\n\n\n### [MEDIUM] Touching app.canvas or app.renderer before init resolves\n\nWrong:\n\n```ts\nconst app = new Application();\ndocument.body.appendChild(app.canvas);\napp.init({ width: 800, height: 600 });\n```\n\nCorrect:\n\n```ts\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n```\n\n`app.renderer`, `app.canvas`, and `app.screen` are only populated once the `init()` promise resolves. Accessing them earlier returns `undefined`.\n\n\n## API Reference\n\n- [Application](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.Application.html.md)\n- [ApplicationOptions](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ApplicationOptions.html.md)\n- [ApplicationPlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ApplicationPlugin.html.md)\n- [ResizePlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ResizePlugin.html.md)\n- [ResizePluginOptions](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ResizePluginOptions.html.md)\n- [TickerPlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.TickerPlugin.html.md)\n- [TickerPluginOptions](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.TickerPluginOptions.html.md)\n- [CullerPlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.CullerPlugin.html.md)\n- [autoDetectRenderer](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Frendering.autoDetectRenderer.html.md)\n",{"name":5,"license":15,"description":7},"main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fpixijs-pixijs-skills\u002Fpixijs-application",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-application",{"tool":38,"command":39},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill pixijs-application",{"tool":41,"command":42},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill pixijs-application","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fpixijs-pixijs-skills\u002Fpixijs-application\u002FSkill.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"metadata.json","REFERENCE","参考文档",457,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fpixijs-pixijs-skills\u002Fpixijs-application\u002Fmetadata.json",[53,60,65,72,77,84],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"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":61,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"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":73,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"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":85,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]